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
azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py
RENAMED
@@ -5,11 +5,12 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
+
from collections.abc import MutableMapping
|
8
9
|
from io import IOBase
|
9
|
-
import sys
|
10
10
|
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
11
11
|
import urllib.parse
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
@@ -27,17 +28,15 @@ from azure.core.utils import case_insensitive_dict
|
|
27
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
28
29
|
|
29
30
|
from ... import models as _models
|
31
|
+
from ..._utils.serialization import Deserializer, Serializer
|
30
32
|
from ...operations._blob_inventory_policies_operations import (
|
31
33
|
build_create_or_update_request,
|
32
34
|
build_delete_request,
|
33
35
|
build_get_request,
|
34
36
|
build_list_request,
|
35
37
|
)
|
38
|
+
from .._configuration import StorageManagementClientConfiguration
|
36
39
|
|
37
|
-
if sys.version_info >= (3, 9):
|
38
|
-
from collections.abc import MutableMapping
|
39
|
-
else:
|
40
|
-
from typing import MutableMapping # type: ignore
|
41
40
|
T = TypeVar("T")
|
42
41
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
43
42
|
|
@@ -48,7 +47,7 @@ class BlobInventoryPoliciesOperations:
|
|
48
47
|
**DO NOT** instantiate this class directly.
|
49
48
|
|
50
49
|
Instead, you should access the following operations through
|
51
|
-
:class:`~azure.mgmt.storage.
|
50
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
52
51
|
:attr:`blob_inventory_policies` attribute.
|
53
52
|
"""
|
54
53
|
|
@@ -56,11 +55,10 @@ class BlobInventoryPoliciesOperations:
|
|
56
55
|
|
57
56
|
def __init__(self, *args, **kwargs) -> None:
|
58
57
|
input_args = list(args)
|
59
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
60
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
61
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
62
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
63
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
58
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
59
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
60
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
61
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
64
62
|
|
65
63
|
@distributed_trace_async
|
66
64
|
async def get(
|
@@ -81,10 +79,9 @@ class BlobInventoryPoliciesOperations:
|
|
81
79
|
:type account_name: str
|
82
80
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
83
81
|
should always be 'default'. "default" Required.
|
84
|
-
:type blob_inventory_policy_name: str or
|
85
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
82
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
86
83
|
:return: BlobInventoryPolicy or the result of cls(response)
|
87
|
-
:rtype: ~azure.mgmt.storage.
|
84
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
88
85
|
:raises ~azure.core.exceptions.HttpResponseError:
|
89
86
|
"""
|
90
87
|
error_map: MutableMapping = {
|
@@ -98,7 +95,7 @@ class BlobInventoryPoliciesOperations:
|
|
98
95
|
_headers = kwargs.pop("headers", {}) or {}
|
99
96
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
100
97
|
|
101
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
98
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
102
99
|
cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
|
103
100
|
|
104
101
|
_request = build_get_request(
|
@@ -152,15 +149,14 @@ class BlobInventoryPoliciesOperations:
|
|
152
149
|
:type account_name: str
|
153
150
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
154
151
|
should always be 'default'. "default" Required.
|
155
|
-
:type blob_inventory_policy_name: str or
|
156
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
152
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
157
153
|
:param properties: The blob inventory policy set to a storage account. Required.
|
158
|
-
:type properties: ~azure.mgmt.storage.
|
154
|
+
:type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
159
155
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
160
156
|
Default value is "application/json".
|
161
157
|
:paramtype content_type: str
|
162
158
|
:return: BlobInventoryPolicy or the result of cls(response)
|
163
|
-
:rtype: ~azure.mgmt.storage.
|
159
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
164
160
|
:raises ~azure.core.exceptions.HttpResponseError:
|
165
161
|
"""
|
166
162
|
|
@@ -186,15 +182,14 @@ class BlobInventoryPoliciesOperations:
|
|
186
182
|
:type account_name: str
|
187
183
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
188
184
|
should always be 'default'. "default" Required.
|
189
|
-
:type blob_inventory_policy_name: str or
|
190
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
185
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
191
186
|
:param properties: The blob inventory policy set to a storage account. Required.
|
192
187
|
:type properties: IO[bytes]
|
193
188
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
194
189
|
Default value is "application/json".
|
195
190
|
:paramtype content_type: str
|
196
191
|
:return: BlobInventoryPolicy or the result of cls(response)
|
197
|
-
:rtype: ~azure.mgmt.storage.
|
192
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
198
193
|
:raises ~azure.core.exceptions.HttpResponseError:
|
199
194
|
"""
|
200
195
|
|
@@ -218,13 +213,12 @@ class BlobInventoryPoliciesOperations:
|
|
218
213
|
:type account_name: str
|
219
214
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
220
215
|
should always be 'default'. "default" Required.
|
221
|
-
:type blob_inventory_policy_name: str or
|
222
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
216
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
223
217
|
:param properties: The blob inventory policy set to a storage account. Is either a
|
224
218
|
BlobInventoryPolicy type or a IO[bytes] type. Required.
|
225
|
-
:type properties: ~azure.mgmt.storage.
|
219
|
+
:type properties: ~azure.mgmt.storage.models.BlobInventoryPolicy or IO[bytes]
|
226
220
|
:return: BlobInventoryPolicy or the result of cls(response)
|
227
|
-
:rtype: ~azure.mgmt.storage.
|
221
|
+
:rtype: ~azure.mgmt.storage.models.BlobInventoryPolicy
|
228
222
|
:raises ~azure.core.exceptions.HttpResponseError:
|
229
223
|
"""
|
230
224
|
error_map: MutableMapping = {
|
@@ -238,7 +232,7 @@ class BlobInventoryPoliciesOperations:
|
|
238
232
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
239
233
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
240
234
|
|
241
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
235
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
242
236
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
243
237
|
cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None)
|
244
238
|
|
@@ -301,8 +295,7 @@ class BlobInventoryPoliciesOperations:
|
|
301
295
|
:type account_name: str
|
302
296
|
:param blob_inventory_policy_name: The name of the storage account blob inventory policy. It
|
303
297
|
should always be 'default'. "default" Required.
|
304
|
-
:type blob_inventory_policy_name: str or
|
305
|
-
~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName
|
298
|
+
:type blob_inventory_policy_name: str or ~azure.mgmt.storage.models.BlobInventoryPolicyName
|
306
299
|
:return: None or the result of cls(response)
|
307
300
|
:rtype: None
|
308
301
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -318,7 +311,7 @@ class BlobInventoryPoliciesOperations:
|
|
318
311
|
_headers = kwargs.pop("headers", {}) or {}
|
319
312
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
320
313
|
|
321
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
314
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
322
315
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
323
316
|
|
324
317
|
_request = build_delete_request(
|
@@ -360,14 +353,13 @@ class BlobInventoryPoliciesOperations:
|
|
360
353
|
lower-case letters only. Required.
|
361
354
|
:type account_name: str
|
362
355
|
:return: An iterator like instance of either BlobInventoryPolicy or the result of cls(response)
|
363
|
-
:rtype:
|
364
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy]
|
356
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.BlobInventoryPolicy]
|
365
357
|
:raises ~azure.core.exceptions.HttpResponseError:
|
366
358
|
"""
|
367
359
|
_headers = kwargs.pop("headers", {}) or {}
|
368
360
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
369
361
|
|
370
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
362
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
371
363
|
cls: ClsType[_models.ListBlobInventoryPolicy] = kwargs.pop("cls", None)
|
372
364
|
|
373
365
|
error_map: MutableMapping = {
|
@@ -400,7 +392,7 @@ class BlobInventoryPoliciesOperations:
|
|
400
392
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
401
393
|
}
|
402
394
|
)
|
403
|
-
_next_request_params["api-version"] = self.
|
395
|
+
_next_request_params["api-version"] = self._config.api_version
|
404
396
|
_request = HttpRequest(
|
405
397
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
406
398
|
)
|
@@ -5,11 +5,12 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
+
from collections.abc import MutableMapping
|
8
9
|
from io import IOBase
|
9
|
-
import sys
|
10
10
|
from typing import Any, AsyncIterable, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload
|
11
11
|
import urllib.parse
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
@@ -27,16 +28,14 @@ from azure.core.utils import case_insensitive_dict
|
|
27
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
28
29
|
|
29
30
|
from ... import models as _models
|
31
|
+
from ..._utils.serialization import Deserializer, Serializer
|
30
32
|
from ...operations._blob_services_operations import (
|
31
33
|
build_get_service_properties_request,
|
32
34
|
build_list_request,
|
33
35
|
build_set_service_properties_request,
|
34
36
|
)
|
37
|
+
from .._configuration import StorageManagementClientConfiguration
|
35
38
|
|
36
|
-
if sys.version_info >= (3, 9):
|
37
|
-
from collections.abc import MutableMapping
|
38
|
-
else:
|
39
|
-
from typing import MutableMapping # type: ignore
|
40
39
|
T = TypeVar("T")
|
41
40
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
42
41
|
|
@@ -47,7 +46,7 @@ class BlobServicesOperations:
|
|
47
46
|
**DO NOT** instantiate this class directly.
|
48
47
|
|
49
48
|
Instead, you should access the following operations through
|
50
|
-
:class:`~azure.mgmt.storage.
|
49
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
51
50
|
:attr:`blob_services` attribute.
|
52
51
|
"""
|
53
52
|
|
@@ -55,11 +54,10 @@ class BlobServicesOperations:
|
|
55
54
|
|
56
55
|
def __init__(self, *args, **kwargs) -> None:
|
57
56
|
input_args = list(args)
|
58
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
59
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
60
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
61
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
62
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
57
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
58
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
59
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
60
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
63
61
|
|
64
62
|
@distributed_trace
|
65
63
|
def list(
|
@@ -77,13 +75,13 @@ class BlobServicesOperations:
|
|
77
75
|
:return: An iterator like instance of either BlobServiceProperties or the result of
|
78
76
|
cls(response)
|
79
77
|
:rtype:
|
80
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.
|
78
|
+
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.BlobServiceProperties]
|
81
79
|
:raises ~azure.core.exceptions.HttpResponseError:
|
82
80
|
"""
|
83
81
|
_headers = kwargs.pop("headers", {}) or {}
|
84
82
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
85
83
|
|
86
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
84
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
87
85
|
cls: ClsType[_models.BlobServiceItems] = kwargs.pop("cls", None)
|
88
86
|
|
89
87
|
error_map: MutableMapping = {
|
@@ -116,7 +114,7 @@ class BlobServicesOperations:
|
|
116
114
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
117
115
|
}
|
118
116
|
)
|
119
|
-
_next_request_params["api-version"] = self.
|
117
|
+
_next_request_params["api-version"] = self._config.api_version
|
120
118
|
_request = HttpRequest(
|
121
119
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
122
120
|
)
|
@@ -170,12 +168,12 @@ class BlobServicesOperations:
|
|
170
168
|
:type account_name: str
|
171
169
|
:param parameters: The properties of a storage account’s Blob service, including properties for
|
172
170
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Required.
|
173
|
-
:type parameters: ~azure.mgmt.storage.
|
171
|
+
:type parameters: ~azure.mgmt.storage.models.BlobServiceProperties
|
174
172
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
175
173
|
Default value is "application/json".
|
176
174
|
:paramtype content_type: str
|
177
175
|
:return: BlobServiceProperties or the result of cls(response)
|
178
|
-
:rtype: ~azure.mgmt.storage.
|
176
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
179
177
|
:raises ~azure.core.exceptions.HttpResponseError:
|
180
178
|
"""
|
181
179
|
|
@@ -206,7 +204,7 @@ class BlobServicesOperations:
|
|
206
204
|
Default value is "application/json".
|
207
205
|
:paramtype content_type: str
|
208
206
|
:return: BlobServiceProperties or the result of cls(response)
|
209
|
-
:rtype: ~azure.mgmt.storage.
|
207
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
210
208
|
:raises ~azure.core.exceptions.HttpResponseError:
|
211
209
|
"""
|
212
210
|
|
@@ -231,9 +229,9 @@ class BlobServicesOperations:
|
|
231
229
|
:param parameters: The properties of a storage account’s Blob service, including properties for
|
232
230
|
Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a
|
233
231
|
BlobServiceProperties type or a IO[bytes] type. Required.
|
234
|
-
:type parameters: ~azure.mgmt.storage.
|
232
|
+
:type parameters: ~azure.mgmt.storage.models.BlobServiceProperties or IO[bytes]
|
235
233
|
:return: BlobServiceProperties or the result of cls(response)
|
236
|
-
:rtype: ~azure.mgmt.storage.
|
234
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
237
235
|
:raises ~azure.core.exceptions.HttpResponseError:
|
238
236
|
"""
|
239
237
|
error_map: MutableMapping = {
|
@@ -247,7 +245,7 @@ class BlobServicesOperations:
|
|
247
245
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
248
246
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
249
247
|
|
250
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
248
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
251
249
|
blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
|
252
250
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
253
251
|
cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
|
@@ -307,7 +305,7 @@ class BlobServicesOperations:
|
|
307
305
|
lower-case letters only. Required.
|
308
306
|
:type account_name: str
|
309
307
|
:return: BlobServiceProperties or the result of cls(response)
|
310
|
-
:rtype: ~azure.mgmt.storage.
|
308
|
+
:rtype: ~azure.mgmt.storage.models.BlobServiceProperties
|
311
309
|
:raises ~azure.core.exceptions.HttpResponseError:
|
312
310
|
"""
|
313
311
|
error_map: MutableMapping = {
|
@@ -321,7 +319,7 @@ class BlobServicesOperations:
|
|
321
319
|
_headers = kwargs.pop("headers", {}) or {}
|
322
320
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
323
321
|
|
324
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
322
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
325
323
|
blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default")
|
326
324
|
cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None)
|
327
325
|
|
@@ -5,10 +5,11 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
-
import
|
8
|
+
from collections.abc import MutableMapping
|
9
9
|
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
10
10
|
import urllib.parse
|
11
11
|
|
12
|
+
from azure.core import AsyncPipelineClient
|
12
13
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
@@ -26,12 +27,10 @@ from azure.core.utils import case_insensitive_dict
|
|
26
27
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
27
28
|
|
28
29
|
from ... import models as _models
|
30
|
+
from ..._utils.serialization import Deserializer, Serializer
|
29
31
|
from ...operations._deleted_accounts_operations import build_get_request, build_list_request
|
32
|
+
from .._configuration import StorageManagementClientConfiguration
|
30
33
|
|
31
|
-
if sys.version_info >= (3, 9):
|
32
|
-
from collections.abc import MutableMapping
|
33
|
-
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
35
34
|
T = TypeVar("T")
|
36
35
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
37
36
|
|
@@ -42,7 +41,7 @@ class DeletedAccountsOperations:
|
|
42
41
|
**DO NOT** instantiate this class directly.
|
43
42
|
|
44
43
|
Instead, you should access the following operations through
|
45
|
-
:class:`~azure.mgmt.storage.
|
44
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
46
45
|
:attr:`deleted_accounts` attribute.
|
47
46
|
"""
|
48
47
|
|
@@ -50,25 +49,23 @@ class DeletedAccountsOperations:
|
|
50
49
|
|
51
50
|
def __init__(self, *args, **kwargs) -> None:
|
52
51
|
input_args = list(args)
|
53
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
54
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
55
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
56
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
57
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
52
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
53
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
54
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
55
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
58
56
|
|
59
57
|
@distributed_trace
|
60
58
|
def list(self, **kwargs: Any) -> AsyncIterable["_models.DeletedAccount"]:
|
61
59
|
"""Lists deleted accounts under the subscription.
|
62
60
|
|
63
61
|
:return: An iterator like instance of either DeletedAccount or the result of cls(response)
|
64
|
-
:rtype:
|
65
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.DeletedAccount]
|
62
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.DeletedAccount]
|
66
63
|
:raises ~azure.core.exceptions.HttpResponseError:
|
67
64
|
"""
|
68
65
|
_headers = kwargs.pop("headers", {}) or {}
|
69
66
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
70
67
|
|
71
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
68
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
72
69
|
cls: ClsType[_models.DeletedAccountListResult] = kwargs.pop("cls", None)
|
73
70
|
|
74
71
|
error_map: MutableMapping = {
|
@@ -99,7 +96,7 @@ class DeletedAccountsOperations:
|
|
99
96
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
100
97
|
}
|
101
98
|
)
|
102
|
-
_next_request_params["api-version"] = self.
|
99
|
+
_next_request_params["api-version"] = self._config.api_version
|
103
100
|
_request = HttpRequest(
|
104
101
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
105
102
|
)
|
@@ -141,7 +138,7 @@ class DeletedAccountsOperations:
|
|
141
138
|
:param location: The location of the deleted storage account. Required.
|
142
139
|
:type location: str
|
143
140
|
:return: DeletedAccount or the result of cls(response)
|
144
|
-
:rtype: ~azure.mgmt.storage.
|
141
|
+
:rtype: ~azure.mgmt.storage.models.DeletedAccount
|
145
142
|
:raises ~azure.core.exceptions.HttpResponseError:
|
146
143
|
"""
|
147
144
|
error_map: MutableMapping = {
|
@@ -155,7 +152,7 @@ class DeletedAccountsOperations:
|
|
155
152
|
_headers = kwargs.pop("headers", {}) or {}
|
156
153
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
157
154
|
|
158
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
155
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
159
156
|
cls: ClsType[_models.DeletedAccount] = kwargs.pop("cls", None)
|
160
157
|
|
161
158
|
_request = build_get_request(
|
@@ -5,11 +5,12 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
+
from collections.abc import MutableMapping
|
8
9
|
from io import IOBase
|
9
|
-
import sys
|
10
10
|
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
11
11
|
import urllib.parse
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
14
15
|
from azure.core.exceptions import (
|
15
16
|
ClientAuthenticationError,
|
@@ -27,17 +28,15 @@ from azure.core.utils import case_insensitive_dict
|
|
27
28
|
from azure.mgmt.core.exceptions import ARMErrorFormat
|
28
29
|
|
29
30
|
from ... import models as _models
|
31
|
+
from ..._utils.serialization import Deserializer, Serializer
|
30
32
|
from ...operations._encryption_scopes_operations import (
|
31
33
|
build_get_request,
|
32
34
|
build_list_request,
|
33
35
|
build_patch_request,
|
34
36
|
build_put_request,
|
35
37
|
)
|
38
|
+
from .._configuration import StorageManagementClientConfiguration
|
36
39
|
|
37
|
-
if sys.version_info >= (3, 9):
|
38
|
-
from collections.abc import MutableMapping
|
39
|
-
else:
|
40
|
-
from typing import MutableMapping # type: ignore
|
41
40
|
T = TypeVar("T")
|
42
41
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
43
42
|
|
@@ -48,7 +47,7 @@ class EncryptionScopesOperations:
|
|
48
47
|
**DO NOT** instantiate this class directly.
|
49
48
|
|
50
49
|
Instead, you should access the following operations through
|
51
|
-
:class:`~azure.mgmt.storage.
|
50
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
52
51
|
:attr:`encryption_scopes` attribute.
|
53
52
|
"""
|
54
53
|
|
@@ -56,11 +55,10 @@ class EncryptionScopesOperations:
|
|
56
55
|
|
57
56
|
def __init__(self, *args, **kwargs) -> None:
|
58
57
|
input_args = list(args)
|
59
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
60
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
61
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
62
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
63
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
58
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
59
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
60
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
61
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
64
62
|
|
65
63
|
@overload
|
66
64
|
async def put(
|
@@ -91,12 +89,12 @@ class EncryptionScopesOperations:
|
|
91
89
|
:type encryption_scope_name: str
|
92
90
|
:param encryption_scope: Encryption scope properties to be used for the create or update.
|
93
91
|
Required.
|
94
|
-
:type encryption_scope: ~azure.mgmt.storage.
|
92
|
+
:type encryption_scope: ~azure.mgmt.storage.models.EncryptionScope
|
95
93
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
96
94
|
Default value is "application/json".
|
97
95
|
:paramtype content_type: str
|
98
96
|
:return: EncryptionScope or the result of cls(response)
|
99
|
-
:rtype: ~azure.mgmt.storage.
|
97
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
100
98
|
:raises ~azure.core.exceptions.HttpResponseError:
|
101
99
|
"""
|
102
100
|
|
@@ -134,7 +132,7 @@ class EncryptionScopesOperations:
|
|
134
132
|
Default value is "application/json".
|
135
133
|
:paramtype content_type: str
|
136
134
|
:return: EncryptionScope or the result of cls(response)
|
137
|
-
:rtype: ~azure.mgmt.storage.
|
135
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
138
136
|
:raises ~azure.core.exceptions.HttpResponseError:
|
139
137
|
"""
|
140
138
|
|
@@ -165,9 +163,9 @@ class EncryptionScopesOperations:
|
|
165
163
|
:type encryption_scope_name: str
|
166
164
|
:param encryption_scope: Encryption scope properties to be used for the create or update. Is
|
167
165
|
either a EncryptionScope type or a IO[bytes] type. Required.
|
168
|
-
:type encryption_scope: ~azure.mgmt.storage.
|
166
|
+
:type encryption_scope: ~azure.mgmt.storage.models.EncryptionScope or IO[bytes]
|
169
167
|
:return: EncryptionScope or the result of cls(response)
|
170
|
-
:rtype: ~azure.mgmt.storage.
|
168
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
171
169
|
:raises ~azure.core.exceptions.HttpResponseError:
|
172
170
|
"""
|
173
171
|
error_map: MutableMapping = {
|
@@ -181,7 +179,7 @@ class EncryptionScopesOperations:
|
|
181
179
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
182
180
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
183
181
|
|
184
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
182
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
185
183
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
186
184
|
cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
|
187
185
|
|
@@ -253,12 +251,12 @@ class EncryptionScopesOperations:
|
|
253
251
|
followed by a letter or number. Required.
|
254
252
|
:type encryption_scope_name: str
|
255
253
|
:param encryption_scope: Encryption scope properties to be used for the update. Required.
|
256
|
-
:type encryption_scope: ~azure.mgmt.storage.
|
254
|
+
:type encryption_scope: ~azure.mgmt.storage.models.EncryptionScope
|
257
255
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
258
256
|
Default value is "application/json".
|
259
257
|
:paramtype content_type: str
|
260
258
|
:return: EncryptionScope or the result of cls(response)
|
261
|
-
:rtype: ~azure.mgmt.storage.
|
259
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
262
260
|
:raises ~azure.core.exceptions.HttpResponseError:
|
263
261
|
"""
|
264
262
|
|
@@ -294,7 +292,7 @@ class EncryptionScopesOperations:
|
|
294
292
|
Default value is "application/json".
|
295
293
|
:paramtype content_type: str
|
296
294
|
:return: EncryptionScope or the result of cls(response)
|
297
|
-
:rtype: ~azure.mgmt.storage.
|
295
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
298
296
|
:raises ~azure.core.exceptions.HttpResponseError:
|
299
297
|
"""
|
300
298
|
|
@@ -324,9 +322,9 @@ class EncryptionScopesOperations:
|
|
324
322
|
:type encryption_scope_name: str
|
325
323
|
:param encryption_scope: Encryption scope properties to be used for the update. Is either a
|
326
324
|
EncryptionScope type or a IO[bytes] type. Required.
|
327
|
-
:type encryption_scope: ~azure.mgmt.storage.
|
325
|
+
:type encryption_scope: ~azure.mgmt.storage.models.EncryptionScope or IO[bytes]
|
328
326
|
:return: EncryptionScope or the result of cls(response)
|
329
|
-
:rtype: ~azure.mgmt.storage.
|
327
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
330
328
|
:raises ~azure.core.exceptions.HttpResponseError:
|
331
329
|
"""
|
332
330
|
error_map: MutableMapping = {
|
@@ -340,7 +338,7 @@ class EncryptionScopesOperations:
|
|
340
338
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
341
339
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
342
340
|
|
343
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
341
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
344
342
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
345
343
|
cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
|
346
344
|
|
@@ -404,7 +402,7 @@ class EncryptionScopesOperations:
|
|
404
402
|
followed by a letter or number. Required.
|
405
403
|
:type encryption_scope_name: str
|
406
404
|
:return: EncryptionScope or the result of cls(response)
|
407
|
-
:rtype: ~azure.mgmt.storage.
|
405
|
+
:rtype: ~azure.mgmt.storage.models.EncryptionScope
|
408
406
|
:raises ~azure.core.exceptions.HttpResponseError:
|
409
407
|
"""
|
410
408
|
error_map: MutableMapping = {
|
@@ -418,7 +416,7 @@ class EncryptionScopesOperations:
|
|
418
416
|
_headers = kwargs.pop("headers", {}) or {}
|
419
417
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
420
418
|
|
421
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
419
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
422
420
|
cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
|
423
421
|
|
424
422
|
_request = build_get_request(
|
@@ -478,16 +476,15 @@ class EncryptionScopesOperations:
|
|
478
476
|
:type filter: str
|
479
477
|
:param include: Optional, when specified, will list encryption scopes with the specific state.
|
480
478
|
Defaults to All. Known values are: "All", "Enabled", and "Disabled". Default value is None.
|
481
|
-
:type include: str or ~azure.mgmt.storage.
|
479
|
+
:type include: str or ~azure.mgmt.storage.models.ListEncryptionScopesInclude
|
482
480
|
:return: An iterator like instance of either EncryptionScope or the result of cls(response)
|
483
|
-
:rtype:
|
484
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.EncryptionScope]
|
481
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.EncryptionScope]
|
485
482
|
:raises ~azure.core.exceptions.HttpResponseError:
|
486
483
|
"""
|
487
484
|
_headers = kwargs.pop("headers", {}) or {}
|
488
485
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
489
486
|
|
490
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
487
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
491
488
|
cls: ClsType[_models.EncryptionScopeListResult] = kwargs.pop("cls", None)
|
492
489
|
|
493
490
|
error_map: MutableMapping = {
|
@@ -523,7 +520,7 @@ class EncryptionScopesOperations:
|
|
523
520
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
524
521
|
}
|
525
522
|
)
|
526
|
-
_next_request_params["api-version"] = self.
|
523
|
+
_next_request_params["api-version"] = self._config.api_version
|
527
524
|
_request = HttpRequest(
|
528
525
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
529
526
|
)
|