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
@@ -1,3 +1,4 @@
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression
|
1
2
|
# coding=utf-8
|
2
3
|
# --------------------------------------------------------------------------
|
3
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -5,10 +6,11 @@
|
|
5
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
8
|
# --------------------------------------------------------------------------
|
8
|
-
import
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
10
11
|
import urllib.parse
|
11
12
|
|
13
|
+
from azure.core import PipelineClient
|
12
14
|
from azure.core.exceptions import (
|
13
15
|
ClientAuthenticationError,
|
14
16
|
HttpResponseError,
|
@@ -25,12 +27,9 @@ from azure.core.utils import case_insensitive_dict
|
|
25
27
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
26
28
|
|
27
29
|
from .. import models as _models
|
28
|
-
from
|
30
|
+
from .._configuration import StorageManagementClientConfiguration
|
31
|
+
from .._utils.serialization import Deserializer, Serializer
|
29
32
|
|
30
|
-
if sys.version_info >= (3, 9):
|
31
|
-
from collections.abc import MutableMapping
|
32
|
-
else:
|
33
|
-
from typing import MutableMapping # type: ignore
|
34
33
|
T = TypeVar("T")
|
35
34
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
36
35
|
|
@@ -58,7 +57,7 @@ def build_list_request(
|
|
58
57
|
_url = kwargs.pop(
|
59
58
|
"template_url",
|
60
59
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports",
|
61
|
-
)
|
60
|
+
)
|
62
61
|
path_format_arguments = {
|
63
62
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
64
63
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -98,7 +97,7 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to
|
|
98
97
|
**DO NOT** instantiate this class directly.
|
99
98
|
|
100
99
|
Instead, you should access the following operations through
|
101
|
-
:class:`~azure.mgmt.storage.
|
100
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
102
101
|
:attr:`storage_task_assignment_instances_report` attribute.
|
103
102
|
"""
|
104
103
|
|
@@ -106,11 +105,10 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to
|
|
106
105
|
|
107
106
|
def __init__(self, *args, **kwargs):
|
108
107
|
input_args = list(args)
|
109
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
110
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
111
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
112
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
113
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
108
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
109
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
110
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
111
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
114
112
|
|
115
113
|
@distributed_trace
|
116
114
|
def list(
|
@@ -122,7 +120,6 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to
|
|
122
120
|
filter: Optional[str] = None,
|
123
121
|
**kwargs: Any
|
124
122
|
) -> Iterable["_models.StorageTaskReportInstance"]:
|
125
|
-
# pylint: disable=line-too-long
|
126
123
|
"""Fetch the report summary of a single storage task assignment's instances.
|
127
124
|
|
128
125
|
:param resource_group_name: The name of the resource group. The name is case insensitive.
|
@@ -146,14 +143,13 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to
|
|
146
143
|
:type filter: str
|
147
144
|
:return: An iterator like instance of either StorageTaskReportInstance or the result of
|
148
145
|
cls(response)
|
149
|
-
:rtype:
|
150
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance]
|
146
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.StorageTaskReportInstance]
|
151
147
|
:raises ~azure.core.exceptions.HttpResponseError:
|
152
148
|
"""
|
153
149
|
_headers = kwargs.pop("headers", {}) or {}
|
154
150
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
155
151
|
|
156
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
152
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
157
153
|
cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None)
|
158
154
|
|
159
155
|
error_map: MutableMapping = {
|
@@ -189,7 +185,7 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to
|
|
189
185
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
190
186
|
}
|
191
187
|
)
|
192
|
-
_next_request_params["api-version"] = self.
|
188
|
+
_next_request_params["api-version"] = self._config.api_version
|
193
189
|
_request = HttpRequest(
|
194
190
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
195
191
|
)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# pylint: disable=line-too-long,useless-suppression
|
1
2
|
# coding=utf-8
|
2
3
|
# --------------------------------------------------------------------------
|
3
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -5,10 +6,11 @@
|
|
5
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
8
|
# --------------------------------------------------------------------------
|
8
|
-
import
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
10
11
|
import urllib.parse
|
11
12
|
|
13
|
+
from azure.core import PipelineClient
|
12
14
|
from azure.core.exceptions import (
|
13
15
|
ClientAuthenticationError,
|
14
16
|
HttpResponseError,
|
@@ -25,12 +27,9 @@ from azure.core.utils import case_insensitive_dict
|
|
25
27
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
26
28
|
|
27
29
|
from .. import models as _models
|
28
|
-
from
|
30
|
+
from .._configuration import StorageManagementClientConfiguration
|
31
|
+
from .._utils.serialization import Deserializer, Serializer
|
29
32
|
|
30
|
-
if sys.version_info >= (3, 9):
|
31
|
-
from collections.abc import MutableMapping
|
32
|
-
else:
|
33
|
-
from typing import MutableMapping # type: ignore
|
34
33
|
T = TypeVar("T")
|
35
34
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
36
35
|
|
@@ -57,7 +56,7 @@ def build_list_request(
|
|
57
56
|
_url = kwargs.pop(
|
58
57
|
"template_url",
|
59
58
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports",
|
60
|
-
)
|
59
|
+
)
|
61
60
|
path_format_arguments = {
|
62
61
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
63
62
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -89,7 +88,7 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t
|
|
89
88
|
**DO NOT** instantiate this class directly.
|
90
89
|
|
91
90
|
Instead, you should access the following operations through
|
92
|
-
:class:`~azure.mgmt.storage.
|
91
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
93
92
|
:attr:`storage_task_assignments_instances_report` attribute.
|
94
93
|
"""
|
95
94
|
|
@@ -97,11 +96,10 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t
|
|
97
96
|
|
98
97
|
def __init__(self, *args, **kwargs):
|
99
98
|
input_args = list(args)
|
100
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
101
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
102
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
103
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
104
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
99
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
100
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
101
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
102
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
105
103
|
|
106
104
|
@distributed_trace
|
107
105
|
def list(
|
@@ -112,7 +110,6 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t
|
|
112
110
|
filter: Optional[str] = None,
|
113
111
|
**kwargs: Any
|
114
112
|
) -> Iterable["_models.StorageTaskReportInstance"]:
|
115
|
-
# pylint: disable=line-too-long
|
116
113
|
"""Fetch the report summary of all the storage task assignments and instances in an account.
|
117
114
|
|
118
115
|
:param resource_group_name: The name of the resource group. The name is case insensitive.
|
@@ -132,14 +129,13 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t
|
|
132
129
|
:type filter: str
|
133
130
|
:return: An iterator like instance of either StorageTaskReportInstance or the result of
|
134
131
|
cls(response)
|
135
|
-
:rtype:
|
136
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance]
|
132
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.StorageTaskReportInstance]
|
137
133
|
:raises ~azure.core.exceptions.HttpResponseError:
|
138
134
|
"""
|
139
135
|
_headers = kwargs.pop("headers", {}) or {}
|
140
136
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
141
137
|
|
142
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
138
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
143
139
|
cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None)
|
144
140
|
|
145
141
|
error_map: MutableMapping = {
|
@@ -174,7 +170,7 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t
|
|
174
170
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
175
171
|
}
|
176
172
|
)
|
177
|
-
_next_request_params["api-version"] = self.
|
173
|
+
_next_request_params["api-version"] = self._config.api_version
|
178
174
|
_request = HttpRequest(
|
179
175
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
180
176
|
)
|
azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -6,11 +6,12 @@
|
|
6
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
7
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
8
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
from io import IOBase
|
10
|
-
import sys
|
11
11
|
from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload
|
12
12
|
import urllib.parse
|
13
13
|
|
14
|
+
from azure.core import PipelineClient
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
16
17
|
HttpResponseError,
|
@@ -31,12 +32,9 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|
31
32
|
from azure.mgmt.core.polling.arm_polling import ARMPolling
|
32
33
|
|
33
34
|
from .. import models as _models
|
34
|
-
from
|
35
|
+
from .._configuration import StorageManagementClientConfiguration
|
36
|
+
from .._utils.serialization import Deserializer, Serializer
|
35
37
|
|
36
|
-
if sys.version_info >= (3, 9):
|
37
|
-
from collections.abc import MutableMapping
|
38
|
-
else:
|
39
|
-
from typing import MutableMapping # type: ignore
|
40
38
|
T = TypeVar("T")
|
41
39
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
42
40
|
|
@@ -58,7 +56,7 @@ def build_create_request(
|
|
58
56
|
_url = kwargs.pop(
|
59
57
|
"template_url",
|
60
58
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}",
|
61
|
-
)
|
59
|
+
)
|
62
60
|
path_format_arguments = {
|
63
61
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
64
62
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -104,7 +102,7 @@ def build_update_request(
|
|
104
102
|
_url = kwargs.pop(
|
105
103
|
"template_url",
|
106
104
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}",
|
107
|
-
)
|
105
|
+
)
|
108
106
|
path_format_arguments = {
|
109
107
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
110
108
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -149,7 +147,7 @@ def build_get_request(
|
|
149
147
|
_url = kwargs.pop(
|
150
148
|
"template_url",
|
151
149
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}",
|
152
|
-
)
|
150
|
+
)
|
153
151
|
path_format_arguments = {
|
154
152
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
155
153
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -192,7 +190,7 @@ def build_delete_request(
|
|
192
190
|
_url = kwargs.pop(
|
193
191
|
"template_url",
|
194
192
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}",
|
195
|
-
)
|
193
|
+
)
|
196
194
|
path_format_arguments = {
|
197
195
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
198
196
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -240,7 +238,7 @@ def build_list_request(
|
|
240
238
|
_url = kwargs.pop(
|
241
239
|
"template_url",
|
242
240
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments",
|
243
|
-
)
|
241
|
+
)
|
244
242
|
path_format_arguments = {
|
245
243
|
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
246
244
|
"resourceGroupName": _SERIALIZER.url(
|
@@ -270,7 +268,7 @@ class StorageTaskAssignmentsOperations:
|
|
270
268
|
**DO NOT** instantiate this class directly.
|
271
269
|
|
272
270
|
Instead, you should access the following operations through
|
273
|
-
:class:`~azure.mgmt.storage.
|
271
|
+
:class:`~azure.mgmt.storage.StorageManagementClient`'s
|
274
272
|
:attr:`storage_task_assignments` attribute.
|
275
273
|
"""
|
276
274
|
|
@@ -278,11 +276,10 @@ class StorageTaskAssignmentsOperations:
|
|
278
276
|
|
279
277
|
def __init__(self, *args, **kwargs):
|
280
278
|
input_args = list(args)
|
281
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
282
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
283
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
284
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
285
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
279
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
280
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
281
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
282
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
286
283
|
|
287
284
|
def _create_initial(
|
288
285
|
self,
|
@@ -303,7 +300,7 @@ class StorageTaskAssignmentsOperations:
|
|
303
300
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
304
301
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
305
302
|
|
306
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
303
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
307
304
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
308
305
|
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
|
309
306
|
|
@@ -386,14 +383,13 @@ class StorageTaskAssignmentsOperations:
|
|
386
383
|
length and use numbers and lower-case letters only. Required.
|
387
384
|
:type storage_task_assignment_name: str
|
388
385
|
:param parameters: The parameters to create a Storage Task Assignment. Required.
|
389
|
-
:type parameters: ~azure.mgmt.storage.
|
386
|
+
:type parameters: ~azure.mgmt.storage.models.StorageTaskAssignment
|
390
387
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
391
388
|
Default value is "application/json".
|
392
389
|
:paramtype content_type: str
|
393
390
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
394
391
|
cls(response)
|
395
|
-
:rtype:
|
396
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
392
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
397
393
|
:raises ~azure.core.exceptions.HttpResponseError:
|
398
394
|
"""
|
399
395
|
|
@@ -432,8 +428,7 @@ class StorageTaskAssignmentsOperations:
|
|
432
428
|
:paramtype content_type: str
|
433
429
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
434
430
|
cls(response)
|
435
|
-
:rtype:
|
436
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
431
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
437
432
|
:raises ~azure.core.exceptions.HttpResponseError:
|
438
433
|
"""
|
439
434
|
|
@@ -465,17 +460,16 @@ class StorageTaskAssignmentsOperations:
|
|
465
460
|
:type storage_task_assignment_name: str
|
466
461
|
:param parameters: The parameters to create a Storage Task Assignment. Is either a
|
467
462
|
StorageTaskAssignment type or a IO[bytes] type. Required.
|
468
|
-
:type parameters: ~azure.mgmt.storage.
|
463
|
+
:type parameters: ~azure.mgmt.storage.models.StorageTaskAssignment or IO[bytes]
|
469
464
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
470
465
|
cls(response)
|
471
|
-
:rtype:
|
472
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
466
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
473
467
|
:raises ~azure.core.exceptions.HttpResponseError:
|
474
468
|
"""
|
475
469
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
476
470
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
477
471
|
|
478
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
472
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
479
473
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
480
474
|
cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None)
|
481
475
|
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
|
@@ -541,7 +535,7 @@ class StorageTaskAssignmentsOperations:
|
|
541
535
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
542
536
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
543
537
|
|
544
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
538
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
545
539
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
546
540
|
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
|
547
541
|
|
@@ -620,14 +614,13 @@ class StorageTaskAssignmentsOperations:
|
|
620
614
|
length and use numbers and lower-case letters only. Required.
|
621
615
|
:type storage_task_assignment_name: str
|
622
616
|
:param parameters: The parameters to update a Storage Task Assignment. Required.
|
623
|
-
:type parameters: ~azure.mgmt.storage.
|
617
|
+
:type parameters: ~azure.mgmt.storage.models.StorageTaskAssignmentUpdateParameters
|
624
618
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
625
619
|
Default value is "application/json".
|
626
620
|
:paramtype content_type: str
|
627
621
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
628
622
|
cls(response)
|
629
|
-
:rtype:
|
630
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
623
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
631
624
|
:raises ~azure.core.exceptions.HttpResponseError:
|
632
625
|
"""
|
633
626
|
|
@@ -662,8 +655,7 @@ class StorageTaskAssignmentsOperations:
|
|
662
655
|
:paramtype content_type: str
|
663
656
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
664
657
|
cls(response)
|
665
|
-
:rtype:
|
666
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
658
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
667
659
|
:raises ~azure.core.exceptions.HttpResponseError:
|
668
660
|
"""
|
669
661
|
|
@@ -691,18 +683,16 @@ class StorageTaskAssignmentsOperations:
|
|
691
683
|
:type storage_task_assignment_name: str
|
692
684
|
:param parameters: The parameters to update a Storage Task Assignment. Is either a
|
693
685
|
StorageTaskAssignmentUpdateParameters type or a IO[bytes] type. Required.
|
694
|
-
:type parameters: ~azure.mgmt.storage.
|
695
|
-
or IO[bytes]
|
686
|
+
:type parameters: ~azure.mgmt.storage.models.StorageTaskAssignmentUpdateParameters or IO[bytes]
|
696
687
|
:return: An instance of LROPoller that returns either StorageTaskAssignment or the result of
|
697
688
|
cls(response)
|
698
|
-
:rtype:
|
699
|
-
~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
689
|
+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.models.StorageTaskAssignment]
|
700
690
|
:raises ~azure.core.exceptions.HttpResponseError:
|
701
691
|
"""
|
702
692
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
703
693
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
704
694
|
|
705
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
695
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
706
696
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
707
697
|
cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None)
|
708
698
|
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
|
@@ -767,7 +757,7 @@ class StorageTaskAssignmentsOperations:
|
|
767
757
|
length and use numbers and lower-case letters only. Required.
|
768
758
|
:type storage_task_assignment_name: str
|
769
759
|
:return: StorageTaskAssignment or the result of cls(response)
|
770
|
-
:rtype: ~azure.mgmt.storage.
|
760
|
+
:rtype: ~azure.mgmt.storage.models.StorageTaskAssignment
|
771
761
|
:raises ~azure.core.exceptions.HttpResponseError:
|
772
762
|
"""
|
773
763
|
error_map: MutableMapping = {
|
@@ -781,7 +771,7 @@ class StorageTaskAssignmentsOperations:
|
|
781
771
|
_headers = kwargs.pop("headers", {}) or {}
|
782
772
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
783
773
|
|
784
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
774
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
785
775
|
cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None)
|
786
776
|
|
787
777
|
_request = build_get_request(
|
@@ -828,7 +818,7 @@ class StorageTaskAssignmentsOperations:
|
|
828
818
|
_headers = kwargs.pop("headers", {}) or {}
|
829
819
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
830
820
|
|
831
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
821
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
832
822
|
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
|
833
823
|
|
834
824
|
_request = build_delete_request(
|
@@ -894,7 +884,7 @@ class StorageTaskAssignmentsOperations:
|
|
894
884
|
_headers = kwargs.pop("headers", {}) or {}
|
895
885
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
896
886
|
|
897
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
887
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
898
888
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
899
889
|
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
|
900
890
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -952,14 +942,13 @@ class StorageTaskAssignmentsOperations:
|
|
952
942
|
:type maxpagesize: int
|
953
943
|
:return: An iterator like instance of either StorageTaskAssignment or the result of
|
954
944
|
cls(response)
|
955
|
-
:rtype:
|
956
|
-
~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment]
|
945
|
+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.models.StorageTaskAssignment]
|
957
946
|
:raises ~azure.core.exceptions.HttpResponseError:
|
958
947
|
"""
|
959
948
|
_headers = kwargs.pop("headers", {}) or {}
|
960
949
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
961
950
|
|
962
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
951
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
963
952
|
cls: ClsType[_models.StorageTaskAssignmentsList] = kwargs.pop("cls", None)
|
964
953
|
|
965
954
|
error_map: MutableMapping = {
|
@@ -993,7 +982,7 @@ class StorageTaskAssignmentsOperations:
|
|
993
982
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
994
983
|
}
|
995
984
|
)
|
996
|
-
_next_request_params["api-version"] = self.
|
985
|
+
_next_request_params["api-version"] = self._config.api_version
|
997
986
|
_request = HttpRequest(
|
998
987
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
999
988
|
)
|