diff --git a/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py b/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py index e648e17c723b..dc13aa490301 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py @@ -22,7 +22,7 @@ class FeaturesOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2015-12-01". """ @@ -56,7 +56,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features' + url = self.list_all.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -101,6 +101,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features'} def list( self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): @@ -124,7 +125,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features' + url = self.list.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -170,6 +171,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features'} def get( self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config): @@ -191,7 +193,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'featureName': self._serialize.url("feature_name", feature_name, 'str'), @@ -232,6 +234,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}'} def register( self, resource_provider_namespace, feature_name, custom_headers=None, raw=False, **operation_config): @@ -253,7 +256,7 @@ def register( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register' + url = self.register.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'featureName': self._serialize.url("feature_name", feature_name, 'str'), @@ -294,3 +297,4 @@ def register( return client_raw_response return deserialized + register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py b/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py index b2d526f859f0..9769f1f95977 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py @@ -22,7 +22,7 @@ class ResourceLinksOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-09-01". """ @@ -57,7 +57,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/{linkId}' + url = self.delete.metadata['url'] path_format_arguments = { 'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True) } @@ -89,6 +89,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/{linkId}'} def create_or_update( self, link_id, properties=None, custom_headers=None, raw=False, **operation_config): @@ -116,7 +117,7 @@ def create_or_update( parameters = models.ResourceLink(properties=properties) # Construct URL - url = '/{linkId}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True) } @@ -161,6 +162,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/{linkId}'} def get( self, link_id, custom_headers=None, raw=False, **operation_config): @@ -181,7 +183,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/{linkId}' + url = self.get.metadata['url'] path_format_arguments = { 'linkId': self._serialize.url("link_id", link_id, 'str', skip_quote=True) } @@ -220,6 +222,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/{linkId}'} def list_at_subscription( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -243,7 +246,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links' + url = self.list_at_subscription.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -290,6 +293,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links'} def list_at_source_scope( self, scope, filter=None, custom_headers=None, raw=False, **operation_config): @@ -318,7 +322,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/{scope}/providers/Microsoft.Resources/links' + url = self.list_at_source_scope.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True) } @@ -365,3 +369,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_source_scope.metadata = {'url': '/{scope}/providers/Microsoft.Resources/links'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py b/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py index 0321bfcd9aea..ba8a6446daaf 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py @@ -22,7 +22,7 @@ class ManagementLocksOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2015-01-01". """ @@ -60,7 +60,7 @@ def create_or_update_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -107,6 +107,7 @@ def create_or_update_at_resource_group_level( return client_raw_response return deserialized + create_or_update_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_resource_group_level( self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -126,7 +127,7 @@ def delete_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -160,6 +161,7 @@ def delete_at_resource_group_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def get_at_resource_group_level( self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -181,7 +183,7 @@ def get_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -222,6 +224,7 @@ def get_at_resource_group_level( return client_raw_response return deserialized + get_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def create_or_update_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -255,7 +258,7 @@ def create_or_update_at_resource_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -306,6 +309,7 @@ def create_or_update_at_resource_level( return client_raw_response return deserialized + create_or_update_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -333,7 +337,7 @@ def delete_at_resource_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -371,6 +375,7 @@ def delete_at_resource_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'} def create_or_update_at_subscription_level( self, lock_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -393,7 +398,7 @@ def create_or_update_at_subscription_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_subscription_level.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -439,6 +444,7 @@ def create_or_update_at_subscription_level( return client_raw_response return deserialized + create_or_update_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_subscription_level( self, lock_name, custom_headers=None, raw=False, **operation_config): @@ -456,7 +462,7 @@ def delete_at_subscription_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_subscription_level.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -489,6 +495,7 @@ def delete_at_subscription_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def get( self, lock_name, custom_headers=None, raw=False, **operation_config): @@ -508,7 +515,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -548,6 +555,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def list_at_resource_group_level( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -571,7 +579,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks' + url = self.list_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -619,6 +627,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks'} def list_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -652,7 +661,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks' + url = self.list_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -704,6 +713,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks'} def list_at_subscription_level( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -725,7 +735,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks' + url = self.list_at_subscription_level.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -772,3 +782,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py b/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py index 41479b8a7e9a..01e2085a67fa 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py @@ -22,7 +22,7 @@ class ManagementLocksOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-09-01". """ @@ -68,7 +68,7 @@ def create_or_update_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -115,6 +115,7 @@ def create_or_update_at_resource_group_level( return client_raw_response return deserialized + create_or_update_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_resource_group_level( self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -140,7 +141,7 @@ def delete_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -174,6 +175,7 @@ def delete_at_resource_group_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def get_at_resource_group_level( self, resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -195,7 +197,7 @@ def get_at_resource_group_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'lockName': self._serialize.url("lock_name", lock_name, 'str'), @@ -236,6 +238,7 @@ def get_at_resource_group_level( return client_raw_response return deserialized + get_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}'} def create_or_update_by_scope( self, scope, lock_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -265,7 +268,7 @@ def create_or_update_by_scope( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_by_scope.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str'), 'lockName': self._serialize.url("lock_name", lock_name, 'str') @@ -311,6 +314,7 @@ def create_or_update_by_scope( return client_raw_response return deserialized + create_or_update_by_scope.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_by_scope( self, scope, lock_name, custom_headers=None, raw=False, **operation_config): @@ -330,7 +334,7 @@ def delete_by_scope( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_by_scope.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str'), 'lockName': self._serialize.url("lock_name", lock_name, 'str') @@ -363,6 +367,7 @@ def delete_by_scope( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_by_scope.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'} def get_by_scope( self, scope, lock_name, custom_headers=None, raw=False, **operation_config): @@ -384,7 +389,7 @@ def get_by_scope( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get_by_scope.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str'), 'lockName': self._serialize.url("lock_name", lock_name, 'str') @@ -424,6 +429,7 @@ def get_by_scope( return client_raw_response return deserialized + get_by_scope.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/locks/{lockName}'} def create_or_update_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -468,7 +474,7 @@ def create_or_update_at_resource_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -519,6 +525,7 @@ def create_or_update_at_resource_level( return client_raw_response return deserialized + create_or_update_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -556,7 +563,7 @@ def delete_at_resource_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -594,6 +601,7 @@ def delete_at_resource_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'} def get_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config): @@ -625,7 +633,7 @@ def get_at_resource_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -670,6 +678,7 @@ def get_at_resource_level( return client_raw_response return deserialized + get_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}'} def create_or_update_at_subscription_level( self, lock_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -700,7 +709,7 @@ def create_or_update_at_subscription_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.create_or_update_at_subscription_level.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -746,6 +755,7 @@ def create_or_update_at_subscription_level( return client_raw_response return deserialized + create_or_update_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def delete_at_subscription_level( self, lock_name, custom_headers=None, raw=False, **operation_config): @@ -768,7 +778,7 @@ def delete_at_subscription_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.delete_at_subscription_level.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -801,6 +811,7 @@ def delete_at_subscription_level( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def get_at_subscription_level( self, lock_name, custom_headers=None, raw=False, **operation_config): @@ -820,7 +831,7 @@ def get_at_subscription_level( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}' + url = self.get_at_subscription_level.metadata['url'] path_format_arguments = { 'lockName': self._serialize.url("lock_name", lock_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -860,6 +871,7 @@ def get_at_subscription_level( return client_raw_response return deserialized + get_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}'} def list_at_resource_group_level( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -884,7 +896,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks' + url = self.list_at_resource_group_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -932,6 +944,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks'} def list_at_resource_level( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -966,7 +979,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks' + url = self.list_at_resource_level.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -1018,6 +1031,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks'} def list_at_subscription_level( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -1039,7 +1053,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks' + url = self.list_at_subscription_level.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -1086,3 +1100,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py index f31291de8abd..b9246c7c85cd 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py @@ -23,7 +23,7 @@ class ApplicationDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-09-01". """ @@ -61,7 +61,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationDefinitionName': self._serialize.url("application_definition_name", application_definition_name, 'str', max_length=64, min_length=3), @@ -100,12 +100,13 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}'} def _delete_initial( self, resource_group_name, application_definition_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationDefinitionName': self._serialize.url("application_definition_name", application_definition_name, 'str', max_length=64, min_length=3), @@ -197,12 +198,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}'} def _create_or_update_initial( self, resource_group_name, application_definition_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationDefinitionName': self._serialize.url("application_definition_name", application_definition_name, 'str', max_length=64, min_length=3), @@ -317,6 +319,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}'} def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -340,7 +343,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions' + url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -384,6 +387,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions'} def get_by_id( self, application_definition_id, custom_headers=None, raw=False, **operation_config): @@ -407,7 +411,7 @@ def get_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{applicationDefinitionId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'applicationDefinitionId': self._serialize.url("application_definition_id", application_definition_id, 'str', skip_quote=True) } @@ -444,12 +448,13 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{applicationDefinitionId}'} def _delete_by_id_initial( self, application_definition_id, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{applicationDefinitionId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'applicationDefinitionId': self._serialize.url("application_definition_id", application_definition_id, 'str', skip_quote=True) } @@ -537,12 +542,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete_by_id.metadata = {'url': '/{applicationDefinitionId}'} def _create_or_update_by_id_initial( self, application_definition_id, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{applicationDefinitionId}' + url = self.create_or_update_by_id.metadata['url'] path_format_arguments = { 'applicationDefinitionId': self._serialize.url("application_definition_id", application_definition_id, 'str', skip_quote=True) } @@ -653,3 +659,4 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update_by_id.metadata = {'url': '/{applicationDefinitionId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py b/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py index da5db7103de6..f2866e9dcd24 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py @@ -23,7 +23,7 @@ class ApplicationsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-09-01". """ @@ -59,7 +59,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationName': self._serialize.url("application_name", application_name, 'str', max_length=64, min_length=3), @@ -98,12 +98,13 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}'} def _delete_initial( self, resource_group_name, application_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationName': self._serialize.url("application_name", application_name, 'str', max_length=64, min_length=3), @@ -194,12 +195,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}'} def _create_or_update_initial( self, resource_group_name, application_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationName': self._serialize.url("application_name", application_name, 'str', max_length=64, min_length=3), @@ -313,6 +315,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}'} def update( self, resource_group_name, application_name, parameters=None, custom_headers=None, raw=False, **operation_config): @@ -340,7 +343,7 @@ def update( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'applicationName': self._serialize.url("application_name", application_name, 'str', max_length=64, min_length=3), @@ -386,6 +389,7 @@ def update( return client_raw_response return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}'} def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -409,7 +413,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications' + url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -453,6 +457,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications'} def list_by_subscription( self, custom_headers=None, raw=False, **operation_config): @@ -473,7 +478,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications' + url = self.list_by_subscription.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -516,6 +521,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications'} def get_by_id( self, application_id, custom_headers=None, raw=False, **operation_config): @@ -538,7 +544,7 @@ def get_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{applicationId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'applicationId': self._serialize.url("application_id", application_id, 'str', skip_quote=True) } @@ -575,12 +581,13 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{applicationId}'} def _delete_by_id_initial( self, application_id, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{applicationId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'applicationId': self._serialize.url("application_id", application_id, 'str', skip_quote=True) } @@ -668,12 +675,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete_by_id.metadata = {'url': '/{applicationId}'} def _create_or_update_by_id_initial( self, application_id, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{applicationId}' + url = self.create_or_update_by_id.metadata['url'] path_format_arguments = { 'applicationId': self._serialize.url("application_id", application_id, 'str', skip_quote=True) } @@ -784,6 +792,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update_by_id.metadata = {'url': '/{applicationId}'} def update_by_id( self, application_id, parameters=None, custom_headers=None, raw=False, **operation_config): @@ -811,7 +820,7 @@ def update_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{applicationId}' + url = self.update_by_id.metadata['url'] path_format_arguments = { 'applicationId': self._serialize.url("application_id", application_id, 'str', skip_quote=True) } @@ -855,3 +864,4 @@ def update_by_id( return client_raw_response return deserialized + update_by_id.metadata = {'url': '/{applicationId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py index 74b2ccc646e1..eabe172cc056 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py @@ -22,7 +22,7 @@ class PolicyAssignmentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2015-10-01-preview". """ @@ -58,7 +58,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -98,6 +98,7 @@ def delete( return client_raw_response return deserialized + delete.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def create( self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -126,7 +127,7 @@ def create( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.create.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -170,6 +171,7 @@ def create( return client_raw_response return deserialized + create.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def get( self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config): @@ -192,7 +194,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.get.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -232,6 +234,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def list_for_resource_group( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -256,7 +259,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -304,6 +307,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} def list_for_resource( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -338,7 +342,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments' + url = self.list_for_resource.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -390,6 +394,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -411,7 +416,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -458,6 +463,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments'} def delete_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -486,7 +492,7 @@ def delete_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -525,6 +531,7 @@ def delete_by_id( return client_raw_response return deserialized + delete_by_id.metadata = {'url': '/{policyAssignmentId}'} def create_by_id( self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config): @@ -558,7 +565,7 @@ def create_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.create_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -601,6 +608,7 @@ def create_by_id( return client_raw_response return deserialized + create_by_id.metadata = {'url': '/{policyAssignmentId}'} def get_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -629,7 +637,7 @@ def get_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -668,3 +676,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{policyAssignmentId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py index c705bea8b8b9..9a881ad52f60 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py @@ -22,7 +22,7 @@ class PolicyDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2015-10-01-preview". """ @@ -59,7 +59,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -103,6 +103,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def delete( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -121,7 +122,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def get( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -214,6 +216,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -235,7 +238,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -282,3 +285,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py index 05a8229a4a1f..d2b33b9aa90d 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py @@ -22,7 +22,7 @@ class PolicyAssignmentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-04-01". """ @@ -58,7 +58,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -98,6 +98,7 @@ def delete( return client_raw_response return deserialized + delete.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def create( self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -126,7 +127,7 @@ def create( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.create.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -170,6 +171,7 @@ def create( return client_raw_response return deserialized + create.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def get( self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config): @@ -192,7 +194,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}' + url = self.get.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -232,6 +234,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}'} def list_for_resource_group( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -256,7 +259,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -304,6 +307,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} def list_for_resource( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -338,7 +342,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments' + url = self.list_for_resource.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -390,6 +394,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -411,7 +416,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -458,6 +463,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments'} def delete_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -486,7 +492,7 @@ def delete_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -525,6 +531,7 @@ def delete_by_id( return client_raw_response return deserialized + delete_by_id.metadata = {'url': '/{policyAssignmentId}'} def create_by_id( self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config): @@ -558,7 +565,7 @@ def create_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.create_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -601,6 +608,7 @@ def create_by_id( return client_raw_response return deserialized + create_by_id.metadata = {'url': '/{policyAssignmentId}'} def get_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -629,7 +637,7 @@ def get_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -668,3 +676,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{policyAssignmentId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py index 644a2e7ea208..c7ebdfb0f0be 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py @@ -22,7 +22,7 @@ class PolicyDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-04-01". """ @@ -59,7 +59,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -103,6 +103,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def delete( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -121,7 +122,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def get( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -214,6 +216,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -235,7 +238,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -282,3 +285,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py index 13dd79e5b66a..1b5de5c73aa4 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py @@ -23,7 +23,7 @@ class PolicyAssignmentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-12-01". """ @@ -59,7 +59,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -99,6 +99,7 @@ def delete( return client_raw_response return deserialized + delete.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def create( self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -127,7 +128,7 @@ def create( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.create.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -171,6 +172,7 @@ def create( return client_raw_response return deserialized + create.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def get( self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config): @@ -193,7 +195,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.get.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -233,6 +235,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def list_for_resource_group( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -257,7 +260,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -305,6 +308,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} def list_for_resource( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -343,7 +347,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -395,6 +399,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -416,7 +421,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -463,6 +468,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} def delete_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -491,7 +497,7 @@ def delete_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -530,6 +536,7 @@ def delete_by_id( return client_raw_response return deserialized + delete_by_id.metadata = {'url': '/{policyAssignmentId}'} def create_by_id( self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config): @@ -563,7 +570,7 @@ def create_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.create_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -606,6 +613,7 @@ def create_by_id( return client_raw_response return deserialized + create_by_id.metadata = {'url': '/{policyAssignmentId}'} def get_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -634,7 +642,7 @@ def get_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -673,3 +681,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{policyAssignmentId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py index cd2687c458dd..cf5f29d8966f 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py @@ -22,7 +22,7 @@ class PolicyDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-12-01". """ @@ -59,7 +59,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -103,6 +103,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def delete( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -121,7 +122,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -214,6 +216,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get_built_in( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -234,7 +237,7 @@ def get_built_in( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get_built_in.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str') } @@ -273,6 +276,7 @@ def get_built_in( return client_raw_response return deserialized + get_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def create_or_update_at_management_group( self, policy_definition_name, parameters, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -298,7 +302,7 @@ def create_or_update_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.create_or_update_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -342,6 +346,7 @@ def create_or_update_at_management_group( return client_raw_response return deserialized + create_or_update_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def delete_at_management_group( self, policy_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -362,7 +367,7 @@ def delete_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.delete_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -395,6 +400,7 @@ def delete_at_management_group( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get_at_management_group( self, policy_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -417,7 +423,7 @@ def get_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -457,6 +463,7 @@ def get_at_management_group( return client_raw_response return deserialized + get_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -476,7 +483,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -521,6 +528,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} def list_built_in( self, custom_headers=None, raw=False, **operation_config): @@ -540,7 +548,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Authorization/policyDefinitions' + url = self.list_built_in.metadata['url'] # Construct parameters query_parameters = {} @@ -581,6 +589,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} def list_by_management_group( self, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -603,7 +612,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions' + url = self.list_by_management_group.metadata['url'] path_format_arguments = { 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') } @@ -648,3 +657,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py index 001b8adf94f2..3338ae8646b2 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py @@ -22,7 +22,7 @@ class PolicyAssignmentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2017-06-01-preview". """ @@ -59,7 +59,7 @@ def delete( :class:`ErrorResponseException` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -97,6 +97,7 @@ def delete( return client_raw_response return deserialized + delete.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def create( self, scope, policy_assignment_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -126,7 +127,7 @@ def create( :class:`ErrorResponseException` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.create.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -168,6 +169,7 @@ def create( return client_raw_response return deserialized + create.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def get( self, scope, policy_assignment_name, custom_headers=None, raw=False, **operation_config): @@ -191,7 +193,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}' + url = self.get.metadata['url'] path_format_arguments = { 'scope': self._serialize.url("scope", scope, 'str', skip_quote=True), 'policyAssignmentName': self._serialize.url("policy_assignment_name", policy_assignment_name, 'str') @@ -229,6 +231,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'} def list_for_resource_group( self, resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -254,7 +257,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -300,6 +303,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} def list_for_resource( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config): @@ -339,7 +343,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments' + url = self.list_for_resource.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -389,6 +393,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} def list( self, filter=None, custom_headers=None, raw=False, **operation_config): @@ -411,7 +416,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -456,6 +461,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} def delete_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -485,7 +491,7 @@ def delete_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -522,6 +528,7 @@ def delete_by_id( return client_raw_response return deserialized + delete_by_id.metadata = {'url': '/{policyAssignmentId}'} def create_by_id( self, policy_assignment_id, parameters, custom_headers=None, raw=False, **operation_config): @@ -556,7 +563,7 @@ def create_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.create_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -597,6 +604,7 @@ def create_by_id( return client_raw_response return deserialized + create_by_id.metadata = {'url': '/{policyAssignmentId}'} def get_by_id( self, policy_assignment_id, custom_headers=None, raw=False, **operation_config): @@ -626,7 +634,7 @@ def get_by_id( :class:`ErrorResponseException` """ # Construct URL - url = '/{policyAssignmentId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'policyAssignmentId': self._serialize.url("policy_assignment_id", policy_assignment_id, 'str', skip_quote=True) } @@ -663,3 +671,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{policyAssignmentId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py index a35abe13f271..a34a22e9843b 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py @@ -22,7 +22,7 @@ class PolicyDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-12-01". """ @@ -59,7 +59,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -103,6 +103,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def delete( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -121,7 +122,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -214,6 +216,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get_built_in( self, policy_definition_name, custom_headers=None, raw=False, **operation_config): @@ -234,7 +237,7 @@ def get_built_in( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get_built_in.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str') } @@ -273,6 +276,7 @@ def get_built_in( return client_raw_response return deserialized + get_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def create_or_update_at_management_group( self, policy_definition_name, parameters, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -298,7 +302,7 @@ def create_or_update_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.create_or_update_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -342,6 +346,7 @@ def create_or_update_at_management_group( return client_raw_response return deserialized + create_or_update_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def delete_at_management_group( self, policy_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -362,7 +367,7 @@ def delete_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.delete_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -395,6 +400,7 @@ def delete_at_management_group( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def get_at_management_group( self, policy_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -417,7 +423,7 @@ def get_at_management_group( :raises: :class:`CloudError` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}' + url = self.get_at_management_group.metadata['url'] path_format_arguments = { 'policyDefinitionName': self._serialize.url("policy_definition_name", policy_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -457,6 +463,7 @@ def get_at_management_group( return client_raw_response return deserialized + get_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -476,7 +483,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -521,6 +528,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} def list_built_in( self, custom_headers=None, raw=False, **operation_config): @@ -540,7 +548,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Authorization/policyDefinitions' + url = self.list_built_in.metadata['url'] # Construct parameters query_parameters = {} @@ -581,6 +589,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} def list_by_management_group( self, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -603,7 +612,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions' + url = self.list_by_management_group.metadata['url'] path_format_arguments = { 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') } @@ -648,3 +657,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py index 10e186f8151d..d00bce89f40d 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py @@ -21,7 +21,7 @@ class PolicySetDefinitionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2017-06-01-preview". """ @@ -59,7 +59,7 @@ def create_or_update( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -103,6 +103,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def delete( self, policy_set_definition_name, custom_headers=None, raw=False, **operation_config): @@ -122,7 +123,7 @@ def delete( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.delete.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -153,6 +154,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def get( self, policy_set_definition_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.get.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -212,6 +214,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def get_built_in( self, policy_set_definition_name, custom_headers=None, raw=False, **operation_config): @@ -233,7 +236,7 @@ def get_built_in( :class:`ErrorResponseException` """ # Construct URL - url = '/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.get_built_in.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str') } @@ -270,6 +273,7 @@ def get_built_in( return client_raw_response return deserialized + get_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -290,7 +294,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -333,6 +337,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions'} def list_built_in( self, custom_headers=None, raw=False, **operation_config): @@ -353,7 +358,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Authorization/policySetDefinitions' + url = self.list_built_in.metadata['url'] # Construct parameters query_parameters = {} @@ -392,6 +397,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policySetDefinitions'} def create_or_update_at_management_group( self, policy_set_definition_name, parameters, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -418,7 +424,7 @@ def create_or_update_at_management_group( :class:`ErrorResponseException` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.create_or_update_at_management_group.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -462,6 +468,7 @@ def create_or_update_at_management_group( return client_raw_response return deserialized + create_or_update_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def delete_at_management_group( self, policy_set_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -483,7 +490,7 @@ def delete_at_management_group( :class:`ErrorResponseException` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.delete_at_management_group.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -514,6 +521,7 @@ def delete_at_management_group( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def get_at_management_group( self, policy_set_definition_name, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -537,7 +545,7 @@ def get_at_management_group( :class:`ErrorResponseException` """ # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}' + url = self.get_at_management_group.metadata['url'] path_format_arguments = { 'policySetDefinitionName': self._serialize.url("policy_set_definition_name", policy_set_definition_name, 'str'), 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') @@ -575,6 +583,7 @@ def get_at_management_group( return client_raw_response return deserialized + get_at_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}'} def list_by_management_group( self, management_group_id, custom_headers=None, raw=False, **operation_config): @@ -598,7 +607,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions' + url = self.list_by_management_group.metadata['url'] path_format_arguments = { 'managementGroupId': self._serialize.url("management_group_id", management_group_id, 'str') } @@ -641,3 +650,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py index 1a6e6bb5911b..fee524c2ee5f 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py @@ -22,7 +22,7 @@ class DeploymentOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -60,7 +60,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -102,6 +102,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'} def list( self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): @@ -128,7 +129,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -177,3 +178,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py index 10152f69d972..868d350bd3b8 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py @@ -24,7 +24,7 @@ class DeploymentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer): def _delete_initial( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -137,6 +137,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def check_existence( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -157,7 +158,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -193,6 +194,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def _create_or_update_initial( @@ -200,7 +202,7 @@ def _create_or_update_initial( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -316,6 +318,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def get( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -338,7 +341,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -379,6 +382,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def cancel( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -399,7 +403,7 @@ def cancel( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel' + url = self.cancel.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -433,6 +437,7 @@ def cancel( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} def validate( self, resource_group_name, deployment_name, properties=None, custom_headers=None, raw=False, **operation_config): @@ -460,7 +465,7 @@ def validate( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate' + url = self.validate.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -507,6 +512,7 @@ def validate( return client_raw_response return deserialized + validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} def export_template( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -529,7 +535,7 @@ def export_template( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str'), @@ -570,6 +576,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} def list( self, resource_group_name, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -597,7 +604,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -647,3 +654,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py index 742a74358fb3..d31a55392def 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py @@ -22,7 +22,7 @@ class ProvidersOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -55,7 +55,7 @@ def unregister( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister' + url = self.unregister.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -95,6 +95,7 @@ def unregister( return client_raw_response return deserialized + unregister.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'} def register( self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): @@ -114,7 +115,7 @@ def register( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register' + url = self.register.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def register( return client_raw_response return deserialized + register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'} def list( self, top=None, expand=None, custom_headers=None, raw=False, **operation_config): @@ -179,7 +181,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -228,6 +230,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} def get( self, resource_provider_namespace, expand=None, custom_headers=None, raw=False, **operation_config): @@ -250,7 +253,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -292,3 +295,4 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py index 92b570e4ad4b..65f11a23e74f 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py @@ -24,7 +24,7 @@ class ResourceGroupsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources' + url = self.list_resources.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -119,6 +119,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} def check_existence( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -137,7 +138,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -172,6 +173,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def create_or_update( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -196,7 +198,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -242,12 +244,13 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def _delete_initial( self, resource_group_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -337,6 +340,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def get( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -357,7 +361,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -397,6 +401,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def patch( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -424,7 +429,7 @@ def patch( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.patch.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -468,6 +473,7 @@ def patch( return client_raw_response return deserialized + patch.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def export_template( self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config): @@ -498,7 +504,7 @@ def export_template( parameters = models.ExportTemplateRequest(resources=resources, options=options) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -542,6 +548,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate'} def list( self, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -566,7 +573,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -615,3 +622,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py index 528db23300e8..f75ad84f5d05 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py @@ -24,7 +24,7 @@ class ResourcesOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -45,7 +45,7 @@ def _move_resources_initial( parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources' + url = self.move_resources.metadata['url'] path_format_arguments = { 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -145,6 +145,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources'} def list( self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -171,7 +172,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resources' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -222,6 +223,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} def check_existence( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -250,7 +252,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -289,6 +291,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def delete( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -317,7 +320,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -354,6 +357,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def create_or_update( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): @@ -387,7 +391,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -437,12 +441,13 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _update_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -572,6 +577,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def get( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -602,7 +608,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -646,3 +652,4 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py index 1dcc4c0339d5..5b1cece54254 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py @@ -22,7 +22,7 @@ class TagsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client Api Version. Constant value: "2016-02-01". """ @@ -55,7 +55,7 @@ def delete_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.delete_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -89,6 +89,7 @@ def delete_value( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update_value( self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config): @@ -109,7 +110,7 @@ def create_or_update_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.create_or_update_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -152,6 +153,7 @@ def create_or_update_value( return client_raw_response return deserialized + create_or_update_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -170,7 +172,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -212,6 +214,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def delete( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -229,7 +232,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.delete.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -262,6 +265,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -281,7 +285,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -326,3 +330,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py index d35cc2414055..4ed26e30a340 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py @@ -22,7 +22,7 @@ class DeploymentOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -60,7 +60,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -102,6 +102,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'} def list( self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): @@ -129,7 +130,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -178,3 +179,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py index eba1446a9e73..473dc3ab491c 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py @@ -24,7 +24,7 @@ class DeploymentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer): def _delete_initial( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -149,6 +149,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def check_existence( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -169,7 +170,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -205,6 +206,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def _create_or_update_initial( @@ -212,7 +214,7 @@ def _create_or_update_initial( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -332,6 +334,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def get( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -354,7 +357,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -395,6 +398,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def cancel( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -421,7 +425,7 @@ def cancel( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel' + url = self.cancel.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -455,6 +459,7 @@ def cancel( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} def validate( self, resource_group_name, deployment_name, properties, custom_headers=None, raw=False, **operation_config): @@ -483,7 +488,7 @@ def validate( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate' + url = self.validate.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -530,6 +535,7 @@ def validate( return client_raw_response return deserialized + validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} def export_template( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -553,7 +559,7 @@ def export_template( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -594,6 +600,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} def list( self, resource_group_name, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -622,7 +629,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -672,3 +679,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py index 0c156906a95f..02c3ae0ac126 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py @@ -22,7 +22,7 @@ class ProvidersOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -55,7 +55,7 @@ def unregister( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister' + url = self.unregister.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -95,6 +95,7 @@ def unregister( return client_raw_response return deserialized + unregister.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'} def register( self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): @@ -114,7 +115,7 @@ def register( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register' + url = self.register.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def register( return client_raw_response return deserialized + register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'} def list( self, top=None, expand=None, custom_headers=None, raw=False, **operation_config): @@ -181,7 +183,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -230,6 +232,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} def get( self, resource_provider_namespace, expand=None, custom_headers=None, raw=False, **operation_config): @@ -252,7 +255,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -294,3 +297,4 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py index 15781bf6e187..2f335eaeee56 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py @@ -24,7 +24,7 @@ class ResourceGroupsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources' + url = self.list_resources.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -119,6 +119,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} def check_existence( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -137,7 +138,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -172,6 +173,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def create_or_update( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -196,7 +198,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -242,12 +244,13 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def _delete_initial( self, resource_group_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -341,6 +344,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def get( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -361,7 +365,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -401,6 +405,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def patch( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -429,7 +434,7 @@ def patch( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.patch.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -473,6 +478,7 @@ def patch( return client_raw_response return deserialized + patch.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def export_template( self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config): @@ -503,7 +509,7 @@ def export_template( parameters = models.ExportTemplateRequest(resources=resources, options=options) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -547,6 +553,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate'} def list( self, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -571,7 +578,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -620,3 +627,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py index d17c35213bc0..473a720a6e57 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py @@ -24,7 +24,7 @@ class ResourcesOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -45,7 +45,7 @@ def _move_resources_initial( parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources' + url = self.move_resources.metadata['url'] path_format_arguments = { 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -151,6 +151,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources'} def list( self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -177,7 +178,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resources' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -228,6 +229,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} def check_existence( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -258,7 +260,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -297,12 +299,13 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _delete_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -412,12 +415,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _create_or_update_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -549,12 +553,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _update_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -684,6 +689,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def get( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -715,7 +721,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -759,6 +765,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def check_existence_by_id( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): @@ -780,7 +787,7 @@ def check_existence_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{resourceId}' + url = self.check_existence_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -814,12 +821,13 @@ def check_existence_by_id( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence_by_id.metadata = {'url': '/{resourceId}'} def _delete_by_id_initial( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -912,12 +920,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete_by_id.metadata = {'url': '/{resourceId}'} def _create_or_update_by_id_initial( self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.create_or_update_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1032,12 +1041,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update_by_id.metadata = {'url': '/{resourceId}'} def _update_by_id_initial( self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.update_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1150,6 +1160,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + update_by_id.metadata = {'url': '/{resourceId}'} def get_by_id( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): @@ -1173,7 +1184,7 @@ def get_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{resourceId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1212,3 +1223,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{resourceId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py index 3c7bfea723bd..2386cdcfed9b 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py @@ -22,7 +22,7 @@ class TagsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2016-09-01". """ @@ -55,7 +55,7 @@ def delete_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.delete_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -89,6 +89,7 @@ def delete_value( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update_value( self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config): @@ -109,7 +110,7 @@ def create_or_update_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.create_or_update_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -152,6 +153,7 @@ def create_or_update_value( return client_raw_response return deserialized + create_or_update_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -216,6 +218,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def delete( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -236,7 +239,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.delete.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -269,6 +272,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -289,7 +293,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -334,3 +338,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py index ee04909a24dd..054df317785e 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py @@ -22,7 +22,7 @@ class DeploymentOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -60,7 +60,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -102,6 +102,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'} def list( self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): @@ -129,7 +130,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -178,3 +179,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py index 0a3eed9cfd72..4fe757a41efc 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py @@ -24,7 +24,7 @@ class DeploymentsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer): def _delete_initial( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -149,6 +149,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def check_existence( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -169,7 +170,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -205,6 +206,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def _create_or_update_initial( @@ -212,7 +214,7 @@ def _create_or_update_initial( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -332,6 +334,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def get( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -354,7 +357,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -395,6 +398,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} def cancel( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -421,7 +425,7 @@ def cancel( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel' + url = self.cancel.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -455,6 +459,7 @@ def cancel( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} def validate( self, resource_group_name, deployment_name, properties, custom_headers=None, raw=False, **operation_config): @@ -483,7 +488,7 @@ def validate( parameters = models.Deployment(properties=properties) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate' + url = self.validate.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -530,6 +535,7 @@ def validate( return client_raw_response return deserialized + validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} def export_template( self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): @@ -553,7 +559,7 @@ def export_template( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -594,6 +600,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} def list_by_resource_group( self, resource_group_name, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -622,7 +629,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/' + url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -672,3 +679,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py index 1f11681e6d5f..9e9790970806 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py @@ -22,7 +22,7 @@ class ProvidersOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -55,7 +55,7 @@ def unregister( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister' + url = self.unregister.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -95,6 +95,7 @@ def unregister( return client_raw_response return deserialized + unregister.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'} def register( self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): @@ -114,7 +115,7 @@ def register( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register' + url = self.register.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -154,6 +155,7 @@ def register( return client_raw_response return deserialized + register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'} def list( self, top=None, expand=None, custom_headers=None, raw=False, **operation_config): @@ -181,7 +183,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -230,6 +232,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} def get( self, resource_provider_namespace, expand=None, custom_headers=None, raw=False, **operation_config): @@ -252,7 +255,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -294,3 +297,4 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py index 8f97b51a9a38..78fe91152e55 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py @@ -24,7 +24,7 @@ class ResourceGroupsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -56,7 +56,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -91,6 +91,7 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def create_or_update( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -115,7 +116,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -161,12 +162,13 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def _delete_initial( self, resource_group_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -260,6 +262,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def get( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -280,7 +283,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -320,6 +323,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def update( self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -348,7 +352,7 @@ def update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -392,6 +396,7 @@ def update( return client_raw_response return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} def export_template( self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config): @@ -422,7 +427,7 @@ def export_template( parameters = models.ExportTemplateRequest(resources=resources, options=options) # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate' + url = self.export_template.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -466,6 +471,7 @@ def export_template( return client_raw_response return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate'} def list( self, filter=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -490,7 +496,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -539,3 +545,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py index 95b9449f7e6a..db6363e89600 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py @@ -24,7 +24,7 @@ class ResourcesOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -67,7 +67,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources' + url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -119,6 +119,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} def _move_resources_initial( @@ -126,7 +127,7 @@ def _move_resources_initial( parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources' + url = self.move_resources.metadata['url'] path_format_arguments = { 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -232,6 +233,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources'} def _validate_move_resources_initial( @@ -239,7 +241,7 @@ def _validate_move_resources_initial( parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources' + url = self.validate_move_resources.metadata['url'] path_format_arguments = { 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -348,6 +350,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + validate_move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources'} def list( self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config): @@ -374,7 +377,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resources' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -425,6 +428,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} def check_existence( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -455,7 +459,7 @@ def check_existence( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.check_existence.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -494,12 +498,13 @@ def check_existence( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _delete_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -609,12 +614,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _create_or_update_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -746,12 +752,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def _update_initial( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -881,6 +888,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def get( self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): @@ -912,7 +920,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), @@ -956,6 +964,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} def check_existence_by_id( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): @@ -977,7 +986,7 @@ def check_existence_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{resourceId}' + url = self.check_existence_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1011,12 +1020,13 @@ def check_existence_by_id( client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + check_existence_by_id.metadata = {'url': '/{resourceId}'} def _delete_by_id_initial( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.delete_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1109,12 +1119,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete_by_id.metadata = {'url': '/{resourceId}'} def _create_or_update_by_id_initial( self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.create_or_update_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1229,12 +1240,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update_by_id.metadata = {'url': '/{resourceId}'} def _update_by_id_initial( self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/{resourceId}' + url = self.update_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1347,6 +1359,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + update_by_id.metadata = {'url': '/{resourceId}'} def get_by_id( self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): @@ -1370,7 +1383,7 @@ def get_by_id( :raises: :class:`CloudError` """ # Construct URL - url = '/{resourceId}' + url = self.get_by_id.metadata['url'] path_format_arguments = { 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) } @@ -1409,3 +1422,4 @@ def get_by_id( return client_raw_response return deserialized + get_by_id.metadata = {'url': '/{resourceId}'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py index 0bcef4fe6853..7833bf78047a 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py @@ -22,7 +22,7 @@ class TagsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for this operation. Constant value: "2017-05-10". """ @@ -55,7 +55,7 @@ def delete_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.delete_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -89,6 +89,7 @@ def delete_value( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update_value( self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config): @@ -109,7 +110,7 @@ def create_or_update_value( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}' + url = self.create_or_update_value.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), @@ -152,6 +153,7 @@ def create_or_update_value( return client_raw_response return deserialized + create_or_update_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} def create_or_update( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -174,7 +176,7 @@ def create_or_update( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -216,6 +218,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def delete( self, tag_name, custom_headers=None, raw=False, **operation_config): @@ -236,7 +239,7 @@ def delete( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames/{tagName}' + url = self.delete.metadata['url'] path_format_arguments = { 'tagName': self._serialize.url("tag_name", tag_name, 'str'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -269,6 +272,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -289,7 +293,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/tagNames' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -334,3 +338,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py b/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py index e6e8484f2922..e48f00643a03 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py @@ -22,7 +22,7 @@ class SubscriptionsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-06-01". """ @@ -61,7 +61,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/locations' + url = self.list_locations.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("subscription_id", subscription_id, 'str') } @@ -106,6 +106,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_locations.metadata = {'url': '/subscriptions/{subscriptionId}/locations'} def get( self, subscription_id, custom_headers=None, raw=False, **operation_config): @@ -125,7 +126,7 @@ def get( :raises: :class:`CloudError` """ # Construct URL - url = '/subscriptions/{subscriptionId}' + url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("subscription_id", subscription_id, 'str') } @@ -164,6 +165,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -183,7 +185,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions' + url = self.list.metadata['url'] # Construct parameters query_parameters = {} @@ -224,3 +226,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions'} diff --git a/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py b/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py index 0f4c6d259e84..3d01811a9005 100644 --- a/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py +++ b/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py @@ -22,7 +22,7 @@ class TenantsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: The API version to use for the operation. Constant value: "2016-06-01". """ @@ -55,7 +55,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/tenants' + url = self.list.metadata['url'] # Construct parameters query_parameters = {} @@ -96,3 +96,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/tenants'}