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
@@ -6,24 +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
|
11
|
-
from typing import (
|
12
|
-
Any,
|
13
|
-
AsyncIterable,
|
14
|
-
AsyncIterator,
|
15
|
-
Callable,
|
16
|
-
Dict,
|
17
|
-
IO,
|
18
|
-
Literal,
|
19
|
-
Optional,
|
20
|
-
TypeVar,
|
21
|
-
Union,
|
22
|
-
cast,
|
23
|
-
overload,
|
24
|
-
)
|
11
|
+
from typing import Any, AsyncIterator, Callable, Dict, IO, Literal, Optional, TypeVar, Union, cast, overload
|
25
12
|
import urllib.parse
|
26
13
|
|
14
|
+
from azure.core import AsyncPipelineClient
|
27
15
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
28
16
|
from azure.core.exceptions import (
|
29
17
|
ClientAuthenticationError,
|
@@ -45,6 +33,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|
45
33
|
from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
|
46
34
|
|
47
35
|
from ... import models as _models
|
36
|
+
from ..._utils.serialization import Deserializer, Serializer
|
48
37
|
from ...operations._storage_accounts_operations import (
|
49
38
|
build_abort_hierarchical_namespace_migration_request,
|
50
39
|
build_check_name_availability_request,
|
@@ -65,11 +54,8 @@ from ...operations._storage_accounts_operations import (
|
|
65
54
|
build_revoke_user_delegation_keys_request,
|
66
55
|
build_update_request,
|
67
56
|
)
|
57
|
+
from .._configuration import StorageManagementClientConfiguration
|
68
58
|
|
69
|
-
if sys.version_info >= (3, 9):
|
70
|
-
from collections.abc import MutableMapping
|
71
|
-
else:
|
72
|
-
from typing import MutableMapping # type: ignore
|
73
59
|
T = TypeVar("T")
|
74
60
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
75
61
|
|
@@ -80,7 +66,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
80
66
|
**DO NOT** instantiate this class directly.
|
81
67
|
|
82
68
|
Instead, you should access the following operations through
|
83
|
-
:class:`~azure.mgmt.storage.
|
69
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
84
70
|
:attr:`storage_accounts` attribute.
|
85
71
|
"""
|
86
72
|
|
@@ -88,11 +74,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
88
74
|
|
89
75
|
def __init__(self, *args, **kwargs) -> None:
|
90
76
|
input_args = list(args)
|
91
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
92
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
93
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
94
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
95
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
77
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
78
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
79
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
80
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
96
81
|
|
97
82
|
@overload
|
98
83
|
async def check_name_availability(
|
@@ -107,13 +92,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
107
92
|
:param account_name: The name of the storage account within the specified resource group.
|
108
93
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
109
94
|
lower-case letters only. Required.
|
110
|
-
:type account_name:
|
111
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters
|
95
|
+
:type account_name: ~azure.mgmt.storage.models.StorageAccountCheckNameAvailabilityParameters
|
112
96
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
113
97
|
Default value is "application/json".
|
114
98
|
:paramtype content_type: str
|
115
99
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
116
|
-
:rtype: ~azure.mgmt.storage.
|
100
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
117
101
|
:raises ~azure.core.exceptions.HttpResponseError:
|
118
102
|
"""
|
119
103
|
|
@@ -131,7 +115,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
131
115
|
Default value is "application/json".
|
132
116
|
:paramtype content_type: str
|
133
117
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
134
|
-
:rtype: ~azure.mgmt.storage.
|
118
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
135
119
|
:raises ~azure.core.exceptions.HttpResponseError:
|
136
120
|
"""
|
137
121
|
|
@@ -145,11 +129,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
145
129
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
146
130
|
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
147
131
|
IO[bytes] type. Required.
|
148
|
-
:type account_name:
|
149
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
132
|
+
:type account_name: ~azure.mgmt.storage.models.StorageAccountCheckNameAvailabilityParameters or
|
150
133
|
IO[bytes]
|
151
134
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
152
|
-
:rtype: ~azure.mgmt.storage.
|
135
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
153
136
|
:raises ~azure.core.exceptions.HttpResponseError:
|
154
137
|
"""
|
155
138
|
error_map: MutableMapping = {
|
@@ -163,7 +146,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
163
146
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
164
147
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
165
148
|
|
166
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
149
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
167
150
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
168
151
|
cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
|
169
152
|
|
@@ -222,7 +205,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
222
205
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
223
206
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
224
207
|
|
225
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
208
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
226
209
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
227
210
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
228
211
|
|
@@ -293,14 +276,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
293
276
|
lower-case letters only. Required.
|
294
277
|
:type account_name: str
|
295
278
|
:param parameters: The parameters to provide for the created account. Required.
|
296
|
-
:type parameters: ~azure.mgmt.storage.
|
279
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountCreateParameters
|
297
280
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
298
281
|
Default value is "application/json".
|
299
282
|
:paramtype content_type: str
|
300
283
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
301
284
|
cls(response)
|
302
|
-
:rtype:
|
303
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
285
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
304
286
|
:raises ~azure.core.exceptions.HttpResponseError:
|
305
287
|
"""
|
306
288
|
|
@@ -333,8 +315,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
333
315
|
:paramtype content_type: str
|
334
316
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
335
317
|
cls(response)
|
336
|
-
:rtype:
|
337
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
318
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
338
319
|
:raises ~azure.core.exceptions.HttpResponseError:
|
339
320
|
"""
|
340
321
|
|
@@ -360,18 +341,16 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
360
341
|
:type account_name: str
|
361
342
|
:param parameters: The parameters to provide for the created account. Is either a
|
362
343
|
StorageAccountCreateParameters type or a IO[bytes] type. Required.
|
363
|
-
:type parameters: ~azure.mgmt.storage.
|
364
|
-
IO[bytes]
|
344
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountCreateParameters or IO[bytes]
|
365
345
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
366
346
|
cls(response)
|
367
|
-
:rtype:
|
368
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
347
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
369
348
|
:raises ~azure.core.exceptions.HttpResponseError:
|
370
349
|
"""
|
371
350
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
372
351
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
373
352
|
|
374
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
353
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
375
354
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
376
355
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
377
356
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -441,7 +420,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
441
420
|
_headers = kwargs.pop("headers", {}) or {}
|
442
421
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
443
422
|
|
444
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
423
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
445
424
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
446
425
|
|
447
426
|
_request = build_delete_request(
|
@@ -491,9 +470,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
491
470
|
data is not included when fetching properties. Currently we only support geoReplicationStats
|
492
471
|
and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
|
493
472
|
value is None.
|
494
|
-
:type expand: str or ~azure.mgmt.storage.
|
473
|
+
:type expand: str or ~azure.mgmt.storage.models.StorageAccountExpand
|
495
474
|
:return: StorageAccount or the result of cls(response)
|
496
|
-
:rtype: ~azure.mgmt.storage.
|
475
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
497
476
|
:raises ~azure.core.exceptions.HttpResponseError:
|
498
477
|
"""
|
499
478
|
error_map: MutableMapping = {
|
@@ -507,7 +486,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
507
486
|
_headers = kwargs.pop("headers", {}) or {}
|
508
487
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
509
488
|
|
510
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
489
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
511
490
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
512
491
|
|
513
492
|
_request = build_get_properties_request(
|
@@ -566,12 +545,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
566
545
|
lower-case letters only. Required.
|
567
546
|
:type account_name: str
|
568
547
|
:param parameters: The parameters to provide for the updated account. Required.
|
569
|
-
:type parameters: ~azure.mgmt.storage.
|
548
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountUpdateParameters
|
570
549
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
571
550
|
Default value is "application/json".
|
572
551
|
:paramtype content_type: str
|
573
552
|
:return: StorageAccount or the result of cls(response)
|
574
|
-
:rtype: ~azure.mgmt.storage.
|
553
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
575
554
|
:raises ~azure.core.exceptions.HttpResponseError:
|
576
555
|
"""
|
577
556
|
|
@@ -607,7 +586,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
607
586
|
Default value is "application/json".
|
608
587
|
:paramtype content_type: str
|
609
588
|
:return: StorageAccount or the result of cls(response)
|
610
|
-
:rtype: ~azure.mgmt.storage.
|
589
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
611
590
|
:raises ~azure.core.exceptions.HttpResponseError:
|
612
591
|
"""
|
613
592
|
|
@@ -637,10 +616,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
637
616
|
:type account_name: str
|
638
617
|
:param parameters: The parameters to provide for the updated account. Is either a
|
639
618
|
StorageAccountUpdateParameters type or a IO[bytes] type. Required.
|
640
|
-
:type parameters: ~azure.mgmt.storage.
|
641
|
-
IO[bytes]
|
619
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountUpdateParameters or IO[bytes]
|
642
620
|
:return: StorageAccount or the result of cls(response)
|
643
|
-
:rtype: ~azure.mgmt.storage.
|
621
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
644
622
|
:raises ~azure.core.exceptions.HttpResponseError:
|
645
623
|
"""
|
646
624
|
error_map: MutableMapping = {
|
@@ -654,7 +632,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
654
632
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
655
633
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
656
634
|
|
657
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
635
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
658
636
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
659
637
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
660
638
|
|
@@ -698,19 +676,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
698
676
|
return deserialized # type: ignore
|
699
677
|
|
700
678
|
@distributed_trace
|
701
|
-
def list(self, **kwargs: Any) ->
|
679
|
+
def list(self, **kwargs: Any) -> AsyncItemPaged["_models.StorageAccount"]:
|
702
680
|
"""Lists all the storage accounts available under the subscription. Note that storage keys are not
|
703
681
|
returned; use the ListKeys operation for this.
|
704
682
|
|
705
683
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
706
|
-
:rtype:
|
707
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
684
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.StorageAccount]
|
708
685
|
:raises ~azure.core.exceptions.HttpResponseError:
|
709
686
|
"""
|
710
687
|
_headers = kwargs.pop("headers", {}) or {}
|
711
688
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
712
689
|
|
713
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
690
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
714
691
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
715
692
|
|
716
693
|
error_map: MutableMapping = {
|
@@ -741,7 +718,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
741
718
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
742
719
|
}
|
743
720
|
)
|
744
|
-
_next_request_params["api-version"] = self.
|
721
|
+
_next_request_params["api-version"] = self._config.api_version
|
745
722
|
_request = HttpRequest(
|
746
723
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
747
724
|
)
|
@@ -776,7 +753,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
776
753
|
@distributed_trace
|
777
754
|
def list_by_resource_group(
|
778
755
|
self, resource_group_name: str, **kwargs: Any
|
779
|
-
) ->
|
756
|
+
) -> AsyncItemPaged["_models.StorageAccount"]:
|
780
757
|
"""Lists all the storage accounts available under the given resource group. Note that storage keys
|
781
758
|
are not returned; use the ListKeys operation for this.
|
782
759
|
|
@@ -784,14 +761,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
784
761
|
name is case insensitive. Required.
|
785
762
|
:type resource_group_name: str
|
786
763
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
787
|
-
:rtype:
|
788
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
764
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.StorageAccount]
|
789
765
|
:raises ~azure.core.exceptions.HttpResponseError:
|
790
766
|
"""
|
791
767
|
_headers = kwargs.pop("headers", {}) or {}
|
792
768
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
793
769
|
|
794
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
770
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
795
771
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
796
772
|
|
797
773
|
error_map: MutableMapping = {
|
@@ -823,7 +799,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
823
799
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
824
800
|
}
|
825
801
|
)
|
826
|
-
_next_request_params["api-version"] = self.
|
802
|
+
_next_request_params["api-version"] = self._config.api_version
|
827
803
|
_request = HttpRequest(
|
828
804
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
829
805
|
)
|
@@ -873,7 +849,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
873
849
|
"kerb" and None. Default value is "kerb".
|
874
850
|
:type expand: str
|
875
851
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
876
|
-
:rtype: ~azure.mgmt.storage.
|
852
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
877
853
|
:raises ~azure.core.exceptions.HttpResponseError:
|
878
854
|
"""
|
879
855
|
error_map: MutableMapping = {
|
@@ -887,7 +863,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
887
863
|
_headers = kwargs.pop("headers", {}) or {}
|
888
864
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
889
865
|
|
890
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
866
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
891
867
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
892
868
|
|
893
869
|
_request = build_list_keys_request(
|
@@ -940,13 +916,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
940
916
|
:type account_name: str
|
941
917
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
942
918
|
kerb1, kerb2. Required.
|
943
|
-
:type regenerate_key:
|
944
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters
|
919
|
+
:type regenerate_key: ~azure.mgmt.storage.models.StorageAccountRegenerateKeyParameters
|
945
920
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
946
921
|
Default value is "application/json".
|
947
922
|
:paramtype content_type: str
|
948
923
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
949
|
-
:rtype: ~azure.mgmt.storage.
|
924
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
950
925
|
:raises ~azure.core.exceptions.HttpResponseError:
|
951
926
|
"""
|
952
927
|
|
@@ -976,7 +951,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
976
951
|
Default value is "application/json".
|
977
952
|
:paramtype content_type: str
|
978
953
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
979
|
-
:rtype: ~azure.mgmt.storage.
|
954
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
980
955
|
:raises ~azure.core.exceptions.HttpResponseError:
|
981
956
|
"""
|
982
957
|
|
@@ -1000,10 +975,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1000
975
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1001
976
|
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
|
1002
977
|
Required.
|
1003
|
-
:type regenerate_key:
|
1004
|
-
|
978
|
+
:type regenerate_key: ~azure.mgmt.storage.models.StorageAccountRegenerateKeyParameters or
|
979
|
+
IO[bytes]
|
1005
980
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1006
|
-
:rtype: ~azure.mgmt.storage.
|
981
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
1007
982
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1008
983
|
"""
|
1009
984
|
error_map: MutableMapping = {
|
@@ -1017,7 +992,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1017
992
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1018
993
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1019
994
|
|
1020
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
995
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1021
996
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1022
997
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
1023
998
|
|
@@ -1081,12 +1056,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1081
1056
|
:type account_name: str
|
1082
1057
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1083
1058
|
Required.
|
1084
|
-
:type parameters: ~azure.mgmt.storage.
|
1059
|
+
:type parameters: ~azure.mgmt.storage.models.AccountSasParameters
|
1085
1060
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1086
1061
|
Default value is "application/json".
|
1087
1062
|
:paramtype content_type: str
|
1088
1063
|
:return: ListAccountSasResponse or the result of cls(response)
|
1089
|
-
:rtype: ~azure.mgmt.storage.
|
1064
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1090
1065
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1091
1066
|
"""
|
1092
1067
|
|
@@ -1116,7 +1091,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1116
1091
|
Default value is "application/json".
|
1117
1092
|
:paramtype content_type: str
|
1118
1093
|
:return: ListAccountSasResponse or the result of cls(response)
|
1119
|
-
:rtype: ~azure.mgmt.storage.
|
1094
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1120
1095
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1121
1096
|
"""
|
1122
1097
|
|
@@ -1139,9 +1114,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1139
1114
|
:type account_name: str
|
1140
1115
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1141
1116
|
Is either a AccountSasParameters type or a IO[bytes] type. Required.
|
1142
|
-
:type parameters: ~azure.mgmt.storage.
|
1117
|
+
:type parameters: ~azure.mgmt.storage.models.AccountSasParameters or IO[bytes]
|
1143
1118
|
:return: ListAccountSasResponse or the result of cls(response)
|
1144
|
-
:rtype: ~azure.mgmt.storage.
|
1119
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1145
1120
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1146
1121
|
"""
|
1147
1122
|
error_map: MutableMapping = {
|
@@ -1155,7 +1130,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1155
1130
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1156
1131
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1157
1132
|
|
1158
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1133
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1159
1134
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1160
1135
|
cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
|
1161
1136
|
|
@@ -1218,12 +1193,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1218
1193
|
lower-case letters only. Required.
|
1219
1194
|
:type account_name: str
|
1220
1195
|
:param parameters: The parameters to provide to list service SAS credentials. Required.
|
1221
|
-
:type parameters: ~azure.mgmt.storage.
|
1196
|
+
:type parameters: ~azure.mgmt.storage.models.ServiceSasParameters
|
1222
1197
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1223
1198
|
Default value is "application/json".
|
1224
1199
|
:paramtype content_type: str
|
1225
1200
|
:return: ListServiceSasResponse or the result of cls(response)
|
1226
|
-
:rtype: ~azure.mgmt.storage.
|
1201
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1227
1202
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1228
1203
|
"""
|
1229
1204
|
|
@@ -1252,7 +1227,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1252
1227
|
Default value is "application/json".
|
1253
1228
|
:paramtype content_type: str
|
1254
1229
|
:return: ListServiceSasResponse or the result of cls(response)
|
1255
|
-
:rtype: ~azure.mgmt.storage.
|
1230
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1256
1231
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1257
1232
|
"""
|
1258
1233
|
|
@@ -1275,9 +1250,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1275
1250
|
:type account_name: str
|
1276
1251
|
:param parameters: The parameters to provide to list service SAS credentials. Is either a
|
1277
1252
|
ServiceSasParameters type or a IO[bytes] type. Required.
|
1278
|
-
:type parameters: ~azure.mgmt.storage.
|
1253
|
+
:type parameters: ~azure.mgmt.storage.models.ServiceSasParameters or IO[bytes]
|
1279
1254
|
:return: ListServiceSasResponse or the result of cls(response)
|
1280
|
-
:rtype: ~azure.mgmt.storage.
|
1255
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1281
1256
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1282
1257
|
"""
|
1283
1258
|
error_map: MutableMapping = {
|
@@ -1291,7 +1266,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1291
1266
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1292
1267
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1293
1268
|
|
1294
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1269
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1295
1270
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1296
1271
|
cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
|
1297
1272
|
|
@@ -1348,7 +1323,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1348
1323
|
_headers = kwargs.pop("headers", {}) or {}
|
1349
1324
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1350
1325
|
|
1351
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1326
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1352
1327
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1353
1328
|
|
1354
1329
|
_request = build_failover_request(
|
@@ -1418,7 +1393,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1418
1393
|
_headers = kwargs.pop("headers", {}) or {}
|
1419
1394
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1420
1395
|
|
1421
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1396
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1422
1397
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1423
1398
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1424
1399
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1472,7 +1447,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1472
1447
|
_headers = kwargs.pop("headers", {}) or {}
|
1473
1448
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1474
1449
|
|
1475
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1450
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1476
1451
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1477
1452
|
|
1478
1453
|
_request = build_hierarchical_namespace_migration_request(
|
@@ -1535,7 +1510,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1535
1510
|
_headers = kwargs.pop("headers", {}) or {}
|
1536
1511
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1537
1512
|
|
1538
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1513
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1539
1514
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1540
1515
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1541
1516
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1589,7 +1564,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1589
1564
|
_headers = kwargs.pop("headers", {}) or {}
|
1590
1565
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1591
1566
|
|
1592
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1567
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1593
1568
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1594
1569
|
|
1595
1570
|
_request = build_abort_hierarchical_namespace_migration_request(
|
@@ -1646,7 +1621,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1646
1621
|
_headers = kwargs.pop("headers", {}) or {}
|
1647
1622
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1648
1623
|
|
1649
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1624
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1650
1625
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1651
1626
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1652
1627
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1703,7 +1678,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1703
1678
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1704
1679
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1705
1680
|
|
1706
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1681
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1707
1682
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1708
1683
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1709
1684
|
|
@@ -1781,7 +1756,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1781
1756
|
:type account_name: str
|
1782
1757
|
:param parameters: The request parameters required to perform storage account migration.
|
1783
1758
|
Required.
|
1784
|
-
:type parameters: ~azure.mgmt.storage.
|
1759
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountMigration
|
1785
1760
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1786
1761
|
Default value is "application/json".
|
1787
1762
|
:paramtype content_type: str
|
@@ -1847,7 +1822,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1847
1822
|
:type account_name: str
|
1848
1823
|
:param parameters: The request parameters required to perform storage account migration. Is
|
1849
1824
|
either a StorageAccountMigration type or a IO[bytes] type. Required.
|
1850
|
-
:type parameters: ~azure.mgmt.storage.
|
1825
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountMigration or IO[bytes]
|
1851
1826
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1852
1827
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1853
1828
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1855,7 +1830,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1855
1830
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1856
1831
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1857
1832
|
|
1858
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1833
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1859
1834
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1860
1835
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1861
1836
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -1916,9 +1891,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1916
1891
|
:type account_name: str
|
1917
1892
|
:param migration_name: The name of the Storage Account Migration. It should always be
|
1918
1893
|
'default'. "default" Required.
|
1919
|
-
:type migration_name: str or ~azure.mgmt.storage.
|
1894
|
+
:type migration_name: str or ~azure.mgmt.storage.models.MigrationName
|
1920
1895
|
:return: StorageAccountMigration or the result of cls(response)
|
1921
|
-
:rtype: ~azure.mgmt.storage.
|
1896
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountMigration
|
1922
1897
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1923
1898
|
"""
|
1924
1899
|
error_map: MutableMapping = {
|
@@ -1932,7 +1907,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1932
1907
|
_headers = kwargs.pop("headers", {}) or {}
|
1933
1908
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1934
1909
|
|
1935
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1910
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1936
1911
|
cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None)
|
1937
1912
|
|
1938
1913
|
_request = build_get_customer_initiated_migration_request(
|
@@ -1983,7 +1958,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1983
1958
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1984
1959
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1985
1960
|
|
1986
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1961
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1987
1962
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1988
1963
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1989
1964
|
|
@@ -2051,14 +2026,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2051
2026
|
lower-case letters only. Required.
|
2052
2027
|
:type account_name: str
|
2053
2028
|
:param parameters: The parameters to provide for restore blob ranges. Required.
|
2054
|
-
:type parameters: ~azure.mgmt.storage.
|
2029
|
+
:type parameters: ~azure.mgmt.storage.models.BlobRestoreParameters
|
2055
2030
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2056
2031
|
Default value is "application/json".
|
2057
2032
|
:paramtype content_type: str
|
2058
2033
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2059
2034
|
cls(response)
|
2060
|
-
:rtype:
|
2061
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2035
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2062
2036
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2063
2037
|
"""
|
2064
2038
|
|
@@ -2088,8 +2062,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2088
2062
|
:paramtype content_type: str
|
2089
2063
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2090
2064
|
cls(response)
|
2091
|
-
:rtype:
|
2092
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2065
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2093
2066
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2094
2067
|
"""
|
2095
2068
|
|
@@ -2112,17 +2085,16 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2112
2085
|
:type account_name: str
|
2113
2086
|
:param parameters: The parameters to provide for restore blob ranges. Is either a
|
2114
2087
|
BlobRestoreParameters type or a IO[bytes] type. Required.
|
2115
|
-
:type parameters: ~azure.mgmt.storage.
|
2088
|
+
:type parameters: ~azure.mgmt.storage.models.BlobRestoreParameters or IO[bytes]
|
2116
2089
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2117
2090
|
cls(response)
|
2118
|
-
:rtype:
|
2119
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2091
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2120
2092
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2121
2093
|
"""
|
2122
2094
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2123
2095
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
2124
2096
|
|
2125
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
2097
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
2126
2098
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2127
2099
|
cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
|
2128
2100
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -2194,7 +2166,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2194
2166
|
_headers = kwargs.pop("headers", {}) or {}
|
2195
2167
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
2196
2168
|
|
2197
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
2169
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
2198
2170
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2199
2171
|
|
2200
2172
|
_request = build_revoke_user_delegation_keys_request(
|