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
@@ -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,
|
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 AsyncPipelineClient
|
12
13
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
@@ -25,12 +26,10 @@ 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
|
29
|
+
from ..._utils.serialization import Deserializer, Serializer
|
28
30
|
from ...operations._operations import build_list_request
|
31
|
+
from .._configuration import StorageManagementClientConfiguration
|
29
32
|
|
30
|
-
if sys.version_info >= (3, 9):
|
31
|
-
from collections.abc import MutableMapping
|
32
|
-
else:
|
33
|
-
from typing import MutableMapping # type: ignore
|
34
33
|
T = TypeVar("T")
|
35
34
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
36
35
|
|
@@ -41,7 +40,7 @@ class Operations:
|
|
41
40
|
**DO NOT** instantiate this class directly.
|
42
41
|
|
43
42
|
Instead, you should access the following operations through
|
44
|
-
:class:`~azure.mgmt.storage.
|
43
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
45
44
|
:attr:`operations` attribute.
|
46
45
|
"""
|
47
46
|
|
@@ -49,25 +48,23 @@ class Operations:
|
|
49
48
|
|
50
49
|
def __init__(self, *args, **kwargs) -> None:
|
51
50
|
input_args = list(args)
|
52
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
53
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
54
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
55
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
56
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
51
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
52
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
53
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
54
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
57
55
|
|
58
56
|
@distributed_trace
|
59
|
-
def list(self, **kwargs: Any) ->
|
57
|
+
def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]:
|
60
58
|
"""Lists all of the available Storage Rest API operations.
|
61
59
|
|
62
60
|
:return: An iterator like instance of either Operation or the result of cls(response)
|
63
|
-
:rtype:
|
64
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2017_10_01.models.Operation]
|
61
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.Operation]
|
65
62
|
:raises ~azure.core.exceptions.HttpResponseError:
|
66
63
|
"""
|
67
64
|
_headers = kwargs.pop("headers", {}) or {}
|
68
65
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
69
66
|
|
70
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
67
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
71
68
|
cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None)
|
72
69
|
|
73
70
|
error_map: MutableMapping = {
|
@@ -97,7 +94,7 @@ class Operations:
|
|
97
94
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
98
95
|
}
|
99
96
|
)
|
100
|
-
_next_request_params["api-version"] = self.
|
97
|
+
_next_request_params["api-version"] = self._config.api_version
|
101
98
|
_request = HttpRequest(
|
102
99
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
103
100
|
)
|
@@ -1,7 +1,8 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
1
|
+
# coding=utf-8
|
2
|
+
# --------------------------------------------------------------------------
|
3
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
|
+
# --------------------------------------------------------------------------
|
5
6
|
"""Customize generated code here.
|
6
7
|
|
7
8
|
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py
RENAMED
@@ -5,11 +5,12 @@
|
|
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
|
+
from collections.abc import MutableMapping
|
8
9
|
from io import IOBase
|
9
|
-
import
|
10
|
-
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
10
|
+
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
11
11
|
import urllib.parse
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
@@ -27,17 +28,15 @@ from azure.core.utils import case_insensitive_dict
|
|
27
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
28
29
|
|
29
30
|
from ... import models as _models
|
31
|
+
from ..._utils.serialization import Deserializer, Serializer
|
30
32
|
from ...operations._private_endpoint_connections_operations import (
|
31
33
|
build_delete_request,
|
32
34
|
build_get_request,
|
33
35
|
build_list_request,
|
34
36
|
build_put_request,
|
35
37
|
)
|
38
|
+
from .._configuration import StorageManagementClientConfiguration
|
36
39
|
|
37
|
-
if sys.version_info >= (3, 9):
|
38
|
-
from collections.abc import MutableMapping
|
39
|
-
else:
|
40
|
-
from typing import MutableMapping # type: ignore
|
41
40
|
T = TypeVar("T")
|
42
41
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
43
42
|
|
@@ -48,7 +47,7 @@ class PrivateEndpointConnectionsOperations:
|
|
48
47
|
**DO NOT** instantiate this class directly.
|
49
48
|
|
50
49
|
Instead, you should access the following operations through
|
51
|
-
:class:`~azure.mgmt.storage.
|
50
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
52
51
|
:attr:`private_endpoint_connections` attribute.
|
53
52
|
"""
|
54
53
|
|
@@ -56,16 +55,15 @@ class PrivateEndpointConnectionsOperations:
|
|
56
55
|
|
57
56
|
def __init__(self, *args, **kwargs) -> None:
|
58
57
|
input_args = list(args)
|
59
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
60
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
61
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
62
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
63
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
58
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
59
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
60
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
61
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
64
62
|
|
65
63
|
@distributed_trace
|
66
64
|
def list(
|
67
65
|
self, resource_group_name: str, account_name: str, **kwargs: Any
|
68
|
-
) ->
|
66
|
+
) -> AsyncItemPaged["_models.PrivateEndpointConnection"]:
|
69
67
|
"""List all the private endpoint connections associated with the storage account.
|
70
68
|
|
71
69
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
@@ -78,13 +76,13 @@ class PrivateEndpointConnectionsOperations:
|
|
78
76
|
:return: An iterator like instance of either PrivateEndpointConnection or the result of
|
79
77
|
cls(response)
|
80
78
|
:rtype:
|
81
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.
|
79
|
+
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.PrivateEndpointConnection]
|
82
80
|
:raises ~azure.core.exceptions.HttpResponseError:
|
83
81
|
"""
|
84
82
|
_headers = kwargs.pop("headers", {}) or {}
|
85
83
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
86
84
|
|
87
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
85
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
88
86
|
cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None)
|
89
87
|
|
90
88
|
error_map: MutableMapping = {
|
@@ -117,7 +115,7 @@ class PrivateEndpointConnectionsOperations:
|
|
117
115
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
118
116
|
}
|
119
117
|
)
|
120
|
-
_next_request_params["api-version"] = self.
|
118
|
+
_next_request_params["api-version"] = self._config.api_version
|
121
119
|
_request = HttpRequest(
|
122
120
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
123
121
|
)
|
@@ -166,7 +164,7 @@ class PrivateEndpointConnectionsOperations:
|
|
166
164
|
with the Azure resource. Required.
|
167
165
|
:type private_endpoint_connection_name: str
|
168
166
|
:return: PrivateEndpointConnection or the result of cls(response)
|
169
|
-
:rtype: ~azure.mgmt.storage.
|
167
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
170
168
|
:raises ~azure.core.exceptions.HttpResponseError:
|
171
169
|
"""
|
172
170
|
error_map: MutableMapping = {
|
@@ -180,7 +178,7 @@ class PrivateEndpointConnectionsOperations:
|
|
180
178
|
_headers = kwargs.pop("headers", {}) or {}
|
181
179
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
182
180
|
|
183
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
181
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
184
182
|
cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None)
|
185
183
|
|
186
184
|
_request = build_get_request(
|
@@ -237,12 +235,12 @@ class PrivateEndpointConnectionsOperations:
|
|
237
235
|
with the Azure resource. Required.
|
238
236
|
:type private_endpoint_connection_name: str
|
239
237
|
:param properties: The private endpoint connection properties. Required.
|
240
|
-
:type properties: ~azure.mgmt.storage.
|
238
|
+
:type properties: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
241
239
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
242
240
|
Default value is "application/json".
|
243
241
|
:paramtype content_type: str
|
244
242
|
:return: PrivateEndpointConnection or the result of cls(response)
|
245
|
-
:rtype: ~azure.mgmt.storage.
|
243
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
246
244
|
:raises ~azure.core.exceptions.HttpResponseError:
|
247
245
|
"""
|
248
246
|
|
@@ -275,7 +273,7 @@ class PrivateEndpointConnectionsOperations:
|
|
275
273
|
Default value is "application/json".
|
276
274
|
:paramtype content_type: str
|
277
275
|
:return: PrivateEndpointConnection or the result of cls(response)
|
278
|
-
:rtype: ~azure.mgmt.storage.
|
276
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
279
277
|
:raises ~azure.core.exceptions.HttpResponseError:
|
280
278
|
"""
|
281
279
|
|
@@ -302,9 +300,9 @@ class PrivateEndpointConnectionsOperations:
|
|
302
300
|
:type private_endpoint_connection_name: str
|
303
301
|
:param properties: The private endpoint connection properties. Is either a
|
304
302
|
PrivateEndpointConnection type or a IO[bytes] type. Required.
|
305
|
-
:type properties: ~azure.mgmt.storage.
|
303
|
+
:type properties: ~azure.mgmt.storage.models.PrivateEndpointConnection or IO[bytes]
|
306
304
|
:return: PrivateEndpointConnection or the result of cls(response)
|
307
|
-
:rtype: ~azure.mgmt.storage.
|
305
|
+
:rtype: ~azure.mgmt.storage.models.PrivateEndpointConnection
|
308
306
|
:raises ~azure.core.exceptions.HttpResponseError:
|
309
307
|
"""
|
310
308
|
error_map: MutableMapping = {
|
@@ -318,7 +316,7 @@ class PrivateEndpointConnectionsOperations:
|
|
318
316
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
319
317
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
320
318
|
|
321
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
319
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
322
320
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
323
321
|
cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None)
|
324
322
|
|
@@ -394,7 +392,7 @@ class PrivateEndpointConnectionsOperations:
|
|
394
392
|
_headers = kwargs.pop("headers", {}) or {}
|
395
393
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
396
394
|
|
397
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
395
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
398
396
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
399
397
|
|
400
398
|
_request = build_delete_request(
|
@@ -5,9 +5,10 @@
|
|
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, Optional, TypeVar
|
10
10
|
|
11
|
+
from azure.core import AsyncPipelineClient
|
11
12
|
from azure.core.exceptions import (
|
12
13
|
ClientAuthenticationError,
|
13
14
|
HttpResponseError,
|
@@ -23,12 +24,10 @@ from azure.core.utils import case_insensitive_dict
|
|
23
24
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
24
25
|
|
25
26
|
from ... import models as _models
|
27
|
+
from ..._utils.serialization import Deserializer, Serializer
|
26
28
|
from ...operations._private_link_resources_operations import build_list_by_storage_account_request
|
29
|
+
from .._configuration import StorageManagementClientConfiguration
|
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, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
34
33
|
|
@@ -39,7 +38,7 @@ class PrivateLinkResourcesOperations:
|
|
39
38
|
**DO NOT** instantiate this class directly.
|
40
39
|
|
41
40
|
Instead, you should access the following operations through
|
42
|
-
:class:`~azure.mgmt.storage.
|
41
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
43
42
|
:attr:`private_link_resources` attribute.
|
44
43
|
"""
|
45
44
|
|
@@ -47,11 +46,10 @@ class PrivateLinkResourcesOperations:
|
|
47
46
|
|
48
47
|
def __init__(self, *args, **kwargs) -> None:
|
49
48
|
input_args = list(args)
|
50
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
51
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
52
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
53
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
54
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
49
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
50
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
51
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
52
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
55
53
|
|
56
54
|
@distributed_trace_async
|
57
55
|
async def list_by_storage_account(
|
@@ -67,7 +65,7 @@ class PrivateLinkResourcesOperations:
|
|
67
65
|
lower-case letters only. Required.
|
68
66
|
:type account_name: str
|
69
67
|
:return: PrivateLinkResourceListResult or the result of cls(response)
|
70
|
-
:rtype: ~azure.mgmt.storage.
|
68
|
+
:rtype: ~azure.mgmt.storage.models.PrivateLinkResourceListResult
|
71
69
|
:raises ~azure.core.exceptions.HttpResponseError:
|
72
70
|
"""
|
73
71
|
error_map: MutableMapping = {
|
@@ -81,7 +79,7 @@ class PrivateLinkResourcesOperations:
|
|
81
79
|
_headers = kwargs.pop("headers", {}) or {}
|
82
80
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
83
81
|
|
84
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
82
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
85
83
|
cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None)
|
86
84
|
|
87
85
|
_request = build_list_by_storage_account_request(
|
@@ -5,11 +5,12 @@
|
|
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
|
+
from collections.abc import MutableMapping
|
8
9
|
from io import IOBase
|
9
|
-
import
|
10
|
-
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
10
|
+
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
11
11
|
import urllib.parse
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
@@ -27,6 +28,7 @@ from azure.core.utils import case_insensitive_dict
|
|
27
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
28
29
|
|
29
30
|
from ... import models as _models
|
31
|
+
from ..._utils.serialization import Deserializer, Serializer
|
30
32
|
from ...operations._queue_operations import (
|
31
33
|
build_create_request,
|
32
34
|
build_delete_request,
|
@@ -34,11 +36,8 @@ from ...operations._queue_operations import (
|
|
34
36
|
build_list_request,
|
35
37
|
build_update_request,
|
36
38
|
)
|
39
|
+
from .._configuration import StorageManagementClientConfiguration
|
37
40
|
|
38
|
-
if sys.version_info >= (3, 9):
|
39
|
-
from collections.abc import MutableMapping
|
40
|
-
else:
|
41
|
-
from typing import MutableMapping # type: ignore
|
42
41
|
T = TypeVar("T")
|
43
42
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
44
43
|
|
@@ -49,7 +48,7 @@ class QueueOperations:
|
|
49
48
|
**DO NOT** instantiate this class directly.
|
50
49
|
|
51
50
|
Instead, you should access the following operations through
|
52
|
-
:class:`~azure.mgmt.storage.
|
51
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
53
52
|
:attr:`queue` attribute.
|
54
53
|
"""
|
55
54
|
|
@@ -57,11 +56,10 @@ class QueueOperations:
|
|
57
56
|
|
58
57
|
def __init__(self, *args, **kwargs) -> None:
|
59
58
|
input_args = list(args)
|
60
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
61
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
62
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
63
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
64
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
59
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
60
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
61
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
62
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
65
63
|
|
66
64
|
@overload
|
67
65
|
async def create(
|
@@ -89,12 +87,12 @@ class QueueOperations:
|
|
89
87
|
dash(-) characters. Required.
|
90
88
|
:type queue_name: str
|
91
89
|
:param queue: Queue properties and metadata to be created with. Required.
|
92
|
-
:type queue: ~azure.mgmt.storage.
|
90
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue
|
93
91
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
94
92
|
Default value is "application/json".
|
95
93
|
:paramtype content_type: str
|
96
94
|
:return: StorageQueue or the result of cls(response)
|
97
|
-
:rtype: ~azure.mgmt.storage.
|
95
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
98
96
|
:raises ~azure.core.exceptions.HttpResponseError:
|
99
97
|
"""
|
100
98
|
|
@@ -129,7 +127,7 @@ class QueueOperations:
|
|
129
127
|
Default value is "application/json".
|
130
128
|
:paramtype content_type: str
|
131
129
|
:return: StorageQueue or the result of cls(response)
|
132
|
-
:rtype: ~azure.mgmt.storage.
|
130
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
133
131
|
:raises ~azure.core.exceptions.HttpResponseError:
|
134
132
|
"""
|
135
133
|
|
@@ -158,9 +156,9 @@ class QueueOperations:
|
|
158
156
|
:type queue_name: str
|
159
157
|
:param queue: Queue properties and metadata to be created with. Is either a StorageQueue type
|
160
158
|
or a IO[bytes] type. Required.
|
161
|
-
:type queue: ~azure.mgmt.storage.
|
159
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue or IO[bytes]
|
162
160
|
:return: StorageQueue or the result of cls(response)
|
163
|
-
:rtype: ~azure.mgmt.storage.
|
161
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
164
162
|
:raises ~azure.core.exceptions.HttpResponseError:
|
165
163
|
"""
|
166
164
|
error_map: MutableMapping = {
|
@@ -174,7 +172,7 @@ class QueueOperations:
|
|
174
172
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
175
173
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
176
174
|
|
177
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
175
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
178
176
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
179
177
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
180
178
|
|
@@ -244,12 +242,12 @@ class QueueOperations:
|
|
244
242
|
dash(-) characters. Required.
|
245
243
|
:type queue_name: str
|
246
244
|
:param queue: Queue properties and metadata to be created with. Required.
|
247
|
-
:type queue: ~azure.mgmt.storage.
|
245
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue
|
248
246
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
249
247
|
Default value is "application/json".
|
250
248
|
:paramtype content_type: str
|
251
249
|
:return: StorageQueue or the result of cls(response)
|
252
|
-
:rtype: ~azure.mgmt.storage.
|
250
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
253
251
|
:raises ~azure.core.exceptions.HttpResponseError:
|
254
252
|
"""
|
255
253
|
|
@@ -284,7 +282,7 @@ class QueueOperations:
|
|
284
282
|
Default value is "application/json".
|
285
283
|
:paramtype content_type: str
|
286
284
|
:return: StorageQueue or the result of cls(response)
|
287
|
-
:rtype: ~azure.mgmt.storage.
|
285
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
288
286
|
:raises ~azure.core.exceptions.HttpResponseError:
|
289
287
|
"""
|
290
288
|
|
@@ -313,9 +311,9 @@ class QueueOperations:
|
|
313
311
|
:type queue_name: str
|
314
312
|
:param queue: Queue properties and metadata to be created with. Is either a StorageQueue type
|
315
313
|
or a IO[bytes] type. Required.
|
316
|
-
:type queue: ~azure.mgmt.storage.
|
314
|
+
:type queue: ~azure.mgmt.storage.models.StorageQueue or IO[bytes]
|
317
315
|
:return: StorageQueue or the result of cls(response)
|
318
|
-
:rtype: ~azure.mgmt.storage.
|
316
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
319
317
|
:raises ~azure.core.exceptions.HttpResponseError:
|
320
318
|
"""
|
321
319
|
error_map: MutableMapping = {
|
@@ -329,7 +327,7 @@ class QueueOperations:
|
|
329
327
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
330
328
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
331
329
|
|
332
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
330
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
333
331
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
334
332
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
335
333
|
|
@@ -392,7 +390,7 @@ class QueueOperations:
|
|
392
390
|
dash(-) characters. Required.
|
393
391
|
:type queue_name: str
|
394
392
|
:return: StorageQueue or the result of cls(response)
|
395
|
-
:rtype: ~azure.mgmt.storage.
|
393
|
+
:rtype: ~azure.mgmt.storage.models.StorageQueue
|
396
394
|
:raises ~azure.core.exceptions.HttpResponseError:
|
397
395
|
"""
|
398
396
|
error_map: MutableMapping = {
|
@@ -406,7 +404,7 @@ class QueueOperations:
|
|
406
404
|
_headers = kwargs.pop("headers", {}) or {}
|
407
405
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
408
406
|
|
409
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
407
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
410
408
|
cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None)
|
411
409
|
|
412
410
|
_request = build_get_request(
|
@@ -469,7 +467,7 @@ class QueueOperations:
|
|
469
467
|
_headers = kwargs.pop("headers", {}) or {}
|
470
468
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
471
469
|
|
472
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
470
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
473
471
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
474
472
|
|
475
473
|
_request = build_delete_request(
|
@@ -505,7 +503,7 @@ class QueueOperations:
|
|
505
503
|
maxpagesize: Optional[str] = None,
|
506
504
|
filter: Optional[str] = None,
|
507
505
|
**kwargs: Any
|
508
|
-
) ->
|
506
|
+
) -> AsyncItemPaged["_models.ListQueue"]:
|
509
507
|
"""Gets a list of all the queues under the specified storage account.
|
510
508
|
|
511
509
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
@@ -522,14 +520,13 @@ class QueueOperations:
|
|
522
520
|
filter will be listed. Default value is None.
|
523
521
|
:type filter: str
|
524
522
|
:return: An iterator like instance of either ListQueue or the result of cls(response)
|
525
|
-
:rtype:
|
526
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListQueue]
|
523
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.ListQueue]
|
527
524
|
:raises ~azure.core.exceptions.HttpResponseError:
|
528
525
|
"""
|
529
526
|
_headers = kwargs.pop("headers", {}) or {}
|
530
527
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
531
528
|
|
532
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
529
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
533
530
|
cls: ClsType[_models.ListQueueResource] = kwargs.pop("cls", None)
|
534
531
|
|
535
532
|
error_map: MutableMapping = {
|
@@ -564,7 +561,7 @@ class QueueOperations:
|
|
564
561
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
565
562
|
}
|
566
563
|
)
|
567
|
-
_next_request_params["api-version"] = self.
|
564
|
+
_next_request_params["api-version"] = self._config.api_version
|
568
565
|
_request = HttpRequest(
|
569
566
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
570
567
|
)
|