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 = []
|
||||
for raw_config in properties.get("ipConfigurations", []):
|
||||
raw_config["parentResourceID"] = raw_data["resourceId"]
|
||||
ip_configurations.append(IPConfiguration.from_raw_data(raw_config))
|
||||
properties["ipConfigurations"] = ip_configurations
|
||||
|
||||
@ -1214,6 +1215,11 @@ class VirtualSwitchManager(_BaseHNVModel):
|
||||
raw_data=qos_settings)
|
||||
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
|
||||
def from_raw_data(cls, raw_data):
|
||||
"""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
|
||||
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
|
||||
def from_raw_data(cls, raw_data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user