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,83 +1,141 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
3
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
# Licensed under the MIT License. See License.txt in the project root for
|
5
|
-
# license information.
|
6
|
-
#
|
4
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
7
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
8
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
9
|
-
# regenerated.
|
6
|
+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
10
7
|
# --------------------------------------------------------------------------
|
11
8
|
|
12
|
-
from
|
9
|
+
from copy import deepcopy
|
10
|
+
from typing import Any, Optional, TYPE_CHECKING, cast
|
13
11
|
from typing_extensions import Self
|
14
12
|
|
15
13
|
from azure.core.pipeline import policies
|
14
|
+
from azure.core.rest import HttpRequest, HttpResponse
|
15
|
+
from azure.core.settings import settings
|
16
16
|
from azure.mgmt.core import ARMPipelineClient
|
17
17
|
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
|
18
|
-
from azure.
|
19
|
-
from azure.profiles.multiapiclient import MultiApiClientMixin
|
18
|
+
from azure.mgmt.core.tools import get_arm_endpoints
|
20
19
|
|
20
|
+
from . import models as _models
|
21
21
|
from ._configuration import StorageManagementClientConfiguration
|
22
|
-
from .
|
22
|
+
from ._utils.serialization import Deserializer, Serializer
|
23
|
+
from .operations import (
|
24
|
+
BlobContainersOperations,
|
25
|
+
BlobInventoryPoliciesOperations,
|
26
|
+
BlobServicesOperations,
|
27
|
+
DeletedAccountsOperations,
|
28
|
+
EncryptionScopesOperations,
|
29
|
+
FileServicesOperations,
|
30
|
+
FileSharesOperations,
|
31
|
+
LocalUsersOperations,
|
32
|
+
ManagementPoliciesOperations,
|
33
|
+
NetworkSecurityPerimeterConfigurationsOperations,
|
34
|
+
ObjectReplicationPoliciesOperations,
|
35
|
+
Operations,
|
36
|
+
PrivateEndpointConnectionsOperations,
|
37
|
+
PrivateLinkResourcesOperations,
|
38
|
+
QueueOperations,
|
39
|
+
QueueServicesOperations,
|
40
|
+
SkusOperations,
|
41
|
+
StorageAccountsOperations,
|
42
|
+
StorageTaskAssignmentInstancesReportOperations,
|
43
|
+
StorageTaskAssignmentsInstancesReportOperations,
|
44
|
+
StorageTaskAssignmentsOperations,
|
45
|
+
TableOperations,
|
46
|
+
TableServicesOperations,
|
47
|
+
UsagesOperations,
|
48
|
+
)
|
23
49
|
|
24
50
|
if TYPE_CHECKING:
|
25
|
-
# pylint: disable=unused-import,ungrouped-imports
|
26
51
|
from azure.core.credentials import TokenCredential
|
27
52
|
|
28
|
-
class _SDKClient(object):
|
29
|
-
def __init__(self, *args, **kwargs):
|
30
|
-
"""This is a fake class to support current implemetation of MultiApiClientMixin."
|
31
|
-
Will be removed in final version of multiapi azure-core based client
|
32
|
-
"""
|
33
|
-
pass
|
34
53
|
|
35
|
-
class StorageManagementClient
|
54
|
+
class StorageManagementClient: # pylint: disable=too-many-instance-attributes
|
36
55
|
"""The Azure Storage Management API.
|
37
56
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
57
|
+
:ivar blob_services: BlobServicesOperations operations
|
58
|
+
:vartype blob_services: azure.mgmt.storage.operations.BlobServicesOperations
|
59
|
+
:ivar blob_containers: BlobContainersOperations operations
|
60
|
+
:vartype blob_containers: azure.mgmt.storage.operations.BlobContainersOperations
|
61
|
+
:ivar file_services: FileServicesOperations operations
|
62
|
+
:vartype file_services: azure.mgmt.storage.operations.FileServicesOperations
|
63
|
+
:ivar file_shares: FileSharesOperations operations
|
64
|
+
:vartype file_shares: azure.mgmt.storage.operations.FileSharesOperations
|
65
|
+
:ivar queue_services: QueueServicesOperations operations
|
66
|
+
:vartype queue_services: azure.mgmt.storage.operations.QueueServicesOperations
|
67
|
+
:ivar queue: QueueOperations operations
|
68
|
+
:vartype queue: azure.mgmt.storage.operations.QueueOperations
|
69
|
+
:ivar operations: Operations operations
|
70
|
+
:vartype operations: azure.mgmt.storage.operations.Operations
|
71
|
+
:ivar skus: SkusOperations operations
|
72
|
+
:vartype skus: azure.mgmt.storage.operations.SkusOperations
|
73
|
+
:ivar storage_accounts: StorageAccountsOperations operations
|
74
|
+
:vartype storage_accounts: azure.mgmt.storage.operations.StorageAccountsOperations
|
75
|
+
:ivar deleted_accounts: DeletedAccountsOperations operations
|
76
|
+
:vartype deleted_accounts: azure.mgmt.storage.operations.DeletedAccountsOperations
|
77
|
+
:ivar usages: UsagesOperations operations
|
78
|
+
:vartype usages: azure.mgmt.storage.operations.UsagesOperations
|
79
|
+
:ivar management_policies: ManagementPoliciesOperations operations
|
80
|
+
:vartype management_policies: azure.mgmt.storage.operations.ManagementPoliciesOperations
|
81
|
+
:ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations
|
82
|
+
:vartype blob_inventory_policies: azure.mgmt.storage.operations.BlobInventoryPoliciesOperations
|
83
|
+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
|
84
|
+
:vartype private_endpoint_connections:
|
85
|
+
azure.mgmt.storage.operations.PrivateEndpointConnectionsOperations
|
86
|
+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
|
87
|
+
:vartype private_link_resources: azure.mgmt.storage.operations.PrivateLinkResourcesOperations
|
88
|
+
:ivar object_replication_policies: ObjectReplicationPoliciesOperations operations
|
89
|
+
:vartype object_replication_policies:
|
90
|
+
azure.mgmt.storage.operations.ObjectReplicationPoliciesOperations
|
91
|
+
:ivar local_users: LocalUsersOperations operations
|
92
|
+
:vartype local_users: azure.mgmt.storage.operations.LocalUsersOperations
|
93
|
+
:ivar encryption_scopes: EncryptionScopesOperations operations
|
94
|
+
:vartype encryption_scopes: azure.mgmt.storage.operations.EncryptionScopesOperations
|
95
|
+
:ivar table_services: TableServicesOperations operations
|
96
|
+
:vartype table_services: azure.mgmt.storage.operations.TableServicesOperations
|
97
|
+
:ivar table: TableOperations operations
|
98
|
+
:vartype table: azure.mgmt.storage.operations.TableOperations
|
99
|
+
:ivar network_security_perimeter_configurations:
|
100
|
+
NetworkSecurityPerimeterConfigurationsOperations operations
|
101
|
+
:vartype network_security_perimeter_configurations:
|
102
|
+
azure.mgmt.storage.operations.NetworkSecurityPerimeterConfigurationsOperations
|
103
|
+
:ivar storage_task_assignments: StorageTaskAssignmentsOperations operations
|
104
|
+
:vartype storage_task_assignments:
|
105
|
+
azure.mgmt.storage.operations.StorageTaskAssignmentsOperations
|
106
|
+
:ivar storage_task_assignments_instances_report:
|
107
|
+
StorageTaskAssignmentsInstancesReportOperations operations
|
108
|
+
:vartype storage_task_assignments_instances_report:
|
109
|
+
azure.mgmt.storage.operations.StorageTaskAssignmentsInstancesReportOperations
|
110
|
+
:ivar storage_task_assignment_instances_report: StorageTaskAssignmentInstancesReportOperations
|
111
|
+
operations
|
112
|
+
:vartype storage_task_assignment_instances_report:
|
113
|
+
azure.mgmt.storage.operations.StorageTaskAssignmentInstancesReportOperations
|
46
114
|
:param credential: Credential needed for the client to connect to Azure. Required.
|
47
115
|
:type credential: ~azure.core.credentials.TokenCredential
|
48
116
|
:param subscription_id: The ID of the target subscription. Required.
|
49
117
|
:type subscription_id: str
|
50
|
-
:param
|
51
|
-
:type api_version: str
|
52
|
-
:param base_url: Service URL
|
118
|
+
:param base_url: Service URL. Default value is None.
|
53
119
|
:type base_url: str
|
54
|
-
:
|
55
|
-
|
56
|
-
:
|
120
|
+
:keyword api_version: Api Version. Default value is "2024-01-01". Note that overriding this
|
121
|
+
default value may result in unsupported behavior.
|
122
|
+
:paramtype api_version: str
|
123
|
+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
124
|
+
Retry-After header is present.
|
57
125
|
"""
|
58
126
|
|
59
|
-
DEFAULT_API_VERSION = '2024-01-01'
|
60
|
-
_PROFILE_TAG = "azure.mgmt.storage.StorageManagementClient"
|
61
|
-
LATEST_PROFILE = ProfileDefinition({
|
62
|
-
_PROFILE_TAG: {
|
63
|
-
None: DEFAULT_API_VERSION,
|
64
|
-
'usage': '2017-10-01',
|
65
|
-
}},
|
66
|
-
_PROFILE_TAG + " latest"
|
67
|
-
)
|
68
|
-
|
69
127
|
def __init__(
|
70
|
-
self,
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
base_url:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
128
|
+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
|
129
|
+
) -> None:
|
130
|
+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
|
131
|
+
_endpoints = get_arm_endpoints(_cloud)
|
132
|
+
if not base_url:
|
133
|
+
base_url = _endpoints["resource_manager"]
|
134
|
+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
|
135
|
+
self._config = StorageManagementClientConfiguration(
|
136
|
+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
|
137
|
+
)
|
138
|
+
|
81
139
|
_policies = kwargs.pop("policies", None)
|
82
140
|
if _policies is None:
|
83
141
|
_policies = [
|
@@ -96,462 +154,89 @@ class StorageManagementClient(MultiApiClientMixin, _SDKClient):
|
|
96
154
|
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
97
155
|
self._config.http_logging_policy,
|
98
156
|
]
|
99
|
-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
100
|
-
|
101
|
-
|
102
|
-
|
157
|
+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
|
158
|
+
|
159
|
+
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
160
|
+
self._serialize = Serializer(client_models)
|
161
|
+
self._deserialize = Deserializer(client_models)
|
162
|
+
self._serialize.client_side_validation = False
|
163
|
+
self.blob_services = BlobServicesOperations(self._client, self._config, self._serialize, self._deserialize)
|
164
|
+
self.blob_containers = BlobContainersOperations(self._client, self._config, self._serialize, self._deserialize)
|
165
|
+
self.file_services = FileServicesOperations(self._client, self._config, self._serialize, self._deserialize)
|
166
|
+
self.file_shares = FileSharesOperations(self._client, self._config, self._serialize, self._deserialize)
|
167
|
+
self.queue_services = QueueServicesOperations(self._client, self._config, self._serialize, self._deserialize)
|
168
|
+
self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize)
|
169
|
+
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
|
170
|
+
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
|
171
|
+
self.storage_accounts = StorageAccountsOperations(
|
172
|
+
self._client, self._config, self._serialize, self._deserialize
|
173
|
+
)
|
174
|
+
self.deleted_accounts = DeletedAccountsOperations(
|
175
|
+
self._client, self._config, self._serialize, self._deserialize
|
176
|
+
)
|
177
|
+
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
|
178
|
+
self.management_policies = ManagementPoliciesOperations(
|
179
|
+
self._client, self._config, self._serialize, self._deserialize
|
180
|
+
)
|
181
|
+
self.blob_inventory_policies = BlobInventoryPoliciesOperations(
|
182
|
+
self._client, self._config, self._serialize, self._deserialize
|
183
|
+
)
|
184
|
+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
|
185
|
+
self._client, self._config, self._serialize, self._deserialize
|
186
|
+
)
|
187
|
+
self.private_link_resources = PrivateLinkResourcesOperations(
|
188
|
+
self._client, self._config, self._serialize, self._deserialize
|
189
|
+
)
|
190
|
+
self.object_replication_policies = ObjectReplicationPoliciesOperations(
|
191
|
+
self._client, self._config, self._serialize, self._deserialize
|
192
|
+
)
|
193
|
+
self.local_users = LocalUsersOperations(self._client, self._config, self._serialize, self._deserialize)
|
194
|
+
self.encryption_scopes = EncryptionScopesOperations(
|
195
|
+
self._client, self._config, self._serialize, self._deserialize
|
196
|
+
)
|
197
|
+
self.table_services = TableServicesOperations(self._client, self._config, self._serialize, self._deserialize)
|
198
|
+
self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize)
|
199
|
+
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
|
200
|
+
self._client, self._config, self._serialize, self._deserialize
|
201
|
+
)
|
202
|
+
self.storage_task_assignments = StorageTaskAssignmentsOperations(
|
203
|
+
self._client, self._config, self._serialize, self._deserialize
|
204
|
+
)
|
205
|
+
self.storage_task_assignments_instances_report = StorageTaskAssignmentsInstancesReportOperations(
|
206
|
+
self._client, self._config, self._serialize, self._deserialize
|
207
|
+
)
|
208
|
+
self.storage_task_assignment_instances_report = StorageTaskAssignmentInstancesReportOperations(
|
209
|
+
self._client, self._config, self._serialize, self._deserialize
|
103
210
|
)
|
104
211
|
|
105
|
-
|
106
|
-
|
107
|
-
return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)}
|
108
|
-
|
109
|
-
@classmethod
|
110
|
-
def models(cls, api_version=DEFAULT_API_VERSION):
|
111
|
-
"""Module depends on the API version:
|
112
|
-
|
113
|
-
* 2016-01-01: :mod:`v2016_01_01.models<azure.mgmt.storage.v2016_01_01.models>`
|
114
|
-
* 2017-10-01: :mod:`v2017_10_01.models<azure.mgmt.storage.v2017_10_01.models>`
|
115
|
-
* 2019-06-01: :mod:`v2019_06_01.models<azure.mgmt.storage.v2019_06_01.models>`
|
116
|
-
* 2024-01-01: :mod:`v2024_01_01.models<azure.mgmt.storage.v2024_01_01.models>`
|
117
|
-
"""
|
118
|
-
if api_version == '2016-01-01':
|
119
|
-
from .v2016_01_01 import models
|
120
|
-
return models
|
121
|
-
elif api_version == '2017-10-01':
|
122
|
-
from .v2017_10_01 import models
|
123
|
-
return models
|
124
|
-
elif api_version == '2019-06-01':
|
125
|
-
from .v2019_06_01 import models
|
126
|
-
return models
|
127
|
-
elif api_version == '2024-01-01':
|
128
|
-
from .v2024_01_01 import models
|
129
|
-
return models
|
130
|
-
raise ValueError("API version {} is not available".format(api_version))
|
131
|
-
|
132
|
-
@property
|
133
|
-
def blob_containers(self):
|
134
|
-
"""Instance depends on the API version:
|
135
|
-
|
136
|
-
* 2019-06-01: :class:`BlobContainersOperations<azure.mgmt.storage.v2019_06_01.operations.BlobContainersOperations>`
|
137
|
-
* 2024-01-01: :class:`BlobContainersOperations<azure.mgmt.storage.v2024_01_01.operations.BlobContainersOperations>`
|
138
|
-
"""
|
139
|
-
api_version = self._get_api_version('blob_containers')
|
140
|
-
if api_version == '2019-06-01':
|
141
|
-
from .v2019_06_01.operations import BlobContainersOperations as OperationClass
|
142
|
-
elif api_version == '2024-01-01':
|
143
|
-
from .v2024_01_01.operations import BlobContainersOperations as OperationClass
|
144
|
-
else:
|
145
|
-
raise ValueError("API version {} does not have operation group 'blob_containers'".format(api_version))
|
146
|
-
self._config.api_version = api_version
|
147
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
148
|
-
|
149
|
-
@property
|
150
|
-
def blob_inventory_policies(self):
|
151
|
-
"""Instance depends on the API version:
|
152
|
-
|
153
|
-
* 2019-06-01: :class:`BlobInventoryPoliciesOperations<azure.mgmt.storage.v2019_06_01.operations.BlobInventoryPoliciesOperations>`
|
154
|
-
* 2024-01-01: :class:`BlobInventoryPoliciesOperations<azure.mgmt.storage.v2024_01_01.operations.BlobInventoryPoliciesOperations>`
|
155
|
-
"""
|
156
|
-
api_version = self._get_api_version('blob_inventory_policies')
|
157
|
-
if api_version == '2019-06-01':
|
158
|
-
from .v2019_06_01.operations import BlobInventoryPoliciesOperations as OperationClass
|
159
|
-
elif api_version == '2024-01-01':
|
160
|
-
from .v2024_01_01.operations import BlobInventoryPoliciesOperations as OperationClass
|
161
|
-
else:
|
162
|
-
raise ValueError("API version {} does not have operation group 'blob_inventory_policies'".format(api_version))
|
163
|
-
self._config.api_version = api_version
|
164
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
165
|
-
|
166
|
-
@property
|
167
|
-
def blob_services(self):
|
168
|
-
"""Instance depends on the API version:
|
169
|
-
|
170
|
-
* 2019-06-01: :class:`BlobServicesOperations<azure.mgmt.storage.v2019_06_01.operations.BlobServicesOperations>`
|
171
|
-
* 2024-01-01: :class:`BlobServicesOperations<azure.mgmt.storage.v2024_01_01.operations.BlobServicesOperations>`
|
172
|
-
"""
|
173
|
-
api_version = self._get_api_version('blob_services')
|
174
|
-
if api_version == '2019-06-01':
|
175
|
-
from .v2019_06_01.operations import BlobServicesOperations as OperationClass
|
176
|
-
elif api_version == '2024-01-01':
|
177
|
-
from .v2024_01_01.operations import BlobServicesOperations as OperationClass
|
178
|
-
else:
|
179
|
-
raise ValueError("API version {} does not have operation group 'blob_services'".format(api_version))
|
180
|
-
self._config.api_version = api_version
|
181
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
182
|
-
|
183
|
-
@property
|
184
|
-
def deleted_accounts(self):
|
185
|
-
"""Instance depends on the API version:
|
186
|
-
|
187
|
-
* 2024-01-01: :class:`DeletedAccountsOperations<azure.mgmt.storage.v2024_01_01.operations.DeletedAccountsOperations>`
|
188
|
-
"""
|
189
|
-
api_version = self._get_api_version('deleted_accounts')
|
190
|
-
if api_version == '2024-01-01':
|
191
|
-
from .v2024_01_01.operations import DeletedAccountsOperations as OperationClass
|
192
|
-
else:
|
193
|
-
raise ValueError("API version {} does not have operation group 'deleted_accounts'".format(api_version))
|
194
|
-
self._config.api_version = api_version
|
195
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
196
|
-
|
197
|
-
@property
|
198
|
-
def encryption_scopes(self):
|
199
|
-
"""Instance depends on the API version:
|
200
|
-
|
201
|
-
* 2019-06-01: :class:`EncryptionScopesOperations<azure.mgmt.storage.v2019_06_01.operations.EncryptionScopesOperations>`
|
202
|
-
* 2024-01-01: :class:`EncryptionScopesOperations<azure.mgmt.storage.v2024_01_01.operations.EncryptionScopesOperations>`
|
203
|
-
"""
|
204
|
-
api_version = self._get_api_version('encryption_scopes')
|
205
|
-
if api_version == '2019-06-01':
|
206
|
-
from .v2019_06_01.operations import EncryptionScopesOperations as OperationClass
|
207
|
-
elif api_version == '2024-01-01':
|
208
|
-
from .v2024_01_01.operations import EncryptionScopesOperations as OperationClass
|
209
|
-
else:
|
210
|
-
raise ValueError("API version {} does not have operation group 'encryption_scopes'".format(api_version))
|
211
|
-
self._config.api_version = api_version
|
212
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
213
|
-
|
214
|
-
@property
|
215
|
-
def file_services(self):
|
216
|
-
"""Instance depends on the API version:
|
217
|
-
|
218
|
-
* 2019-06-01: :class:`FileServicesOperations<azure.mgmt.storage.v2019_06_01.operations.FileServicesOperations>`
|
219
|
-
* 2024-01-01: :class:`FileServicesOperations<azure.mgmt.storage.v2024_01_01.operations.FileServicesOperations>`
|
220
|
-
"""
|
221
|
-
api_version = self._get_api_version('file_services')
|
222
|
-
if api_version == '2019-06-01':
|
223
|
-
from .v2019_06_01.operations import FileServicesOperations as OperationClass
|
224
|
-
elif api_version == '2024-01-01':
|
225
|
-
from .v2024_01_01.operations import FileServicesOperations as OperationClass
|
226
|
-
else:
|
227
|
-
raise ValueError("API version {} does not have operation group 'file_services'".format(api_version))
|
228
|
-
self._config.api_version = api_version
|
229
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
230
|
-
|
231
|
-
@property
|
232
|
-
def file_shares(self):
|
233
|
-
"""Instance depends on the API version:
|
234
|
-
|
235
|
-
* 2019-06-01: :class:`FileSharesOperations<azure.mgmt.storage.v2019_06_01.operations.FileSharesOperations>`
|
236
|
-
* 2024-01-01: :class:`FileSharesOperations<azure.mgmt.storage.v2024_01_01.operations.FileSharesOperations>`
|
237
|
-
"""
|
238
|
-
api_version = self._get_api_version('file_shares')
|
239
|
-
if api_version == '2019-06-01':
|
240
|
-
from .v2019_06_01.operations import FileSharesOperations as OperationClass
|
241
|
-
elif api_version == '2024-01-01':
|
242
|
-
from .v2024_01_01.operations import FileSharesOperations as OperationClass
|
243
|
-
else:
|
244
|
-
raise ValueError("API version {} does not have operation group 'file_shares'".format(api_version))
|
245
|
-
self._config.api_version = api_version
|
246
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
247
|
-
|
248
|
-
@property
|
249
|
-
def local_users(self):
|
250
|
-
"""Instance depends on the API version:
|
251
|
-
|
252
|
-
* 2024-01-01: :class:`LocalUsersOperations<azure.mgmt.storage.v2024_01_01.operations.LocalUsersOperations>`
|
253
|
-
"""
|
254
|
-
api_version = self._get_api_version('local_users')
|
255
|
-
if api_version == '2024-01-01':
|
256
|
-
from .v2024_01_01.operations import LocalUsersOperations as OperationClass
|
257
|
-
else:
|
258
|
-
raise ValueError("API version {} does not have operation group 'local_users'".format(api_version))
|
259
|
-
self._config.api_version = api_version
|
260
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
261
|
-
|
262
|
-
@property
|
263
|
-
def management_policies(self):
|
264
|
-
"""Instance depends on the API version:
|
265
|
-
|
266
|
-
* 2019-06-01: :class:`ManagementPoliciesOperations<azure.mgmt.storage.v2019_06_01.operations.ManagementPoliciesOperations>`
|
267
|
-
* 2024-01-01: :class:`ManagementPoliciesOperations<azure.mgmt.storage.v2024_01_01.operations.ManagementPoliciesOperations>`
|
268
|
-
"""
|
269
|
-
api_version = self._get_api_version('management_policies')
|
270
|
-
if api_version == '2019-06-01':
|
271
|
-
from .v2019_06_01.operations import ManagementPoliciesOperations as OperationClass
|
272
|
-
elif api_version == '2024-01-01':
|
273
|
-
from .v2024_01_01.operations import ManagementPoliciesOperations as OperationClass
|
274
|
-
else:
|
275
|
-
raise ValueError("API version {} does not have operation group 'management_policies'".format(api_version))
|
276
|
-
self._config.api_version = api_version
|
277
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
278
|
-
|
279
|
-
@property
|
280
|
-
def network_security_perimeter_configurations(self):
|
281
|
-
"""Instance depends on the API version:
|
282
|
-
|
283
|
-
* 2024-01-01: :class:`NetworkSecurityPerimeterConfigurationsOperations<azure.mgmt.storage.v2024_01_01.operations.NetworkSecurityPerimeterConfigurationsOperations>`
|
284
|
-
"""
|
285
|
-
api_version = self._get_api_version('network_security_perimeter_configurations')
|
286
|
-
if api_version == '2024-01-01':
|
287
|
-
from .v2024_01_01.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass
|
288
|
-
else:
|
289
|
-
raise ValueError("API version {} does not have operation group 'network_security_perimeter_configurations'".format(api_version))
|
290
|
-
self._config.api_version = api_version
|
291
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
292
|
-
|
293
|
-
@property
|
294
|
-
def object_replication_policies(self):
|
295
|
-
"""Instance depends on the API version:
|
296
|
-
|
297
|
-
* 2019-06-01: :class:`ObjectReplicationPoliciesOperations<azure.mgmt.storage.v2019_06_01.operations.ObjectReplicationPoliciesOperations>`
|
298
|
-
* 2024-01-01: :class:`ObjectReplicationPoliciesOperations<azure.mgmt.storage.v2024_01_01.operations.ObjectReplicationPoliciesOperations>`
|
299
|
-
"""
|
300
|
-
api_version = self._get_api_version('object_replication_policies')
|
301
|
-
if api_version == '2019-06-01':
|
302
|
-
from .v2019_06_01.operations import ObjectReplicationPoliciesOperations as OperationClass
|
303
|
-
elif api_version == '2024-01-01':
|
304
|
-
from .v2024_01_01.operations import ObjectReplicationPoliciesOperations as OperationClass
|
305
|
-
else:
|
306
|
-
raise ValueError("API version {} does not have operation group 'object_replication_policies'".format(api_version))
|
307
|
-
self._config.api_version = api_version
|
308
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
309
|
-
|
310
|
-
@property
|
311
|
-
def operations(self):
|
312
|
-
"""Instance depends on the API version:
|
313
|
-
|
314
|
-
* 2017-10-01: :class:`Operations<azure.mgmt.storage.v2017_10_01.operations.Operations>`
|
315
|
-
* 2019-06-01: :class:`Operations<azure.mgmt.storage.v2019_06_01.operations.Operations>`
|
316
|
-
* 2024-01-01: :class:`Operations<azure.mgmt.storage.v2024_01_01.operations.Operations>`
|
317
|
-
"""
|
318
|
-
api_version = self._get_api_version('operations')
|
319
|
-
if api_version == '2017-10-01':
|
320
|
-
from .v2017_10_01.operations import Operations as OperationClass
|
321
|
-
elif api_version == '2019-06-01':
|
322
|
-
from .v2019_06_01.operations import Operations as OperationClass
|
323
|
-
elif api_version == '2024-01-01':
|
324
|
-
from .v2024_01_01.operations import Operations as OperationClass
|
325
|
-
else:
|
326
|
-
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
|
327
|
-
self._config.api_version = api_version
|
328
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
329
|
-
|
330
|
-
@property
|
331
|
-
def private_endpoint_connections(self):
|
332
|
-
"""Instance depends on the API version:
|
333
|
-
|
334
|
-
* 2019-06-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.storage.v2019_06_01.operations.PrivateEndpointConnectionsOperations>`
|
335
|
-
* 2024-01-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.storage.v2024_01_01.operations.PrivateEndpointConnectionsOperations>`
|
336
|
-
"""
|
337
|
-
api_version = self._get_api_version('private_endpoint_connections')
|
338
|
-
if api_version == '2019-06-01':
|
339
|
-
from .v2019_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass
|
340
|
-
elif api_version == '2024-01-01':
|
341
|
-
from .v2024_01_01.operations import PrivateEndpointConnectionsOperations as OperationClass
|
342
|
-
else:
|
343
|
-
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
|
344
|
-
self._config.api_version = api_version
|
345
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
346
|
-
|
347
|
-
@property
|
348
|
-
def private_link_resources(self):
|
349
|
-
"""Instance depends on the API version:
|
350
|
-
|
351
|
-
* 2019-06-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.storage.v2019_06_01.operations.PrivateLinkResourcesOperations>`
|
352
|
-
* 2024-01-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.storage.v2024_01_01.operations.PrivateLinkResourcesOperations>`
|
353
|
-
"""
|
354
|
-
api_version = self._get_api_version('private_link_resources')
|
355
|
-
if api_version == '2019-06-01':
|
356
|
-
from .v2019_06_01.operations import PrivateLinkResourcesOperations as OperationClass
|
357
|
-
elif api_version == '2024-01-01':
|
358
|
-
from .v2024_01_01.operations import PrivateLinkResourcesOperations as OperationClass
|
359
|
-
else:
|
360
|
-
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
|
361
|
-
self._config.api_version = api_version
|
362
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
363
|
-
|
364
|
-
@property
|
365
|
-
def queue(self):
|
366
|
-
"""Instance depends on the API version:
|
367
|
-
|
368
|
-
* 2019-06-01: :class:`QueueOperations<azure.mgmt.storage.v2019_06_01.operations.QueueOperations>`
|
369
|
-
* 2024-01-01: :class:`QueueOperations<azure.mgmt.storage.v2024_01_01.operations.QueueOperations>`
|
370
|
-
"""
|
371
|
-
api_version = self._get_api_version('queue')
|
372
|
-
if api_version == '2019-06-01':
|
373
|
-
from .v2019_06_01.operations import QueueOperations as OperationClass
|
374
|
-
elif api_version == '2024-01-01':
|
375
|
-
from .v2024_01_01.operations import QueueOperations as OperationClass
|
376
|
-
else:
|
377
|
-
raise ValueError("API version {} does not have operation group 'queue'".format(api_version))
|
378
|
-
self._config.api_version = api_version
|
379
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
380
|
-
|
381
|
-
@property
|
382
|
-
def queue_services(self):
|
383
|
-
"""Instance depends on the API version:
|
384
|
-
|
385
|
-
* 2019-06-01: :class:`QueueServicesOperations<azure.mgmt.storage.v2019_06_01.operations.QueueServicesOperations>`
|
386
|
-
* 2024-01-01: :class:`QueueServicesOperations<azure.mgmt.storage.v2024_01_01.operations.QueueServicesOperations>`
|
387
|
-
"""
|
388
|
-
api_version = self._get_api_version('queue_services')
|
389
|
-
if api_version == '2019-06-01':
|
390
|
-
from .v2019_06_01.operations import QueueServicesOperations as OperationClass
|
391
|
-
elif api_version == '2024-01-01':
|
392
|
-
from .v2024_01_01.operations import QueueServicesOperations as OperationClass
|
393
|
-
else:
|
394
|
-
raise ValueError("API version {} does not have operation group 'queue_services'".format(api_version))
|
395
|
-
self._config.api_version = api_version
|
396
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
397
|
-
|
398
|
-
@property
|
399
|
-
def skus(self):
|
400
|
-
"""Instance depends on the API version:
|
401
|
-
|
402
|
-
* 2017-10-01: :class:`SkusOperations<azure.mgmt.storage.v2017_10_01.operations.SkusOperations>`
|
403
|
-
* 2019-06-01: :class:`SkusOperations<azure.mgmt.storage.v2019_06_01.operations.SkusOperations>`
|
404
|
-
* 2024-01-01: :class:`SkusOperations<azure.mgmt.storage.v2024_01_01.operations.SkusOperations>`
|
405
|
-
"""
|
406
|
-
api_version = self._get_api_version('skus')
|
407
|
-
if api_version == '2017-10-01':
|
408
|
-
from .v2017_10_01.operations import SkusOperations as OperationClass
|
409
|
-
elif api_version == '2019-06-01':
|
410
|
-
from .v2019_06_01.operations import SkusOperations as OperationClass
|
411
|
-
elif api_version == '2024-01-01':
|
412
|
-
from .v2024_01_01.operations import SkusOperations as OperationClass
|
413
|
-
else:
|
414
|
-
raise ValueError("API version {} does not have operation group 'skus'".format(api_version))
|
415
|
-
self._config.api_version = api_version
|
416
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
417
|
-
|
418
|
-
@property
|
419
|
-
def storage_accounts(self):
|
420
|
-
"""Instance depends on the API version:
|
421
|
-
|
422
|
-
* 2016-01-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2016_01_01.operations.StorageAccountsOperations>`
|
423
|
-
* 2017-10-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2017_10_01.operations.StorageAccountsOperations>`
|
424
|
-
* 2019-06-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2019_06_01.operations.StorageAccountsOperations>`
|
425
|
-
* 2024-01-01: :class:`StorageAccountsOperations<azure.mgmt.storage.v2024_01_01.operations.StorageAccountsOperations>`
|
426
|
-
"""
|
427
|
-
api_version = self._get_api_version('storage_accounts')
|
428
|
-
if api_version == '2016-01-01':
|
429
|
-
from .v2016_01_01.operations import StorageAccountsOperations as OperationClass
|
430
|
-
elif api_version == '2017-10-01':
|
431
|
-
from .v2017_10_01.operations import StorageAccountsOperations as OperationClass
|
432
|
-
elif api_version == '2019-06-01':
|
433
|
-
from .v2019_06_01.operations import StorageAccountsOperations as OperationClass
|
434
|
-
elif api_version == '2024-01-01':
|
435
|
-
from .v2024_01_01.operations import StorageAccountsOperations as OperationClass
|
436
|
-
else:
|
437
|
-
raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version))
|
438
|
-
self._config.api_version = api_version
|
439
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
440
|
-
|
441
|
-
@property
|
442
|
-
def storage_task_assignment_instances_report(self):
|
443
|
-
"""Instance depends on the API version:
|
444
|
-
|
445
|
-
* 2024-01-01: :class:`StorageTaskAssignmentInstancesReportOperations<azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentInstancesReportOperations>`
|
446
|
-
"""
|
447
|
-
api_version = self._get_api_version('storage_task_assignment_instances_report')
|
448
|
-
if api_version == '2024-01-01':
|
449
|
-
from .v2024_01_01.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass
|
450
|
-
else:
|
451
|
-
raise ValueError("API version {} does not have operation group 'storage_task_assignment_instances_report'".format(api_version))
|
452
|
-
self._config.api_version = api_version
|
453
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
454
|
-
|
455
|
-
@property
|
456
|
-
def storage_task_assignments(self):
|
457
|
-
"""Instance depends on the API version:
|
458
|
-
|
459
|
-
* 2024-01-01: :class:`StorageTaskAssignmentsOperations<azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentsOperations>`
|
460
|
-
"""
|
461
|
-
api_version = self._get_api_version('storage_task_assignments')
|
462
|
-
if api_version == '2024-01-01':
|
463
|
-
from .v2024_01_01.operations import StorageTaskAssignmentsOperations as OperationClass
|
464
|
-
else:
|
465
|
-
raise ValueError("API version {} does not have operation group 'storage_task_assignments'".format(api_version))
|
466
|
-
self._config.api_version = api_version
|
467
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
468
|
-
|
469
|
-
@property
|
470
|
-
def storage_task_assignments_instances_report(self):
|
471
|
-
"""Instance depends on the API version:
|
472
|
-
|
473
|
-
* 2024-01-01: :class:`StorageTaskAssignmentsInstancesReportOperations<azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentsInstancesReportOperations>`
|
474
|
-
"""
|
475
|
-
api_version = self._get_api_version('storage_task_assignments_instances_report')
|
476
|
-
if api_version == '2024-01-01':
|
477
|
-
from .v2024_01_01.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass
|
478
|
-
else:
|
479
|
-
raise ValueError("API version {} does not have operation group 'storage_task_assignments_instances_report'".format(api_version))
|
480
|
-
self._config.api_version = api_version
|
481
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
482
|
-
|
483
|
-
@property
|
484
|
-
def table(self):
|
485
|
-
"""Instance depends on the API version:
|
486
|
-
|
487
|
-
* 2019-06-01: :class:`TableOperations<azure.mgmt.storage.v2019_06_01.operations.TableOperations>`
|
488
|
-
* 2024-01-01: :class:`TableOperations<azure.mgmt.storage.v2024_01_01.operations.TableOperations>`
|
489
|
-
"""
|
490
|
-
api_version = self._get_api_version('table')
|
491
|
-
if api_version == '2019-06-01':
|
492
|
-
from .v2019_06_01.operations import TableOperations as OperationClass
|
493
|
-
elif api_version == '2024-01-01':
|
494
|
-
from .v2024_01_01.operations import TableOperations as OperationClass
|
495
|
-
else:
|
496
|
-
raise ValueError("API version {} does not have operation group 'table'".format(api_version))
|
497
|
-
self._config.api_version = api_version
|
498
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
499
|
-
|
500
|
-
@property
|
501
|
-
def table_services(self):
|
502
|
-
"""Instance depends on the API version:
|
212
|
+
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
|
213
|
+
"""Runs the network request through the client's chained policies.
|
503
214
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
from .v2019_06_01.operations import TableServicesOperations as OperationClass
|
510
|
-
elif api_version == '2024-01-01':
|
511
|
-
from .v2024_01_01.operations import TableServicesOperations as OperationClass
|
512
|
-
else:
|
513
|
-
raise ValueError("API version {} does not have operation group 'table_services'".format(api_version))
|
514
|
-
self._config.api_version = api_version
|
515
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
215
|
+
>>> from azure.core.rest import HttpRequest
|
216
|
+
>>> request = HttpRequest("GET", "https://www.example.org/")
|
217
|
+
<HttpRequest [GET], url: 'https://www.example.org/'>
|
218
|
+
>>> response = client._send_request(request)
|
219
|
+
<HttpResponse: 200 OK>
|
516
220
|
|
517
|
-
|
518
|
-
def usage(self):
|
519
|
-
"""Instance depends on the API version:
|
221
|
+
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
520
222
|
|
521
|
-
|
522
|
-
|
223
|
+
:param request: The network request you want to make. Required.
|
224
|
+
:type request: ~azure.core.rest.HttpRequest
|
225
|
+
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
226
|
+
:return: The response of your network call. Does not do error handling on your response.
|
227
|
+
:rtype: ~azure.core.rest.HttpResponse
|
523
228
|
"""
|
524
|
-
api_version = self._get_api_version('usage')
|
525
|
-
if api_version == '2016-01-01':
|
526
|
-
from .v2016_01_01.operations import UsageOperations as OperationClass
|
527
|
-
elif api_version == '2017-10-01':
|
528
|
-
from .v2017_10_01.operations import UsageOperations as OperationClass
|
529
|
-
else:
|
530
|
-
raise ValueError("API version {} does not have operation group 'usage'".format(api_version))
|
531
|
-
self._config.api_version = api_version
|
532
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
533
|
-
|
534
|
-
@property
|
535
|
-
def usages(self):
|
536
|
-
"""Instance depends on the API version:
|
537
229
|
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
api_version = self._get_api_version('usages')
|
542
|
-
if api_version == '2019-06-01':
|
543
|
-
from .v2019_06_01.operations import UsagesOperations as OperationClass
|
544
|
-
elif api_version == '2024-01-01':
|
545
|
-
from .v2024_01_01.operations import UsagesOperations as OperationClass
|
546
|
-
else:
|
547
|
-
raise ValueError("API version {} does not have operation group 'usages'".format(api_version))
|
548
|
-
self._config.api_version = api_version
|
549
|
-
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
|
230
|
+
request_copy = deepcopy(request)
|
231
|
+
request_copy.url = self._client.format_url(request_copy.url)
|
232
|
+
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
550
233
|
|
551
|
-
def close(self):
|
234
|
+
def close(self) -> None:
|
552
235
|
self._client.close()
|
553
|
-
|
236
|
+
|
237
|
+
def __enter__(self) -> Self:
|
554
238
|
self._client.__enter__()
|
555
239
|
return self
|
556
|
-
|
240
|
+
|
241
|
+
def __exit__(self, *exc_details: Any) -> None:
|
557
242
|
self._client.__exit__(*exc_details)
|