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}/_private_endpoint_connections_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
|
|
@@ -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}/privateEndpointConnections",
|
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\._\(\)]+$"
|
@@ -89,7 +88,7 @@ def build_get_request(
|
|
89
88
|
_url = kwargs.pop(
|
90
89
|
"template_url",
|
91
90
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
92
|
-
)
|
91
|
+
)
|
93
92
|
path_format_arguments = {
|
94
93
|
"resourceGroupName": _SERIALIZER.url(
|
95
94
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -132,7 +131,7 @@ def build_put_request(
|
|
132
131
|
_url = kwargs.pop(
|
133
132
|
"template_url",
|
134
133
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
135
|
-
)
|
134
|
+
)
|
136
135
|
path_format_arguments = {
|
137
136
|
"resourceGroupName": _SERIALIZER.url(
|
138
137
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -176,7 +175,7 @@ def build_delete_request(
|
|
176
175
|
_url = kwargs.pop(
|
177
176
|
"template_url",
|
178
177
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
179
|
-
)
|
178
|
+
)
|
180
179
|
path_format_arguments = {
|
181
180
|
"resourceGroupName": _SERIALIZER.url(
|
182
181
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -207,7 +206,7 @@ class PrivateEndpointConnectionsOperations:
|
|
207
206
|
**DO NOT** instantiate this class directly.
|
208
207
|
|
209
208
|
Instead, you should access the following operations through
|
210
|
-
:class:`~azure.mgmt.storage.
|
209
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
211
210
|
:attr:`private_endpoint_connections` attribute.
|
212
211
|
"""
|
213
212
|
|
@@ -215,11 +214,10 @@ class PrivateEndpointConnectionsOperations:
|
|
215
214
|
|
216
215
|
def __init__(self, *args, **kwargs):
|
217
216
|
input_args = list(args)
|
218
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
219
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
220
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
221
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
222
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
217
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
218
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
219
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
220
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
223
221
|
|
224
222
|
@distributed_trace
|
225
223
|
def list(
|
@@ -236,14 +234,13 @@ class PrivateEndpointConnectionsOperations:
|
|
236
234
|
:type account_name: str
|
237
235
|
:return: An iterator like instance of either PrivateEndpointConnection or the result of
|
238
236
|
cls(response)
|
239
|
-
:rtype:
|
240
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection]
|
237
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.PrivateEndpointConnection]
|
241
238
|
:raises ~azure.core.exceptions.HttpResponseError:
|
242
239
|
"""
|
243
240
|
_headers = kwargs.pop("headers", {}) or {}
|
244
241
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
245
242
|
|
246
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
243
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
247
244
|
cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None)
|
248
245
|
|
249
246
|
error_map: MutableMapping = {
|
@@ -276,7 +273,7 @@ class PrivateEndpointConnectionsOperations:
|
|
276
273
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
277
274
|
}
|
278
275
|
)
|
279
|
-
_next_request_params["api-version"] = self.
|
276
|
+
_next_request_params["api-version"] = self._config.api_version
|
280
277
|
_request = HttpRequest(
|
281
278
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
282
279
|
)
|
@@ -325,7 +322,7 @@ class PrivateEndpointConnectionsOperations:
|
|
325
322
|
with the Azure resource. Required.
|
326
323
|
:type private_endpoint_connection_name: str
|
327
324
|
:return: PrivateEndpointConnection or the result of cls(response)
|
328
|
-
:rtype: ~azure.mgmt.storage.
|
325
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
329
326
|
:raises ~azure.core.exceptions.HttpResponseError:
|
330
327
|
"""
|
331
328
|
error_map: MutableMapping = {
|
@@ -339,7 +336,7 @@ class PrivateEndpointConnectionsOperations:
|
|
339
336
|
_headers = kwargs.pop("headers", {}) or {}
|
340
337
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
341
338
|
|
342
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
339
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
343
340
|
cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None)
|
344
341
|
|
345
342
|
_request = build_get_request(
|
@@ -396,12 +393,12 @@ class PrivateEndpointConnectionsOperations:
|
|
396
393
|
with the Azure resource. Required.
|
397
394
|
:type private_endpoint_connection_name: str
|
398
395
|
:param properties: The private endpoint connection properties. Required.
|
399
|
-
:type properties: ~azure.mgmt.storage.
|
396
|
+
:type properties: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
400
397
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
401
398
|
Default value is "application/json".
|
402
399
|
:paramtype content_type: str
|
403
400
|
:return: PrivateEndpointConnection or the result of cls(response)
|
404
|
-
:rtype: ~azure.mgmt.storage.
|
401
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
405
402
|
:raises ~azure.core.exceptions.HttpResponseError:
|
406
403
|
"""
|
407
404
|
|
@@ -434,7 +431,7 @@ class PrivateEndpointConnectionsOperations:
|
|
434
431
|
Default value is "application/json".
|
435
432
|
:paramtype content_type: str
|
436
433
|
:return: PrivateEndpointConnection or the result of cls(response)
|
437
|
-
:rtype: ~azure.mgmt.storage.
|
434
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
438
435
|
:raises ~azure.core.exceptions.HttpResponseError:
|
439
436
|
"""
|
440
437
|
|
@@ -461,9 +458,9 @@ class PrivateEndpointConnectionsOperations:
|
|
461
458
|
:type private_endpoint_connection_name: str
|
462
459
|
:param properties: The private endpoint connection properties. Is either a
|
463
460
|
PrivateEndpointConnection type or a IO[bytes] type. Required.
|
464
|
-
:type properties: ~azure.mgmt.storage.
|
461
|
+
:type properties: ~azure.mgmt.storage.models.PrivateEndpointConnection or IO[bytes]
|
465
462
|
:return: PrivateEndpointConnection or the result of cls(response)
|
466
|
-
:rtype: ~azure.mgmt.storage.
|
463
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
467
464
|
:raises ~azure.core.exceptions.HttpResponseError:
|
468
465
|
"""
|
469
466
|
error_map: MutableMapping = {
|
@@ -477,7 +474,7 @@ class PrivateEndpointConnectionsOperations:
|
|
477
474
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
478
475
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
479
476
|
|
480
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
477
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
481
478
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
482
479
|
cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None)
|
483
480
|
|
@@ -553,7 +550,7 @@ class PrivateEndpointConnectionsOperations:
|
|
553
550
|
_headers = kwargs.pop("headers", {}) or {}
|
554
551
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
555
552
|
|
556
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
553
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
557
554
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
558
555
|
|
559
556
|
_request = build_delete_request(
|
azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_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,9 +6,10 @@
|
|
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, Optional, TypeVar
|
10
11
|
|
12
|
+
from azure.core import PipelineClient
|
11
13
|
from azure.core.exceptions import (
|
12
14
|
ClientAuthenticationError,
|
13
15
|
HttpResponseError,
|
@@ -23,12 +25,9 @@ from azure.core.utils import case_insensitive_dict
|
|
23
25
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
24
26
|
|
25
27
|
from .. import models as _models
|
26
|
-
from
|
28
|
+
from .._configuration import StorageManagementClientConfiguration
|
29
|
+
from .._utils.serialization import Deserializer, Serializer
|
27
30
|
|
28
|
-
if sys.version_info >= (3, 9):
|
29
|
-
from collections.abc import MutableMapping
|
30
|
-
else:
|
31
|
-
from typing import MutableMapping # type: ignore
|
32
31
|
T = TypeVar("T")
|
33
32
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
34
33
|
|
@@ -49,7 +48,7 @@ def build_list_by_storage_account_request(
|
|
49
48
|
_url = kwargs.pop(
|
50
49
|
"template_url",
|
51
50
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
|
52
|
-
)
|
51
|
+
)
|
53
52
|
path_format_arguments = {
|
54
53
|
"resourceGroupName": _SERIALIZER.url(
|
55
54
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -77,7 +76,7 @@ class PrivateLinkResourcesOperations:
|
|
77
76
|
**DO NOT** instantiate this class directly.
|
78
77
|
|
79
78
|
Instead, you should access the following operations through
|
80
|
-
:class:`~azure.mgmt.storage.
|
79
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
81
80
|
:attr:`private_link_resources` attribute.
|
82
81
|
"""
|
83
82
|
|
@@ -85,11 +84,10 @@ class PrivateLinkResourcesOperations:
|
|
85
84
|
|
86
85
|
def __init__(self, *args, **kwargs):
|
87
86
|
input_args = list(args)
|
88
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
89
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
90
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
91
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
92
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
87
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
88
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
89
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
90
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
93
91
|
|
94
92
|
@distributed_trace
|
95
93
|
def list_by_storage_account(
|
@@ -105,7 +103,7 @@ class PrivateLinkResourcesOperations:
|
|
105
103
|
lower-case letters only. Required.
|
106
104
|
:type account_name: str
|
107
105
|
:return: PrivateLinkResourceListResult or the result of cls(response)
|
108
|
-
:rtype: ~azure.mgmt.storage.
|
106
|
+
:rtype: ~azure.mgmt.storage.models.PrivateLinkResourceListResult
|
109
107
|
:raises ~azure.core.exceptions.HttpResponseError:
|
110
108
|
"""
|
111
109
|
error_map: MutableMapping = {
|
@@ -119,7 +117,7 @@ class PrivateLinkResourcesOperations:
|
|
119
117
|
_headers = kwargs.pop("headers", {}) or {}
|
120
118
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
121
119
|
|
122
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
120
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
123
121
|
cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None)
|
124
122
|
|
125
123
|
_request = build_list_by_storage_account_request(
|
@@ -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
|
|
@@ -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}/queueServices/default/queues/{queueName}",
|
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\._\(\)]+$"
|
@@ -99,7 +98,7 @@ def build_update_request(
|
|
99
98
|
_url = kwargs.pop(
|
100
99
|
"template_url",
|
101
100
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
|
102
|
-
)
|
101
|
+
)
|
103
102
|
path_format_arguments = {
|
104
103
|
"resourceGroupName": _SERIALIZER.url(
|
105
104
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -144,7 +143,7 @@ def build_get_request(
|
|
144
143
|
_url = kwargs.pop(
|
145
144
|
"template_url",
|
146
145
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
|
147
|
-
)
|
146
|
+
)
|
148
147
|
path_format_arguments = {
|
149
148
|
"resourceGroupName": _SERIALIZER.url(
|
150
149
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -187,7 +186,7 @@ def build_delete_request(
|
|
187
186
|
_url = kwargs.pop(
|
188
187
|
"template_url",
|
189
188
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
|
190
|
-
)
|
189
|
+
)
|
191
190
|
path_format_arguments = {
|
192
191
|
"resourceGroupName": _SERIALIZER.url(
|
193
192
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -236,7 +235,7 @@ def build_list_request(
|
|
236
235
|
_url = kwargs.pop(
|
237
236
|
"template_url",
|
238
237
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues",
|
239
|
-
)
|
238
|
+
)
|
240
239
|
path_format_arguments = {
|
241
240
|
"resourceGroupName": _SERIALIZER.url(
|
242
241
|
"resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
|
@@ -268,7 +267,7 @@ class QueueOperations:
|
|
268
267
|
**DO NOT** instantiate this class directly.
|
269
268
|
|
270
269
|
Instead, you should access the following operations through
|
271
|
-
:class:`~azure.mgmt.storage.
|
270
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
272
271
|
:attr:`queue` attribute.
|
273
272
|
"""
|
274
273
|
|
@@ -276,11 +275,10 @@ class QueueOperations:
|
|
276
275
|
|
277
276
|
def __init__(self, *args, **kwargs):
|
278
277
|
input_args = list(args)
|
279
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
280
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
281
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
282
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
283
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
278
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
279
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
280
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
281
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
284
282
|
|
285
283
|
@overload
|
286
284
|
def create(
|
@@ -308,12 +306,12 @@ class QueueOperations:
|
|
308
306
|
dash(-) characters. Required.
|
309
307
|
:type queue_name: str
|
310
308
|
:param queue: Queue properties and metadata to be created with. Required.
|
311
|
-
:type queue: ~azure.mgmt.storage.
|
309
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue
|
312
310
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
313
311
|
Default value is "application/json".
|
314
312
|
:paramtype content_type: str
|
315
313
|
:return: StorageQueue or the result of cls(response)
|
316
|
-
:rtype: ~azure.mgmt.storage.
|
314
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
317
315
|
:raises ~azure.core.exceptions.HttpResponseError:
|
318
316
|
"""
|
319
317
|
|
@@ -348,7 +346,7 @@ class QueueOperations:
|
|
348
346
|
Default value is "application/json".
|
349
347
|
:paramtype content_type: str
|
350
348
|
:return: StorageQueue or the result of cls(response)
|
351
|
-
:rtype: ~azure.mgmt.storage.
|
349
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
352
350
|
:raises ~azure.core.exceptions.HttpResponseError:
|
353
351
|
"""
|
354
352
|
|
@@ -377,9 +375,9 @@ class QueueOperations:
|
|
377
375
|
:type queue_name: str
|
378
376
|
:param queue: Queue properties and metadata to be created with. Is either a StorageQueue type
|
379
377
|
or a IO[bytes] type. Required.
|
380
|
-
:type queue: ~azure.mgmt.storage.
|
378
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue or IO[bytes]
|
381
379
|
:return: StorageQueue or the result of cls(response)
|
382
|
-
:rtype: ~azure.mgmt.storage.
|
380
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
383
381
|
:raises ~azure.core.exceptions.HttpResponseError:
|
384
382
|
"""
|
385
383
|
error_map: MutableMapping = {
|
@@ -393,7 +391,7 @@ class QueueOperations:
|
|
393
391
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
394
392
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
395
393
|
|
396
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
394
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
397
395
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
398
396
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
399
397
|
|
@@ -463,12 +461,12 @@ class QueueOperations:
|
|
463
461
|
dash(-) characters. Required.
|
464
462
|
:type queue_name: str
|
465
463
|
:param queue: Queue properties and metadata to be created with. Required.
|
466
|
-
:type queue: ~azure.mgmt.storage.
|
464
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue
|
467
465
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
468
466
|
Default value is "application/json".
|
469
467
|
:paramtype content_type: str
|
470
468
|
:return: StorageQueue or the result of cls(response)
|
471
|
-
:rtype: ~azure.mgmt.storage.
|
469
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
472
470
|
:raises ~azure.core.exceptions.HttpResponseError:
|
473
471
|
"""
|
474
472
|
|
@@ -503,7 +501,7 @@ class QueueOperations:
|
|
503
501
|
Default value is "application/json".
|
504
502
|
:paramtype content_type: str
|
505
503
|
:return: StorageQueue or the result of cls(response)
|
506
|
-
:rtype: ~azure.mgmt.storage.
|
504
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
507
505
|
:raises ~azure.core.exceptions.HttpResponseError:
|
508
506
|
"""
|
509
507
|
|
@@ -532,9 +530,9 @@ class QueueOperations:
|
|
532
530
|
:type queue_name: str
|
533
531
|
:param queue: Queue properties and metadata to be created with. Is either a StorageQueue type
|
534
532
|
or a IO[bytes] type. Required.
|
535
|
-
:type queue: ~azure.mgmt.storage.
|
533
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue or IO[bytes]
|
536
534
|
:return: StorageQueue or the result of cls(response)
|
537
|
-
:rtype: ~azure.mgmt.storage.
|
535
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
538
536
|
:raises ~azure.core.exceptions.HttpResponseError:
|
539
537
|
"""
|
540
538
|
error_map: MutableMapping = {
|
@@ -548,7 +546,7 @@ class QueueOperations:
|
|
548
546
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
549
547
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
550
548
|
|
551
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
549
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
552
550
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
553
551
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
554
552
|
|
@@ -609,7 +607,7 @@ class QueueOperations:
|
|
609
607
|
dash(-) characters. Required.
|
610
608
|
:type queue_name: str
|
611
609
|
:return: StorageQueue or the result of cls(response)
|
612
|
-
:rtype: ~azure.mgmt.storage.
|
610
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
613
611
|
:raises ~azure.core.exceptions.HttpResponseError:
|
614
612
|
"""
|
615
613
|
error_map: MutableMapping = {
|
@@ -623,7 +621,7 @@ class QueueOperations:
|
|
623
621
|
_headers = kwargs.pop("headers", {}) or {}
|
624
622
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
625
623
|
|
626
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
624
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
627
625
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
628
626
|
|
629
627
|
_request = build_get_request(
|
@@ -688,7 +686,7 @@ class QueueOperations:
|
|
688
686
|
_headers = kwargs.pop("headers", {}) or {}
|
689
687
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
690
688
|
|
691
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
689
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
692
690
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
693
691
|
|
694
692
|
_request = build_delete_request(
|
@@ -741,13 +739,13 @@ class QueueOperations:
|
|
741
739
|
filter will be listed. Default value is None.
|
742
740
|
:type filter: str
|
743
741
|
:return: An iterator like instance of either ListQueue or the result of cls(response)
|
744
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.
|
742
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.ListQueue]
|
745
743
|
:raises ~azure.core.exceptions.HttpResponseError:
|
746
744
|
"""
|
747
745
|
_headers = kwargs.pop("headers", {}) or {}
|
748
746
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
749
747
|
|
750
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
748
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
751
749
|
cls: ClsType[_models.ListQueueResource] = kwargs.pop("cls", None)
|
752
750
|
|
753
751
|
error_map: MutableMapping = {
|
@@ -782,7 +780,7 @@ class QueueOperations:
|
|
782
780
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
783
781
|
}
|
784
782
|
)
|
785
|
-
_next_request_params["api-version"] = self.
|
783
|
+
_next_request_params["api-version"] = self._config.api_version
|
786
784
|
_request = HttpRequest(
|
787
785
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
788
786
|
)
|