diff --git a/hnv/client.py b/hnv/client.py index fa39f99..b79717f 100644 --- a/hnv/client.py +++ b/hnv/client.py @@ -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):