diff --git a/sdk/netapp/azure-mgmt-netapp/_meta.json b/sdk/netapp/azure-mgmt-netapp/_meta.json index fb6c8e6fa17e..4d627a125716 100644 --- a/sdk/netapp/azure-mgmt-netapp/_meta.json +++ b/sdk/netapp/azure-mgmt-netapp/_meta.json @@ -2,10 +2,10 @@ "autorest": "3.4.2", "use": [ "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/modelerfour@4.19.2" ], - "commit": "20b168918d11ebeee6f00c71c0c41b93aae0ce0d", + "commit": "f4a4da1eb7ff5debb776861ac6e5ca5c411e2a2c", "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.1 --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.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "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 d19690424242..01a813d3e825 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-02-01" + self.api_version = "2021-04-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 75d148f2d6a3..0856190116c8 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-02-01", - "total_api_version_list": ["2021-02-01"], + "chosen_version": "2021-04-01", + "total_api_version_list": ["2021-04-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 cac9f5d10f8b..c47f66669f1b 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 = "3.0.0" +VERSION = "1.0.0" 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 edc4901eb8c1..5f59e1ab6bd7 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-02-01" + self.api_version = "2021-04-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 4257199a22ec..4d160016e71a 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 64a04dedf406..33b7126a198d 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 @@ -64,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -139,7 +139,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -187,7 +187,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -316,7 +316,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -425,7 +425,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 b2d528419b53..b1067e8aa88e 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 f83f843387da..4302c880a1a3 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-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -111,6 +111,74 @@ async def get_status( return deserialized get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus'} # type: ignore + async def get_volume_restore_status( + self, + resource_group_name: str, + account_name: str, + pool_name: str, + volume_name: str, + **kwargs: Any + ) -> "_models.RestoreStatus": + """Get volume's restore status. + + Get the status of the restore for a volume. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param account_name: The name of the NetApp account. + :type account_name: str + :param pool_name: The name of the capacity pool. + :type pool_name: str + :param volume_name: The name of the volume. + :type volume_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestoreStatus, or the result of cls(response) + :rtype: ~azure.mgmt.netapp.models.RestoreStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestoreStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01" + accept = "application/json" + + # Construct URL + url = self.get_volume_restore_status.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str', max_length=64, min_length=1, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$'), + 'volumeName': self._serialize.url("volume_name", volume_name, 'str', max_length=64, min_length=1, pattern=r'^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$'), + } + 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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('RestoreStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_volume_restore_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus'} # type: ignore + def list( self, resource_group_name: str, @@ -141,7 +209,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -228,7 +296,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -282,7 +350,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -434,7 +502,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -587,7 +655,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 8983fc41672a..41c6da12536f 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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -116,8 +116,7 @@ async def check_file_path_availability( self, location: str, name: str, - type: Union[str, "_models.CheckNameResourceTypes"], - resource_group: str, + subnet_id: str, **kwargs: Any ) -> "_models.CheckAvailabilityResponse": """Check file path availability. @@ -126,12 +125,11 @@ async def check_file_path_availability( :param location: The location. :type location: str - :param name: Resource name to verify. + :param name: File path to verify. :type name: str - :param type: Resource type used for verification. - :type type: str or ~azure.mgmt.netapp.models.CheckNameResourceTypes - :param resource_group: Resource group name. - :type resource_group: str + :param subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation + Microsoft.NetApp/volumes. + :type subnet_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckAvailabilityResponse, or the result of cls(response) :rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse @@ -143,8 +141,8 @@ async def check_file_path_availability( } error_map.update(kwargs.pop('error_map', {})) - _body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-02-01" + _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id) + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -166,7 +164,7 @@ async def check_file_path_availability( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_body, 'ResourceNameAvailabilityRequest') + body_content = self._serialize.body(_body, 'FilePathAvailabilityRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -216,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-02-01" + api_version = "2021-04-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 f7167e61cefc..a514fcc32d3e 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-02-01" + api_version = "2021-04-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 297d748559c3..d469fc05aa3f 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 1c0802ab3a71..89fbc0f567f2 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-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -142,7 +142,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -207,7 +207,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -400,7 +400,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -528,7 +528,7 @@ async def list_volumes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 6d9c548e66e6..61b5d172856a 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-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -160,7 +160,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -363,7 +363,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -511,7 +511,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore 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 837b75c98592..5e388e82e732 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-02-01" + api_version = "2021-04-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 12f14f1f5140..e175b81146b3 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 dc580f8bf04d..5bc837ce95c0 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 @@ -27,6 +27,7 @@ from ._models_py3 import DailySchedule from ._models_py3 import Dimension from ._models_py3 import ExportPolicyRule + from ._models_py3 import FilePathAvailabilityRequest from ._models_py3 import HourlySchedule from ._models_py3 import MetricSpecification from ._models_py3 import MonthlySchedule @@ -44,6 +45,7 @@ from ._models_py3 import ReplicationStatus from ._models_py3 import ResourceIdentity from ._models_py3 import ResourceNameAvailabilityRequest + from ._models_py3 import RestoreStatus from ._models_py3 import ServiceSpecification from ._models_py3 import Snapshot from ._models_py3 import SnapshotPoliciesList @@ -88,6 +90,7 @@ from ._models import DailySchedule # type: ignore from ._models import Dimension # type: ignore from ._models import ExportPolicyRule # type: ignore + from ._models import FilePathAvailabilityRequest # type: ignore from ._models import HourlySchedule # type: ignore from ._models import MetricSpecification # type: ignore from ._models import MonthlySchedule # type: ignore @@ -105,6 +108,7 @@ from ._models import ReplicationStatus # type: ignore from ._models import ResourceIdentity # type: ignore from ._models import ResourceNameAvailabilityRequest # type: ignore + from ._models import RestoreStatus # type: ignore from ._models import ServiceSpecification # type: ignore from ._models import Snapshot # type: ignore from ._models import SnapshotPoliciesList # type: ignore @@ -134,6 +138,7 @@ BackupType, CheckNameResourceTypes, CheckQuotaNameResourceTypes, + ChownMode, CreatedByType, EndpointType, InAvailabilityReasonType, @@ -166,6 +171,7 @@ 'DailySchedule', 'Dimension', 'ExportPolicyRule', + 'FilePathAvailabilityRequest', 'HourlySchedule', 'MetricSpecification', 'MonthlySchedule', @@ -183,6 +189,7 @@ 'ReplicationStatus', 'ResourceIdentity', 'ResourceNameAvailabilityRequest', + 'RestoreStatus', 'ServiceSpecification', 'Snapshot', 'SnapshotPoliciesList', @@ -210,6 +217,7 @@ 'BackupType', 'CheckNameResourceTypes', 'CheckQuotaNameResourceTypes', + 'ChownMode', 'CreatedByType', 'EndpointType', 'InAvailabilityReasonType', 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 b19fc4798ce4..2fc76f99ec28 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 @@ -60,6 +60,9 @@ class ActiveDirectory(msrest.serialization.Model): :param backup_operators: Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier. :type backup_operators: list[str] + :param administrators: Users to be added to the Built-in Administrators active directory group. + A list of unique usernames without domain specifier. + :type administrators: list[str] :param kdc_ip: kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos volume. :type kdc_ip: str @@ -107,6 +110,7 @@ class ActiveDirectory(msrest.serialization.Model): 'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, 'backup_operators': {'key': 'backupOperators', 'type': '[str]'}, + 'administrators': {'key': 'administrators', 'type': '[str]'}, 'kdc_ip': {'key': 'kdcIP', 'type': 'str'}, 'ad_name': {'key': 'adName', 'type': 'str'}, 'server_root_ca_certificate': {'key': 'serverRootCACertificate', 'type': 'str'}, @@ -133,6 +137,7 @@ def __init__( self.organizational_unit = kwargs.get('organizational_unit', "CN=Computers") self.site = kwargs.get('site', None) self.backup_operators = kwargs.get('backup_operators', None) + self.administrators = kwargs.get('administrators', None) self.kdc_ip = kwargs.get('kdc_ip', None) self.ad_name = kwargs.get('ad_name', None) self.server_root_ca_certificate = kwargs.get('server_root_ca_certificate', None) @@ -619,6 +624,12 @@ class BackupStatus(msrest.serialization.Model): :vartype unhealthy_reason: str :ivar error_message: Displays error message if the backup is in an error state. :vartype error_message: str + :ivar last_transfer_size: Displays the last transfer size. + :vartype last_transfer_size: long + :ivar last_transfer_type: Displays the last transfer type. + :vartype last_transfer_type: str + :ivar total_transfer_bytes: Displays the total bytes transferred. + :vartype total_transfer_bytes: long """ _validation = { @@ -627,6 +638,9 @@ class BackupStatus(msrest.serialization.Model): 'mirror_state': {'readonly': True}, 'unhealthy_reason': {'readonly': True}, 'error_message': {'readonly': True}, + 'last_transfer_size': {'readonly': True}, + 'last_transfer_type': {'readonly': True}, + 'total_transfer_bytes': {'readonly': True}, } _attribute_map = { @@ -635,6 +649,9 @@ class BackupStatus(msrest.serialization.Model): 'mirror_state': {'key': 'mirrorState', 'type': 'str'}, 'unhealthy_reason': {'key': 'unhealthyReason', 'type': 'str'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'last_transfer_size': {'key': 'lastTransferSize', 'type': 'long'}, + 'last_transfer_type': {'key': 'lastTransferType', 'type': 'str'}, + 'total_transfer_bytes': {'key': 'totalTransferBytes', 'type': 'long'}, } def __init__( @@ -647,6 +664,9 @@ def __init__( self.mirror_state = None self.unhealthy_reason = None self.error_message = None + self.last_transfer_size = None + self.last_transfer_type = None + self.total_transfer_bytes = None class BreakReplicationRequest(msrest.serialization.Model): @@ -702,6 +722,8 @@ class CapacityPool(msrest.serialization.Model): :vartype utilized_throughput_mibps: float :param qos_type: The qos type of the pool. Possible values include: "Auto", "Manual". :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 """ _validation = { @@ -730,6 +752,7 @@ class CapacityPool(msrest.serialization.Model): 'total_throughput_mibps': {'key': 'properties.totalThroughputMibps', 'type': 'float'}, 'utilized_throughput_mibps': {'key': 'properties.utilizedThroughputMibps', 'type': 'float'}, 'qos_type': {'key': 'properties.qosType', 'type': 'str'}, + 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, } def __init__( @@ -749,6 +772,7 @@ def __init__( 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) class CapacityPoolList(msrest.serialization.Model): @@ -978,6 +1002,11 @@ class ExportPolicyRule(msrest.serialization.Model): :type allowed_clients: str :param has_root_access: Has root access to volume. :type has_root_access: bool + :param chown_mode: This parameter specifies who is authorized to change the ownership of a + file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root + users can change ownership of files that they own. Possible values include: "Restricted", + "Unrestricted". Default value: "Restricted". + :type chown_mode: str or ~azure.mgmt.netapp.models.ChownMode """ _attribute_map = { @@ -995,6 +1024,7 @@ class ExportPolicyRule(msrest.serialization.Model): 'nfsv41': {'key': 'nfsv41', 'type': 'bool'}, 'allowed_clients': {'key': 'allowedClients', 'type': 'str'}, 'has_root_access': {'key': 'hasRootAccess', 'type': 'bool'}, + 'chown_mode': {'key': 'chownMode', 'type': 'str'}, } def __init__( @@ -1016,6 +1046,38 @@ def __init__( self.nfsv41 = kwargs.get('nfsv41', None) self.allowed_clients = kwargs.get('allowed_clients', None) self.has_root_access = kwargs.get('has_root_access', True) + self.chown_mode = kwargs.get('chown_mode', "Restricted") + + +class FilePathAvailabilityRequest(msrest.serialization.Model): + """File path availability request content - availability is based on the name and the subnetId. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. File path to verify. + :type name: str + :param subnet_id: Required. The Azure Resource URI for a delegated subnet. Must have the + delegation Microsoft.NetApp/volumes. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(FilePathAvailabilityRequest, self).__init__(**kwargs) + self.name = kwargs['name'] + self.subnet_id = kwargs['subnet_id'] class HourlySchedule(msrest.serialization.Model): @@ -1678,6 +1740,58 @@ def __init__( self.resource_group = kwargs['resource_group'] +class RestoreStatus(msrest.serialization.Model): + """Restore status. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar healthy: Restore health status. + :vartype healthy: bool + :ivar relationship_status: Status of the restore SnapMirror relationship. Possible values + include: "Idle", "Transferring". + :vartype relationship_status: str or ~azure.mgmt.netapp.models.RelationshipStatus + :ivar mirror_state: The status of the restore. Possible values include: "Uninitialized", + "Mirrored", "Broken". + :vartype mirror_state: str or ~azure.mgmt.netapp.models.MirrorState + :ivar unhealthy_reason: Reason for the unhealthy restore relationship. + :vartype unhealthy_reason: str + :ivar error_message: Displays error message if the restore is in an error state. + :vartype error_message: str + :ivar total_transfer_bytes: Displays the total bytes transferred. + :vartype total_transfer_bytes: long + """ + + _validation = { + 'healthy': {'readonly': True}, + 'relationship_status': {'readonly': True}, + 'mirror_state': {'readonly': True}, + 'unhealthy_reason': {'readonly': True}, + 'error_message': {'readonly': True}, + 'total_transfer_bytes': {'readonly': True}, + } + + _attribute_map = { + 'healthy': {'key': 'healthy', 'type': 'bool'}, + 'relationship_status': {'key': 'relationshipStatus', 'type': 'str'}, + 'mirror_state': {'key': 'mirrorState', 'type': 'str'}, + 'unhealthy_reason': {'key': 'unhealthyReason', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'total_transfer_bytes': {'key': 'totalTransferBytes', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(RestoreStatus, self).__init__(**kwargs) + self.healthy = None + self.relationship_status = None + self.mirror_state = None + self.unhealthy_reason = None + self.error_message = None + self.total_transfer_bytes = None + + class ServiceSpecification(msrest.serialization.Model): """One property of operation, include metric specifications. @@ -2198,6 +2312,18 @@ class Volume(msrest.serialization.Model): :type encryption_key_source: str :param ldap_enabled: Specifies whether LDAP is enabled or not for a given NFS volume. :type ldap_enabled: bool + :param cool_access: Specifies whether Cool Access(tiering) is enabled for the volume. + :type cool_access: bool + :param coolness_period: Specifies the number of days after which data that is not accessed by + clients will be tiered. + :type coolness_period: int + :param unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format. + First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second + digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third + selects permissions for other users in the same group. the fourth for other users not in the + group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other + users. + :type unix_permissions: str """ _validation = { @@ -2215,6 +2341,8 @@ class Volume(msrest.serialization.Model): 'subnet_id': {'required': True}, 'mount_targets': {'readonly': True}, 'throughput_mibps': {'maximum': 4500, 'minimum': 0}, + 'coolness_period': {'maximum': 63, 'minimum': 7}, + 'unix_permissions': {'max_length': 4, 'min_length': 4}, } _attribute_map = { @@ -2246,6 +2374,9 @@ class Volume(msrest.serialization.Model): 'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'}, 'encryption_key_source': {'key': 'properties.encryptionKeySource', 'type': 'str'}, 'ldap_enabled': {'key': 'properties.ldapEnabled', 'type': 'bool'}, + 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, + 'coolness_period': {'key': 'properties.coolnessPeriod', 'type': 'int'}, + 'unix_permissions': {'key': 'properties.unixPermissions', 'type': 'str'}, } def __init__( @@ -2281,6 +2412,9 @@ def __init__( self.throughput_mibps = kwargs.get('throughput_mibps', 0) self.encryption_key_source = kwargs.get('encryption_key_source', None) 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', "0770") class VolumeBackupProperties(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 2eee74964e20..624b8531391c 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 @@ -67,6 +67,9 @@ class ActiveDirectory(msrest.serialization.Model): :param backup_operators: Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without domain specifier. :type backup_operators: list[str] + :param administrators: Users to be added to the Built-in Administrators active directory group. + A list of unique usernames without domain specifier. + :type administrators: list[str] :param kdc_ip: kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos volume. :type kdc_ip: str @@ -114,6 +117,7 @@ class ActiveDirectory(msrest.serialization.Model): 'organizational_unit': {'key': 'organizationalUnit', 'type': 'str'}, 'site': {'key': 'site', 'type': 'str'}, 'backup_operators': {'key': 'backupOperators', 'type': '[str]'}, + 'administrators': {'key': 'administrators', 'type': '[str]'}, 'kdc_ip': {'key': 'kdcIP', 'type': 'str'}, 'ad_name': {'key': 'adName', 'type': 'str'}, 'server_root_ca_certificate': {'key': 'serverRootCACertificate', 'type': 'str'}, @@ -136,6 +140,7 @@ def __init__( organizational_unit: Optional[str] = "CN=Computers", site: Optional[str] = None, backup_operators: Optional[List[str]] = None, + administrators: Optional[List[str]] = None, kdc_ip: Optional[str] = None, ad_name: Optional[str] = None, server_root_ca_certificate: Optional[str] = None, @@ -158,6 +163,7 @@ def __init__( self.organizational_unit = organizational_unit self.site = site self.backup_operators = backup_operators + self.administrators = administrators self.kdc_ip = kdc_ip self.ad_name = ad_name self.server_root_ca_certificate = server_root_ca_certificate @@ -688,6 +694,12 @@ class BackupStatus(msrest.serialization.Model): :vartype unhealthy_reason: str :ivar error_message: Displays error message if the backup is in an error state. :vartype error_message: str + :ivar last_transfer_size: Displays the last transfer size. + :vartype last_transfer_size: long + :ivar last_transfer_type: Displays the last transfer type. + :vartype last_transfer_type: str + :ivar total_transfer_bytes: Displays the total bytes transferred. + :vartype total_transfer_bytes: long """ _validation = { @@ -696,6 +708,9 @@ class BackupStatus(msrest.serialization.Model): 'mirror_state': {'readonly': True}, 'unhealthy_reason': {'readonly': True}, 'error_message': {'readonly': True}, + 'last_transfer_size': {'readonly': True}, + 'last_transfer_type': {'readonly': True}, + 'total_transfer_bytes': {'readonly': True}, } _attribute_map = { @@ -704,6 +719,9 @@ class BackupStatus(msrest.serialization.Model): 'mirror_state': {'key': 'mirrorState', 'type': 'str'}, 'unhealthy_reason': {'key': 'unhealthyReason', 'type': 'str'}, 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'last_transfer_size': {'key': 'lastTransferSize', 'type': 'long'}, + 'last_transfer_type': {'key': 'lastTransferType', 'type': 'str'}, + 'total_transfer_bytes': {'key': 'totalTransferBytes', 'type': 'long'}, } def __init__( @@ -716,6 +734,9 @@ def __init__( self.mirror_state = None self.unhealthy_reason = None self.error_message = None + self.last_transfer_size = None + self.last_transfer_type = None + self.total_transfer_bytes = None class BreakReplicationRequest(msrest.serialization.Model): @@ -773,6 +794,8 @@ class CapacityPool(msrest.serialization.Model): :vartype utilized_throughput_mibps: float :param qos_type: The qos type of the pool. Possible values include: "Auto", "Manual". :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 """ _validation = { @@ -801,6 +824,7 @@ class CapacityPool(msrest.serialization.Model): 'total_throughput_mibps': {'key': 'properties.totalThroughputMibps', 'type': 'float'}, 'utilized_throughput_mibps': {'key': 'properties.utilizedThroughputMibps', 'type': 'float'}, 'qos_type': {'key': 'properties.qosType', 'type': 'str'}, + 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, } def __init__( @@ -811,6 +835,7 @@ def __init__( service_level: Union[str, "ServiceLevel"], tags: Optional[Dict[str, str]] = None, qos_type: Optional[Union[str, "QosType"]] = None, + cool_access: Optional[bool] = False, **kwargs ): super(CapacityPool, self).__init__(**kwargs) @@ -826,6 +851,7 @@ def __init__( self.total_throughput_mibps = None self.utilized_throughput_mibps = None self.qos_type = qos_type + self.cool_access = cool_access class CapacityPoolList(msrest.serialization.Model): @@ -1078,6 +1104,11 @@ class ExportPolicyRule(msrest.serialization.Model): :type allowed_clients: str :param has_root_access: Has root access to volume. :type has_root_access: bool + :param chown_mode: This parameter specifies who is authorized to change the ownership of a + file. restricted - Only root user can change the ownership of the file. unrestricted - Non-root + users can change ownership of files that they own. Possible values include: "Restricted", + "Unrestricted". Default value: "Restricted". + :type chown_mode: str or ~azure.mgmt.netapp.models.ChownMode """ _attribute_map = { @@ -1095,6 +1126,7 @@ class ExportPolicyRule(msrest.serialization.Model): 'nfsv41': {'key': 'nfsv41', 'type': 'bool'}, 'allowed_clients': {'key': 'allowedClients', 'type': 'str'}, 'has_root_access': {'key': 'hasRootAccess', 'type': 'bool'}, + 'chown_mode': {'key': 'chownMode', 'type': 'str'}, } def __init__( @@ -1114,6 +1146,7 @@ def __init__( nfsv41: Optional[bool] = None, allowed_clients: Optional[str] = None, has_root_access: Optional[bool] = True, + chown_mode: Optional[Union[str, "ChownMode"]] = "Restricted", **kwargs ): super(ExportPolicyRule, self).__init__(**kwargs) @@ -1131,6 +1164,41 @@ def __init__( self.nfsv41 = nfsv41 self.allowed_clients = allowed_clients self.has_root_access = has_root_access + self.chown_mode = chown_mode + + +class FilePathAvailabilityRequest(msrest.serialization.Model): + """File path availability request content - availability is based on the name and the subnetId. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. File path to verify. + :type name: str + :param subnet_id: Required. The Azure Resource URI for a delegated subnet. Must have the + delegation Microsoft.NetApp/volumes. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + subnet_id: str, + **kwargs + ): + super(FilePathAvailabilityRequest, self).__init__(**kwargs) + self.name = name + self.subnet_id = subnet_id class HourlySchedule(msrest.serialization.Model): @@ -1870,6 +1938,58 @@ def __init__( self.resource_group = resource_group +class RestoreStatus(msrest.serialization.Model): + """Restore status. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar healthy: Restore health status. + :vartype healthy: bool + :ivar relationship_status: Status of the restore SnapMirror relationship. Possible values + include: "Idle", "Transferring". + :vartype relationship_status: str or ~azure.mgmt.netapp.models.RelationshipStatus + :ivar mirror_state: The status of the restore. Possible values include: "Uninitialized", + "Mirrored", "Broken". + :vartype mirror_state: str or ~azure.mgmt.netapp.models.MirrorState + :ivar unhealthy_reason: Reason for the unhealthy restore relationship. + :vartype unhealthy_reason: str + :ivar error_message: Displays error message if the restore is in an error state. + :vartype error_message: str + :ivar total_transfer_bytes: Displays the total bytes transferred. + :vartype total_transfer_bytes: long + """ + + _validation = { + 'healthy': {'readonly': True}, + 'relationship_status': {'readonly': True}, + 'mirror_state': {'readonly': True}, + 'unhealthy_reason': {'readonly': True}, + 'error_message': {'readonly': True}, + 'total_transfer_bytes': {'readonly': True}, + } + + _attribute_map = { + 'healthy': {'key': 'healthy', 'type': 'bool'}, + 'relationship_status': {'key': 'relationshipStatus', 'type': 'str'}, + 'mirror_state': {'key': 'mirrorState', 'type': 'str'}, + 'unhealthy_reason': {'key': 'unhealthyReason', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + 'total_transfer_bytes': {'key': 'totalTransferBytes', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(RestoreStatus, self).__init__(**kwargs) + self.healthy = None + self.relationship_status = None + self.mirror_state = None + self.unhealthy_reason = None + self.error_message = None + self.total_transfer_bytes = None + + class ServiceSpecification(msrest.serialization.Model): """One property of operation, include metric specifications. @@ -2436,6 +2556,18 @@ class Volume(msrest.serialization.Model): :type encryption_key_source: str :param ldap_enabled: Specifies whether LDAP is enabled or not for a given NFS volume. :type ldap_enabled: bool + :param cool_access: Specifies whether Cool Access(tiering) is enabled for the volume. + :type cool_access: bool + :param coolness_period: Specifies the number of days after which data that is not accessed by + clients will be tiered. + :type coolness_period: int + :param unix_permissions: UNIX permissions for NFS volume accepted in octal 4 digit format. + First digit selects the set user ID(4), set group ID (2) and sticky (1) attributes. Second + digit selects permission for the owner of the file: read (4), write (2) and execute (1). Third + selects permissions for other users in the same group. the fourth for other users not in the + group. 0755 - gives read/write/execute permissions to owner and read/execute to group and other + users. + :type unix_permissions: str """ _validation = { @@ -2453,6 +2585,8 @@ class Volume(msrest.serialization.Model): 'subnet_id': {'required': True}, 'mount_targets': {'readonly': True}, 'throughput_mibps': {'maximum': 4500, 'minimum': 0}, + 'coolness_period': {'maximum': 63, 'minimum': 7}, + 'unix_permissions': {'max_length': 4, 'min_length': 4}, } _attribute_map = { @@ -2484,6 +2618,9 @@ class Volume(msrest.serialization.Model): 'throughput_mibps': {'key': 'properties.throughputMibps', 'type': 'float'}, 'encryption_key_source': {'key': 'properties.encryptionKeySource', 'type': 'str'}, 'ldap_enabled': {'key': 'properties.ldapEnabled', 'type': 'bool'}, + 'cool_access': {'key': 'properties.coolAccess', 'type': 'bool'}, + 'coolness_period': {'key': 'properties.coolnessPeriod', 'type': 'int'}, + 'unix_permissions': {'key': 'properties.unixPermissions', 'type': 'str'}, } def __init__( @@ -2510,6 +2647,9 @@ def __init__( throughput_mibps: Optional[float] = 0, encryption_key_source: Optional[str] = None, ldap_enabled: Optional[bool] = False, + cool_access: Optional[bool] = False, + coolness_period: Optional[int] = None, + unix_permissions: Optional[str] = "0770", **kwargs ): super(Volume, self).__init__(**kwargs) @@ -2541,6 +2681,9 @@ def __init__( self.throughput_mibps = throughput_mibps self.encryption_key_source = encryption_key_source self.ldap_enabled = ldap_enabled + self.cool_access = cool_access + self.coolness_period = coolness_period + self.unix_permissions = unix_permissions class VolumeBackupProperties(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 3a71b057fa6f..a81fa38d19fd 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 @@ -68,6 +68,15 @@ class CheckQuotaNameResourceTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS = "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots" +class ChownMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """This parameter specifies who is authorized to change the ownership of a file. restricted - Only + root user can change the ownership of the file. unrestricted - Non-root users can change + ownership of files that they own. + """ + + RESTRICTED = "Restricted" + UNRESTRICTED = "Unrestricted" + class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of identity that created the resource. """ 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 0a0c35c388a0..d3266758953d 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 b43738b8df86..caac0dfd0e2a 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 @@ -69,7 +69,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -145,7 +145,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -194,7 +194,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -325,7 +325,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -436,7 +436,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 b263832ffb37..cb51ab26052c 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 2c878df13fa4..fa0a90f4ca5e 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-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -116,6 +116,75 @@ def get_status( return deserialized get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/backupStatus'} # type: ignore + def get_volume_restore_status( + self, + resource_group_name, # type: str + account_name, # type: str + pool_name, # type: str + volume_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.RestoreStatus" + """Get volume's restore status. + + Get the status of the restore for a volume. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param account_name: The name of the NetApp account. + :type account_name: str + :param pool_name: The name of the capacity pool. + :type pool_name: str + :param volume_name: The name of the volume. + :type volume_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestoreStatus, or the result of cls(response) + :rtype: ~azure.mgmt.netapp.models.RestoreStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestoreStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-04-01" + accept = "application/json" + + # Construct URL + url = self.get_volume_restore_status.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str', max_length=64, min_length=1, pattern=r'^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$'), + 'volumeName': self._serialize.url("volume_name", volume_name, 'str', max_length=64, min_length=1, pattern=r'^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$'), + } + 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') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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) + + deserialized = self._deserialize('RestoreStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_volume_restore_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus'} # type: ignore + def list( self, resource_group_name, # type: str @@ -147,7 +216,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -235,7 +304,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -290,7 +359,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -444,7 +513,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -599,7 +668,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 938ca4ca08b1..bd0eb5cb555e 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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -121,8 +121,7 @@ def check_file_path_availability( self, location, # type: str name, # type: str - type, # type: Union[str, "_models.CheckNameResourceTypes"] - resource_group, # type: str + subnet_id, # type: str **kwargs # type: Any ): # type: (...) -> "_models.CheckAvailabilityResponse" @@ -132,12 +131,11 @@ def check_file_path_availability( :param location: The location. :type location: str - :param name: Resource name to verify. + :param name: File path to verify. :type name: str - :param type: Resource type used for verification. - :type type: str or ~azure.mgmt.netapp.models.CheckNameResourceTypes - :param resource_group: Resource group name. - :type resource_group: str + :param subnet_id: The Azure Resource URI for a delegated subnet. Must have the delegation + Microsoft.NetApp/volumes. + :type subnet_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckAvailabilityResponse, or the result of cls(response) :rtype: ~azure.mgmt.netapp.models.CheckAvailabilityResponse @@ -149,8 +147,8 @@ def check_file_path_availability( } error_map.update(kwargs.pop('error_map', {})) - _body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group) - api_version = "2021-02-01" + _body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id) + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -172,7 +170,7 @@ def check_file_path_availability( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_body, 'ResourceNameAvailabilityRequest') + body_content = self._serialize.body(_body, 'FilePathAvailabilityRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -223,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-02-01" + api_version = "2021-04-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 9c4e262e161f..bb05b1c9e9ad 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-02-01" + api_version = "2021-04-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 ba05d830edfc..c005f1775b8c 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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 34dc8144c721..16e4e59b9a84 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-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -148,7 +148,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -214,7 +214,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -410,7 +410,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -540,7 +540,7 @@ def list_volumes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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 8b73cb379136..9b4443e14554 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-02-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -166,7 +166,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -372,7 +372,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -522,7 +522,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-02-01" + api_version = "2021-04-01" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore 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 a16cb0803fcd..3d0dd9af6a64 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-02-01" + api_version = "2021-04-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 ea95bce8fa57..cb69ec8792b6 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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-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-02-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") # Construct URL