Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/netapp/azure-mgmt-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "bbe1ea8bf5aa6cfbfa8855e03dbb9a93f8266bcd",
"commit": "fd04bd893130075b78ed33a28a9bccf4712a8b95",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/netapp/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-05-01")
api_version: str = kwargs.pop("api_version", "2023-07-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
:vartype subvolumes: azure.mgmt.netapp.operations.SubvolumesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "11.0.0"
VERSION = "5.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-05-01")
api_version: str = kwargs.pop("api_version", "2023-07-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
:vartype subvolumes: azure.mgmt.netapp.aio.operations.SubvolumesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ async def get_next(next_link=None):

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -224,7 +225,8 @@ async def get_next(next_link=None):

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -285,7 +287,8 @@ async def get(self, resource_group_name: str, account_name: str, **kwargs: Any)

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("NetAppAccount", pipeline_response)

Expand Down Expand Up @@ -348,7 +351,8 @@ async def _create_or_update_initial(

if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if response.status_code == 200:
deserialized = self._deserialize("NetAppAccount", pipeline_response)
Expand Down Expand Up @@ -562,7 +566,8 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements

if response.status_code not in [202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if cls:
return cls(pipeline_response, None, {})
Expand Down Expand Up @@ -689,7 +694,8 @@ async def _update_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if response.status_code == 200:
deserialized = self._deserialize("NetAppAccount", pipeline_response)
Expand Down Expand Up @@ -902,7 +908,8 @@ async def _renew_credentials_initial( # pylint: disable=inconsistent-return-sta

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if cls:
return cls(pipeline_response, None, {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async def get_next(next_link=None):

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -209,7 +210,8 @@ async def get(

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("BackupPolicy", pipeline_response)

Expand Down Expand Up @@ -278,7 +280,8 @@ async def _create_initial(

if response.status_code not in [200, 201, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
if response.status_code == 200:
Expand Down Expand Up @@ -525,7 +528,8 @@ async def _update_initial(

if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if response.status_code == 200:
deserialized = self._deserialize("BackupPolicy", pipeline_response)
Expand Down Expand Up @@ -754,7 +758,8 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements

if response.status_code not in [200, 202, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

if cls:
return cls(pipeline_response, None, {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ async def get_volume_restore_status(

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("RestoreStatus", pipeline_response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def check_name_availability(

Check if a resource name is available.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param name: Resource name to verify. Required.
:type name: str
Expand Down Expand Up @@ -128,7 +128,8 @@ async def check_name_availability(

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("CheckAvailabilityResponse", pipeline_response)

Expand All @@ -149,7 +150,7 @@ async def check_file_path_availability(

Check if a file path is available.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param name: File path to verify. Required.
:type name: str
Expand Down Expand Up @@ -201,7 +202,8 @@ async def check_file_path_availability(

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("CheckAvailabilityResponse", pipeline_response)

Expand All @@ -227,7 +229,7 @@ async def check_quota_availability(

Check if a quota is available.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param name: Name of the resource to verify. Required.
:type name: str
Expand Down Expand Up @@ -283,7 +285,8 @@ async def check_quota_availability(

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("CheckAvailabilityResponse", pipeline_response)

Expand All @@ -302,7 +305,7 @@ async def query_region_info(self, location: str, **kwargs: Any) -> _models.Regio

Provides storage to network proximity and logical zone mapping information.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: RegionInfo or the result of cls(response)
Expand Down Expand Up @@ -343,7 +346,8 @@ async def query_region_info(self, location: str, **kwargs: Any) -> _models.Regio

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("RegionInfo", pipeline_response)

Expand All @@ -364,7 +368,7 @@ async def query_network_sibling_set(

Get details of the specified network sibling set.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param network_sibling_set_id: Network Sibling Set ID for a group of volumes sharing networking
resources in a subnet. Required.
Expand Down Expand Up @@ -523,7 +527,7 @@ async def begin_update_network_sibling_set(

Update the network features of the specified network sibling set.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param network_sibling_set_id: Network Sibling Set ID for a group of volumes sharing networking
resources in a subnet. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def list(self, location: str, **kwargs: Any) -> AsyncIterable["_models.Subscript

Get the default and current limits for quotas.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either SubscriptionQuotaItem or the result of
Expand Down Expand Up @@ -132,7 +132,8 @@ async def get_next(next_link=None):

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response

Expand All @@ -148,7 +149,7 @@ async def get(self, location: str, quota_limit_name: str, **kwargs: Any) -> _mod

Get the default and current subscription quota limit.

:param location: The name of Azure region. Required.
:param location: The name of the Azure region. Required.
:type location: str
:param quota_limit_name: The name of the Quota Limit. Required.
:type quota_limit_name: str
Expand Down Expand Up @@ -192,7 +193,8 @@ async def get(self, location: str, quota_limit_name: str, **kwargs: Any) -> _mod

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)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("SubscriptionQuotaItem", pipeline_response)

Expand Down
Loading