Remove get all handler for singleton models
This commit is contained in:
parent
ac3d2c1edc
commit
df0c39c213
@ -913,6 +913,7 @@ class SubNetworks(_BaseHNVModel):
|
|||||||
|
|
||||||
ip_configurations = []
|
ip_configurations = []
|
||||||
for raw_config in properties.get("ipConfigurations", []):
|
for raw_config in properties.get("ipConfigurations", []):
|
||||||
|
raw_config["parentResourceID"] = raw_data["resourceId"]
|
||||||
ip_configurations.append(IPConfiguration.from_raw_data(raw_config))
|
ip_configurations.append(IPConfiguration.from_raw_data(raw_config))
|
||||||
properties["ipConfigurations"] = ip_configurations
|
properties["ipConfigurations"] = ip_configurations
|
||||||
|
|
||||||
@ -1214,6 +1215,11 @@ class VirtualSwitchManager(_BaseHNVModel):
|
|||||||
raw_data=qos_settings)
|
raw_data=qos_settings)
|
||||||
super(VirtualSwitchManager, self).__init__(**fields)
|
super(VirtualSwitchManager, self).__init__(**fields)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get(cls, resource_id=None, parent_id=None, grandparent_id=None):
|
||||||
|
""""Retrieves the required resource."""
|
||||||
|
return cls._get(resource_id, parent_id, grandparent_id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_raw_data(cls, raw_data):
|
def from_raw_data(cls, raw_data):
|
||||||
"""Create a new model using raw API response."""
|
"""Create a new model using raw API response."""
|
||||||
@ -2937,6 +2943,10 @@ class LoadBalancerManager(_BaseHNVModel):
|
|||||||
"""An array of references to ipPool resource that will be used for the
|
"""An array of references to ipPool resource that will be used for the
|
||||||
frontend IP Addresses.
|
frontend IP Addresses.
|
||||||
"""
|
"""
|
||||||
|
@classmethod
|
||||||
|
def get(cls, resource_id=None, parent_id=None, grandparent_id=None):
|
||||||
|
""""Retrieves the required resource."""
|
||||||
|
return cls._get(resource_id, parent_id, grandparent_id)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_raw_data(cls, raw_data):
|
def from_raw_data(cls, raw_data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user