azure-mgmt-storage 22.1.1__py3-none-any.whl → 23.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/mgmt/storage/__init__.py +19 -7
- azure/mgmt/storage/_configuration.py +27 -29
- azure/mgmt/storage/{v2016_01_01/models/_patch.py → _patch.py} +5 -4
- azure/mgmt/storage/_storage_management_client.py +184 -499
- azure/mgmt/storage/{v2016_01_01/_version.py → _utils/__init__.py} +0 -3
- azure/mgmt/storage/{_serialization.py → _utils/serialization.py} +46 -131
- azure/mgmt/storage/_version.py +1 -1
- azure/mgmt/storage/aio/__init__.py +21 -2
- azure/mgmt/storage/aio/_configuration.py +27 -29
- azure/mgmt/storage/{v2017_10_01/aio/operations → aio}/_patch.py +5 -4
- azure/mgmt/storage/aio/_storage_management_client.py +188 -497
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_containers_operations.py +66 -69
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +26 -34
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +20 -22
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +14 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +24 -27
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +36 -39
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +26 -29
- azure/mgmt/storage/{v2019_06_01/aio → aio}/operations/_management_policies_operations.py +23 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_network_security_perimeter_configurations_operations.py +16 -19
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +21 -23
- azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +12 -15
- azure/mgmt/storage/{v2016_01_01/aio → aio}/operations/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py +21 -23
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_link_resources_operations.py +11 -13
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_skus_operations.py +12 -15
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +81 -96
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +30 -39
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +27 -29
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_usages_operations.py +12 -14
- azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +870 -927
- azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +1 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +81 -84
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +31 -39
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +24 -27
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +16 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +32 -34
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +30 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +44 -47
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +27 -34
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +20 -22
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +12 -15
- azure/mgmt/storage/operations/_patch.py +21 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +13 -15
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +12 -15
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +98 -106
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +15 -19
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +15 -19
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +36 -47
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +13 -16
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +20 -10
- azure_mgmt_storage-23.0.0.dist-info/RECORD +73 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +1 -1
- azure/mgmt/storage/models.py +0 -8
- azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
- azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
- azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
- azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
- azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
- azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
- azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
- azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2016_01_01/py.typed +0 -1
- azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
- azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
- azure/mgmt/storage/v2017_10_01/_version.py +0 -9
- azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
- azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
- azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
- azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
- azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
- azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
- azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/py.typed +0 -1
- azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
- azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
- azure/mgmt/storage/v2019_06_01/_version.py +0 -9
- azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
- azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
- azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
- azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
- azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
- azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
- azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
- azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
- azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
- azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
- azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
- azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
- azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
- azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
- azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
- azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
- azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
- azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
- azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
- azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
- azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
- azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
- azure/mgmt/storage/v2019_06_01/py.typed +0 -1
- azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
- azure/mgmt/storage/v2024_01_01/_version.py +0 -9
- azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
- azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
- azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/py.typed +0 -1
- azure_mgmt_storage-22.1.1.dist-info/RECORD +0 -183
- /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/top_level.txt +0 -0
@@ -6,8 +6,8 @@
|
|
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 (
|
12
12
|
Any,
|
13
13
|
AsyncIterable,
|
@@ -24,6 +24,7 @@ from typing import (
|
|
24
24
|
)
|
25
25
|
import urllib.parse
|
26
26
|
|
27
|
+
from azure.core import AsyncPipelineClient
|
27
28
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
28
29
|
from azure.core.exceptions import (
|
29
30
|
ClientAuthenticationError,
|
@@ -45,6 +46,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|
45
46
|
from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling
|
46
47
|
|
47
48
|
from ... import models as _models
|
49
|
+
from ..._utils.serialization import Deserializer, Serializer
|
48
50
|
from ...operations._storage_accounts_operations import (
|
49
51
|
build_abort_hierarchical_namespace_migration_request,
|
50
52
|
build_check_name_availability_request,
|
@@ -65,11 +67,8 @@ from ...operations._storage_accounts_operations import (
|
|
65
67
|
build_revoke_user_delegation_keys_request,
|
66
68
|
build_update_request,
|
67
69
|
)
|
70
|
+
from .._configuration import StorageManagementClientConfiguration
|
68
71
|
|
69
|
-
if sys.version_info >= (3, 9):
|
70
|
-
from collections.abc import MutableMapping
|
71
|
-
else:
|
72
|
-
from typing import MutableMapping # type: ignore
|
73
72
|
T = TypeVar("T")
|
74
73
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
75
74
|
|
@@ -80,7 +79,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
80
79
|
**DO NOT** instantiate this class directly.
|
81
80
|
|
82
81
|
Instead, you should access the following operations through
|
83
|
-
:class:`~azure.mgmt.storage.
|
82
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
84
83
|
:attr:`storage_accounts` attribute.
|
85
84
|
"""
|
86
85
|
|
@@ -88,11 +87,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
88
87
|
|
89
88
|
def __init__(self, *args, **kwargs) -> None:
|
90
89
|
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")
|
90
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
91
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
92
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
93
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
96
94
|
|
97
95
|
@overload
|
98
96
|
async def check_name_availability(
|
@@ -107,13 +105,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
107
105
|
:param account_name: The name of the storage account within the specified resource group.
|
108
106
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
109
107
|
lower-case letters only. Required.
|
110
|
-
:type account_name:
|
111
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters
|
108
|
+
:type account_name: ~azure.mgmt.storage.models.StorageAccountCheckNameAvailabilityParameters
|
112
109
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
113
110
|
Default value is "application/json".
|
114
111
|
:paramtype content_type: str
|
115
112
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
116
|
-
:rtype: ~azure.mgmt.storage.
|
113
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
117
114
|
:raises ~azure.core.exceptions.HttpResponseError:
|
118
115
|
"""
|
119
116
|
|
@@ -131,7 +128,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
131
128
|
Default value is "application/json".
|
132
129
|
:paramtype content_type: str
|
133
130
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
134
|
-
:rtype: ~azure.mgmt.storage.
|
131
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
135
132
|
:raises ~azure.core.exceptions.HttpResponseError:
|
136
133
|
"""
|
137
134
|
|
@@ -145,11 +142,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
145
142
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
146
143
|
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
147
144
|
IO[bytes] type. Required.
|
148
|
-
:type account_name:
|
149
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
145
|
+
:type account_name: ~azure.mgmt.storage.models.StorageAccountCheckNameAvailabilityParameters or
|
150
146
|
IO[bytes]
|
151
147
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
152
|
-
:rtype: ~azure.mgmt.storage.
|
148
|
+
:rtype: ~azure.mgmt.storage.models.CheckNameAvailabilityResult
|
153
149
|
:raises ~azure.core.exceptions.HttpResponseError:
|
154
150
|
"""
|
155
151
|
error_map: MutableMapping = {
|
@@ -163,7 +159,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
163
159
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
164
160
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
165
161
|
|
166
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
162
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
167
163
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
168
164
|
cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None)
|
169
165
|
|
@@ -222,7 +218,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
222
218
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
223
219
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
224
220
|
|
225
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
221
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
226
222
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
227
223
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
228
224
|
|
@@ -293,14 +289,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
293
289
|
lower-case letters only. Required.
|
294
290
|
:type account_name: str
|
295
291
|
:param parameters: The parameters to provide for the created account. Required.
|
296
|
-
:type parameters: ~azure.mgmt.storage.
|
292
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountCreateParameters
|
297
293
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
298
294
|
Default value is "application/json".
|
299
295
|
:paramtype content_type: str
|
300
296
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
301
297
|
cls(response)
|
302
|
-
:rtype:
|
303
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
298
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
304
299
|
:raises ~azure.core.exceptions.HttpResponseError:
|
305
300
|
"""
|
306
301
|
|
@@ -333,8 +328,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
333
328
|
:paramtype content_type: str
|
334
329
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
335
330
|
cls(response)
|
336
|
-
:rtype:
|
337
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
331
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
338
332
|
:raises ~azure.core.exceptions.HttpResponseError:
|
339
333
|
"""
|
340
334
|
|
@@ -360,18 +354,16 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
360
354
|
:type account_name: str
|
361
355
|
:param parameters: The parameters to provide for the created account. Is either a
|
362
356
|
StorageAccountCreateParameters type or a IO[bytes] type. Required.
|
363
|
-
:type parameters: ~azure.mgmt.storage.
|
364
|
-
IO[bytes]
|
357
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountCreateParameters or IO[bytes]
|
365
358
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
366
359
|
cls(response)
|
367
|
-
:rtype:
|
368
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount]
|
360
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.StorageAccount]
|
369
361
|
:raises ~azure.core.exceptions.HttpResponseError:
|
370
362
|
"""
|
371
363
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
372
364
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
373
365
|
|
374
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
366
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
375
367
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
376
368
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
377
369
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -441,7 +433,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
441
433
|
_headers = kwargs.pop("headers", {}) or {}
|
442
434
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
443
435
|
|
444
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
436
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
445
437
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
446
438
|
|
447
439
|
_request = build_delete_request(
|
@@ -491,9 +483,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
491
483
|
data is not included when fetching properties. Currently we only support geoReplicationStats
|
492
484
|
and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
|
493
485
|
value is None.
|
494
|
-
:type expand: str or ~azure.mgmt.storage.
|
486
|
+
:type expand: str or ~azure.mgmt.storage.models.StorageAccountExpand
|
495
487
|
:return: StorageAccount or the result of cls(response)
|
496
|
-
:rtype: ~azure.mgmt.storage.
|
488
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
497
489
|
:raises ~azure.core.exceptions.HttpResponseError:
|
498
490
|
"""
|
499
491
|
error_map: MutableMapping = {
|
@@ -507,7 +499,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
507
499
|
_headers = kwargs.pop("headers", {}) or {}
|
508
500
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
509
501
|
|
510
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
502
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
511
503
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
512
504
|
|
513
505
|
_request = build_get_properties_request(
|
@@ -566,12 +558,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
566
558
|
lower-case letters only. Required.
|
567
559
|
:type account_name: str
|
568
560
|
:param parameters: The parameters to provide for the updated account. Required.
|
569
|
-
:type parameters: ~azure.mgmt.storage.
|
561
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountUpdateParameters
|
570
562
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
571
563
|
Default value is "application/json".
|
572
564
|
:paramtype content_type: str
|
573
565
|
:return: StorageAccount or the result of cls(response)
|
574
|
-
:rtype: ~azure.mgmt.storage.
|
566
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
575
567
|
:raises ~azure.core.exceptions.HttpResponseError:
|
576
568
|
"""
|
577
569
|
|
@@ -607,7 +599,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
607
599
|
Default value is "application/json".
|
608
600
|
:paramtype content_type: str
|
609
601
|
:return: StorageAccount or the result of cls(response)
|
610
|
-
:rtype: ~azure.mgmt.storage.
|
602
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
611
603
|
:raises ~azure.core.exceptions.HttpResponseError:
|
612
604
|
"""
|
613
605
|
|
@@ -637,10 +629,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
637
629
|
:type account_name: str
|
638
630
|
:param parameters: The parameters to provide for the updated account. Is either a
|
639
631
|
StorageAccountUpdateParameters type or a IO[bytes] type. Required.
|
640
|
-
:type parameters: ~azure.mgmt.storage.
|
641
|
-
IO[bytes]
|
632
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountUpdateParameters or IO[bytes]
|
642
633
|
:return: StorageAccount or the result of cls(response)
|
643
|
-
:rtype: ~azure.mgmt.storage.
|
634
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccount
|
644
635
|
:raises ~azure.core.exceptions.HttpResponseError:
|
645
636
|
"""
|
646
637
|
error_map: MutableMapping = {
|
@@ -654,7 +645,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
654
645
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
655
646
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
656
647
|
|
657
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
648
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
658
649
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
659
650
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
660
651
|
|
@@ -703,14 +694,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
703
694
|
returned; use the ListKeys operation for this.
|
704
695
|
|
705
696
|
: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]
|
697
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.StorageAccount]
|
708
698
|
:raises ~azure.core.exceptions.HttpResponseError:
|
709
699
|
"""
|
710
700
|
_headers = kwargs.pop("headers", {}) or {}
|
711
701
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
712
702
|
|
713
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
703
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
714
704
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
715
705
|
|
716
706
|
error_map: MutableMapping = {
|
@@ -741,7 +731,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
741
731
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
742
732
|
}
|
743
733
|
)
|
744
|
-
_next_request_params["api-version"] = self.
|
734
|
+
_next_request_params["api-version"] = self._config.api_version
|
745
735
|
_request = HttpRequest(
|
746
736
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
747
737
|
)
|
@@ -784,14 +774,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
784
774
|
name is case insensitive. Required.
|
785
775
|
:type resource_group_name: str
|
786
776
|
: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]
|
777
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.StorageAccount]
|
789
778
|
:raises ~azure.core.exceptions.HttpResponseError:
|
790
779
|
"""
|
791
780
|
_headers = kwargs.pop("headers", {}) or {}
|
792
781
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
793
782
|
|
794
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
783
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
795
784
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
796
785
|
|
797
786
|
error_map: MutableMapping = {
|
@@ -823,7 +812,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
823
812
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
824
813
|
}
|
825
814
|
)
|
826
|
-
_next_request_params["api-version"] = self.
|
815
|
+
_next_request_params["api-version"] = self._config.api_version
|
827
816
|
_request = HttpRequest(
|
828
817
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
829
818
|
)
|
@@ -873,7 +862,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
873
862
|
"kerb" and None. Default value is "kerb".
|
874
863
|
:type expand: str
|
875
864
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
876
|
-
:rtype: ~azure.mgmt.storage.
|
865
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
877
866
|
:raises ~azure.core.exceptions.HttpResponseError:
|
878
867
|
"""
|
879
868
|
error_map: MutableMapping = {
|
@@ -887,7 +876,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
887
876
|
_headers = kwargs.pop("headers", {}) or {}
|
888
877
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
889
878
|
|
890
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
879
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
891
880
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
892
881
|
|
893
882
|
_request = build_list_keys_request(
|
@@ -940,13 +929,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
940
929
|
:type account_name: str
|
941
930
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
942
931
|
kerb1, kerb2. Required.
|
943
|
-
:type regenerate_key:
|
944
|
-
~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters
|
932
|
+
:type regenerate_key: ~azure.mgmt.storage.models.StorageAccountRegenerateKeyParameters
|
945
933
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
946
934
|
Default value is "application/json".
|
947
935
|
:paramtype content_type: str
|
948
936
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
949
|
-
:rtype: ~azure.mgmt.storage.
|
937
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
950
938
|
:raises ~azure.core.exceptions.HttpResponseError:
|
951
939
|
"""
|
952
940
|
|
@@ -976,7 +964,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
976
964
|
Default value is "application/json".
|
977
965
|
:paramtype content_type: str
|
978
966
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
979
|
-
:rtype: ~azure.mgmt.storage.
|
967
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
980
968
|
:raises ~azure.core.exceptions.HttpResponseError:
|
981
969
|
"""
|
982
970
|
|
@@ -1000,10 +988,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1000
988
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1001
989
|
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
|
1002
990
|
Required.
|
1003
|
-
:type regenerate_key:
|
1004
|
-
|
991
|
+
:type regenerate_key: ~azure.mgmt.storage.models.StorageAccountRegenerateKeyParameters or
|
992
|
+
IO[bytes]
|
1005
993
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1006
|
-
:rtype: ~azure.mgmt.storage.
|
994
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountListKeysResult
|
1007
995
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1008
996
|
"""
|
1009
997
|
error_map: MutableMapping = {
|
@@ -1017,7 +1005,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1017
1005
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1018
1006
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1019
1007
|
|
1020
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1008
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1021
1009
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1022
1010
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
1023
1011
|
|
@@ -1081,12 +1069,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1081
1069
|
:type account_name: str
|
1082
1070
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1083
1071
|
Required.
|
1084
|
-
:type parameters: ~azure.mgmt.storage.
|
1072
|
+
:type parameters: ~azure.mgmt.storage.models.AccountSasParameters
|
1085
1073
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1086
1074
|
Default value is "application/json".
|
1087
1075
|
:paramtype content_type: str
|
1088
1076
|
:return: ListAccountSasResponse or the result of cls(response)
|
1089
|
-
:rtype: ~azure.mgmt.storage.
|
1077
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1090
1078
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1091
1079
|
"""
|
1092
1080
|
|
@@ -1116,7 +1104,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1116
1104
|
Default value is "application/json".
|
1117
1105
|
:paramtype content_type: str
|
1118
1106
|
:return: ListAccountSasResponse or the result of cls(response)
|
1119
|
-
:rtype: ~azure.mgmt.storage.
|
1107
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1120
1108
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1121
1109
|
"""
|
1122
1110
|
|
@@ -1139,9 +1127,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1139
1127
|
:type account_name: str
|
1140
1128
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1141
1129
|
Is either a AccountSasParameters type or a IO[bytes] type. Required.
|
1142
|
-
:type parameters: ~azure.mgmt.storage.
|
1130
|
+
:type parameters: ~azure.mgmt.storage.models.AccountSasParameters or IO[bytes]
|
1143
1131
|
:return: ListAccountSasResponse or the result of cls(response)
|
1144
|
-
:rtype: ~azure.mgmt.storage.
|
1132
|
+
:rtype: ~azure.mgmt.storage.models.ListAccountSasResponse
|
1145
1133
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1146
1134
|
"""
|
1147
1135
|
error_map: MutableMapping = {
|
@@ -1155,7 +1143,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1155
1143
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1156
1144
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1157
1145
|
|
1158
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1146
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1159
1147
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1160
1148
|
cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None)
|
1161
1149
|
|
@@ -1218,12 +1206,12 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1218
1206
|
lower-case letters only. Required.
|
1219
1207
|
:type account_name: str
|
1220
1208
|
:param parameters: The parameters to provide to list service SAS credentials. Required.
|
1221
|
-
:type parameters: ~azure.mgmt.storage.
|
1209
|
+
:type parameters: ~azure.mgmt.storage.models.ServiceSasParameters
|
1222
1210
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1223
1211
|
Default value is "application/json".
|
1224
1212
|
:paramtype content_type: str
|
1225
1213
|
:return: ListServiceSasResponse or the result of cls(response)
|
1226
|
-
:rtype: ~azure.mgmt.storage.
|
1214
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1227
1215
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1228
1216
|
"""
|
1229
1217
|
|
@@ -1252,7 +1240,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1252
1240
|
Default value is "application/json".
|
1253
1241
|
:paramtype content_type: str
|
1254
1242
|
:return: ListServiceSasResponse or the result of cls(response)
|
1255
|
-
:rtype: ~azure.mgmt.storage.
|
1243
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1256
1244
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1257
1245
|
"""
|
1258
1246
|
|
@@ -1275,9 +1263,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1275
1263
|
:type account_name: str
|
1276
1264
|
:param parameters: The parameters to provide to list service SAS credentials. Is either a
|
1277
1265
|
ServiceSasParameters type or a IO[bytes] type. Required.
|
1278
|
-
:type parameters: ~azure.mgmt.storage.
|
1266
|
+
:type parameters: ~azure.mgmt.storage.models.ServiceSasParameters or IO[bytes]
|
1279
1267
|
:return: ListServiceSasResponse or the result of cls(response)
|
1280
|
-
:rtype: ~azure.mgmt.storage.
|
1268
|
+
:rtype: ~azure.mgmt.storage.models.ListServiceSasResponse
|
1281
1269
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1282
1270
|
"""
|
1283
1271
|
error_map: MutableMapping = {
|
@@ -1291,7 +1279,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1291
1279
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1292
1280
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1293
1281
|
|
1294
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1282
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1295
1283
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1296
1284
|
cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None)
|
1297
1285
|
|
@@ -1348,7 +1336,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1348
1336
|
_headers = kwargs.pop("headers", {}) or {}
|
1349
1337
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1350
1338
|
|
1351
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1339
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1352
1340
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1353
1341
|
|
1354
1342
|
_request = build_failover_request(
|
@@ -1399,7 +1387,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1399
1387
|
primary use case of a Planned Failover is disaster recovery testing drills. This type of
|
1400
1388
|
failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the
|
1401
1389
|
failover options here-
|
1402
|
-
https://learn.microsoft.com/
|
1390
|
+
https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance.
|
1403
1391
|
|
1404
1392
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
1405
1393
|
name is case insensitive. Required.
|
@@ -1418,7 +1406,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1418
1406
|
_headers = kwargs.pop("headers", {}) or {}
|
1419
1407
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1420
1408
|
|
1421
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1409
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1422
1410
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1423
1411
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1424
1412
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1472,7 +1460,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1472
1460
|
_headers = kwargs.pop("headers", {}) or {}
|
1473
1461
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1474
1462
|
|
1475
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1463
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1476
1464
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1477
1465
|
|
1478
1466
|
_request = build_hierarchical_namespace_migration_request(
|
@@ -1535,7 +1523,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1535
1523
|
_headers = kwargs.pop("headers", {}) or {}
|
1536
1524
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1537
1525
|
|
1538
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1526
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1539
1527
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1540
1528
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1541
1529
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1589,7 +1577,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1589
1577
|
_headers = kwargs.pop("headers", {}) or {}
|
1590
1578
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1591
1579
|
|
1592
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1580
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1593
1581
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1594
1582
|
|
1595
1583
|
_request = build_abort_hierarchical_namespace_migration_request(
|
@@ -1646,7 +1634,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1646
1634
|
_headers = kwargs.pop("headers", {}) or {}
|
1647
1635
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1648
1636
|
|
1649
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1637
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1650
1638
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1651
1639
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1652
1640
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|
@@ -1703,7 +1691,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1703
1691
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1704
1692
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1705
1693
|
|
1706
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1694
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1707
1695
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1708
1696
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1709
1697
|
|
@@ -1781,7 +1769,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1781
1769
|
:type account_name: str
|
1782
1770
|
:param parameters: The request parameters required to perform storage account migration.
|
1783
1771
|
Required.
|
1784
|
-
:type parameters: ~azure.mgmt.storage.
|
1772
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountMigration
|
1785
1773
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1786
1774
|
Default value is "application/json".
|
1787
1775
|
:paramtype content_type: str
|
@@ -1847,7 +1835,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1847
1835
|
:type account_name: str
|
1848
1836
|
:param parameters: The request parameters required to perform storage account migration. Is
|
1849
1837
|
either a StorageAccountMigration type or a IO[bytes] type. Required.
|
1850
|
-
:type parameters: ~azure.mgmt.storage.
|
1838
|
+
:type parameters: ~azure.mgmt.storage.models.StorageAccountMigration or IO[bytes]
|
1851
1839
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1852
1840
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1853
1841
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1855,7 +1843,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1855
1843
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1856
1844
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1857
1845
|
|
1858
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1846
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1859
1847
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1860
1848
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1861
1849
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -1916,9 +1904,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1916
1904
|
:type account_name: str
|
1917
1905
|
:param migration_name: The name of the Storage Account Migration. It should always be
|
1918
1906
|
'default'. "default" Required.
|
1919
|
-
:type migration_name: str or ~azure.mgmt.storage.
|
1907
|
+
:type migration_name: str or ~azure.mgmt.storage.models.MigrationName
|
1920
1908
|
:return: StorageAccountMigration or the result of cls(response)
|
1921
|
-
:rtype: ~azure.mgmt.storage.
|
1909
|
+
:rtype: ~azure.mgmt.storage.models.StorageAccountMigration
|
1922
1910
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1923
1911
|
"""
|
1924
1912
|
error_map: MutableMapping = {
|
@@ -1932,7 +1920,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1932
1920
|
_headers = kwargs.pop("headers", {}) or {}
|
1933
1921
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1934
1922
|
|
1935
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1923
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1936
1924
|
cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None)
|
1937
1925
|
|
1938
1926
|
_request = build_get_customer_initiated_migration_request(
|
@@ -1983,7 +1971,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1983
1971
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1984
1972
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1985
1973
|
|
1986
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1974
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1987
1975
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1988
1976
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1989
1977
|
|
@@ -2051,14 +2039,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2051
2039
|
lower-case letters only. Required.
|
2052
2040
|
:type account_name: str
|
2053
2041
|
:param parameters: The parameters to provide for restore blob ranges. Required.
|
2054
|
-
:type parameters: ~azure.mgmt.storage.
|
2042
|
+
:type parameters: ~azure.mgmt.storage.models.BlobRestoreParameters
|
2055
2043
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2056
2044
|
Default value is "application/json".
|
2057
2045
|
:paramtype content_type: str
|
2058
2046
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2059
2047
|
cls(response)
|
2060
|
-
:rtype:
|
2061
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2048
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2062
2049
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2063
2050
|
"""
|
2064
2051
|
|
@@ -2088,8 +2075,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2088
2075
|
:paramtype content_type: str
|
2089
2076
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2090
2077
|
cls(response)
|
2091
|
-
:rtype:
|
2092
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2078
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2093
2079
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2094
2080
|
"""
|
2095
2081
|
|
@@ -2112,17 +2098,16 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2112
2098
|
:type account_name: str
|
2113
2099
|
:param parameters: The parameters to provide for restore blob ranges. Is either a
|
2114
2100
|
BlobRestoreParameters type or a IO[bytes] type. Required.
|
2115
|
-
:type parameters: ~azure.mgmt.storage.
|
2101
|
+
:type parameters: ~azure.mgmt.storage.models.BlobRestoreParameters or IO[bytes]
|
2116
2102
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2117
2103
|
cls(response)
|
2118
|
-
:rtype:
|
2119
|
-
~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus]
|
2104
|
+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.models.BlobRestoreStatus]
|
2120
2105
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2121
2106
|
"""
|
2122
2107
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2123
2108
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
2124
2109
|
|
2125
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
2110
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
2126
2111
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2127
2112
|
cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None)
|
2128
2113
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
@@ -2194,7 +2179,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2194
2179
|
_headers = kwargs.pop("headers", {}) or {}
|
2195
2180
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
2196
2181
|
|
2197
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
2182
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
2198
2183
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2199
2184
|
|
2200
2185
|
_request = build_revoke_user_delegation_keys_request(
|