azure-mgmt-storage 22.1.1__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 +81 -96
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +14 -16
- 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 +870 -927
- azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +1 -0
- 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 +98 -106
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +15 -19
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +15 -19
- 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.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +20 -10
- azure_mgmt_storage-23.0.0.dist-info/RECORD +73 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +1 -1
- 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.1.1.dist-info/RECORD +0 -183
- /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.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,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}/queueServices",
|
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}/queueServices/{queueServiceName}",
|
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}/queueServices/{queueServiceName}",
|
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,7 +152,7 @@ class QueueServicesOperations:
|
|
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:`queue_services` attribute.
|
158
157
|
"""
|
159
158
|
|
@@ -161,11 +160,10 @@ class QueueServicesOperations:
|
|
161
160
|
|
162
161
|
def __init__(self, *args, **kwargs):
|
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.ListQueueServices:
|
@@ -179,7 +177,7 @@ class QueueServicesOperations:
|
|
179
177
|
lower-case letters only. Required.
|
180
178
|
:type account_name: str
|
181
179
|
:return: ListQueueServices or the result of cls(response)
|
182
|
-
:rtype: ~azure.mgmt.storage.
|
180
|
+
:rtype: ~azure.mgmt.storage.models.ListQueueServices
|
183
181
|
:raises ~azure.core.exceptions.HttpResponseError:
|
184
182
|
"""
|
185
183
|
error_map: MutableMapping = {
|
@@ -193,7 +191,7 @@ class QueueServicesOperations:
|
|
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.ListQueueServices] = kwargs.pop("cls", None)
|
198
196
|
|
199
197
|
_request = build_list_request(
|
@@ -246,12 +244,12 @@ class QueueServicesOperations:
|
|
246
244
|
:type account_name: str
|
247
245
|
:param parameters: The properties of a storage account’s Queue 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.QueueServiceProperties
|
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: QueueServiceProperties or the result of cls(response)
|
254
|
-
:rtype: ~azure.mgmt.storage.
|
252
|
+
:rtype: ~azure.mgmt.storage.models.QueueServiceProperties
|
255
253
|
:raises ~azure.core.exceptions.HttpResponseError:
|
256
254
|
"""
|
257
255
|
|
@@ -282,7 +280,7 @@ class QueueServicesOperations:
|
|
282
280
|
Default value is "application/json".
|
283
281
|
:paramtype content_type: str
|
284
282
|
:return: QueueServiceProperties or the result of cls(response)
|
285
|
-
:rtype: ~azure.mgmt.storage.
|
283
|
+
:rtype: ~azure.mgmt.storage.models.QueueServiceProperties
|
286
284
|
:raises ~azure.core.exceptions.HttpResponseError:
|
287
285
|
"""
|
288
286
|
|
@@ -307,9 +305,9 @@ class QueueServicesOperations:
|
|
307
305
|
:param parameters: The properties of a storage account’s Queue service, only properties for
|
308
306
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a
|
309
307
|
QueueServiceProperties type or a IO[bytes] type. Required.
|
310
|
-
:type parameters: ~azure.mgmt.storage.
|
308
|
+
:type parameters: ~azure.mgmt.storage.models.QueueServiceProperties or IO[bytes]
|
311
309
|
:return: QueueServiceProperties or the result of cls(response)
|
312
|
-
:rtype: ~azure.mgmt.storage.
|
310
|
+
:rtype: ~azure.mgmt.storage.models.QueueServiceProperties
|
313
311
|
:raises ~azure.core.exceptions.HttpResponseError:
|
314
312
|
"""
|
315
313
|
error_map: MutableMapping = {
|
@@ -323,7 +321,7 @@ class QueueServicesOperations:
|
|
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
|
queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default")
|
328
326
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
329
327
|
cls: ClsType[_models.QueueServiceProperties] = kwargs.pop("cls", None)
|
@@ -383,7 +381,7 @@ class QueueServicesOperations:
|
|
383
381
|
lower-case letters only. Required.
|
384
382
|
:type account_name: str
|
385
383
|
:return: QueueServiceProperties or the result of cls(response)
|
386
|
-
:rtype: ~azure.mgmt.storage.
|
384
|
+
:rtype: ~azure.mgmt.storage.models.QueueServiceProperties
|
387
385
|
:raises ~azure.core.exceptions.HttpResponseError:
|
388
386
|
"""
|
389
387
|
error_map: MutableMapping = {
|
@@ -397,7 +395,7 @@ class QueueServicesOperations:
|
|
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
|
queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default")
|
402
400
|
cls: ClsType[_models.QueueServiceProperties] = 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
|
8
|
+
from collections.abc import MutableMapping
|
9
9
|
from typing import Any, Callable, Dict, Iterable, 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
|
|
@@ -68,7 +66,7 @@ class SkusOperations:
|
|
68
66
|
**DO NOT** instantiate this class directly.
|
69
67
|
|
70
68
|
Instead, you should access the following operations through
|
71
|
-
:class:`~azure.mgmt.storage.
|
69
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
72
70
|
:attr:`skus` attribute.
|
73
71
|
"""
|
74
72
|
|
@@ -76,24 +74,23 @@ class SkusOperations:
|
|
76
74
|
|
77
75
|
def __init__(self, *args, **kwargs):
|
78
76
|
input_args = list(args)
|
79
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
80
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
81
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
82
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
83
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
77
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
78
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
79
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
80
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
84
81
|
|
85
82
|
@distributed_trace
|
86
83
|
def list(self, **kwargs: Any) -> Iterable["_models.SkuInformation"]:
|
87
84
|
"""Lists the available SKUs supported by Microsoft.Storage for given subscription.
|
88
85
|
|
89
86
|
:return: An iterator like instance of either SkuInformation or the result of cls(response)
|
90
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.
|
87
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.SkuInformation]
|
91
88
|
:raises ~azure.core.exceptions.HttpResponseError:
|
92
89
|
"""
|
93
90
|
_headers = kwargs.pop("headers", {}) or {}
|
94
91
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
95
92
|
|
96
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
93
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
97
94
|
cls: ClsType[_models.StorageSkuListResult] = kwargs.pop("cls", None)
|
98
95
|
|
99
96
|
error_map: MutableMapping = {
|
@@ -124,7 +121,7 @@ class SkusOperations:
|
|
124
121
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
125
122
|
}
|
126
123
|
)
|
127
|
-
_next_request_params["api-version"] = self.
|
124
|
+
_next_request_params["api-version"] = self._config.api_version
|
128
125
|
_request = HttpRequest(
|
129
126
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
130
127
|
)
|