From 08e2d40fbb496442bcede8dbbb89c56e7bd58e66 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Aug 2021 09:07:27 +0000 Subject: [PATCH] CodeGen from PR 15691 in Azure/azure-rest-api-specs Merge e10698d11f5ff0794acba3fd968297119929ad82 into 30d1537f0c9aa49e6e04401b1d16f612b31231e7 --- sdk/netapp/azure-mgmt-netapp/_meta.json | 8 +- .../azure/mgmt/netapp/_configuration.py | 2 +- .../azure/mgmt/netapp/_metadata.json | 4 +- .../azure/mgmt/netapp/_version.py | 2 +- .../azure/mgmt/netapp/aio/_configuration.py | 2 +- .../operations/_account_backups_operations.py | 6 +- .../aio/operations/_accounts_operations.py | 78 ++++++- .../operations/_backup_policies_operations.py | 10 +- .../aio/operations/_backups_operations.py | 14 +- .../_net_app_resource_operations.py | 6 +- .../mgmt/netapp/aio/operations/_operations.py | 2 +- .../aio/operations/_pools_operations.py | 10 +- .../_snapshot_policies_operations.py | 22 +- .../aio/operations/_snapshots_operations.py | 18 +- .../aio/operations/_vaults_operations.py | 2 +- .../aio/operations/_volumes_operations.py | 26 +-- .../azure/mgmt/netapp/models/__init__.py | 6 + .../azure/mgmt/netapp/models/_models.py | 175 ++++++++++++---- .../azure/mgmt/netapp/models/_models_py3.py | 197 ++++++++++++++---- .../_net_app_management_client_enums.py | 25 +++ .../operations/_account_backups_operations.py | 6 +- .../netapp/operations/_accounts_operations.py | 79 ++++++- .../operations/_backup_policies_operations.py | 10 +- .../netapp/operations/_backups_operations.py | 14 +- .../_net_app_resource_operations.py | 6 +- .../mgmt/netapp/operations/_operations.py | 2 +- .../netapp/operations/_pools_operations.py | 10 +- .../_snapshot_policies_operations.py | 22 +- .../operations/_snapshots_operations.py | 18 +- .../netapp/operations/_vaults_operations.py | 2 +- .../netapp/operations/_volumes_operations.py | 26 +-- 31 files changed, 592 insertions(+), 218 deletions(-) diff --git a/sdk/netapp/azure-mgmt-netapp/_meta.json b/sdk/netapp/azure-mgmt-netapp/_meta.json index 3fe4a97cc680..1d2c6d9e431e 100644 --- a/sdk/netapp/azure-mgmt-netapp/_meta.json +++ b/sdk/netapp/azure-mgmt-netapp/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.4.5", "use": [ - "@autorest/python@5.8.0", + "@autorest/python@5.8.4", "@autorest/modelerfour@4.19.2" ], - "commit": "2359ae379dcf396ef2eb389b050ac4972595fa6c", + "commit": "90c5621bd61d1fbb71c4264631cbc934c475424d", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/netapp/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "autorest_command": "autorest specification/netapp/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/netapp/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py index 01a813d3e825..827f8636220a 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-04-01" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json index 0856190116c8..61967bd76130 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2021-04-01", - "total_api_version_list": ["2021-04-01"], + "chosen_version": "2021-06-01", + "total_api_version_list": ["2021-06-01"], "client": { "name": "NetAppManagementClient", "filename": "_net_app_management_client", diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py index 77f53a3589c6..e5754a47ce68 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "4.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py index 5f59e1ab6bd7..18017d867f8d 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-04-01" + self.api_version = "2021-06-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_account_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_account_backups_operations.py index 4d160016e71a..a581c209a989 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_account_backups_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_account_backups_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -146,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -195,7 +195,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py index 33b7126a198d..f121a53ccc0e 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py @@ -43,6 +43,74 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + def list_by_subscription( + self, + **kwargs: Any + ) -> AsyncIterable["_models.NetAppAccountList"]: + """Describe all NetApp Accounts in a subscription. + + List and describe all NetApp accounts in the subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either NetAppAccountList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.netapp.models.NetAppAccountList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.NetAppAccountList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('NetAppAccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts'} # type: ignore + def list( self, resource_group_name: str, @@ -64,7 +132,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -139,7 +207,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -187,7 +255,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -316,7 +384,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -425,7 +493,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py index b1067e8aa88e..d0e07c54eef5 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -146,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -196,7 +196,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -334,7 +334,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -470,7 +470,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py index 4302c880a1a3..22ce3192bc3b 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py @@ -73,7 +73,7 @@ async def get_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -141,7 +141,7 @@ async def get_volume_restore_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -209,7 +209,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -296,7 +296,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -350,7 +350,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -502,7 +502,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -655,7 +655,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py index 41c6da12536f..159e06205fda 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_net_app_resource_operations.py @@ -72,7 +72,7 @@ async def check_name_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -142,7 +142,7 @@ async def check_file_path_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -214,7 +214,7 @@ async def check_quota_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.QuotaAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py index a514fcc32d3e..d7f8e3b3babe 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py @@ -59,7 +59,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py index d469fc05aa3f..9e12d11a694d 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_pools_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -146,7 +146,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -196,7 +196,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -333,7 +333,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -467,7 +467,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py index 89fbc0f567f2..da75e80aa1b9 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshot_policies_operations.py @@ -65,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -130,7 +130,7 @@ async def get( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SnapshotPolicy, or the result of cls(response) @@ -142,7 +142,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -193,7 +193,7 @@ async def create( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :param body: Snapshot policy object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.SnapshotPolicy @@ -207,7 +207,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -266,7 +266,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -326,7 +326,7 @@ async def begin_update( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :param body: Snapshot policy object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.SnapshotPolicyPatch @@ -400,7 +400,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -445,7 +445,7 @@ async def begin_delete( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -516,7 +516,7 @@ async def list_volumes( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SnapshotPolicyVolumeList, or the result of cls(response) @@ -528,7 +528,7 @@ async def list_volumes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py index 61b5d172856a..7410f39fb12a 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_snapshots_operations.py @@ -73,7 +73,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -148,7 +148,7 @@ async def get( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Snapshot, or the result of cls(response) @@ -160,7 +160,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -214,7 +214,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -282,7 +282,7 @@ async def begin_create( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :param body: Snapshot object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.Snapshot @@ -363,7 +363,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -431,7 +431,7 @@ async def begin_update( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :param body: Snapshot object supplied in the body of the operation. :type body: any @@ -511,7 +511,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -566,7 +566,7 @@ async def begin_delete( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_vaults_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_vaults_operations.py index 5e388e82e732..9a692b8422dd 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_vaults_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_vaults_operations.py @@ -65,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py index e175b81146b3..7a291bdacb2d 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_volumes_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -153,7 +153,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -205,7 +205,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -350,7 +350,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -491,7 +491,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -614,7 +614,7 @@ async def _revert_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -746,7 +746,7 @@ async def _break_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -897,7 +897,7 @@ async def replication_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -948,7 +948,7 @@ async def _resync_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._resync_replication_initial.metadata['url'] # type: ignore @@ -1071,7 +1071,7 @@ async def _delete_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_replication_initial.metadata['url'] # type: ignore @@ -1195,7 +1195,7 @@ async def _authorize_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -1326,7 +1326,7 @@ async def _re_initialize_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._re_initialize_replication_initial.metadata['url'] # type: ignore @@ -1449,7 +1449,7 @@ async def _pool_change_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py index 5bc837ce95c0..53cf6372c287 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py @@ -135,13 +135,16 @@ from ._net_app_management_client_enums import ( ActiveDirectoryStatus, + AvsDataStore, BackupType, CheckNameResourceTypes, CheckQuotaNameResourceTypes, ChownMode, CreatedByType, + EncryptionType, EndpointType, InAvailabilityReasonType, + MetricAggregationType, MirrorState, QosType, RelationshipStatus, @@ -214,13 +217,16 @@ 'VolumeSnapshotProperties', 'WeeklySchedule', 'ActiveDirectoryStatus', + 'AvsDataStore', 'BackupType', 'CheckNameResourceTypes', 'CheckQuotaNameResourceTypes', 'ChownMode', 'CreatedByType', + 'EncryptionType', 'EndpointType', 'InAvailabilityReasonType', + 'MetricAggregationType', 'MirrorState', 'QosType', 'RelationshipStatus', diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py index 895304c77638..7810879cad91 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py @@ -355,12 +355,16 @@ class BackupPolicy(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -369,37 +373,40 @@ class BackupPolicy(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -413,17 +420,18 @@ def __init__( self.location = kwargs['location'] self.id = None self.name = None + self.etag = None self.type = None self.tags = kwargs.get('tags', None) self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = kwargs.get('daily_backups_to_keep', None) self.weekly_backups_to_keep = kwargs.get('weekly_backups_to_keep', None) self.monthly_backups_to_keep = kwargs.get('monthly_backups_to_keep', None) - self.yearly_backups_to_keep = kwargs.get('yearly_backups_to_keep', None) - self.volumes_assigned = kwargs.get('volumes_assigned', None) + self.volumes_assigned = None self.enabled = kwargs.get('enabled', None) - self.volume_backups = kwargs.get('volume_backups', None) + self.volume_backups = None class BackupPolicyDetails(msrest.serialization.Model): @@ -443,6 +451,8 @@ class BackupPolicyDetails(msrest.serialization.Model): :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -451,14 +461,12 @@ class BackupPolicyDetails(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { @@ -466,7 +474,10 @@ class BackupPolicyDetails(msrest.serialization.Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { @@ -476,11 +487,11 @@ class BackupPolicyDetails(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -497,14 +508,14 @@ def __init__( self.type = None self.tags = kwargs.get('tags', None) self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = kwargs.get('daily_backups_to_keep', None) self.weekly_backups_to_keep = kwargs.get('weekly_backups_to_keep', None) self.monthly_backups_to_keep = kwargs.get('monthly_backups_to_keep', None) - self.yearly_backups_to_keep = kwargs.get('yearly_backups_to_keep', None) - self.volumes_assigned = kwargs.get('volumes_assigned', None) + self.volumes_assigned = None self.enabled = kwargs.get('enabled', None) - self.volume_backups = kwargs.get('volume_backups', None) + self.volume_backups = None class BackupPolicyPatch(msrest.serialization.Model): @@ -524,6 +535,8 @@ class BackupPolicyPatch(msrest.serialization.Model): :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -532,14 +545,12 @@ class BackupPolicyPatch(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { @@ -547,7 +558,10 @@ class BackupPolicyPatch(msrest.serialization.Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { @@ -557,11 +571,11 @@ class BackupPolicyPatch(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -578,14 +592,14 @@ def __init__( self.type = None self.tags = kwargs.get('tags', None) self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = kwargs.get('daily_backups_to_keep', None) self.weekly_backups_to_keep = kwargs.get('weekly_backups_to_keep', None) self.monthly_backups_to_keep = kwargs.get('monthly_backups_to_keep', None) - self.yearly_backups_to_keep = kwargs.get('yearly_backups_to_keep', None) - self.volumes_assigned = kwargs.get('volumes_assigned', None) + self.volumes_assigned = None self.enabled = kwargs.get('enabled', None) - self.volume_backups = kwargs.get('volume_backups', None) + self.volume_backups = None class BackupsList(msrest.serialization.Model): @@ -702,6 +716,8 @@ class CapacityPool(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -712,7 +728,7 @@ class CapacityPool(msrest.serialization.Model): chunks (value must be multiply of 4398046511104). :type size: long :param service_level: Required. The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str @@ -724,12 +740,17 @@ class CapacityPool(msrest.serialization.Model): :type qos_type: str or ~azure.mgmt.netapp.models.QosType :param cool_access: If enabled (true) the pool can contain cool Access enabled volumes. :type cool_access: bool + :param encryption_type: Encryption type of the capacity pool, set encryption type for data at + rest for this pool and all volumes in it. This value can only be set when creating new pool. + Possible values include: "Single", "Double". Default value: "Single". + :type encryption_type: str or ~azure.mgmt.netapp.models.EncryptionType """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'pool_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, 'size': {'required': True, 'maximum': 549755813888000, 'minimum': 4398046511104}, @@ -743,6 +764,7 @@ class CapacityPool(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'pool_id': {'key': 'properties.poolId', 'type': 'str'}, @@ -753,6 +775,7 @@ class CapacityPool(msrest.serialization.Model): 'utilized_throughput_mibps': {'key': 'properties.utilizedThroughputMibps', 'type': 'float'}, 'qos_type': {'key': 'properties.qosType', 'type': 'str'}, 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, + 'encryption_type': {'key': 'properties.encryptionType', 'type': 'str'}, } def __init__( @@ -763,16 +786,18 @@ def __init__( self.location = kwargs['location'] self.id = None self.name = None + self.etag = None self.type = None self.tags = kwargs.get('tags', None) self.pool_id = None self.size = kwargs['size'] - self.service_level = kwargs['service_level'] + self.service_level = kwargs.get('service_level', "Premium") self.provisioning_state = None self.total_throughput_mibps = None self.utilized_throughput_mibps = None self.qos_type = kwargs.get('qos_type', None) self.cool_access = kwargs.get('cool_access', False) + self.encryption_type = kwargs.get('encryption_type', "Single") class CapacityPoolList(msrest.serialization.Model): @@ -1118,6 +1143,16 @@ class MetricSpecification(msrest.serialization.Model): :type display_description: str :param unit: Unit could be Bytes or Count. :type unit: str + :param supported_aggregation_types: Support metric aggregation type. + :type supported_aggregation_types: list[str or ~azure.mgmt.netapp.models.MetricAggregationType] + :param supported_time_grain_types: The supported time grain types for the metrics. + :type supported_time_grain_types: list[str] + :param internal_metric_name: The internal metric name. + :type internal_metric_name: str + :param source_mdm_account: The source MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The source MDM namespace. + :type source_mdm_namespace: str :param dimensions: Dimensions of blobs, including blob type and access tier. :type dimensions: list[~azure.mgmt.netapp.models.Dimension] :param aggregation_type: Aggregation type could be Average. @@ -1135,6 +1170,11 @@ class MetricSpecification(msrest.serialization.Model): 'display_name': {'key': 'displayName', 'type': 'str'}, 'display_description': {'key': 'displayDescription', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, @@ -1151,6 +1191,11 @@ def __init__( self.display_name = kwargs.get('display_name', None) self.display_description = kwargs.get('display_description', None) self.unit = kwargs.get('unit', None) + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None) + self.internal_metric_name = kwargs.get('internal_metric_name', None) + self.source_mdm_account = kwargs.get('source_mdm_account', None) + self.source_mdm_namespace = kwargs.get('source_mdm_namespace', None) self.dimensions = kwargs.get('dimensions', None) self.aggregation_type = kwargs.get('aggregation_type', None) self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) @@ -1313,6 +1358,8 @@ class NetAppAccount(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -1331,6 +1378,7 @@ class NetAppAccount(msrest.serialization.Model): 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -1340,6 +1388,7 @@ class NetAppAccount(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, @@ -1356,6 +1405,7 @@ def __init__( self.location = kwargs['location'] self.id = None self.name = None + self.etag = None self.type = None self.tags = kwargs.get('tags', None) self.system_data = None @@ -1900,6 +1950,8 @@ class SnapshotPolicy(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -1922,6 +1974,7 @@ class SnapshotPolicy(msrest.serialization.Model): 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -1930,6 +1983,7 @@ class SnapshotPolicy(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'hourly_schedule': {'key': 'properties.hourlySchedule', 'type': 'HourlySchedule'}, @@ -1948,6 +2002,7 @@ def __init__( self.location = kwargs['location'] self.id = None self.name = None + self.etag = None self.type = None self.tags = kwargs.get('tags', None) self.hourly_schedule = kwargs.get('hourly_schedule', None) @@ -2251,6 +2306,8 @@ class Volume(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -2261,7 +2318,7 @@ class Volume(msrest.serialization.Model): targets. :type creation_token: str :param service_level: The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :param usage_threshold: Required. Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. @@ -2324,12 +2381,29 @@ class Volume(msrest.serialization.Model): group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. :type unix_permissions: str + :ivar clone_progress: When a volume is being restored from another volume's snapshot, will show + the percentage completion of this cloning process. When this value is empty/null there is no + cloning process currently happening on this volume. This value will update every 5 minutes + during cloning. + :vartype clone_progress: int + :param avs_data_store: Specifies whether the volume is enabled for Azure VMware Solution (AVS) + datastore purpose. Possible values include: "Enabled", "Disabled". Default value: "Disabled". + :type avs_data_store: str or ~azure.mgmt.netapp.models.AvsDataStore + :param is_default_quota_enabled: Specifies if default quota is enabled for the volume. + :type is_default_quota_enabled: bool + :param default_user_quota_in_ki_bs: Default user quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + :type default_user_quota_in_ki_bs: long + :param default_group_quota_in_ki_bs: Default group quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + :type default_group_quota_in_ki_bs: long """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'file_system_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, 'creation_token': {'required': True, 'max_length': 80, 'min_length': 1, 'pattern': r'^[a-zA-Z][a-zA-Z0-9\-]{0,79}$'}, @@ -2343,12 +2417,14 @@ class Volume(msrest.serialization.Model): 'throughput_mibps': {'maximum': 4500, 'minimum': 0}, 'coolness_period': {'maximum': 63, 'minimum': 7}, 'unix_permissions': {'max_length': 4, 'min_length': 4}, + 'clone_progress': {'readonly': True}, } _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, @@ -2377,6 +2453,11 @@ class Volume(msrest.serialization.Model): 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, 'coolness_period': {'key': 'properties.coolnessPeriod', 'type': 'int'}, 'unix_permissions': {'key': 'properties.unixPermissions', 'type': 'str'}, + 'clone_progress': {'key': 'properties.cloneProgress', 'type': 'int'}, + 'avs_data_store': {'key': 'properties.avsDataStore', 'type': 'str'}, + 'is_default_quota_enabled': {'key': 'properties.isDefaultQuotaEnabled', 'type': 'bool'}, + 'default_user_quota_in_ki_bs': {'key': 'properties.defaultUserQuotaInKiBs', 'type': 'long'}, + 'default_group_quota_in_ki_bs': {'key': 'properties.defaultGroupQuotaInKiBs', 'type': 'long'}, } def __init__( @@ -2387,11 +2468,12 @@ def __init__( self.location = kwargs['location'] self.id = None self.name = None + self.etag = None self.type = None self.tags = kwargs.get('tags', None) self.file_system_id = None self.creation_token = kwargs['creation_token'] - self.service_level = kwargs.get('service_level', None) + self.service_level = kwargs.get('service_level', "Premium") self.usage_threshold = kwargs.get('usage_threshold', 107374182400) self.export_policy = kwargs.get('export_policy', None) self.protocol_types = kwargs.get('protocol_types', None) @@ -2414,7 +2496,12 @@ def __init__( self.ldap_enabled = kwargs.get('ldap_enabled', False) self.cool_access = kwargs.get('cool_access', False) self.coolness_period = kwargs.get('coolness_period', None) - self.unix_permissions = kwargs.get('unix_permissions', None) + self.unix_permissions = kwargs.get('unix_permissions', "0770") + self.clone_progress = None + self.avs_data_store = kwargs.get('avs_data_store', "Disabled") + self.is_default_quota_enabled = kwargs.get('is_default_quota_enabled', False) + self.default_user_quota_in_ki_bs = kwargs.get('default_user_quota_in_ki_bs', 0) + self.default_group_quota_in_ki_bs = kwargs.get('default_group_quota_in_ki_bs', 0) class VolumeBackupProperties(msrest.serialization.Model): @@ -2514,7 +2601,7 @@ class VolumePatch(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param service_level: The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :param usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in @@ -2527,6 +2614,14 @@ class VolumePatch(msrest.serialization.Model): :param data_protection: DataProtection type volumes include an object containing details of the replication. :type data_protection: ~azure.mgmt.netapp.models.VolumePatchPropertiesDataProtection + :param is_default_quota_enabled: Specifies if default quota is enabled for the volume. + :type is_default_quota_enabled: bool + :param default_user_quota_in_ki_bs: Default user quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + :type default_user_quota_in_ki_bs: long + :param default_group_quota_in_ki_bs: Default group quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + :type default_group_quota_in_ki_bs: long """ _validation = { @@ -2548,6 +2643,9 @@ class VolumePatch(msrest.serialization.Model): 'export_policy': {'key': 'properties.exportPolicy', 'type': 'VolumePatchPropertiesExportPolicy'}, 'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'}, 'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePatchPropertiesDataProtection'}, + 'is_default_quota_enabled': {'key': 'properties.isDefaultQuotaEnabled', 'type': 'bool'}, + 'default_user_quota_in_ki_bs': {'key': 'properties.defaultUserQuotaInKiBs', 'type': 'long'}, + 'default_group_quota_in_ki_bs': {'key': 'properties.defaultGroupQuotaInKiBs', 'type': 'long'}, } def __init__( @@ -2560,11 +2658,14 @@ def __init__( self.name = None self.type = None self.tags = kwargs.get('tags', None) - self.service_level = kwargs.get('service_level', None) + self.service_level = kwargs.get('service_level', "Premium") self.usage_threshold = kwargs.get('usage_threshold', 107374182400) self.export_policy = kwargs.get('export_policy', None) self.throughput_mibps = kwargs.get('throughput_mibps', None) self.data_protection = kwargs.get('data_protection', None) + self.is_default_quota_enabled = kwargs.get('is_default_quota_enabled', False) + self.default_user_quota_in_ki_bs = kwargs.get('default_user_quota_in_ki_bs', 0) + self.default_group_quota_in_ki_bs = kwargs.get('default_group_quota_in_ki_bs', 0) class VolumePatchPropertiesDataProtection(msrest.serialization.Model): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py index 73792c8b6beb..818518becae7 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models_py3.py @@ -393,12 +393,16 @@ class BackupPolicy(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -407,37 +411,40 @@ class BackupPolicy(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -451,27 +458,25 @@ def __init__( daily_backups_to_keep: Optional[int] = None, weekly_backups_to_keep: Optional[int] = None, monthly_backups_to_keep: Optional[int] = None, - yearly_backups_to_keep: Optional[int] = None, - volumes_assigned: Optional[int] = None, enabled: Optional[bool] = None, - volume_backups: Optional[List["VolumeBackups"]] = None, **kwargs ): super(BackupPolicy, self).__init__(**kwargs) self.location = location self.id = None self.name = None + self.etag = None self.type = None self.tags = tags self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = daily_backups_to_keep self.weekly_backups_to_keep = weekly_backups_to_keep self.monthly_backups_to_keep = monthly_backups_to_keep - self.yearly_backups_to_keep = yearly_backups_to_keep - self.volumes_assigned = volumes_assigned + self.volumes_assigned = None self.enabled = enabled - self.volume_backups = volume_backups + self.volume_backups = None class BackupPolicyDetails(msrest.serialization.Model): @@ -491,6 +496,8 @@ class BackupPolicyDetails(msrest.serialization.Model): :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -499,14 +506,12 @@ class BackupPolicyDetails(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { @@ -514,7 +519,10 @@ class BackupPolicyDetails(msrest.serialization.Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { @@ -524,11 +532,11 @@ class BackupPolicyDetails(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -542,10 +550,7 @@ def __init__( daily_backups_to_keep: Optional[int] = None, weekly_backups_to_keep: Optional[int] = None, monthly_backups_to_keep: Optional[int] = None, - yearly_backups_to_keep: Optional[int] = None, - volumes_assigned: Optional[int] = None, enabled: Optional[bool] = None, - volume_backups: Optional[List["VolumeBackups"]] = None, **kwargs ): super(BackupPolicyDetails, self).__init__(**kwargs) @@ -555,14 +560,14 @@ def __init__( self.type = None self.tags = tags self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = daily_backups_to_keep self.weekly_backups_to_keep = weekly_backups_to_keep self.monthly_backups_to_keep = monthly_backups_to_keep - self.yearly_backups_to_keep = yearly_backups_to_keep - self.volumes_assigned = volumes_assigned + self.volumes_assigned = None self.enabled = enabled - self.volume_backups = volume_backups + self.volume_backups = None class BackupPolicyPatch(msrest.serialization.Model): @@ -582,6 +587,8 @@ class BackupPolicyPatch(msrest.serialization.Model): :type tags: dict[str, str] :ivar name_properties_name: Name of backup policy. :vartype name_properties_name: str + :ivar backup_policy_id: Backup Policy Resource ID. + :vartype backup_policy_id: str :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str :param daily_backups_to_keep: Daily backups count to keep. @@ -590,14 +597,12 @@ class BackupPolicyPatch(msrest.serialization.Model): :type weekly_backups_to_keep: int :param monthly_backups_to_keep: Monthly backups count to keep. :type monthly_backups_to_keep: int - :param yearly_backups_to_keep: Yearly backups count to keep. - :type yearly_backups_to_keep: int - :param volumes_assigned: Volumes using current backup policy. - :type volumes_assigned: int + :ivar volumes_assigned: Volumes using current backup policy. + :vartype volumes_assigned: int :param enabled: The property to decide policy is enabled or not. :type enabled: bool - :param volume_backups: A list of volumes assigned to this policy. - :type volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] + :ivar volume_backups: A list of volumes assigned to this policy. + :vartype volume_backups: list[~azure.mgmt.netapp.models.VolumeBackups] """ _validation = { @@ -605,7 +610,10 @@ class BackupPolicyPatch(msrest.serialization.Model): 'name': {'readonly': True}, 'type': {'readonly': True}, 'name_properties_name': {'readonly': True}, + 'backup_policy_id': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'volumes_assigned': {'readonly': True}, + 'volume_backups': {'readonly': True}, } _attribute_map = { @@ -615,11 +623,11 @@ class BackupPolicyPatch(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'backup_policy_id': {'key': 'properties.backupPolicyId', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'daily_backups_to_keep': {'key': 'properties.dailyBackupsToKeep', 'type': 'int'}, 'weekly_backups_to_keep': {'key': 'properties.weeklyBackupsToKeep', 'type': 'int'}, 'monthly_backups_to_keep': {'key': 'properties.monthlyBackupsToKeep', 'type': 'int'}, - 'yearly_backups_to_keep': {'key': 'properties.yearlyBackupsToKeep', 'type': 'int'}, 'volumes_assigned': {'key': 'properties.volumesAssigned', 'type': 'int'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'volume_backups': {'key': 'properties.volumeBackups', 'type': '[VolumeBackups]'}, @@ -633,10 +641,7 @@ def __init__( daily_backups_to_keep: Optional[int] = None, weekly_backups_to_keep: Optional[int] = None, monthly_backups_to_keep: Optional[int] = None, - yearly_backups_to_keep: Optional[int] = None, - volumes_assigned: Optional[int] = None, enabled: Optional[bool] = None, - volume_backups: Optional[List["VolumeBackups"]] = None, **kwargs ): super(BackupPolicyPatch, self).__init__(**kwargs) @@ -646,14 +651,14 @@ def __init__( self.type = None self.tags = tags self.name_properties_name = None + self.backup_policy_id = None self.provisioning_state = None self.daily_backups_to_keep = daily_backups_to_keep self.weekly_backups_to_keep = weekly_backups_to_keep self.monthly_backups_to_keep = monthly_backups_to_keep - self.yearly_backups_to_keep = yearly_backups_to_keep - self.volumes_assigned = volumes_assigned + self.volumes_assigned = None self.enabled = enabled - self.volume_backups = volume_backups + self.volume_backups = None class BackupsList(msrest.serialization.Model): @@ -774,6 +779,8 @@ class CapacityPool(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -784,7 +791,7 @@ class CapacityPool(msrest.serialization.Model): chunks (value must be multiply of 4398046511104). :type size: long :param service_level: Required. The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :ivar provisioning_state: Azure lifecycle management. :vartype provisioning_state: str @@ -796,12 +803,17 @@ class CapacityPool(msrest.serialization.Model): :type qos_type: str or ~azure.mgmt.netapp.models.QosType :param cool_access: If enabled (true) the pool can contain cool Access enabled volumes. :type cool_access: bool + :param encryption_type: Encryption type of the capacity pool, set encryption type for data at + rest for this pool and all volumes in it. This value can only be set when creating new pool. + Possible values include: "Single", "Double". Default value: "Single". + :type encryption_type: str or ~azure.mgmt.netapp.models.EncryptionType """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'pool_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, 'size': {'required': True, 'maximum': 549755813888000, 'minimum': 4398046511104}, @@ -815,6 +827,7 @@ class CapacityPool(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'pool_id': {'key': 'properties.poolId', 'type': 'str'}, @@ -825,6 +838,7 @@ class CapacityPool(msrest.serialization.Model): 'utilized_throughput_mibps': {'key': 'properties.utilizedThroughputMibps', 'type': 'float'}, 'qos_type': {'key': 'properties.qosType', 'type': 'str'}, 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, + 'encryption_type': {'key': 'properties.encryptionType', 'type': 'str'}, } def __init__( @@ -832,16 +846,18 @@ def __init__( *, location: str, size: int, - service_level: Union[str, "ServiceLevel"], + service_level: Union[str, "ServiceLevel"] = "Premium", tags: Optional[Dict[str, str]] = None, qos_type: Optional[Union[str, "QosType"]] = None, cool_access: Optional[bool] = False, + encryption_type: Optional[Union[str, "EncryptionType"]] = "Single", **kwargs ): super(CapacityPool, self).__init__(**kwargs) self.location = location self.id = None self.name = None + self.etag = None self.type = None self.tags = tags self.pool_id = None @@ -852,6 +868,7 @@ def __init__( self.utilized_throughput_mibps = None self.qos_type = qos_type self.cool_access = cool_access + self.encryption_type = encryption_type class CapacityPoolList(msrest.serialization.Model): @@ -1243,6 +1260,16 @@ class MetricSpecification(msrest.serialization.Model): :type display_description: str :param unit: Unit could be Bytes or Count. :type unit: str + :param supported_aggregation_types: Support metric aggregation type. + :type supported_aggregation_types: list[str or ~azure.mgmt.netapp.models.MetricAggregationType] + :param supported_time_grain_types: The supported time grain types for the metrics. + :type supported_time_grain_types: list[str] + :param internal_metric_name: The internal metric name. + :type internal_metric_name: str + :param source_mdm_account: The source MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The source MDM namespace. + :type source_mdm_namespace: str :param dimensions: Dimensions of blobs, including blob type and access tier. :type dimensions: list[~azure.mgmt.netapp.models.Dimension] :param aggregation_type: Aggregation type could be Average. @@ -1260,6 +1287,11 @@ class MetricSpecification(msrest.serialization.Model): 'display_name': {'key': 'displayName', 'type': 'str'}, 'display_description': {'key': 'displayDescription', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, @@ -1274,6 +1306,11 @@ def __init__( display_name: Optional[str] = None, display_description: Optional[str] = None, unit: Optional[str] = None, + supported_aggregation_types: Optional[List[Union[str, "MetricAggregationType"]]] = None, + supported_time_grain_types: Optional[List[str]] = None, + internal_metric_name: Optional[str] = None, + source_mdm_account: Optional[str] = None, + source_mdm_namespace: Optional[str] = None, dimensions: Optional[List["Dimension"]] = None, aggregation_type: Optional[str] = None, fill_gap_with_zero: Optional[bool] = None, @@ -1286,6 +1323,11 @@ def __init__( self.display_name = display_name self.display_description = display_description self.unit = unit + self.supported_aggregation_types = supported_aggregation_types + self.supported_time_grain_types = supported_time_grain_types + self.internal_metric_name = internal_metric_name + self.source_mdm_account = source_mdm_account + self.source_mdm_namespace = source_mdm_namespace self.dimensions = dimensions self.aggregation_type = aggregation_type self.fill_gap_with_zero = fill_gap_with_zero @@ -1462,6 +1504,8 @@ class NetAppAccount(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -1480,6 +1524,7 @@ class NetAppAccount(msrest.serialization.Model): 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, @@ -1489,6 +1534,7 @@ class NetAppAccount(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, @@ -1510,6 +1556,7 @@ def __init__( self.location = location self.id = None self.name = None + self.etag = None self.type = None self.tags = tags self.system_data = None @@ -2104,6 +2151,8 @@ class SnapshotPolicy(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -2126,6 +2175,7 @@ class SnapshotPolicy(msrest.serialization.Model): 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -2134,6 +2184,7 @@ class SnapshotPolicy(msrest.serialization.Model): 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'hourly_schedule': {'key': 'properties.hourlySchedule', 'type': 'HourlySchedule'}, @@ -2160,6 +2211,7 @@ def __init__( self.location = location self.id = None self.name = None + self.etag = None self.type = None self.tags = tags self.hourly_schedule = hourly_schedule @@ -2495,6 +2547,8 @@ class Volume(msrest.serialization.Model): :vartype id: str :ivar name: Resource name. :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource is updated. + :vartype etag: str :ivar type: Resource type. :vartype type: str :param tags: A set of tags. Resource tags. @@ -2505,7 +2559,7 @@ class Volume(msrest.serialization.Model): targets. :type creation_token: str :param service_level: The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :param usage_threshold: Required. Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. @@ -2568,12 +2622,29 @@ class Volume(msrest.serialization.Model): group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other users. :type unix_permissions: str + :ivar clone_progress: When a volume is being restored from another volume's snapshot, will show + the percentage completion of this cloning process. When this value is empty/null there is no + cloning process currently happening on this volume. This value will update every 5 minutes + during cloning. + :vartype clone_progress: int + :param avs_data_store: Specifies whether the volume is enabled for Azure VMware Solution (AVS) + datastore purpose. Possible values include: "Enabled", "Disabled". Default value: "Disabled". + :type avs_data_store: str or ~azure.mgmt.netapp.models.AvsDataStore + :param is_default_quota_enabled: Specifies if default quota is enabled for the volume. + :type is_default_quota_enabled: bool + :param default_user_quota_in_ki_bs: Default user quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + :type default_user_quota_in_ki_bs: long + :param default_group_quota_in_ki_bs: Default group quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + :type default_group_quota_in_ki_bs: long """ _validation = { 'location': {'required': True}, 'id': {'readonly': True}, 'name': {'readonly': True}, + 'etag': {'readonly': True}, 'type': {'readonly': True}, 'file_system_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, 'creation_token': {'required': True, 'max_length': 80, 'min_length': 1, 'pattern': r'^[a-zA-Z][a-zA-Z0-9\-]{0,79}$'}, @@ -2587,12 +2658,14 @@ class Volume(msrest.serialization.Model): 'throughput_mibps': {'maximum': 4500, 'minimum': 0}, 'coolness_period': {'maximum': 63, 'minimum': 7}, 'unix_permissions': {'max_length': 4, 'min_length': 4}, + 'clone_progress': {'readonly': True}, } _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, @@ -2621,6 +2694,11 @@ class Volume(msrest.serialization.Model): 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, 'coolness_period': {'key': 'properties.coolnessPeriod', 'type': 'int'}, 'unix_permissions': {'key': 'properties.unixPermissions', 'type': 'str'}, + 'clone_progress': {'key': 'properties.cloneProgress', 'type': 'int'}, + 'avs_data_store': {'key': 'properties.avsDataStore', 'type': 'str'}, + 'is_default_quota_enabled': {'key': 'properties.isDefaultQuotaEnabled', 'type': 'bool'}, + 'default_user_quota_in_ki_bs': {'key': 'properties.defaultUserQuotaInKiBs', 'type': 'long'}, + 'default_group_quota_in_ki_bs': {'key': 'properties.defaultGroupQuotaInKiBs', 'type': 'long'}, } def __init__( @@ -2631,7 +2709,7 @@ def __init__( usage_threshold: int = 107374182400, subnet_id: str, tags: Optional[Dict[str, str]] = None, - service_level: Optional[Union[str, "ServiceLevel"]] = None, + service_level: Optional[Union[str, "ServiceLevel"]] = "Premium", export_policy: Optional["VolumePropertiesExportPolicy"] = None, protocol_types: Optional[List[str]] = None, snapshot_id: Optional[str] = None, @@ -2649,13 +2727,18 @@ def __init__( ldap_enabled: Optional[bool] = False, cool_access: Optional[bool] = False, coolness_period: Optional[int] = None, - unix_permissions: Optional[str] = None, + unix_permissions: Optional[str] = "0770", + avs_data_store: Optional[Union[str, "AvsDataStore"]] = "Disabled", + is_default_quota_enabled: Optional[bool] = False, + default_user_quota_in_ki_bs: Optional[int] = 0, + default_group_quota_in_ki_bs: Optional[int] = 0, **kwargs ): super(Volume, self).__init__(**kwargs) self.location = location self.id = None self.name = None + self.etag = None self.type = None self.tags = tags self.file_system_id = None @@ -2684,6 +2767,11 @@ def __init__( self.cool_access = cool_access self.coolness_period = coolness_period self.unix_permissions = unix_permissions + self.clone_progress = None + self.avs_data_store = avs_data_store + self.is_default_quota_enabled = is_default_quota_enabled + self.default_user_quota_in_ki_bs = default_user_quota_in_ki_bs + self.default_group_quota_in_ki_bs = default_group_quota_in_ki_bs class VolumeBackupProperties(msrest.serialization.Model): @@ -2795,7 +2883,7 @@ class VolumePatch(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param service_level: The service level of the file system. Possible values include: - "Standard", "Premium", "Ultra". + "Standard", "Premium", "Ultra", "StandardZRS". Default value: "Premium". :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel :param usage_threshold: Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in @@ -2808,6 +2896,14 @@ class VolumePatch(msrest.serialization.Model): :param data_protection: DataProtection type volumes include an object containing details of the replication. :type data_protection: ~azure.mgmt.netapp.models.VolumePatchPropertiesDataProtection + :param is_default_quota_enabled: Specifies if default quota is enabled for the volume. + :type is_default_quota_enabled: bool + :param default_user_quota_in_ki_bs: Default user quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies . + :type default_user_quota_in_ki_bs: long + :param default_group_quota_in_ki_bs: Default group quota for volume in KiBs. If + isDefaultQuotaEnabled is set, the minimum value of 4 KiBs applies. + :type default_group_quota_in_ki_bs: long """ _validation = { @@ -2829,6 +2925,9 @@ class VolumePatch(msrest.serialization.Model): 'export_policy': {'key': 'properties.exportPolicy', 'type': 'VolumePatchPropertiesExportPolicy'}, 'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'}, 'data_protection': {'key': 'properties.dataProtection', 'type': 'VolumePatchPropertiesDataProtection'}, + 'is_default_quota_enabled': {'key': 'properties.isDefaultQuotaEnabled', 'type': 'bool'}, + 'default_user_quota_in_ki_bs': {'key': 'properties.defaultUserQuotaInKiBs', 'type': 'long'}, + 'default_group_quota_in_ki_bs': {'key': 'properties.defaultGroupQuotaInKiBs', 'type': 'long'}, } def __init__( @@ -2836,11 +2935,14 @@ def __init__( *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - service_level: Optional[Union[str, "ServiceLevel"]] = None, + service_level: Optional[Union[str, "ServiceLevel"]] = "Premium", usage_threshold: Optional[int] = 107374182400, export_policy: Optional["VolumePatchPropertiesExportPolicy"] = None, throughput_mibps: Optional[float] = None, data_protection: Optional["VolumePatchPropertiesDataProtection"] = None, + is_default_quota_enabled: Optional[bool] = False, + default_user_quota_in_ki_bs: Optional[int] = 0, + default_group_quota_in_ki_bs: Optional[int] = 0, **kwargs ): super(VolumePatch, self).__init__(**kwargs) @@ -2854,6 +2956,9 @@ def __init__( self.export_policy = export_policy self.throughput_mibps = throughput_mibps self.data_protection = data_protection + self.is_default_quota_enabled = is_default_quota_enabled + self.default_user_quota_in_ki_bs = default_user_quota_in_ki_bs + self.default_group_quota_in_ki_bs = default_group_quota_in_ki_bs class VolumePatchPropertiesDataProtection(msrest.serialization.Model): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py index a81fa38d19fd..1265dfef7a3f 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_net_app_management_client_enums.py @@ -41,6 +41,15 @@ class ActiveDirectoryStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)) #: Active Directory Updating. UPDATING = "Updating" +class AvsDataStore(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose + """ + + #: avsDataStore is enabled. + ENABLED = "Enabled" + #: avsDataStore is disabled. + DISABLED = "Disabled" + class BackupType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Type of backup Manual or Scheduled """ @@ -86,6 +95,16 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" +class EncryptionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Encryption type of the capacity pool, set encryption type for data at rest for this pool and + all volumes in it. This value can only be set when creating new pool. + """ + + #: EncryptionType Single, volumes will use single encryption at rest. + SINGLE = "Single" + #: EncryptionType Double, volumes will use double encryption at rest. + DOUBLE = "Double" + class EndpointType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Indicates whether the local volume is the source or destination for the Volume Replication """ @@ -102,6 +121,10 @@ class InAvailabilityReasonType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enu INVALID = "Invalid" ALREADY_EXISTS = "AlreadyExists" +class MetricAggregationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + AVERAGE = "Average" + class MirrorState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The status of the replication """ @@ -151,3 +174,5 @@ class ServiceLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PREMIUM = "Premium" #: Ultra service level. ULTRA = "Ultra" + #: Zone redundant storage service level. + STANDARD_ZRS = "StandardZRS" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_account_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_account_backups_operations.py index d3266758953d..070ab64a25e5 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_account_backups_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_account_backups_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -152,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -202,7 +202,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py index caac0dfd0e2a..fda9037863bf 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_accounts_operations.py @@ -47,6 +47,75 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.NetAppAccountList"] + """Describe all NetApp Accounts in a subscription. + + List and describe all NetApp accounts in the subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either NetAppAccountList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.netapp.models.NetAppAccountList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.NetAppAccountList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('NetAppAccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/netAppAccounts'} # type: ignore + def list( self, resource_group_name, # type: str @@ -69,7 +138,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -145,7 +214,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -194,7 +263,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -325,7 +394,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -436,7 +505,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py index cb51ab26052c..b7c2cdcf7074 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backup_policies_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -152,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -203,7 +203,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -343,7 +343,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -481,7 +481,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py index fa0a90f4ca5e..4b8f3d252e68 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_backups_operations.py @@ -78,7 +78,7 @@ def get_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -147,7 +147,7 @@ def get_volume_restore_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -216,7 +216,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -304,7 +304,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -359,7 +359,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -513,7 +513,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -668,7 +668,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py index bd0eb5cb555e..dcd7f2813e1a 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_net_app_resource_operations.py @@ -77,7 +77,7 @@ def check_name_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -148,7 +148,7 @@ def check_file_path_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -221,7 +221,7 @@ def check_quota_availability( error_map.update(kwargs.pop('error_map', {})) _body = _models.QuotaAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py index bb05b1c9e9ad..674a64b945c4 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_operations.py @@ -64,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py index c005f1775b8c..d9d72902ce16 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_pools_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -152,7 +152,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -203,7 +203,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -342,7 +342,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -478,7 +478,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py index 16e4e59b9a84..aa8bd1265c48 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshot_policies_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -136,7 +136,7 @@ def get( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SnapshotPolicy, or the result of cls(response) @@ -148,7 +148,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -200,7 +200,7 @@ def create( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :param body: Snapshot policy object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.SnapshotPolicy @@ -214,7 +214,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -274,7 +274,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -335,7 +335,7 @@ def begin_update( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :param body: Snapshot policy object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.SnapshotPolicyPatch @@ -410,7 +410,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -456,7 +456,7 @@ def begin_delete( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -528,7 +528,7 @@ def list_volumes( :type resource_group_name: str :param account_name: The name of the NetApp account. :type account_name: str - :param snapshot_policy_name: The name of the snapshot policy target. + :param snapshot_policy_name: The name of the snapshot policy. :type snapshot_policy_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SnapshotPolicyVolumeList, or the result of cls(response) @@ -540,7 +540,7 @@ def list_volumes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py index 9b4443e14554..8b3e2a853793 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_snapshots_operations.py @@ -78,7 +78,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -154,7 +154,7 @@ def get( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Snapshot, or the result of cls(response) @@ -166,7 +166,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -221,7 +221,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -290,7 +290,7 @@ def begin_create( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :param body: Snapshot object supplied in the body of the operation. :type body: ~azure.mgmt.netapp.models.Snapshot @@ -372,7 +372,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -441,7 +441,7 @@ def begin_update( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :param body: Snapshot object supplied in the body of the operation. :type body: any @@ -522,7 +522,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -578,7 +578,7 @@ def begin_delete( :type pool_name: str :param volume_name: The name of the volume. :type volume_name: str - :param snapshot_name: The name of the mount target. + :param snapshot_name: The name of the snapshot. :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_vaults_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_vaults_operations.py index 3d0dd9af6a64..a67942ccd520 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_vaults_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_vaults_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py index cb69ec8792b6..60561b5fb6eb 100644 --- a/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py +++ b/sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/operations/_volumes_operations.py @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" def prepare_request(next_link=None): @@ -159,7 +159,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -212,7 +212,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -359,7 +359,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -502,7 +502,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -627,7 +627,7 @@ def _revert_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -761,7 +761,7 @@ def _break_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -914,7 +914,7 @@ def replication_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" accept = "application/json" # Construct URL @@ -966,7 +966,7 @@ def _resync_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._resync_replication_initial.metadata['url'] # type: ignore @@ -1091,7 +1091,7 @@ def _delete_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._delete_replication_initial.metadata['url'] # type: ignore @@ -1217,7 +1217,7 @@ def _authorize_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL @@ -1350,7 +1350,7 @@ def _re_initialize_replication_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" # Construct URL url = self._re_initialize_replication_initial.metadata['url'] # type: ignore @@ -1475,7 +1475,7 @@ def _pool_change_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01" + api_version = "2021-06-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL