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._blob_containers_operations import (
|
49
51
|
build_clear_legal_hold_request,
|
50
52
|
build_create_or_update_immutability_policy_request,
|
@@ -61,11 +63,8 @@ from ...operations._blob_containers_operations import (
|
|
61
63
|
build_set_legal_hold_request,
|
62
64
|
build_update_request,
|
63
65
|
)
|
66
|
+
from .._configuration import StorageManagementClientConfiguration
|
64
67
|
|
65
|
-
if sys.version_info >= (3, 9):
|
66
|
-
from collections.abc import MutableMapping
|
67
|
-
else:
|
68
|
-
from typing import MutableMapping # type: ignore
|
69
68
|
T = TypeVar("T")
|
70
69
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
71
70
|
|
@@ -76,7 +75,7 @@ class BlobContainersOperations:
|
|
76
75
|
**DO NOT** instantiate this class directly.
|
77
76
|
|
78
77
|
Instead, you should access the following operations through
|
79
|
-
:class:`~azure.mgmt.storage.
|
78
|
+
:class:`~azure.mgmt.storage.aio.StorageManagementClient`'s
|
80
79
|
:attr:`blob_containers` attribute.
|
81
80
|
"""
|
82
81
|
|
@@ -84,11 +83,10 @@ class BlobContainersOperations:
|
|
84
83
|
|
85
84
|
def __init__(self, *args, **kwargs) -> None:
|
86
85
|
input_args = list(args)
|
87
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
88
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
89
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
90
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
91
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
86
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
87
|
+
self._config: StorageManagementClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
88
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
89
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
92
90
|
|
93
91
|
@distributed_trace
|
94
92
|
def list(
|
@@ -118,16 +116,15 @@ class BlobContainersOperations:
|
|
118
116
|
:type filter: str
|
119
117
|
:param include: Optional, used to include the properties for soft deleted blob containers.
|
120
118
|
"deleted" Default value is None.
|
121
|
-
:type include: str or ~azure.mgmt.storage.
|
119
|
+
:type include: str or ~azure.mgmt.storage.models.ListContainersInclude
|
122
120
|
:return: An iterator like instance of either ListContainerItem or the result of cls(response)
|
123
|
-
:rtype:
|
124
|
-
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListContainerItem]
|
121
|
+
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.models.ListContainerItem]
|
125
122
|
:raises ~azure.core.exceptions.HttpResponseError:
|
126
123
|
"""
|
127
124
|
_headers = kwargs.pop("headers", {}) or {}
|
128
125
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
129
126
|
|
130
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
127
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
131
128
|
cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None)
|
132
129
|
|
133
130
|
error_map: MutableMapping = {
|
@@ -163,7 +160,7 @@ class BlobContainersOperations:
|
|
163
160
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
164
161
|
}
|
165
162
|
)
|
166
|
-
_next_request_params["api-version"] = self.
|
163
|
+
_next_request_params["api-version"] = self._config.api_version
|
167
164
|
_request = HttpRequest(
|
168
165
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
169
166
|
)
|
@@ -223,12 +220,12 @@ class BlobContainersOperations:
|
|
223
220
|
by a letter or number. Required.
|
224
221
|
:type container_name: str
|
225
222
|
:param blob_container: Properties of the blob container to create. Required.
|
226
|
-
:type blob_container: ~azure.mgmt.storage.
|
223
|
+
:type blob_container: ~azure.mgmt.storage.models.BlobContainer
|
227
224
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
228
225
|
Default value is "application/json".
|
229
226
|
:paramtype content_type: str
|
230
227
|
:return: BlobContainer or the result of cls(response)
|
231
|
-
:rtype: ~azure.mgmt.storage.
|
228
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
232
229
|
:raises ~azure.core.exceptions.HttpResponseError:
|
233
230
|
"""
|
234
231
|
|
@@ -265,7 +262,7 @@ class BlobContainersOperations:
|
|
265
262
|
Default value is "application/json".
|
266
263
|
:paramtype content_type: str
|
267
264
|
:return: BlobContainer or the result of cls(response)
|
268
|
-
:rtype: ~azure.mgmt.storage.
|
265
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
269
266
|
:raises ~azure.core.exceptions.HttpResponseError:
|
270
267
|
"""
|
271
268
|
|
@@ -296,9 +293,9 @@ class BlobContainersOperations:
|
|
296
293
|
:type container_name: str
|
297
294
|
:param blob_container: Properties of the blob container to create. Is either a BlobContainer
|
298
295
|
type or a IO[bytes] type. Required.
|
299
|
-
:type blob_container: ~azure.mgmt.storage.
|
296
|
+
:type blob_container: ~azure.mgmt.storage.models.BlobContainer or IO[bytes]
|
300
297
|
:return: BlobContainer or the result of cls(response)
|
301
|
-
:rtype: ~azure.mgmt.storage.
|
298
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
302
299
|
:raises ~azure.core.exceptions.HttpResponseError:
|
303
300
|
"""
|
304
301
|
error_map: MutableMapping = {
|
@@ -312,7 +309,7 @@ class BlobContainersOperations:
|
|
312
309
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
313
310
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
314
311
|
|
315
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
312
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
316
313
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
317
314
|
cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
|
318
315
|
|
@@ -383,12 +380,12 @@ class BlobContainersOperations:
|
|
383
380
|
by a letter or number. Required.
|
384
381
|
:type container_name: str
|
385
382
|
:param blob_container: Properties to update for the blob container. Required.
|
386
|
-
:type blob_container: ~azure.mgmt.storage.
|
383
|
+
:type blob_container: ~azure.mgmt.storage.models.BlobContainer
|
387
384
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
388
385
|
Default value is "application/json".
|
389
386
|
:paramtype content_type: str
|
390
387
|
:return: BlobContainer or the result of cls(response)
|
391
|
-
:rtype: ~azure.mgmt.storage.
|
388
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
392
389
|
:raises ~azure.core.exceptions.HttpResponseError:
|
393
390
|
"""
|
394
391
|
|
@@ -424,7 +421,7 @@ class BlobContainersOperations:
|
|
424
421
|
Default value is "application/json".
|
425
422
|
:paramtype content_type: str
|
426
423
|
:return: BlobContainer or the result of cls(response)
|
427
|
-
:rtype: ~azure.mgmt.storage.
|
424
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
428
425
|
:raises ~azure.core.exceptions.HttpResponseError:
|
429
426
|
"""
|
430
427
|
|
@@ -454,9 +451,9 @@ class BlobContainersOperations:
|
|
454
451
|
:type container_name: str
|
455
452
|
:param blob_container: Properties to update for the blob container. Is either a BlobContainer
|
456
453
|
type or a IO[bytes] type. Required.
|
457
|
-
:type blob_container: ~azure.mgmt.storage.
|
454
|
+
:type blob_container: ~azure.mgmt.storage.models.BlobContainer or IO[bytes]
|
458
455
|
:return: BlobContainer or the result of cls(response)
|
459
|
-
:rtype: ~azure.mgmt.storage.
|
456
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
460
457
|
:raises ~azure.core.exceptions.HttpResponseError:
|
461
458
|
"""
|
462
459
|
error_map: MutableMapping = {
|
@@ -470,7 +467,7 @@ class BlobContainersOperations:
|
|
470
467
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
471
468
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
472
469
|
|
473
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
470
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
474
471
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
475
472
|
cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
|
476
473
|
|
@@ -533,7 +530,7 @@ class BlobContainersOperations:
|
|
533
530
|
by a letter or number. Required.
|
534
531
|
:type container_name: str
|
535
532
|
:return: BlobContainer or the result of cls(response)
|
536
|
-
:rtype: ~azure.mgmt.storage.
|
533
|
+
:rtype: ~azure.mgmt.storage.models.BlobContainer
|
537
534
|
:raises ~azure.core.exceptions.HttpResponseError:
|
538
535
|
"""
|
539
536
|
error_map: MutableMapping = {
|
@@ -547,7 +544,7 @@ class BlobContainersOperations:
|
|
547
544
|
_headers = kwargs.pop("headers", {}) or {}
|
548
545
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
549
546
|
|
550
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
547
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
551
548
|
cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None)
|
552
549
|
|
553
550
|
_request = build_get_request(
|
@@ -610,7 +607,7 @@ class BlobContainersOperations:
|
|
610
607
|
_headers = kwargs.pop("headers", {}) or {}
|
611
608
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
612
609
|
|
613
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
610
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
614
611
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
615
612
|
|
616
613
|
_request = build_delete_request(
|
@@ -666,12 +663,12 @@ class BlobContainersOperations:
|
|
666
663
|
by a letter or number. Required.
|
667
664
|
:type container_name: str
|
668
665
|
:param legal_hold: The LegalHold property that will be set to a blob container. Required.
|
669
|
-
:type legal_hold: ~azure.mgmt.storage.
|
666
|
+
:type legal_hold: ~azure.mgmt.storage.models.LegalHold
|
670
667
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
671
668
|
Default value is "application/json".
|
672
669
|
:paramtype content_type: str
|
673
670
|
:return: LegalHold or the result of cls(response)
|
674
|
-
:rtype: ~azure.mgmt.storage.
|
671
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
675
672
|
:raises ~azure.core.exceptions.HttpResponseError:
|
676
673
|
"""
|
677
674
|
|
@@ -708,7 +705,7 @@ class BlobContainersOperations:
|
|
708
705
|
Default value is "application/json".
|
709
706
|
:paramtype content_type: str
|
710
707
|
:return: LegalHold or the result of cls(response)
|
711
|
-
:rtype: ~azure.mgmt.storage.
|
708
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
712
709
|
:raises ~azure.core.exceptions.HttpResponseError:
|
713
710
|
"""
|
714
711
|
|
@@ -739,9 +736,9 @@ class BlobContainersOperations:
|
|
739
736
|
:type container_name: str
|
740
737
|
:param legal_hold: The LegalHold property that will be set to a blob container. Is either a
|
741
738
|
LegalHold type or a IO[bytes] type. Required.
|
742
|
-
:type legal_hold: ~azure.mgmt.storage.
|
739
|
+
:type legal_hold: ~azure.mgmt.storage.models.LegalHold or IO[bytes]
|
743
740
|
:return: LegalHold or the result of cls(response)
|
744
|
-
:rtype: ~azure.mgmt.storage.
|
741
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
745
742
|
:raises ~azure.core.exceptions.HttpResponseError:
|
746
743
|
"""
|
747
744
|
error_map: MutableMapping = {
|
@@ -755,7 +752,7 @@ class BlobContainersOperations:
|
|
755
752
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
756
753
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
757
754
|
|
758
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
755
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
759
756
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
760
757
|
cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
|
761
758
|
|
@@ -826,12 +823,12 @@ class BlobContainersOperations:
|
|
826
823
|
by a letter or number. Required.
|
827
824
|
:type container_name: str
|
828
825
|
:param legal_hold: The LegalHold property that will be clear from a blob container. Required.
|
829
|
-
:type legal_hold: ~azure.mgmt.storage.
|
826
|
+
:type legal_hold: ~azure.mgmt.storage.models.LegalHold
|
830
827
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
831
828
|
Default value is "application/json".
|
832
829
|
:paramtype content_type: str
|
833
830
|
:return: LegalHold or the result of cls(response)
|
834
|
-
:rtype: ~azure.mgmt.storage.
|
831
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
835
832
|
:raises ~azure.core.exceptions.HttpResponseError:
|
836
833
|
"""
|
837
834
|
|
@@ -867,7 +864,7 @@ class BlobContainersOperations:
|
|
867
864
|
Default value is "application/json".
|
868
865
|
:paramtype content_type: str
|
869
866
|
:return: LegalHold or the result of cls(response)
|
870
|
-
:rtype: ~azure.mgmt.storage.
|
867
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
871
868
|
:raises ~azure.core.exceptions.HttpResponseError:
|
872
869
|
"""
|
873
870
|
|
@@ -897,9 +894,9 @@ class BlobContainersOperations:
|
|
897
894
|
:type container_name: str
|
898
895
|
:param legal_hold: The LegalHold property that will be clear from a blob container. Is either a
|
899
896
|
LegalHold type or a IO[bytes] type. Required.
|
900
|
-
:type legal_hold: ~azure.mgmt.storage.
|
897
|
+
:type legal_hold: ~azure.mgmt.storage.models.LegalHold or IO[bytes]
|
901
898
|
:return: LegalHold or the result of cls(response)
|
902
|
-
:rtype: ~azure.mgmt.storage.
|
899
|
+
:rtype: ~azure.mgmt.storage.models.LegalHold
|
903
900
|
:raises ~azure.core.exceptions.HttpResponseError:
|
904
901
|
"""
|
905
902
|
error_map: MutableMapping = {
|
@@ -913,7 +910,7 @@ class BlobContainersOperations:
|
|
913
910
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
914
911
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
915
912
|
|
916
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
913
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
917
914
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
918
915
|
cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None)
|
919
916
|
|
@@ -990,12 +987,12 @@ class BlobContainersOperations:
|
|
990
987
|
:type if_match: str
|
991
988
|
:param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
|
992
989
|
container. Default value is None.
|
993
|
-
:type parameters: ~azure.mgmt.storage.
|
990
|
+
:type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
994
991
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
995
992
|
Default value is "application/json".
|
996
993
|
:paramtype content_type: str
|
997
994
|
:return: ImmutabilityPolicy or the result of cls(response)
|
998
|
-
:rtype: ~azure.mgmt.storage.
|
995
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
999
996
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1000
997
|
"""
|
1001
998
|
|
@@ -1037,7 +1034,7 @@ class BlobContainersOperations:
|
|
1037
1034
|
Default value is "application/json".
|
1038
1035
|
:paramtype content_type: str
|
1039
1036
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1040
|
-
:rtype: ~azure.mgmt.storage.
|
1037
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1041
1038
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1042
1039
|
"""
|
1043
1040
|
|
@@ -1072,9 +1069,9 @@ class BlobContainersOperations:
|
|
1072
1069
|
:type if_match: str
|
1073
1070
|
:param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob
|
1074
1071
|
container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
|
1075
|
-
:type parameters: ~azure.mgmt.storage.
|
1072
|
+
:type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy or IO[bytes]
|
1076
1073
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1077
|
-
:rtype: ~azure.mgmt.storage.
|
1074
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1078
1075
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1079
1076
|
"""
|
1080
1077
|
error_map: MutableMapping = {
|
@@ -1089,7 +1086,7 @@ class BlobContainersOperations:
|
|
1089
1086
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1090
1087
|
|
1091
1088
|
immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
|
1092
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1089
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1093
1090
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1094
1091
|
cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
|
1095
1092
|
|
@@ -1170,7 +1167,7 @@ class BlobContainersOperations:
|
|
1170
1167
|
trailing double quotes as returned by the service. Default value is None.
|
1171
1168
|
:type if_match: str
|
1172
1169
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1173
|
-
:rtype: ~azure.mgmt.storage.
|
1170
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1174
1171
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1175
1172
|
"""
|
1176
1173
|
error_map: MutableMapping = {
|
@@ -1185,7 +1182,7 @@ class BlobContainersOperations:
|
|
1185
1182
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1186
1183
|
|
1187
1184
|
immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
|
1188
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1185
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1189
1186
|
cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
|
1190
1187
|
|
1191
1188
|
_request = build_get_immutability_policy_request(
|
@@ -1248,7 +1245,7 @@ class BlobContainersOperations:
|
|
1248
1245
|
trailing double quotes as returned by the service. Required.
|
1249
1246
|
:type if_match: str
|
1250
1247
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1251
|
-
:rtype: ~azure.mgmt.storage.
|
1248
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1252
1249
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1253
1250
|
"""
|
1254
1251
|
error_map: MutableMapping = {
|
@@ -1263,7 +1260,7 @@ class BlobContainersOperations:
|
|
1263
1260
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1264
1261
|
|
1265
1262
|
immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default")
|
1266
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1263
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1267
1264
|
cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
|
1268
1265
|
|
1269
1266
|
_request = build_delete_immutability_policy_request(
|
@@ -1324,7 +1321,7 @@ class BlobContainersOperations:
|
|
1324
1321
|
trailing double quotes as returned by the service. Required.
|
1325
1322
|
:type if_match: str
|
1326
1323
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1327
|
-
:rtype: ~azure.mgmt.storage.
|
1324
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1328
1325
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1329
1326
|
"""
|
1330
1327
|
error_map: MutableMapping = {
|
@@ -1338,7 +1335,7 @@ class BlobContainersOperations:
|
|
1338
1335
|
_headers = kwargs.pop("headers", {}) or {}
|
1339
1336
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1340
1337
|
|
1341
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1338
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1342
1339
|
cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
|
1343
1340
|
|
1344
1341
|
_request = build_lock_immutability_policy_request(
|
@@ -1408,12 +1405,12 @@ class BlobContainersOperations:
|
|
1408
1405
|
:type if_match: str
|
1409
1406
|
:param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
|
1410
1407
|
container. Default value is None.
|
1411
|
-
:type parameters: ~azure.mgmt.storage.
|
1408
|
+
:type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1412
1409
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1413
1410
|
Default value is "application/json".
|
1414
1411
|
:paramtype content_type: str
|
1415
1412
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1416
|
-
:rtype: ~azure.mgmt.storage.
|
1413
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1417
1414
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1418
1415
|
"""
|
1419
1416
|
|
@@ -1456,7 +1453,7 @@ class BlobContainersOperations:
|
|
1456
1453
|
Default value is "application/json".
|
1457
1454
|
:paramtype content_type: str
|
1458
1455
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1459
|
-
:rtype: ~azure.mgmt.storage.
|
1456
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1460
1457
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1461
1458
|
"""
|
1462
1459
|
|
@@ -1492,9 +1489,9 @@ class BlobContainersOperations:
|
|
1492
1489
|
:type if_match: str
|
1493
1490
|
:param parameters: The ImmutabilityPolicy Properties that will be extended for a blob
|
1494
1491
|
container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None.
|
1495
|
-
:type parameters: ~azure.mgmt.storage.
|
1492
|
+
:type parameters: ~azure.mgmt.storage.models.ImmutabilityPolicy or IO[bytes]
|
1496
1493
|
:return: ImmutabilityPolicy or the result of cls(response)
|
1497
|
-
:rtype: ~azure.mgmt.storage.
|
1494
|
+
:rtype: ~azure.mgmt.storage.models.ImmutabilityPolicy
|
1498
1495
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1499
1496
|
"""
|
1500
1497
|
error_map: MutableMapping = {
|
@@ -1508,7 +1505,7 @@ class BlobContainersOperations:
|
|
1508
1505
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1509
1506
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1510
1507
|
|
1511
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1508
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1512
1509
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1513
1510
|
cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None)
|
1514
1511
|
|
@@ -1586,12 +1583,12 @@ class BlobContainersOperations:
|
|
1586
1583
|
by a letter or number. Required.
|
1587
1584
|
:type container_name: str
|
1588
1585
|
:param parameters: Lease Container request body. Default value is None.
|
1589
|
-
:type parameters: ~azure.mgmt.storage.
|
1586
|
+
:type parameters: ~azure.mgmt.storage.models.LeaseContainerRequest
|
1590
1587
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1591
1588
|
Default value is "application/json".
|
1592
1589
|
:paramtype content_type: str
|
1593
1590
|
:return: LeaseContainerResponse or the result of cls(response)
|
1594
|
-
:rtype: ~azure.mgmt.storage.
|
1591
|
+
:rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
|
1595
1592
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1596
1593
|
"""
|
1597
1594
|
|
@@ -1627,7 +1624,7 @@ class BlobContainersOperations:
|
|
1627
1624
|
Default value is "application/json".
|
1628
1625
|
:paramtype content_type: str
|
1629
1626
|
:return: LeaseContainerResponse or the result of cls(response)
|
1630
|
-
:rtype: ~azure.mgmt.storage.
|
1627
|
+
:rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
|
1631
1628
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1632
1629
|
"""
|
1633
1630
|
|
@@ -1657,9 +1654,9 @@ class BlobContainersOperations:
|
|
1657
1654
|
:type container_name: str
|
1658
1655
|
:param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a
|
1659
1656
|
IO[bytes] type. Default value is None.
|
1660
|
-
:type parameters: ~azure.mgmt.storage.
|
1657
|
+
:type parameters: ~azure.mgmt.storage.models.LeaseContainerRequest or IO[bytes]
|
1661
1658
|
:return: LeaseContainerResponse or the result of cls(response)
|
1662
|
-
:rtype: ~azure.mgmt.storage.
|
1659
|
+
:rtype: ~azure.mgmt.storage.models.LeaseContainerResponse
|
1663
1660
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1664
1661
|
"""
|
1665
1662
|
error_map: MutableMapping = {
|
@@ -1673,7 +1670,7 @@ class BlobContainersOperations:
|
|
1673
1670
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1674
1671
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1675
1672
|
|
1676
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1673
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1677
1674
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1678
1675
|
cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None)
|
1679
1676
|
|
@@ -1734,7 +1731,7 @@ class BlobContainersOperations:
|
|
1734
1731
|
_headers = kwargs.pop("headers", {}) or {}
|
1735
1732
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1736
1733
|
|
1737
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1734
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1738
1735
|
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
|
1739
1736
|
|
1740
1737
|
_request = build_object_level_worm_request(
|
@@ -1799,7 +1796,7 @@ class BlobContainersOperations:
|
|
1799
1796
|
_headers = kwargs.pop("headers", {}) or {}
|
1800
1797
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1801
1798
|
|
1802
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self.
|
1799
|
+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
|
1803
1800
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1804
1801
|
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
|
1805
1802
|
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
|