azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/mgmt/storage/__init__.py +19 -7
- azure/mgmt/storage/_configuration.py +27 -29
- azure/mgmt/storage/{v2016_01_01/models/_patch.py → _patch.py} +5 -4
- azure/mgmt/storage/_storage_management_client.py +184 -499
- azure/mgmt/storage/{v2016_01_01/_version.py → _utils/__init__.py} +0 -3
- azure/mgmt/storage/{_serialization.py → _utils/serialization.py} +46 -131
- azure/mgmt/storage/_version.py +1 -1
- azure/mgmt/storage/aio/__init__.py +21 -2
- azure/mgmt/storage/aio/_configuration.py +27 -29
- azure/mgmt/storage/{v2017_10_01/aio/operations → aio}/_patch.py +5 -4
- azure/mgmt/storage/aio/_storage_management_client.py +188 -497
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_containers_operations.py +66 -69
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +26 -34
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +20 -22
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +14 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +24 -27
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +36 -39
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +26 -29
- azure/mgmt/storage/{v2019_06_01/aio → aio}/operations/_management_policies_operations.py +23 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_network_security_perimeter_configurations_operations.py +16 -19
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +21 -23
- azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +12 -15
- azure/mgmt/storage/{v2016_01_01/aio → aio}/operations/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py +21 -23
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_link_resources_operations.py +11 -13
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_skus_operations.py +12 -15
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +80 -95
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +13 -15
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +13 -15
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +30 -39
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +27 -29
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_usages_operations.py +12 -14
- azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +855 -910
- azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +81 -84
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +31 -39
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +24 -27
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +16 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +32 -34
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +30 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +44 -47
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +27 -34
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +20 -22
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +12 -15
- azure/mgmt/storage/operations/_patch.py +21 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +13 -15
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +12 -15
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +97 -105
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +14 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +14 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +36 -47
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +13 -16
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +11 -6
- azure_mgmt_storage-23.0.0.dist-info/RECORD +73 -0
- azure/mgmt/storage/models.py +0 -8
- azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
- azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
- azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
- azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
- azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
- azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
- azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
- azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2016_01_01/py.typed +0 -1
- azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
- azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
- azure/mgmt/storage/v2017_10_01/_version.py +0 -9
- azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
- azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
- azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
- azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
- azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
- azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
- azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/py.typed +0 -1
- azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
- azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
- azure/mgmt/storage/v2019_06_01/_version.py +0 -9
- azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
- azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
- azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
- azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
- azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
- azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
- azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
- azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
- azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
- azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
- azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
- azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
- azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
- azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
- azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
- azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
- azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
- azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
- azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
- azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
- azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
- azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
- azure/mgmt/storage/v2019_06_01/py.typed +0 -1
- azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
- azure/mgmt/storage/v2024_01_01/_version.py +0 -9
- azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
- azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
- azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/py.typed +0 -1
- azure_mgmt_storage-22.2.0.dist-info/RECORD +0 -183
- /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
- /azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/top_level.txt +0 -0
azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py
RENAMED
@@ -1,3 +1,4 @@
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression
|
1
2
|
# coding=utf-8
|
2
3
|
# --------------------------------------------------------------------------
|
3
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -5,11 +6,12 @@
|
|
5
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
8
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
8
10
|
from io import IOBase
|
9
|
-
import sys
|
10
11
|
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
|
11
12
|
import urllib.parse
|
12
13
|
|
14
|
+
from azure.core import PipelineClient
|
13
15
|
from azure.core.exceptions import (
|
14
16
|
ClientAuthenticationError,
|
15
17
|
HttpResponseError,
|
@@ -26,12 +28,9 @@ from azure.core.utils import case_insensitive_dict
|
|
26
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
27
29
|
|
28
30
|
from .. import models as _models
|
29
|
-
from
|
31
|
+
from .._configuration import StorageManagementClientConfiguration
|
32
|
+
from .._utils.serialization import Deserializer, Serializer
|
30
33
|
|
31
|
-
if sys.version_info >= (3, 9):
|
32
|
-
from collections.abc import MutableMapping
|
33
|
-
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
35
34
|
T = TypeVar("T")
|
36
35
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
37
36
|
|
@@ -56,7 +55,7 @@ def build_get_request(
|
|
56
55
|
_url = kwargs.pop(
|
57
56
|
"template_url",
|
58
57
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
|
59
|
-
)
|
58
|
+
)
|
60
59
|
path_format_arguments = {
|
61
60
|
"resourceGroupName": _SERIALIZER.url(
|
62
61
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -97,7 +96,7 @@ def build_create_or_update_request(
|
|
97
96
|
_url = kwargs.pop(
|
98
97
|
"template_url",
|
99
98
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
|
100
|
-
)
|
99
|
+
)
|
101
100
|
path_format_arguments = {
|
102
101
|
"resourceGroupName": _SERIALIZER.url(
|
103
102
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -139,7 +138,7 @@ def build_delete_request(
|
|
139
138
|
_url = kwargs.pop(
|
140
139
|
"template_url",
|
141
140
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
|
142
|
-
)
|
141
|
+
)
|
143
142
|
path_format_arguments = {
|
144
143
|
"resourceGroupName": _SERIALIZER.url(
|
145
144
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -173,7 +172,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
|
|
173
172
|
_url = kwargs.pop(
|
174
173
|
"template_url",
|
175
174
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies",
|
176
|
-
)
|
175
|
+
)
|
177
176
|
path_format_arguments = {
|
178
177
|
"resourceGroupName": _SERIALIZER.url(
|
179
178
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -201,7 +200,7 @@ class BlobInventoryPoliciesOperations:
|
|
201
200
|
**DO NOT** instantiate this class directly.
|
202
201
|
|
203
202
|
Instead, you should access the following operations through
|
204
|
-
:class:`~azure.mgmt.storage.
|
203
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
205
204
|
:attr:`blob_inventory_policies` attribute.
|
206
205
|
"""
|
207
206
|
|
@@ -209,11 +208,10 @@ class BlobInventoryPoliciesOperations:
|
|
209
208
|
|
210
209
|
def __init__(self, *args, **kwargs):
|
211
210
|
input_args = list(args)
|
212
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
213
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
214
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
215
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
216
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
211
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
212
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
213
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
214
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
217
215
|
|
218
216
|
@distributed_trace
|
219
217
|
def get(
|
@@ -234,10 +232,9 @@ class BlobInventoryPoliciesOperations:
|
|
234
232
|
:type account_name: str
|
235
233
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
236
234
|
should always be 'default'. "default" Required.
|
237
|
-
:type blob_inventory_policy_name: str or
|
238
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
235
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
239
236
|
:return: BlobInventoryPolicy or the result of cls(response)
|
240
|
-
:rtype: ~azure.mgmt.storage.
|
237
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
241
238
|
:raises ~azure.core.exceptions.HttpResponseError:
|
242
239
|
"""
|
243
240
|
error_map: MutableMapping = {
|
@@ -251,7 +248,7 @@ class BlobInventoryPoliciesOperations:
|
|
251
248
|
_headers = kwargs.pop("headers", {}) or {}
|
252
249
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
253
250
|
|
254
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
251
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
255
252
|
cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
|
256
253
|
|
257
254
|
_request = build_get_request(
|
@@ -305,15 +302,14 @@ class BlobInventoryPoliciesOperations:
|
|
305
302
|
:type account_name: str
|
306
303
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
307
304
|
should always be 'default'. "default" Required.
|
308
|
-
:type blob_inventory_policy_name: str or
|
309
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
305
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
310
306
|
:param properties: The blob inventory policy set to a storage account. Required.
|
311
|
-
:type properties: ~azure.mgmt.storage.
|
307
|
+
:type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
312
308
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
313
309
|
Default value is "application/json".
|
314
310
|
:paramtype content_type: str
|
315
311
|
:return: BlobInventoryPolicy or the result of cls(response)
|
316
|
-
:rtype: ~azure.mgmt.storage.
|
312
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
317
313
|
:raises ~azure.core.exceptions.HttpResponseError:
|
318
314
|
"""
|
319
315
|
|
@@ -339,15 +335,14 @@ class BlobInventoryPoliciesOperations:
|
|
339
335
|
:type account_name: str
|
340
336
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
341
337
|
should always be 'default'. "default" Required.
|
342
|
-
:type blob_inventory_policy_name: str or
|
343
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
338
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
344
339
|
:param properties: The blob inventory policy set to a storage account. Required.
|
345
340
|
:type properties: IO[bytes]
|
346
341
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
347
342
|
Default value is "application/json".
|
348
343
|
:paramtype content_type: str
|
349
344
|
:return: BlobInventoryPolicy or the result of cls(response)
|
350
|
-
:rtype: ~azure.mgmt.storage.
|
345
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
351
346
|
:raises ~azure.core.exceptions.HttpResponseError:
|
352
347
|
"""
|
353
348
|
|
@@ -371,13 +366,12 @@ class BlobInventoryPoliciesOperations:
|
|
371
366
|
:type account_name: str
|
372
367
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
373
368
|
should always be 'default'. "default" Required.
|
374
|
-
:type blob_inventory_policy_name: str or
|
375
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
369
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
376
370
|
:param properties: The blob inventory policy set to a storage account. Is either a
|
377
371
|
BlobInventoryPolicy type or a IO[bytes] type. Required.
|
378
|
-
:type properties: ~azure.mgmt.storage.
|
372
|
+
:type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy or IO[bytes]
|
379
373
|
:return: BlobInventoryPolicy or the result of cls(response)
|
380
|
-
:rtype: ~azure.mgmt.storage.
|
374
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
381
375
|
:raises ~azure.core.exceptions.HttpResponseError:
|
382
376
|
"""
|
383
377
|
error_map: MutableMapping = {
|
@@ -391,7 +385,7 @@ class BlobInventoryPoliciesOperations:
|
|
391
385
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
392
386
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
393
387
|
|
394
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
388
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
395
389
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
396
390
|
cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
|
397
391
|
|
@@ -454,8 +448,7 @@ class BlobInventoryPoliciesOperations:
|
|
454
448
|
:type account_name: str
|
455
449
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
456
450
|
should always be 'default'. "default" Required.
|
457
|
-
:type blob_inventory_policy_name: str or
|
458
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
451
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
459
452
|
:return: None or the result of cls(response)
|
460
453
|
:rtype: None
|
461
454
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -471,7 +464,7 @@ class BlobInventoryPoliciesOperations:
|
|
471
464
|
_headers = kwargs.pop("headers", {}) or {}
|
472
465
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
473
466
|
|
474
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
467
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
475
468
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
476
469
|
|
477
470
|
_request = build_delete_request(
|
@@ -513,14 +506,13 @@ class BlobInventoryPoliciesOperations:
|
|
513
506
|
lower-case letters only. Required.
|
514
507
|
:type account_name: str
|
515
508
|
:return: An iterator like instance of either BlobInventoryPolicy or the result of cls(response)
|
516
|
-
:rtype:
|
517
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy]
|
509
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.BlobInventoryPolicy]
|
518
510
|
:raises ~azure.core.exceptions.HttpResponseError:
|
519
511
|
"""
|
520
512
|
_headers = kwargs.pop("headers", {}) or {}
|
521
513
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
522
514
|
|
523
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
515
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
524
516
|
cls: ClsType[_models.ListBlobInventoryPolicy] = kwargs.pop("cls", None)
|
525
517
|
|
526
518
|
error_map: MutableMapping = {
|
@@ -553,7 +545,7 @@ class BlobInventoryPoliciesOperations:
|
|
553
545
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
554
546
|
}
|
555
547
|
)
|
556
|
-
_next_request_params["api-version"] = self.
|
548
|
+
_next_request_params["api-version"] = self._config.api_version
|
557
549
|
_request = HttpRequest(
|
558
550
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
559
551
|
)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression
|
1
2
|
# coding=utf-8
|
2
3
|
# --------------------------------------------------------------------------
|
3
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -5,11 +6,12 @@
|
|
5
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
8
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
8
10
|
from io import IOBase
|
9
|
-
import sys
|
10
11
|
from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, TypeVar, Union, overload
|
11
12
|
import urllib.parse
|
12
13
|
|
14
|
+
from azure.core import PipelineClient
|
13
15
|
from azure.core.exceptions import (
|
14
16
|
ClientAuthenticationError,
|
15
17
|
HttpResponseError,
|
@@ -26,12 +28,9 @@ from azure.core.utils import case_insensitive_dict
|
|
26
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
27
29
|
|
28
30
|
from .. import models as _models
|
29
|
-
from
|
31
|
+
from .._configuration import StorageManagementClientConfiguration
|
32
|
+
from .._utils.serialization import Deserializer, Serializer
|
30
33
|
|
31
|
-
if sys.version_info >= (3, 9):
|
32
|
-
from collections.abc import MutableMapping
|
33
|
-
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
35
34
|
T = TypeVar("T")
|
36
35
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
37
36
|
|
@@ -50,7 +49,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
|
|
50
49
|
_url = kwargs.pop(
|
51
50
|
"template_url",
|
52
51
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices",
|
53
|
-
)
|
52
|
+
)
|
54
53
|
path_format_arguments = {
|
55
54
|
"resourceGroupName": _SERIALIZER.url(
|
56
55
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -87,7 +86,7 @@ def build_set_service_properties_request(
|
|
87
86
|
_url = kwargs.pop(
|
88
87
|
"template_url",
|
89
88
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
|
90
|
-
)
|
89
|
+
)
|
91
90
|
path_format_arguments = {
|
92
91
|
"resourceGroupName": _SERIALIZER.url(
|
93
92
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -126,7 +125,7 @@ def build_get_service_properties_request(
|
|
126
125
|
_url = kwargs.pop(
|
127
126
|
"template_url",
|
128
127
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
|
129
|
-
)
|
128
|
+
)
|
130
129
|
path_format_arguments = {
|
131
130
|
"resourceGroupName": _SERIALIZER.url(
|
132
131
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -155,7 +154,7 @@ class BlobServicesOperations:
|
|
155
154
|
**DO NOT** instantiate this class directly.
|
156
155
|
|
157
156
|
Instead, you should access the following operations through
|
158
|
-
:class:`~azure.mgmt.storage.
|
157
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
159
158
|
:attr:`blob_services` attribute.
|
160
159
|
"""
|
161
160
|
|
@@ -163,11 +162,10 @@ class BlobServicesOperations:
|
|
163
162
|
|
164
163
|
def __init__(self, *args, **kwargs):
|
165
164
|
input_args = list(args)
|
166
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
167
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
168
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
169
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
170
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
165
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
166
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
167
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
168
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
171
169
|
|
172
170
|
@distributed_trace
|
173
171
|
def list(
|
@@ -184,14 +182,13 @@ class BlobServicesOperations:
|
|
184
182
|
:type account_name: str
|
185
183
|
:return: An iterator like instance of either BlobServiceProperties or the result of
|
186
184
|
cls(response)
|
187
|
-
:rtype:
|
188
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties]
|
185
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.BlobServiceProperties]
|
189
186
|
:raises ~azure.core.exceptions.HttpResponseError:
|
190
187
|
"""
|
191
188
|
_headers = kwargs.pop("headers", {}) or {}
|
192
189
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
193
190
|
|
194
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
191
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
195
192
|
cls: ClsType[_models.BlobServiceItems] = kwargs.pop("cls", None)
|
196
193
|
|
197
194
|
error_map: MutableMapping = {
|
@@ -224,7 +221,7 @@ class BlobServicesOperations:
|
|
224
221
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
225
222
|
}
|
226
223
|
)
|
227
|
-
_next_request_params["api-version"] = self.
|
224
|
+
_next_request_params["api-version"] = self._config.api_version
|
228
225
|
_request = HttpRequest(
|
229
226
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
230
227
|
)
|
@@ -278,12 +275,12 @@ class BlobServicesOperations:
|
|
278
275
|
:type account_name: str
|
279
276
|
:param parameters: The properties of a storage account’s Blob service, including properties for
|
280
277
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Required.
|
281
|
-
:type parameters: ~azure.mgmt.storage.
|
278
|
+
:type parameters: ~azure.mgmt.storage.models.BlobServiceProperties
|
282
279
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
283
280
|
Default value is "application/json".
|
284
281
|
:paramtype content_type: str
|
285
282
|
:return: BlobServiceProperties or the result of cls(response)
|
286
|
-
:rtype: ~azure.mgmt.storage.
|
283
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
287
284
|
:raises ~azure.core.exceptions.HttpResponseError:
|
288
285
|
"""
|
289
286
|
|
@@ -314,7 +311,7 @@ class BlobServicesOperations:
|
|
314
311
|
Default value is "application/json".
|
315
312
|
:paramtype content_type: str
|
316
313
|
:return: BlobServiceProperties or the result of cls(response)
|
317
|
-
:rtype: ~azure.mgmt.storage.
|
314
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
318
315
|
:raises ~azure.core.exceptions.HttpResponseError:
|
319
316
|
"""
|
320
317
|
|
@@ -339,9 +336,9 @@ class BlobServicesOperations:
|
|
339
336
|
:param parameters: The properties of a storage account’s Blob service, including properties for
|
340
337
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a
|
341
338
|
BlobServiceProperties type or a IO[bytes] type. Required.
|
342
|
-
:type parameters: ~azure.mgmt.storage.
|
339
|
+
:type parameters: ~azure.mgmt.storage.models.BlobServiceProperties or IO[bytes]
|
343
340
|
:return: BlobServiceProperties or the result of cls(response)
|
344
|
-
:rtype: ~azure.mgmt.storage.
|
341
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
345
342
|
:raises ~azure.core.exceptions.HttpResponseError:
|
346
343
|
"""
|
347
344
|
error_map: MutableMapping = {
|
@@ -355,7 +352,7 @@ class BlobServicesOperations:
|
|
355
352
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
356
353
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
357
354
|
|
358
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
355
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
359
356
|
blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
|
360
357
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
361
358
|
cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
|
@@ -415,7 +412,7 @@ class BlobServicesOperations:
|
|
415
412
|
lower-case letters only. Required.
|
416
413
|
:type account_name: str
|
417
414
|
:return: BlobServiceProperties or the result of cls(response)
|
418
|
-
:rtype: ~azure.mgmt.storage.
|
415
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
419
416
|
:raises ~azure.core.exceptions.HttpResponseError:
|
420
417
|
"""
|
421
418
|
error_map: MutableMapping = {
|
@@ -429,7 +426,7 @@ class BlobServicesOperations:
|
|
429
426
|
_headers = kwargs.pop("headers", {}) or {}
|
430
427
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
431
428
|
|
432
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
429
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
433
430
|
blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
|
434
431
|
cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
|
435
432
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression
|
1
2
|
# coding=utf-8
|
2
3
|
# --------------------------------------------------------------------------
|
3
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -5,10 +6,11 @@
|
|
5
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
8
|
# --------------------------------------------------------------------------
|
8
|
-
import
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
10
11
|
import urllib.parse
|
11
12
|
|
13
|
+
from azure.core import PipelineClient
|
12
14
|
from azure.core.exceptions import (
|
13
15
|
ClientAuthenticationError,
|
14
16
|
HttpResponseError,
|
@@ -25,12 +27,9 @@ from azure.core.utils import case_insensitive_dict
|
|
25
27
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
26
28
|
|
27
29
|
from .. import models as _models
|
28
|
-
from
|
30
|
+
from .._configuration import StorageManagementClientConfiguration
|
31
|
+
from .._utils.serialization import Deserializer, Serializer
|
29
32
|
|
30
|
-
if sys.version_info >= (3, 9):
|
31
|
-
from collections.abc import MutableMapping
|
32
|
-
else:
|
33
|
-
from typing import MutableMapping # type: ignore
|
34
33
|
T = TypeVar("T")
|
35
34
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
36
35
|
|
@@ -73,7 +72,7 @@ def build_get_request(deleted_account_name: str, location: str, subscription_id:
|
|
73
72
|
_url = kwargs.pop(
|
74
73
|
"template_url",
|
75
74
|
"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}",
|
76
|
-
)
|
75
|
+
)
|
77
76
|
path_format_arguments = {
|
78
77
|
"deletedAccountName": _SERIALIZER.url(
|
79
78
|
"deleted_account_name", deleted_account_name, "str", max_length=24, min_length=3
|
@@ -99,7 +98,7 @@ class DeletedAccountsOperations:
|
|
99
98
|
**DO NOT** instantiate this class directly.
|
100
99
|
|
101
100
|
Instead, you should access the following operations through
|
102
|
-
:class:`~azure.mgmt.storage.
|
101
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
103
102
|
:attr:`deleted_accounts` attribute.
|
104
103
|
"""
|
105
104
|
|
@@ -107,24 +106,23 @@ class DeletedAccountsOperations:
|
|
107
106
|
|
108
107
|
def __init__(self, *args, **kwargs):
|
109
108
|
input_args = list(args)
|
110
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
111
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
112
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
113
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
114
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
109
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
110
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
111
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
112
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
115
113
|
|
116
114
|
@distributed_trace
|
117
115
|
def list(self, **kwargs: Any) -> Iterable["_models.DeletedAccount"]:
|
118
116
|
"""Lists deleted accounts under the subscription.
|
119
117
|
|
120
118
|
:return: An iterator like instance of either DeletedAccount or the result of cls(response)
|
121
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.
|
119
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.DeletedAccount]
|
122
120
|
:raises ~azure.core.exceptions.HttpResponseError:
|
123
121
|
"""
|
124
122
|
_headers = kwargs.pop("headers", {}) or {}
|
125
123
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
126
124
|
|
127
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
125
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
128
126
|
cls: ClsType[_models.DeletedAccountListResult] = kwargs.pop("cls", None)
|
129
127
|
|
130
128
|
error_map: MutableMapping = {
|
@@ -155,7 +153,7 @@ class DeletedAccountsOperations:
|
|
155
153
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
156
154
|
}
|
157
155
|
)
|
158
|
-
_next_request_params["api-version"] = self.
|
156
|
+
_next_request_params["api-version"] = self._config.api_version
|
159
157
|
_request = HttpRequest(
|
160
158
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
161
159
|
)
|
@@ -197,7 +195,7 @@ class DeletedAccountsOperations:
|
|
197
195
|
:param location: The location of the deleted storage account. Required.
|
198
196
|
:type location: str
|
199
197
|
:return: DeletedAccount or the result of cls(response)
|
200
|
-
:rtype: ~azure.mgmt.storage.
|
198
|
+
:rtype: ~azure.mgmt.storage.models.DeletedAccount
|
201
199
|
:raises ~azure.core.exceptions.HttpResponseError:
|
202
200
|
"""
|
203
201
|
error_map: MutableMapping = {
|
@@ -211,7 +209,7 @@ class DeletedAccountsOperations:
|
|
211
209
|
_headers = kwargs.pop("headers", {}) or {}
|
212
210
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
213
211
|
|
214
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
212
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
215
213
|
cls: ClsType[_models.DeletedAccount] = kwargs.pop("cls", None)
|
216
214
|
|
217
215
|
_request = build_get_request(
|