azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/mgmt/storage/__init__.py +19 -7
- azure/mgmt/storage/_configuration.py +27 -29
- azure/mgmt/storage/{v2016_01_01/models/_patch.py → _patch.py} +5 -4
- azure/mgmt/storage/_storage_management_client.py +184 -499
- azure/mgmt/storage/{v2016_01_01/_version.py → _utils/__init__.py} +0 -3
- azure/mgmt/storage/{_serialization.py → _utils/serialization.py} +46 -131
- azure/mgmt/storage/_version.py +1 -1
- azure/mgmt/storage/aio/__init__.py +21 -2
- azure/mgmt/storage/aio/_configuration.py +27 -29
- azure/mgmt/storage/{v2017_10_01/aio/operations → aio}/_patch.py +5 -4
- azure/mgmt/storage/aio/_storage_management_client.py +188 -497
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_containers_operations.py +68 -84
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +28 -36
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +22 -24
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +16 -19
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +38 -41
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +28 -31
- azure/mgmt/storage/{v2019_06_01/aio → aio}/operations/_management_policies_operations.py +23 -30
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_network_security_perimeter_configurations_operations.py +18 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +23 -25
- azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +14 -17
- azure/mgmt/storage/{v2016_01_01/aio → aio}/operations/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_link_resources_operations.py +11 -13
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_skus_operations.py +14 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +83 -111
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +38 -44
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +29 -31
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_services_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_usages_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +857 -912
- azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
- azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +84 -87
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +34 -42
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +35 -37
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +47 -50
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +28 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +15 -18
- azure/mgmt/storage/operations/_patch.py +21 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +15 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +101 -109
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +42 -53
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +16 -19
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/METADATA +17 -6
- azure_mgmt_storage-23.0.1.dist-info/RECORD +73 -0
- azure/mgmt/storage/models.py +0 -8
- azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
- azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
- azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
- azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
- azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
- azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
- azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
- azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
- azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2016_01_01/py.typed +0 -1
- azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
- azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
- azure/mgmt/storage/v2017_10_01/_version.py +0 -9
- azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
- azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
- azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
- azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
- azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
- azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
- azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
- azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
- azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
- azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
- azure/mgmt/storage/v2017_10_01/py.typed +0 -1
- azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
- azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
- azure/mgmt/storage/v2019_06_01/_version.py +0 -9
- azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
- azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
- azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
- azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
- azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
- azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
- azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
- azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
- azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
- azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
- azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
- azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
- azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
- azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
- azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
- azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
- azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
- azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
- azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
- azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
- azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
- azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
- azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
- azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
- azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
- azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
- azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
- azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
- azure/mgmt/storage/v2019_06_01/py.typed +0 -1
- azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
- azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
- azure/mgmt/storage/v2024_01_01/_version.py +0 -9
- azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
- azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
- azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
- azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
- azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
- azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
- azure/mgmt/storage/v2024_01_01/py.typed +0 -1
- azure_mgmt_storage-22.2.0.dist-info/RECORD +0 -183
- /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
- /azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/WHEEL +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/top_level.txt +0 -0
@@ -1,261 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# --------------------------------------------------------------------------
|
3
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
|
-
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
# --------------------------------------------------------------------------
|
8
|
-
|
9
|
-
from copy import deepcopy
|
10
|
-
from typing import Any, Awaitable, TYPE_CHECKING
|
11
|
-
from typing_extensions import Self
|
12
|
-
|
13
|
-
from azure.core.pipeline import policies
|
14
|
-
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
15
|
-
from azure.mgmt.core import AsyncARMPipelineClient
|
16
|
-
from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
|
17
|
-
|
18
|
-
from .. import models as _models
|
19
|
-
from ..._serialization import Deserializer, Serializer
|
20
|
-
from ._configuration import StorageManagementClientConfiguration
|
21
|
-
from .operations import (
|
22
|
-
BlobContainersOperations,
|
23
|
-
BlobInventoryPoliciesOperations,
|
24
|
-
BlobServicesOperations,
|
25
|
-
DeletedAccountsOperations,
|
26
|
-
EncryptionScopesOperations,
|
27
|
-
FileServicesOperations,
|
28
|
-
FileSharesOperations,
|
29
|
-
LocalUsersOperations,
|
30
|
-
ManagementPoliciesOperations,
|
31
|
-
NetworkSecurityPerimeterConfigurationsOperations,
|
32
|
-
ObjectReplicationPoliciesOperations,
|
33
|
-
Operations,
|
34
|
-
PrivateEndpointConnectionsOperations,
|
35
|
-
PrivateLinkResourcesOperations,
|
36
|
-
QueueOperations,
|
37
|
-
QueueServicesOperations,
|
38
|
-
SkusOperations,
|
39
|
-
StorageAccountsOperations,
|
40
|
-
StorageTaskAssignmentInstancesReportOperations,
|
41
|
-
StorageTaskAssignmentsInstancesReportOperations,
|
42
|
-
StorageTaskAssignmentsOperations,
|
43
|
-
TableOperations,
|
44
|
-
TableServicesOperations,
|
45
|
-
UsagesOperations,
|
46
|
-
)
|
47
|
-
|
48
|
-
if TYPE_CHECKING:
|
49
|
-
from azure.core.credentials_async import AsyncTokenCredential
|
50
|
-
|
51
|
-
|
52
|
-
class StorageManagementClient: # pylint: disable=too-many-instance-attributes
|
53
|
-
"""The Azure Storage Management API.
|
54
|
-
|
55
|
-
:ivar blob_services: BlobServicesOperations operations
|
56
|
-
:vartype blob_services: azure.mgmt.storage.v2024_01_01.aio.operations.BlobServicesOperations
|
57
|
-
:ivar blob_containers: BlobContainersOperations operations
|
58
|
-
:vartype blob_containers:
|
59
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.BlobContainersOperations
|
60
|
-
:ivar file_services: FileServicesOperations operations
|
61
|
-
:vartype file_services: azure.mgmt.storage.v2024_01_01.aio.operations.FileServicesOperations
|
62
|
-
:ivar file_shares: FileSharesOperations operations
|
63
|
-
:vartype file_shares: azure.mgmt.storage.v2024_01_01.aio.operations.FileSharesOperations
|
64
|
-
:ivar queue_services: QueueServicesOperations operations
|
65
|
-
:vartype queue_services: azure.mgmt.storage.v2024_01_01.aio.operations.QueueServicesOperations
|
66
|
-
:ivar queue: QueueOperations operations
|
67
|
-
:vartype queue: azure.mgmt.storage.v2024_01_01.aio.operations.QueueOperations
|
68
|
-
:ivar operations: Operations operations
|
69
|
-
:vartype operations: azure.mgmt.storage.v2024_01_01.aio.operations.Operations
|
70
|
-
:ivar skus: SkusOperations operations
|
71
|
-
:vartype skus: azure.mgmt.storage.v2024_01_01.aio.operations.SkusOperations
|
72
|
-
:ivar storage_accounts: StorageAccountsOperations operations
|
73
|
-
:vartype storage_accounts:
|
74
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.StorageAccountsOperations
|
75
|
-
:ivar deleted_accounts: DeletedAccountsOperations operations
|
76
|
-
:vartype deleted_accounts:
|
77
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.DeletedAccountsOperations
|
78
|
-
:ivar usages: UsagesOperations operations
|
79
|
-
:vartype usages: azure.mgmt.storage.v2024_01_01.aio.operations.UsagesOperations
|
80
|
-
:ivar management_policies: ManagementPoliciesOperations operations
|
81
|
-
:vartype management_policies:
|
82
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.ManagementPoliciesOperations
|
83
|
-
:ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations
|
84
|
-
:vartype blob_inventory_policies:
|
85
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.BlobInventoryPoliciesOperations
|
86
|
-
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
|
87
|
-
:vartype private_endpoint_connections:
|
88
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.PrivateEndpointConnectionsOperations
|
89
|
-
:ivar private_link_resources: PrivateLinkResourcesOperations operations
|
90
|
-
:vartype private_link_resources:
|
91
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.PrivateLinkResourcesOperations
|
92
|
-
:ivar object_replication_policies: ObjectReplicationPoliciesOperations operations
|
93
|
-
:vartype object_replication_policies:
|
94
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.ObjectReplicationPoliciesOperations
|
95
|
-
:ivar local_users: LocalUsersOperations operations
|
96
|
-
:vartype local_users: azure.mgmt.storage.v2024_01_01.aio.operations.LocalUsersOperations
|
97
|
-
:ivar encryption_scopes: EncryptionScopesOperations operations
|
98
|
-
:vartype encryption_scopes:
|
99
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.EncryptionScopesOperations
|
100
|
-
:ivar table_services: TableServicesOperations operations
|
101
|
-
:vartype table_services: azure.mgmt.storage.v2024_01_01.aio.operations.TableServicesOperations
|
102
|
-
:ivar table: TableOperations operations
|
103
|
-
:vartype table: azure.mgmt.storage.v2024_01_01.aio.operations.TableOperations
|
104
|
-
:ivar network_security_perimeter_configurations:
|
105
|
-
NetworkSecurityPerimeterConfigurationsOperations operations
|
106
|
-
:vartype network_security_perimeter_configurations:
|
107
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
|
108
|
-
:ivar storage_task_assignments: StorageTaskAssignmentsOperations operations
|
109
|
-
:vartype storage_task_assignments:
|
110
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsOperations
|
111
|
-
:ivar storage_task_assignments_instances_report:
|
112
|
-
StorageTaskAssignmentsInstancesReportOperations operations
|
113
|
-
:vartype storage_task_assignments_instances_report:
|
114
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsInstancesReportOperations
|
115
|
-
:ivar storage_task_assignment_instances_report: StorageTaskAssignmentInstancesReportOperations
|
116
|
-
operations
|
117
|
-
:vartype storage_task_assignment_instances_report:
|
118
|
-
azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentInstancesReportOperations
|
119
|
-
:param credential: Credential needed for the client to connect to Azure. Required.
|
120
|
-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
121
|
-
:param subscription_id: The ID of the target subscription. Required.
|
122
|
-
:type subscription_id: str
|
123
|
-
:param base_url: Service URL. Default value is "https://management.azure.com".
|
124
|
-
:type base_url: str
|
125
|
-
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
|
126
|
-
default value may result in unsupported behavior.
|
127
|
-
:paramtype api_version: str
|
128
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
129
|
-
Retry-After header is present.
|
130
|
-
"""
|
131
|
-
|
132
|
-
def __init__(
|
133
|
-
self,
|
134
|
-
credential: "AsyncTokenCredential",
|
135
|
-
subscription_id: str,
|
136
|
-
base_url: str = "https://management.azure.com",
|
137
|
-
**kwargs: Any
|
138
|
-
) -> None:
|
139
|
-
self._config = StorageManagementClientConfiguration(
|
140
|
-
credential=credential, subscription_id=subscription_id, **kwargs
|
141
|
-
)
|
142
|
-
_policies = kwargs.pop("policies", None)
|
143
|
-
if _policies is None:
|
144
|
-
_policies = [
|
145
|
-
policies.RequestIdPolicy(**kwargs),
|
146
|
-
self._config.headers_policy,
|
147
|
-
self._config.user_agent_policy,
|
148
|
-
self._config.proxy_policy,
|
149
|
-
policies.ContentDecodePolicy(**kwargs),
|
150
|
-
AsyncARMAutoResourceProviderRegistrationPolicy(),
|
151
|
-
self._config.redirect_policy,
|
152
|
-
self._config.retry_policy,
|
153
|
-
self._config.authentication_policy,
|
154
|
-
self._config.custom_hook_policy,
|
155
|
-
self._config.logging_policy,
|
156
|
-
policies.DistributedTracingPolicy(**kwargs),
|
157
|
-
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
158
|
-
self._config.http_logging_policy,
|
159
|
-
]
|
160
|
-
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
161
|
-
|
162
|
-
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
163
|
-
self._serialize = Serializer(client_models)
|
164
|
-
self._deserialize = Deserializer(client_models)
|
165
|
-
self._serialize.client_side_validation = False
|
166
|
-
self.blob_services = BlobServicesOperations(
|
167
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
168
|
-
)
|
169
|
-
self.blob_containers = BlobContainersOperations(
|
170
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
171
|
-
)
|
172
|
-
self.file_services = FileServicesOperations(
|
173
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
174
|
-
)
|
175
|
-
self.file_shares = FileSharesOperations(
|
176
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
177
|
-
)
|
178
|
-
self.queue_services = QueueServicesOperations(
|
179
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
180
|
-
)
|
181
|
-
self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01")
|
182
|
-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01")
|
183
|
-
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01")
|
184
|
-
self.storage_accounts = StorageAccountsOperations(
|
185
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
186
|
-
)
|
187
|
-
self.deleted_accounts = DeletedAccountsOperations(
|
188
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
189
|
-
)
|
190
|
-
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01")
|
191
|
-
self.management_policies = ManagementPoliciesOperations(
|
192
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
193
|
-
)
|
194
|
-
self.blob_inventory_policies = BlobInventoryPoliciesOperations(
|
195
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
196
|
-
)
|
197
|
-
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
|
198
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
199
|
-
)
|
200
|
-
self.private_link_resources = PrivateLinkResourcesOperations(
|
201
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
202
|
-
)
|
203
|
-
self.object_replication_policies = ObjectReplicationPoliciesOperations(
|
204
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
205
|
-
)
|
206
|
-
self.local_users = LocalUsersOperations(
|
207
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
208
|
-
)
|
209
|
-
self.encryption_scopes = EncryptionScopesOperations(
|
210
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
211
|
-
)
|
212
|
-
self.table_services = TableServicesOperations(
|
213
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
214
|
-
)
|
215
|
-
self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01")
|
216
|
-
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
|
217
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
218
|
-
)
|
219
|
-
self.storage_task_assignments = StorageTaskAssignmentsOperations(
|
220
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
221
|
-
)
|
222
|
-
self.storage_task_assignments_instances_report = StorageTaskAssignmentsInstancesReportOperations(
|
223
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
224
|
-
)
|
225
|
-
self.storage_task_assignment_instances_report = StorageTaskAssignmentInstancesReportOperations(
|
226
|
-
self._client, self._config, self._serialize, self._deserialize, "2024-01-01"
|
227
|
-
)
|
228
|
-
|
229
|
-
def _send_request(
|
230
|
-
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
|
231
|
-
) -> Awaitable[AsyncHttpResponse]:
|
232
|
-
"""Runs the network request through the client's chained policies.
|
233
|
-
|
234
|
-
>>> from azure.core.rest import HttpRequest
|
235
|
-
>>> request = HttpRequest("GET", "https://www.example.org/")
|
236
|
-
<HttpRequest [GET], url: 'https://www.example.org/'>
|
237
|
-
>>> response = await client._send_request(request)
|
238
|
-
<AsyncHttpResponse: 200 OK>
|
239
|
-
|
240
|
-
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
241
|
-
|
242
|
-
:param request: The network request you want to make. Required.
|
243
|
-
:type request: ~azure.core.rest.HttpRequest
|
244
|
-
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
245
|
-
:return: The response of your network call. Does not do error handling on your response.
|
246
|
-
:rtype: ~azure.core.rest.AsyncHttpResponse
|
247
|
-
"""
|
248
|
-
|
249
|
-
request_copy = deepcopy(request)
|
250
|
-
request_copy.url = self._client.format_url(request_copy.url)
|
251
|
-
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
252
|
-
|
253
|
-
async def close(self) -> None:
|
254
|
-
await self._client.close()
|
255
|
-
|
256
|
-
async def __aenter__(self) -> Self:
|
257
|
-
await self._client.__aenter__()
|
258
|
-
return self
|
259
|
-
|
260
|
-
async def __aexit__(self, *exc_details: Any) -> None:
|
261
|
-
await self._client.__aexit__(*exc_details)
|
@@ -1,343 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# --------------------------------------------------------------------------
|
3
|
-
# Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
|
-
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
-
# --------------------------------------------------------------------------
|
8
|
-
from io import IOBase
|
9
|
-
import sys
|
10
|
-
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
11
|
-
|
12
|
-
from azure.core.exceptions import (
|
13
|
-
ClientAuthenticationError,
|
14
|
-
HttpResponseError,
|
15
|
-
ResourceExistsError,
|
16
|
-
ResourceNotFoundError,
|
17
|
-
ResourceNotModifiedError,
|
18
|
-
map_error,
|
19
|
-
)
|
20
|
-
from azure.core.pipeline import PipelineResponse
|
21
|
-
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
22
|
-
from azure.core.tracing.decorator_async import distributed_trace_async
|
23
|
-
from azure.core.utils import case_insensitive_dict
|
24
|
-
from azure.mgmt.core.exceptions import ARMErrorFormat
|
25
|
-
|
26
|
-
from ... import models as _models
|
27
|
-
from ...operations._management_policies_operations import (
|
28
|
-
build_create_or_update_request,
|
29
|
-
build_delete_request,
|
30
|
-
build_get_request,
|
31
|
-
)
|
32
|
-
|
33
|
-
if sys.version_info >= (3, 9):
|
34
|
-
from collections.abc import MutableMapping
|
35
|
-
else:
|
36
|
-
from typing import MutableMapping # type: ignore
|
37
|
-
T = TypeVar("T")
|
38
|
-
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
39
|
-
|
40
|
-
|
41
|
-
class ManagementPoliciesOperations:
|
42
|
-
"""
|
43
|
-
.. warning::
|
44
|
-
**DO NOT** instantiate this class directly.
|
45
|
-
|
46
|
-
Instead, you should access the following operations through
|
47
|
-
:class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s
|
48
|
-
:attr:`management_policies` attribute.
|
49
|
-
"""
|
50
|
-
|
51
|
-
models = _models
|
52
|
-
|
53
|
-
def __init__(self, *args, **kwargs) -> None:
|
54
|
-
input_args = list(args)
|
55
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
56
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
57
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
58
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
59
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
60
|
-
|
61
|
-
@distributed_trace_async
|
62
|
-
async def get(
|
63
|
-
self,
|
64
|
-
resource_group_name: str,
|
65
|
-
account_name: str,
|
66
|
-
management_policy_name: Union[str, _models.ManagementPolicyName],
|
67
|
-
**kwargs: Any
|
68
|
-
) -> _models.ManagementPolicy:
|
69
|
-
"""Gets the managementpolicy associated with the specified storage account.
|
70
|
-
|
71
|
-
:param resource_group_name: The name of the resource group within the user's subscription. The
|
72
|
-
name is case insensitive. Required.
|
73
|
-
:type resource_group_name: str
|
74
|
-
:param account_name: The name of the storage account within the specified resource group.
|
75
|
-
Storage account names must be between 3 and 24 characters in length and use numbers and
|
76
|
-
lower-case letters only. Required.
|
77
|
-
:type account_name: str
|
78
|
-
:param management_policy_name: The name of the Storage Account Management Policy. It should
|
79
|
-
always be 'default'. "default" Required.
|
80
|
-
:type management_policy_name: str or
|
81
|
-
~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName
|
82
|
-
:return: ManagementPolicy or the result of cls(response)
|
83
|
-
:rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy
|
84
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
85
|
-
"""
|
86
|
-
error_map: MutableMapping = {
|
87
|
-
401: ClientAuthenticationError,
|
88
|
-
404: ResourceNotFoundError,
|
89
|
-
409: ResourceExistsError,
|
90
|
-
304: ResourceNotModifiedError,
|
91
|
-
}
|
92
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
93
|
-
|
94
|
-
_headers = kwargs.pop("headers", {}) or {}
|
95
|
-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
96
|
-
|
97
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
|
98
|
-
cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None)
|
99
|
-
|
100
|
-
_request = build_get_request(
|
101
|
-
resource_group_name=resource_group_name,
|
102
|
-
account_name=account_name,
|
103
|
-
management_policy_name=management_policy_name,
|
104
|
-
subscription_id=self._config.subscription_id,
|
105
|
-
api_version=api_version,
|
106
|
-
headers=_headers,
|
107
|
-
params=_params,
|
108
|
-
)
|
109
|
-
_request.url = self._client.format_url(_request.url)
|
110
|
-
|
111
|
-
_stream = False
|
112
|
-
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
113
|
-
_request, stream=_stream, **kwargs
|
114
|
-
)
|
115
|
-
|
116
|
-
response = pipeline_response.http_response
|
117
|
-
|
118
|
-
if response.status_code not in [200]:
|
119
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
120
|
-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
121
|
-
|
122
|
-
deserialized = self._deserialize("ManagementPolicy", pipeline_response.http_response)
|
123
|
-
|
124
|
-
if cls:
|
125
|
-
return cls(pipeline_response, deserialized, {}) # type: ignore
|
126
|
-
|
127
|
-
return deserialized # type: ignore
|
128
|
-
|
129
|
-
@overload
|
130
|
-
async def create_or_update(
|
131
|
-
self,
|
132
|
-
resource_group_name: str,
|
133
|
-
account_name: str,
|
134
|
-
management_policy_name: Union[str, _models.ManagementPolicyName],
|
135
|
-
properties: _models.ManagementPolicy,
|
136
|
-
*,
|
137
|
-
content_type: str = "application/json",
|
138
|
-
**kwargs: Any
|
139
|
-
) -> _models.ManagementPolicy:
|
140
|
-
"""Sets the managementpolicy to the specified storage account.
|
141
|
-
|
142
|
-
:param resource_group_name: The name of the resource group within the user's subscription. The
|
143
|
-
name is case insensitive. Required.
|
144
|
-
:type resource_group_name: str
|
145
|
-
:param account_name: The name of the storage account within the specified resource group.
|
146
|
-
Storage account names must be between 3 and 24 characters in length and use numbers and
|
147
|
-
lower-case letters only. Required.
|
148
|
-
:type account_name: str
|
149
|
-
:param management_policy_name: The name of the Storage Account Management Policy. It should
|
150
|
-
always be 'default'. "default" Required.
|
151
|
-
:type management_policy_name: str or
|
152
|
-
~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName
|
153
|
-
:param properties: The ManagementPolicy set to a storage account. Required.
|
154
|
-
:type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy
|
155
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
156
|
-
Default value is "application/json".
|
157
|
-
:paramtype content_type: str
|
158
|
-
:return: ManagementPolicy or the result of cls(response)
|
159
|
-
:rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy
|
160
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
161
|
-
"""
|
162
|
-
|
163
|
-
@overload
|
164
|
-
async def create_or_update(
|
165
|
-
self,
|
166
|
-
resource_group_name: str,
|
167
|
-
account_name: str,
|
168
|
-
management_policy_name: Union[str, _models.ManagementPolicyName],
|
169
|
-
properties: IO[bytes],
|
170
|
-
*,
|
171
|
-
content_type: str = "application/json",
|
172
|
-
**kwargs: Any
|
173
|
-
) -> _models.ManagementPolicy:
|
174
|
-
"""Sets the managementpolicy to the specified storage account.
|
175
|
-
|
176
|
-
:param resource_group_name: The name of the resource group within the user's subscription. The
|
177
|
-
name is case insensitive. Required.
|
178
|
-
:type resource_group_name: str
|
179
|
-
:param account_name: The name of the storage account within the specified resource group.
|
180
|
-
Storage account names must be between 3 and 24 characters in length and use numbers and
|
181
|
-
lower-case letters only. Required.
|
182
|
-
:type account_name: str
|
183
|
-
:param management_policy_name: The name of the Storage Account Management Policy. It should
|
184
|
-
always be 'default'. "default" Required.
|
185
|
-
:type management_policy_name: str or
|
186
|
-
~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName
|
187
|
-
:param properties: The ManagementPolicy set to a storage account. Required.
|
188
|
-
:type properties: IO[bytes]
|
189
|
-
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
190
|
-
Default value is "application/json".
|
191
|
-
:paramtype content_type: str
|
192
|
-
:return: ManagementPolicy or the result of cls(response)
|
193
|
-
:rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy
|
194
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
195
|
-
"""
|
196
|
-
|
197
|
-
@distributed_trace_async
|
198
|
-
async def create_or_update(
|
199
|
-
self,
|
200
|
-
resource_group_name: str,
|
201
|
-
account_name: str,
|
202
|
-
management_policy_name: Union[str, _models.ManagementPolicyName],
|
203
|
-
properties: Union[_models.ManagementPolicy, IO[bytes]],
|
204
|
-
**kwargs: Any
|
205
|
-
) -> _models.ManagementPolicy:
|
206
|
-
"""Sets the managementpolicy to the specified storage account.
|
207
|
-
|
208
|
-
:param resource_group_name: The name of the resource group within the user's subscription. The
|
209
|
-
name is case insensitive. Required.
|
210
|
-
:type resource_group_name: str
|
211
|
-
:param account_name: The name of the storage account within the specified resource group.
|
212
|
-
Storage account names must be between 3 and 24 characters in length and use numbers and
|
213
|
-
lower-case letters only. Required.
|
214
|
-
:type account_name: str
|
215
|
-
:param management_policy_name: The name of the Storage Account Management Policy. It should
|
216
|
-
always be 'default'. "default" Required.
|
217
|
-
:type management_policy_name: str or
|
218
|
-
~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName
|
219
|
-
:param properties: The ManagementPolicy set to a storage account. Is either a ManagementPolicy
|
220
|
-
type or a IO[bytes] type. Required.
|
221
|
-
:type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy or IO[bytes]
|
222
|
-
:return: ManagementPolicy or the result of cls(response)
|
223
|
-
:rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy
|
224
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
225
|
-
"""
|
226
|
-
error_map: MutableMapping = {
|
227
|
-
401: ClientAuthenticationError,
|
228
|
-
404: ResourceNotFoundError,
|
229
|
-
409: ResourceExistsError,
|
230
|
-
304: ResourceNotModifiedError,
|
231
|
-
}
|
232
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
233
|
-
|
234
|
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
235
|
-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
236
|
-
|
237
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
|
238
|
-
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
239
|
-
cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None)
|
240
|
-
|
241
|
-
content_type = content_type or "application/json"
|
242
|
-
_json = None
|
243
|
-
_content = None
|
244
|
-
if isinstance(properties, (IOBase, bytes)):
|
245
|
-
_content = properties
|
246
|
-
else:
|
247
|
-
_json = self._serialize.body(properties, "ManagementPolicy")
|
248
|
-
|
249
|
-
_request = build_create_or_update_request(
|
250
|
-
resource_group_name=resource_group_name,
|
251
|
-
account_name=account_name,
|
252
|
-
management_policy_name=management_policy_name,
|
253
|
-
subscription_id=self._config.subscription_id,
|
254
|
-
api_version=api_version,
|
255
|
-
content_type=content_type,
|
256
|
-
json=_json,
|
257
|
-
content=_content,
|
258
|
-
headers=_headers,
|
259
|
-
params=_params,
|
260
|
-
)
|
261
|
-
_request.url = self._client.format_url(_request.url)
|
262
|
-
|
263
|
-
_stream = False
|
264
|
-
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
265
|
-
_request, stream=_stream, **kwargs
|
266
|
-
)
|
267
|
-
|
268
|
-
response = pipeline_response.http_response
|
269
|
-
|
270
|
-
if response.status_code not in [200]:
|
271
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
272
|
-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
273
|
-
|
274
|
-
deserialized = self._deserialize("ManagementPolicy", pipeline_response.http_response)
|
275
|
-
|
276
|
-
if cls:
|
277
|
-
return cls(pipeline_response, deserialized, {}) # type: ignore
|
278
|
-
|
279
|
-
return deserialized # type: ignore
|
280
|
-
|
281
|
-
@distributed_trace_async
|
282
|
-
async def delete(
|
283
|
-
self,
|
284
|
-
resource_group_name: str,
|
285
|
-
account_name: str,
|
286
|
-
management_policy_name: Union[str, _models.ManagementPolicyName],
|
287
|
-
**kwargs: Any
|
288
|
-
) -> None:
|
289
|
-
"""Deletes the managementpolicy associated with the specified storage account.
|
290
|
-
|
291
|
-
:param resource_group_name: The name of the resource group within the user's subscription. The
|
292
|
-
name is case insensitive. Required.
|
293
|
-
:type resource_group_name: str
|
294
|
-
:param account_name: The name of the storage account within the specified resource group.
|
295
|
-
Storage account names must be between 3 and 24 characters in length and use numbers and
|
296
|
-
lower-case letters only. Required.
|
297
|
-
:type account_name: str
|
298
|
-
:param management_policy_name: The name of the Storage Account Management Policy. It should
|
299
|
-
always be 'default'. "default" Required.
|
300
|
-
:type management_policy_name: str or
|
301
|
-
~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName
|
302
|
-
:return: None or the result of cls(response)
|
303
|
-
:rtype: None
|
304
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
305
|
-
"""
|
306
|
-
error_map: MutableMapping = {
|
307
|
-
401: ClientAuthenticationError,
|
308
|
-
404: ResourceNotFoundError,
|
309
|
-
409: ResourceExistsError,
|
310
|
-
304: ResourceNotModifiedError,
|
311
|
-
}
|
312
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
313
|
-
|
314
|
-
_headers = kwargs.pop("headers", {}) or {}
|
315
|
-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
316
|
-
|
317
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01"))
|
318
|
-
cls: ClsType[None] = kwargs.pop("cls", None)
|
319
|
-
|
320
|
-
_request = build_delete_request(
|
321
|
-
resource_group_name=resource_group_name,
|
322
|
-
account_name=account_name,
|
323
|
-
management_policy_name=management_policy_name,
|
324
|
-
subscription_id=self._config.subscription_id,
|
325
|
-
api_version=api_version,
|
326
|
-
headers=_headers,
|
327
|
-
params=_params,
|
328
|
-
)
|
329
|
-
_request.url = self._client.format_url(_request.url)
|
330
|
-
|
331
|
-
_stream = False
|
332
|
-
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
333
|
-
_request, stream=_stream, **kwargs
|
334
|
-
)
|
335
|
-
|
336
|
-
response = pipeline_response.http_response
|
337
|
-
|
338
|
-
if response.status_code not in [200, 204]:
|
339
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
340
|
-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
341
|
-
|
342
|
-
if cls:
|
343
|
-
return cls(pipeline_response, None, {}) # type: ignore
|