azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.1__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 +68 -84
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +28 -36
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +22 -24
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +16 -19
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +38 -41
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +28 -31
- 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 +18 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +23 -25
- azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +14 -17
- 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 +23 -25
- 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 +29 -32
- 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 +14 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +83 -111
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +38 -44
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +29 -31
- 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 +14 -16
- azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +857 -912
- 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 +84 -87
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +34 -42
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +35 -37
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +47 -50
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +28 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +15 -18
- azure/mgmt/storage/operations/_patch.py +21 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +15 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +101 -109
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +42 -53
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +16 -19
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/METADATA +17 -6
- azure_mgmt_storage-23.0.1.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.1.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/WHEEL +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/top_level.txt +0 -0
@@ -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
|
10
|
-
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
|
11
|
+
from typing import Any, Callable, Dict, IO, 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
|
|
@@ -53,7 +52,7 @@ def build_create_request(
|
|
53
52
|
_url = kwargs.pop(
|
54
53
|
"template_url",
|
55
54
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
|
56
|
-
)
|
55
|
+
)
|
57
56
|
path_format_arguments = {
|
58
57
|
"resourceGroupName": _SERIALIZER.url(
|
59
58
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -94,7 +93,7 @@ def build_update_request(
|
|
94
93
|
_url = kwargs.pop(
|
95
94
|
"template_url",
|
96
95
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
|
97
|
-
)
|
96
|
+
)
|
98
97
|
path_format_arguments = {
|
99
98
|
"resourceGroupName": _SERIALIZER.url(
|
100
99
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -134,7 +133,7 @@ def build_get_request(
|
|
134
133
|
_url = kwargs.pop(
|
135
134
|
"template_url",
|
136
135
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
|
137
|
-
)
|
136
|
+
)
|
138
137
|
path_format_arguments = {
|
139
138
|
"resourceGroupName": _SERIALIZER.url(
|
140
139
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -172,7 +171,7 @@ def build_delete_request(
|
|
172
171
|
_url = kwargs.pop(
|
173
172
|
"template_url",
|
174
173
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
|
175
|
-
)
|
174
|
+
)
|
176
175
|
path_format_arguments = {
|
177
176
|
"resourceGroupName": _SERIALIZER.url(
|
178
177
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -208,7 +207,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
|
|
208
207
|
_url = kwargs.pop(
|
209
208
|
"template_url",
|
210
209
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables",
|
211
|
-
)
|
210
|
+
)
|
212
211
|
path_format_arguments = {
|
213
212
|
"resourceGroupName": _SERIALIZER.url(
|
214
213
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -236,19 +235,18 @@ class TableOperations:
|
|
236
235
|
**DO NOT** instantiate this class directly.
|
237
236
|
|
238
237
|
Instead, you should access the following operations through
|
239
|
-
:class:`~azure.mgmt.storage.
|
238
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
240
239
|
:attr:`table` attribute.
|
241
240
|
"""
|
242
241
|
|
243
242
|
models = _models
|
244
243
|
|
245
|
-
def __init__(self, *args, **kwargs):
|
244
|
+
def __init__(self, *args, **kwargs) -> None:
|
246
245
|
input_args = list(args)
|
247
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
248
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
249
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
250
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
251
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
246
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
247
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
248
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
249
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
252
250
|
|
253
251
|
@overload
|
254
252
|
def create(
|
@@ -275,12 +273,12 @@ class TableOperations:
|
|
275
273
|
with a numeric character. Required.
|
276
274
|
:type table_name: str
|
277
275
|
:param parameters: The parameters to provide to create a table. Default value is None.
|
278
|
-
:type parameters: ~azure.mgmt.storage.
|
276
|
+
:type parameters: ~azure.mgmt.storage.models.Table
|
279
277
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
280
278
|
Default value is "application/json".
|
281
279
|
:paramtype content_type: str
|
282
280
|
:return: Table or the result of cls(response)
|
283
|
-
:rtype: ~azure.mgmt.storage.
|
281
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
284
282
|
:raises ~azure.core.exceptions.HttpResponseError:
|
285
283
|
"""
|
286
284
|
|
@@ -314,7 +312,7 @@ class TableOperations:
|
|
314
312
|
Default value is "application/json".
|
315
313
|
:paramtype content_type: str
|
316
314
|
:return: Table or the result of cls(response)
|
317
|
-
:rtype: ~azure.mgmt.storage.
|
315
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
318
316
|
:raises ~azure.core.exceptions.HttpResponseError:
|
319
317
|
"""
|
320
318
|
|
@@ -342,9 +340,9 @@ class TableOperations:
|
|
342
340
|
:type table_name: str
|
343
341
|
:param parameters: The parameters to provide to create a table. Is either a Table type or a
|
344
342
|
IO[bytes] type. Default value is None.
|
345
|
-
:type parameters: ~azure.mgmt.storage.
|
343
|
+
:type parameters: ~azure.mgmt.storage.models.Table or IO[bytes]
|
346
344
|
:return: Table or the result of cls(response)
|
347
|
-
:rtype: ~azure.mgmt.storage.
|
345
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
348
346
|
:raises ~azure.core.exceptions.HttpResponseError:
|
349
347
|
"""
|
350
348
|
error_map: MutableMapping = {
|
@@ -358,7 +356,7 @@ class TableOperations:
|
|
358
356
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
359
357
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
360
358
|
|
361
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
359
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
362
360
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
363
361
|
cls: ClsType[_models.Table] = kwargs.pop("cls", None)
|
364
362
|
|
@@ -430,12 +428,12 @@ class TableOperations:
|
|
430
428
|
with a numeric character. Required.
|
431
429
|
:type table_name: str
|
432
430
|
:param parameters: The parameters to provide to create a table. Default value is None.
|
433
|
-
:type parameters: ~azure.mgmt.storage.
|
431
|
+
:type parameters: ~azure.mgmt.storage.models.Table
|
434
432
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
435
433
|
Default value is "application/json".
|
436
434
|
:paramtype content_type: str
|
437
435
|
:return: Table or the result of cls(response)
|
438
|
-
:rtype: ~azure.mgmt.storage.
|
436
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
439
437
|
:raises ~azure.core.exceptions.HttpResponseError:
|
440
438
|
"""
|
441
439
|
|
@@ -469,7 +467,7 @@ class TableOperations:
|
|
469
467
|
Default value is "application/json".
|
470
468
|
:paramtype content_type: str
|
471
469
|
:return: Table or the result of cls(response)
|
472
|
-
:rtype: ~azure.mgmt.storage.
|
470
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
473
471
|
:raises ~azure.core.exceptions.HttpResponseError:
|
474
472
|
"""
|
475
473
|
|
@@ -497,9 +495,9 @@ class TableOperations:
|
|
497
495
|
:type table_name: str
|
498
496
|
:param parameters: The parameters to provide to create a table. Is either a Table type or a
|
499
497
|
IO[bytes] type. Default value is None.
|
500
|
-
:type parameters: ~azure.mgmt.storage.
|
498
|
+
:type parameters: ~azure.mgmt.storage.models.Table or IO[bytes]
|
501
499
|
:return: Table or the result of cls(response)
|
502
|
-
:rtype: ~azure.mgmt.storage.
|
500
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
503
501
|
:raises ~azure.core.exceptions.HttpResponseError:
|
504
502
|
"""
|
505
503
|
error_map: MutableMapping = {
|
@@ -513,7 +511,7 @@ class TableOperations:
|
|
513
511
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
514
512
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
515
513
|
|
516
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
514
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
517
515
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
518
516
|
cls: ClsType[_models.Table] = kwargs.pop("cls", None)
|
519
517
|
|
@@ -576,7 +574,7 @@ class TableOperations:
|
|
576
574
|
with a numeric character. Required.
|
577
575
|
:type table_name: str
|
578
576
|
:return: Table or the result of cls(response)
|
579
|
-
:rtype: ~azure.mgmt.storage.
|
577
|
+
:rtype: ~azure.mgmt.storage.models.Table
|
580
578
|
:raises ~azure.core.exceptions.HttpResponseError:
|
581
579
|
"""
|
582
580
|
error_map: MutableMapping = {
|
@@ -590,7 +588,7 @@ class TableOperations:
|
|
590
588
|
_headers = kwargs.pop("headers", {}) or {}
|
591
589
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
592
590
|
|
593
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
591
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
594
592
|
cls: ClsType[_models.Table] = kwargs.pop("cls", None)
|
595
593
|
|
596
594
|
_request = build_get_request(
|
@@ -654,7 +652,7 @@ class TableOperations:
|
|
654
652
|
_headers = kwargs.pop("headers", {}) or {}
|
655
653
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
656
654
|
|
657
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
655
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
658
656
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
659
657
|
|
660
658
|
_request = build_delete_request(
|
@@ -683,7 +681,7 @@ class TableOperations:
|
|
683
681
|
return cls(pipeline_response, None, {}) # type: ignore
|
684
682
|
|
685
683
|
@distributed_trace
|
686
|
-
def list(self, resource_group_name: str, account_name: str, **kwargs: Any) ->
|
684
|
+
def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged["_models.Table"]:
|
687
685
|
"""Gets a list of all the tables under the specified storage account.
|
688
686
|
|
689
687
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
@@ -694,13 +692,13 @@ class TableOperations:
|
|
694
692
|
lower-case letters only. Required.
|
695
693
|
:type account_name: str
|
696
694
|
:return: An iterator like instance of either Table or the result of cls(response)
|
697
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.
|
695
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.Table]
|
698
696
|
:raises ~azure.core.exceptions.HttpResponseError:
|
699
697
|
"""
|
700
698
|
_headers = kwargs.pop("headers", {}) or {}
|
701
699
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
702
700
|
|
703
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
701
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
704
702
|
cls: ClsType[_models.ListTableResource] = kwargs.pop("cls", None)
|
705
703
|
|
706
704
|
error_map: MutableMapping = {
|
@@ -733,7 +731,7 @@ class TableOperations:
|
|
733
731
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
734
732
|
}
|
735
733
|
)
|
736
|
-
_next_request_params["api-version"] = self.
|
734
|
+
_next_request_params["api-version"] = self._config.api_version
|
737
735
|
_request = HttpRequest(
|
738
736
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
739
737
|
)
|
@@ -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
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
8
10
|
from io import IOBase
|
9
|
-
import sys
|
10
11
|
from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload
|
11
12
|
|
13
|
+
from azure.core import PipelineClient
|
12
14
|
from azure.core.exceptions import (
|
13
15
|
ClientAuthenticationError,
|
14
16
|
HttpResponseError,
|
@@ -24,12 +26,9 @@ from azure.core.utils import case_insensitive_dict
|
|
24
26
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
25
27
|
|
26
28
|
from .. import models as _models
|
27
|
-
from
|
29
|
+
from .._configuration import StorageManagementClientConfiguration
|
30
|
+
from .._utils.serialization import Deserializer, Serializer
|
28
31
|
|
29
|
-
if sys.version_info >= (3, 9):
|
30
|
-
from collections.abc import MutableMapping
|
31
|
-
else:
|
32
|
-
from typing import MutableMapping # type: ignore
|
33
32
|
T = TypeVar("T")
|
34
33
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
35
34
|
|
@@ -48,7 +47,7 @@ def build_list_request(resource_group_name: str, account_name: str, subscription
|
|
48
47
|
_url = kwargs.pop(
|
49
48
|
"template_url",
|
50
49
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices",
|
51
|
-
)
|
50
|
+
)
|
52
51
|
path_format_arguments = {
|
53
52
|
"resourceGroupName": _SERIALIZER.url(
|
54
53
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -85,7 +84,7 @@ def build_set_service_properties_request(
|
|
85
84
|
_url = kwargs.pop(
|
86
85
|
"template_url",
|
87
86
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
88
|
-
)
|
87
|
+
)
|
89
88
|
path_format_arguments = {
|
90
89
|
"resourceGroupName": _SERIALIZER.url(
|
91
90
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -124,7 +123,7 @@ def build_get_service_properties_request(
|
|
124
123
|
_url = kwargs.pop(
|
125
124
|
"template_url",
|
126
125
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
|
127
|
-
)
|
126
|
+
)
|
128
127
|
path_format_arguments = {
|
129
128
|
"resourceGroupName": _SERIALIZER.url(
|
130
129
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -153,19 +152,18 @@ class TableServicesOperations:
|
|
153
152
|
**DO NOT** instantiate this class directly.
|
154
153
|
|
155
154
|
Instead, you should access the following operations through
|
156
|
-
:class:`~azure.mgmt.storage.
|
155
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
157
156
|
:attr:`table_services` attribute.
|
158
157
|
"""
|
159
158
|
|
160
159
|
models = _models
|
161
160
|
|
162
|
-
def __init__(self, *args, **kwargs):
|
161
|
+
def __init__(self, *args, **kwargs) -> None:
|
163
162
|
input_args = list(args)
|
164
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
165
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
166
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
167
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
168
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
163
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
164
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
165
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
166
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
169
167
|
|
170
168
|
@distributed_trace
|
171
169
|
def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _models.ListTableServices:
|
@@ -179,7 +177,7 @@ class TableServicesOperations:
|
|
179
177
|
lower-case letters only. Required.
|
180
178
|
:type account_name: str
|
181
179
|
:return: ListTableServices or the result of cls(response)
|
182
|
-
:rtype: ~azure.mgmt.storage.
|
180
|
+
:rtype: ~azure.mgmt.storage.models.ListTableServices
|
183
181
|
:raises ~azure.core.exceptions.HttpResponseError:
|
184
182
|
"""
|
185
183
|
error_map: MutableMapping = {
|
@@ -193,7 +191,7 @@ class TableServicesOperations:
|
|
193
191
|
_headers = kwargs.pop("headers", {}) or {}
|
194
192
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
195
193
|
|
196
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
194
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
197
195
|
cls: ClsType[_models.ListTableServices] = kwargs.pop("cls", None)
|
198
196
|
|
199
197
|
_request = build_list_request(
|
@@ -246,12 +244,12 @@ class TableServicesOperations:
|
|
246
244
|
:type account_name: str
|
247
245
|
:param parameters: The properties of a storage account’s Table service, only properties for
|
248
246
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Required.
|
249
|
-
:type parameters: ~azure.mgmt.storage.
|
247
|
+
:type parameters: ~azure.mgmt.storage.models.TableServiceProperties
|
250
248
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
251
249
|
Default value is "application/json".
|
252
250
|
:paramtype content_type: str
|
253
251
|
:return: TableServiceProperties or the result of cls(response)
|
254
|
-
:rtype: ~azure.mgmt.storage.
|
252
|
+
:rtype: ~azure.mgmt.storage.models.TableServiceProperties
|
255
253
|
:raises ~azure.core.exceptions.HttpResponseError:
|
256
254
|
"""
|
257
255
|
|
@@ -282,7 +280,7 @@ class TableServicesOperations:
|
|
282
280
|
Default value is "application/json".
|
283
281
|
:paramtype content_type: str
|
284
282
|
:return: TableServiceProperties or the result of cls(response)
|
285
|
-
:rtype: ~azure.mgmt.storage.
|
283
|
+
:rtype: ~azure.mgmt.storage.models.TableServiceProperties
|
286
284
|
:raises ~azure.core.exceptions.HttpResponseError:
|
287
285
|
"""
|
288
286
|
|
@@ -307,9 +305,9 @@ class TableServicesOperations:
|
|
307
305
|
:param parameters: The properties of a storage account’s Table service, only properties for
|
308
306
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a
|
309
307
|
TableServiceProperties type or a IO[bytes] type. Required.
|
310
|
-
:type parameters: ~azure.mgmt.storage.
|
308
|
+
:type parameters: ~azure.mgmt.storage.models.TableServiceProperties or IO[bytes]
|
311
309
|
:return: TableServiceProperties or the result of cls(response)
|
312
|
-
:rtype: ~azure.mgmt.storage.
|
310
|
+
:rtype: ~azure.mgmt.storage.models.TableServiceProperties
|
313
311
|
:raises ~azure.core.exceptions.HttpResponseError:
|
314
312
|
"""
|
315
313
|
error_map: MutableMapping = {
|
@@ -323,7 +321,7 @@ class TableServicesOperations:
|
|
323
321
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
324
322
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
325
323
|
|
326
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
324
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
327
325
|
table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default")
|
328
326
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
329
327
|
cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None)
|
@@ -383,7 +381,7 @@ class TableServicesOperations:
|
|
383
381
|
lower-case letters only. Required.
|
384
382
|
:type account_name: str
|
385
383
|
:return: TableServiceProperties or the result of cls(response)
|
386
|
-
:rtype: ~azure.mgmt.storage.
|
384
|
+
:rtype: ~azure.mgmt.storage.models.TableServiceProperties
|
387
385
|
:raises ~azure.core.exceptions.HttpResponseError:
|
388
386
|
"""
|
389
387
|
error_map: MutableMapping = {
|
@@ -397,7 +395,7 @@ class TableServicesOperations:
|
|
397
395
|
_headers = kwargs.pop("headers", {}) or {}
|
398
396
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
399
397
|
|
400
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
398
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
401
399
|
table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default")
|
402
400
|
cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None)
|
403
401
|
|
@@ -5,10 +5,11 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
-
import
|
9
|
-
from typing import Any, Callable, Dict,
|
8
|
+
from collections.abc import MutableMapping
|
9
|
+
from typing import Any, Callable, Dict, Optional, TypeVar
|
10
10
|
import urllib.parse
|
11
11
|
|
12
|
+
from azure.core import PipelineClient
|
12
13
|
from azure.core.exceptions import (
|
13
14
|
ClientAuthenticationError,
|
14
15
|
HttpResponseError,
|
@@ -25,12 +26,9 @@ from azure.core.utils import case_insensitive_dict
|
|
25
26
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
26
27
|
|
27
28
|
from .. import models as _models
|
28
|
-
from
|
29
|
+
from .._configuration import StorageManagementClientConfiguration
|
30
|
+
from .._utils.serialization import Deserializer, Serializer
|
29
31
|
|
30
|
-
if sys.version_info >= (3, 9):
|
31
|
-
from collections.abc import MutableMapping
|
32
|
-
else:
|
33
|
-
from typing import MutableMapping # type: ignore
|
34
32
|
T = TypeVar("T")
|
35
33
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
36
34
|
|
@@ -48,7 +46,7 @@ def build_list_by_location_request(location: str, subscription_id: str, **kwargs
|
|
48
46
|
# Construct URL
|
49
47
|
_url = kwargs.pop(
|
50
48
|
"template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages"
|
51
|
-
)
|
49
|
+
)
|
52
50
|
path_format_arguments = {
|
53
51
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
54
52
|
"location": _SERIALIZER.url("location", location, "str"),
|
@@ -71,35 +69,34 @@ class UsagesOperations:
|
|
71
69
|
**DO NOT** instantiate this class directly.
|
72
70
|
|
73
71
|
Instead, you should access the following operations through
|
74
|
-
:class:`~azure.mgmt.storage.
|
72
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
75
73
|
:attr:`usages` attribute.
|
76
74
|
"""
|
77
75
|
|
78
76
|
models = _models
|
79
77
|
|
80
|
-
def __init__(self, *args, **kwargs):
|
78
|
+
def __init__(self, *args, **kwargs) -> None:
|
81
79
|
input_args = list(args)
|
82
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
83
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
84
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
85
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
86
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
80
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
81
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
82
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
83
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
87
84
|
|
88
85
|
@distributed_trace
|
89
|
-
def list_by_location(self, location: str, **kwargs: Any) ->
|
86
|
+
def list_by_location(self, location: str, **kwargs: Any) -> ItemPaged["_models.Usage"]:
|
90
87
|
"""Gets the current usage count and the limit for the resources of the location under the
|
91
88
|
subscription.
|
92
89
|
|
93
90
|
:param location: The location of the Azure Storage resource. Required.
|
94
91
|
:type location: str
|
95
92
|
:return: An iterator like instance of either Usage or the result of cls(response)
|
96
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.
|
93
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.Usage]
|
97
94
|
:raises ~azure.core.exceptions.HttpResponseError:
|
98
95
|
"""
|
99
96
|
_headers = kwargs.pop("headers", {}) or {}
|
100
97
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
101
98
|
|
102
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
99
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
103
100
|
cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None)
|
104
101
|
|
105
102
|
error_map: MutableMapping = {
|
@@ -131,7 +128,7 @@ class UsagesOperations:
|
|
131
128
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
132
129
|
}
|
133
130
|
)
|
134
|
-
_next_request_params["api-version"] = self.
|
131
|
+
_next_request_params["api-version"] = self._config.api_version
|
135
132
|
_request = HttpRequest(
|
136
133
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
137
134
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: azure-mgmt-storage
|
3
|
-
Version:
|
3
|
+
Version: 23.0.1
|
4
4
|
Summary: Microsoft Azure Storage Management Client Library for Python
|
5
5
|
Home-page: https://github.com/Azure/azure-sdk-for-python
|
6
6
|
Author: Microsoft Corporation
|
@@ -11,24 +11,23 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Programming Language :: Python
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
15
14
|
Classifier: Programming Language :: Python :: 3.9
|
16
15
|
Classifier: Programming Language :: Python :: 3.10
|
17
16
|
Classifier: Programming Language :: Python :: 3.11
|
18
17
|
Classifier: Programming Language :: Python :: 3.12
|
19
18
|
Classifier: License :: OSI Approved :: MIT License
|
20
|
-
Requires-Python: >=3.
|
19
|
+
Requires-Python: >=3.9
|
21
20
|
Description-Content-Type: text/markdown
|
22
21
|
License-File: LICENSE
|
23
22
|
Requires-Dist: isodate>=0.6.1
|
24
23
|
Requires-Dist: typing-extensions>=4.6.0
|
25
24
|
Requires-Dist: azure-common>=1.1
|
26
|
-
Requires-Dist: azure-mgmt-core>=1.
|
25
|
+
Requires-Dist: azure-mgmt-core>=1.5.0
|
27
26
|
|
28
27
|
# Microsoft Azure SDK for Python
|
29
28
|
|
30
29
|
This is the Microsoft Azure Storage Management Client Library.
|
31
|
-
This package has been tested with Python 3.
|
30
|
+
This package has been tested with Python 3.9+.
|
32
31
|
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
|
33
32
|
|
34
33
|
## _Disclaimer_
|
@@ -39,7 +38,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
|
|
39
38
|
|
40
39
|
### Prerequisites
|
41
40
|
|
42
|
-
- Python 3.
|
41
|
+
- Python 3.9+ is required to use this package.
|
43
42
|
- [Azure subscription](https://azure.microsoft.com/free/)
|
44
43
|
|
45
44
|
### Install the package
|
@@ -90,6 +89,18 @@ section of the project.
|
|
90
89
|
|
91
90
|
# Release History
|
92
91
|
|
92
|
+
## 23.0.1 (2025-06-30)
|
93
|
+
|
94
|
+
### Other Changes
|
95
|
+
|
96
|
+
- Fix for StorageTaskAssignmentsOperations
|
97
|
+
|
98
|
+
## 23.0.0 (2025-05-15)
|
99
|
+
|
100
|
+
### Breaking Changes
|
101
|
+
|
102
|
+
- This package now only targets the latest Api-Version available on Azure and removes APIs of other Api-Version. After this change, the package can have much smaller size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
|
103
|
+
|
93
104
|
## 22.2.0 (2025-04-21)
|
94
105
|
|
95
106
|
### Features Added
|
@@ -0,0 +1,73 @@
|
|
1
|
+
azure/mgmt/storage/__init__.py,sha256=anaPuy_M9WJzgg2lszSxU5JnlfORoG3js5p0jBaYY7k,1063
|
2
|
+
azure/mgmt/storage/_configuration.py,sha256=ueW5a5NL02MKrK9ldI1VrJHWCM_EtajIXy6AS3lFuMY,3359
|
3
|
+
azure/mgmt/storage/_patch.py,sha256=lNLUF-PrKQxqNd7ZZ6cvds5HfRzDZIF2FOiV0eW4sGY,847
|
4
|
+
azure/mgmt/storage/_storage_management_client.py,sha256=yBPRDxnFWAO5liHdqELumnm3mePNeWmWnl61Avnd8lc,13135
|
5
|
+
azure/mgmt/storage/_version.py,sha256=JAf6od5FvNoaOZkjk3Q43ydz3-yPsQgPR0-RGsUb0j0,346
|
6
|
+
azure/mgmt/storage/py.typed,sha256=dcrsqJrcYfTX-ckLFJMTaj6mD8aDe2u0tkQG-ZYxnEg,26
|
7
|
+
azure/mgmt/storage/_utils/__init__.py,sha256=sbjmEEjeH9Sr8xo3lkmUvyHuZkKo3xPbPehsxe7iQjE,452
|
8
|
+
azure/mgmt/storage/_utils/serialization.py,sha256=M0xRh7CzsPyQfr0h-Nbb14qAdUTjk2eMqxSGpBEWujI,81966
|
9
|
+
azure/mgmt/storage/aio/__init__.py,sha256=y3iibWAAHOz6PL7TZfbzKkWVdp3zcSebEwSvsuWCTzw,1010
|
10
|
+
azure/mgmt/storage/aio/_configuration.py,sha256=zOGd3GdE0M5_rHawiiKhqZAGA6jqOe4Y_9TihUXQJZ0,3407
|
11
|
+
azure/mgmt/storage/aio/_patch.py,sha256=lNLUF-PrKQxqNd7ZZ6cvds5HfRzDZIF2FOiV0eW4sGY,847
|
12
|
+
azure/mgmt/storage/aio/_storage_management_client.py,sha256=rjLSybK3pqnt4vEg9n5yotcup63h6XiSDEteMp3sPtg,13419
|
13
|
+
azure/mgmt/storage/aio/operations/__init__.py,sha256=-oxZ71XxQSsZVeT-58uAIsof8sdtZDxuwQNpRP3tI3s,3811
|
14
|
+
azure/mgmt/storage/aio/operations/_blob_containers_operations.py,sha256=raQfjr96e5-Bd3IE0cMgEGlv05kDdGYeP4B_wnRMt8k,87855
|
15
|
+
azure/mgmt/storage/aio/operations/_blob_inventory_policies_operations.py,sha256=Mnzxo3IPf-FRx9AUpjhqbGvs_40_tqNlFxHJ5bEzz00,19532
|
16
|
+
azure/mgmt/storage/aio/operations/_blob_services_operations.py,sha256=f7yek0rC0DzDoU221MzRdIbLHu6WwfJEtgkDd0yMqKU,16214
|
17
|
+
azure/mgmt/storage/aio/operations/_deleted_accounts_operations.py,sha256=ZXGVpNGxR1nWQF4jd8ZzcJje8JC3u_GXU9pjWJ0APEE,8219
|
18
|
+
azure/mgmt/storage/aio/operations/_encryption_scopes_operations.py,sha256=TIS1ufKqi7JRUX_F8_LfxvL1VupypBm3pGvlGE3DwhQ,26608
|
19
|
+
azure/mgmt/storage/aio/operations/_file_services_operations.py,sha256=U5rGysx4YaiQABPsS2u3-rqAQ5B99XWwQpMjCyThh8I,21895
|
20
|
+
azure/mgmt/storage/aio/operations/_file_shares_operations.py,sha256=1RX-WnXGewBPWpg5xNoxwwKB7LTX3EuozbpnCnw_JKM,45283
|
21
|
+
azure/mgmt/storage/aio/operations/_local_users_operations.py,sha256=-_I0q9Y7xWuDEA8rNr5uGyqtbI_AxfAHNzGcFWmDJ5o,25988
|
22
|
+
azure/mgmt/storage/aio/operations/_management_policies_operations.py,sha256=DU0HyP__TpAscrDE6ZROfMgyQNzvdkDUDaW6cjRazGI,15063
|
23
|
+
azure/mgmt/storage/aio/operations/_network_security_perimeter_configurations_operations.py,sha256=8rVO6qOtc7Tm5HPTXNNZJ-F7yalh-InSKvCU9BD1cLc,15919
|
24
|
+
azure/mgmt/storage/aio/operations/_object_replication_policies_operations.py,sha256=e-2N_oB9pLk5FlkH-YS_Q-Q-vwuPkQgnXakoyROwYiQ,20834
|
25
|
+
azure/mgmt/storage/aio/operations/_operations.py,sha256=GcMg0edEvVs5qXG7xGA5BdM2ojtB_nTw0fcwnSbPs20,5491
|
26
|
+
azure/mgmt/storage/aio/operations/_patch.py,sha256=lNLUF-PrKQxqNd7ZZ6cvds5HfRzDZIF2FOiV0eW4sGY,847
|
27
|
+
azure/mgmt/storage/aio/operations/_private_endpoint_connections_operations.py,sha256=70ULAY3JKz1v3HvPFVW_spNOJ6_iX7cxZuan_xgrxls,19489
|
28
|
+
azure/mgmt/storage/aio/operations/_private_link_resources_operations.py,sha256=Ni7gF-qPqT5GLDNd1Pvd-T8lvzmqp7bpOX2CnVKfVk4,4960
|
29
|
+
azure/mgmt/storage/aio/operations/_queue_operations.py,sha256=s6k8u0dLl66rlwlGknFCaDoTjQGzRjVryaERPSHdWtE,26968
|
30
|
+
azure/mgmt/storage/aio/operations/_queue_services_operations.py,sha256=XWFV25QVYak63jeUiEkYKjgbi_geLwKvglQY8RxmJ4Y,14689
|
31
|
+
azure/mgmt/storage/aio/operations/_skus_operations.py,sha256=oPjoV_NIJAOV8iBLhA-aaFLpIgtbq7rqLCHQRqOkMKo,5601
|
32
|
+
azure/mgmt/storage/aio/operations/_storage_accounts_operations.py,sha256=PVQEJmpojn-wbjK2CiVlc_rMmWkdvrjAROwEkt0PkA4,103244
|
33
|
+
azure/mgmt/storage/aio/operations/_storage_task_assignment_instances_report_operations.py,sha256=1RwvCrE3zTrTQtfEqnzGVatn_L5dlcCyZAqKhc49xsY,7761
|
34
|
+
azure/mgmt/storage/aio/operations/_storage_task_assignments_instances_report_operations.py,sha256=d4C22qkrLW3vG0okxp1Fv4f1ZmHpDsTyro9joMqW9KE,7339
|
35
|
+
azure/mgmt/storage/aio/operations/_storage_task_assignments_operations.py,sha256=aRwZOpuRmp1ufkmxx8BI3C9K_O_4GrtXFk2zRVT4SIs,38814
|
36
|
+
azure/mgmt/storage/aio/operations/_table_operations.py,sha256=JICdKrHdspBtJoBy6ArDFURlOloEyphlwVNPTBLn76k,25792
|
37
|
+
azure/mgmt/storage/aio/operations/_table_services_operations.py,sha256=abuJt8L0kViJZU5SIzwFHz2uy5RXRZJiiTbPgzF_FQI,14689
|
38
|
+
azure/mgmt/storage/aio/operations/_usages_operations.py,sha256=kmJyFHDp1g3WBa-4qYC_yJWSkrzMhqa0iQFoW539WeE,5796
|
39
|
+
azure/mgmt/storage/models/__init__.py,sha256=CdHsbSUsb_LsQkB4yRZIKzLin2E3fGvknFJJJ3N6ibE,15221
|
40
|
+
azure/mgmt/storage/models/_models_py3.py,sha256=VVH-PMWP037UOysBHYsfpd8EluYw0VWhsQYvoCDhObQ,490623
|
41
|
+
azure/mgmt/storage/models/_patch.py,sha256=lNLUF-PrKQxqNd7ZZ6cvds5HfRzDZIF2FOiV0eW4sGY,847
|
42
|
+
azure/mgmt/storage/models/_storage_management_client_enums.py,sha256=BT5Q3gd6uOl1oPPtsaNrPBdSPrTwwx8Spjm1yHqzZhM,21630
|
43
|
+
azure/mgmt/storage/operations/__init__.py,sha256=-oxZ71XxQSsZVeT-58uAIsof8sdtZDxuwQNpRP3tI3s,3811
|
44
|
+
azure/mgmt/storage/operations/_blob_containers_operations.py,sha256=sPhS_MY3G3yaJn2Jyp03jo9GY-_8T8XmLLUU4fwTDGg,113199
|
45
|
+
azure/mgmt/storage/operations/_blob_inventory_policies_operations.py,sha256=zOdDTUnDdekIzIBA9gWdbg1hat33_y_Q_6XWKToRfi8,26120
|
46
|
+
azure/mgmt/storage/operations/_blob_services_operations.py,sha256=y31rkPucck-9BQuBnARlIVOB9SWmyikpPsdUhnSBgGk,21012
|
47
|
+
azure/mgmt/storage/operations/_deleted_accounts_operations.py,sha256=MrRKzDuiu7gZMod_-0ugv1D2Hs774gIfBqcnEtxq8eM,10399
|
48
|
+
azure/mgmt/storage/operations/_encryption_scopes_operations.py,sha256=B6VcblY8AGtpD1izQ66X0bwKngaFM_lCuYIw0vo1fkM,33795
|
49
|
+
azure/mgmt/storage/operations/_file_services_operations.py,sha256=GqRiQMoe-sJAFQOdPbXXLaiWC2NG2sMn0C-4O4-b8fo,30371
|
50
|
+
azure/mgmt/storage/operations/_file_shares_operations.py,sha256=kGQ5mieMYs15Mz4nEpkSpmaBeAgywX5oziaUQQCX910,58486
|
51
|
+
azure/mgmt/storage/operations/_local_users_operations.py,sha256=FjLyDzDdKyHBDIuZwKBrUtvzxbdgTpjD8ACMZ69nj5Y,35882
|
52
|
+
azure/mgmt/storage/operations/_management_policies_operations.py,sha256=8DjcIoidkwguOZ4YmhY6RdIb02ekDiL84nWLzYY0CqQ,20038
|
53
|
+
azure/mgmt/storage/operations/_network_security_perimeter_configurations_operations.py,sha256=dCSEi4GsFHmU_pqGkgcqdAngqgQLaYPjujebhBvhvEQ,20776
|
54
|
+
azure/mgmt/storage/operations/_object_replication_policies_operations.py,sha256=NzVQyG9JTWLfYpaSCj0g4BfgiMs2Zq8kw3EyzxAcHhY,27411
|
55
|
+
azure/mgmt/storage/operations/_operations.py,sha256=mCniNf0Zr6jeMMCC5XpU1lIY8wqAxxF4yGou7lHcJD8,6153
|
56
|
+
azure/mgmt/storage/operations/_patch.py,sha256=lNLUF-PrKQxqNd7ZZ6cvds5HfRzDZIF2FOiV0eW4sGY,847
|
57
|
+
azure/mgmt/storage/operations/_private_endpoint_connections_operations.py,sha256=F7om6X8MOXl4kT9ftm0qvWX-4AVXytMRoGHQfbKgSFs,26135
|
58
|
+
azure/mgmt/storage/operations/_private_link_resources_operations.py,sha256=cSIrv8uhlvy9HHcr8tSX75nLhqnyOro6V_3K0jpMOHA,6423
|
59
|
+
azure/mgmt/storage/operations/_queue_operations.py,sha256=Kk1WWXmoVNnq5HFl0Y9IyebZ-QYG7TFN6JHiKMUdxoY,35963
|
60
|
+
azure/mgmt/storage/operations/_queue_services_operations.py,sha256=BNkhqkdfW8F41d00ZEjbMCO1URWRIX6o61_-ki1L_rQ,19605
|
61
|
+
azure/mgmt/storage/operations/_skus_operations.py,sha256=mS-pxl0ddzcsxHmllJEvS5vhGDPcGIcCkLYXjOgc5oc,6511
|
62
|
+
azure/mgmt/storage/operations/_storage_accounts_operations.py,sha256=BRC6yaDetP0kHZNUP5iU03E8ikvg2Aiq0zAKSGZxbSI,129021
|
63
|
+
azure/mgmt/storage/operations/_storage_task_assignment_instances_report_operations.py,sha256=qMv3-iGdvVPT_kbXnNNXEmx1wExKetFoZ4GJFuIxg5c,9732
|
64
|
+
azure/mgmt/storage/operations/_storage_task_assignments_instances_report_operations.py,sha256=L4BL6TOpT9Xd7dNE5EnULnW_Jx8QyPIOsuxKTMRwIv0,8955
|
65
|
+
azure/mgmt/storage/operations/_storage_task_assignments_operations.py,sha256=560EXR1TpY9OXbk4jwPMcTIOmSMpzEwBAtWTZ6YOdA4,47270
|
66
|
+
azure/mgmt/storage/operations/_table_operations.py,sha256=8taBxLCRTgRWnnOCMhFfrS5XcrIVm-14zb3K3Z6L3Cg,34177
|
67
|
+
azure/mgmt/storage/operations/_table_services_operations.py,sha256=xFd2Qr8M3az-QMjJq3Ot17IKkJeR3w0uy2AHCeu50_8,19605
|
68
|
+
azure/mgmt/storage/operations/_usages_operations.py,sha256=WvwqCseH0sFHVqNu0W79WUg5g66uTr3OaiNKnFts9Z4,6822
|
69
|
+
azure_mgmt_storage-23.0.1.dist-info/LICENSE,sha256=fHekSorNm0H9wgmGSoAWs9QwtdDgkwmBjVt0RDNt90Q,1074
|
70
|
+
azure_mgmt_storage-23.0.1.dist-info/METADATA,sha256=NrNVjA_iiAbFFrr31Qr1JzV5m136PkQyqj7lMZmGIBw,34018
|
71
|
+
azure_mgmt_storage-23.0.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
72
|
+
azure_mgmt_storage-23.0.1.dist-info/top_level.txt,sha256=S7DhWV9m80TBzAhOFjxDUiNbKszzoThbnrSz5MpbHSQ,6
|
73
|
+
azure_mgmt_storage-23.0.1.dist-info/RECORD,,
|