|
| 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 |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import StorageManagementClientConfiguration |
| 16 | +from .operations import Operations |
| 17 | +from .operations import SkusOperations |
| 18 | +from .operations import StorageAccountsOperations |
| 19 | +from .operations import DeletedAccountsOperations |
| 20 | +from .operations import UsagesOperations |
| 21 | +from .operations import ManagementPoliciesOperations |
| 22 | +from .operations import PrivateEndpointConnectionsOperations |
| 23 | +from .operations import PrivateLinkResourcesOperations |
| 24 | +from .operations import ObjectReplicationPoliciesOperations |
| 25 | +from .operations import EncryptionScopesOperations |
| 26 | +from .operations import BlobServicesOperations |
| 27 | +from .operations import BlobContainersOperations |
| 28 | +from .operations import FileServicesOperations |
| 29 | +from .operations import FileSharesOperations |
| 30 | +from .operations import QueueServicesOperations |
| 31 | +from .operations import QueueOperations |
| 32 | +from .operations import TableServicesOperations |
| 33 | +from .operations import TableOperations |
| 34 | +from . import models |
| 35 | + |
| 36 | + |
| 37 | +class StorageManagementClient(SDKClient): |
| 38 | + """The Azure Storage Management API. |
| 39 | +
|
| 40 | + :ivar config: Configuration for client. |
| 41 | + :vartype config: StorageManagementClientConfiguration |
| 42 | +
|
| 43 | + :ivar operations: Operations operations |
| 44 | + :vartype operations: azure.mgmt.storage.v2020_08_01_preview.operations.Operations |
| 45 | + :ivar skus: Skus operations |
| 46 | + :vartype skus: azure.mgmt.storage.v2020_08_01_preview.operations.SkusOperations |
| 47 | + :ivar storage_accounts: StorageAccounts operations |
| 48 | + :vartype storage_accounts: azure.mgmt.storage.v2020_08_01_preview.operations.StorageAccountsOperations |
| 49 | + :ivar deleted_accounts: DeletedAccounts operations |
| 50 | + :vartype deleted_accounts: azure.mgmt.storage.v2020_08_01_preview.operations.DeletedAccountsOperations |
| 51 | + :ivar usages: Usages operations |
| 52 | + :vartype usages: azure.mgmt.storage.v2020_08_01_preview.operations.UsagesOperations |
| 53 | + :ivar management_policies: ManagementPolicies operations |
| 54 | + :vartype management_policies: azure.mgmt.storage.v2020_08_01_preview.operations.ManagementPoliciesOperations |
| 55 | + :ivar private_endpoint_connections: PrivateEndpointConnections operations |
| 56 | + :vartype private_endpoint_connections: azure.mgmt.storage.v2020_08_01_preview.operations.PrivateEndpointConnectionsOperations |
| 57 | + :ivar private_link_resources: PrivateLinkResources operations |
| 58 | + :vartype private_link_resources: azure.mgmt.storage.v2020_08_01_preview.operations.PrivateLinkResourcesOperations |
| 59 | + :ivar object_replication_policies: ObjectReplicationPolicies operations |
| 60 | + :vartype object_replication_policies: azure.mgmt.storage.v2020_08_01_preview.operations.ObjectReplicationPoliciesOperations |
| 61 | + :ivar encryption_scopes: EncryptionScopes operations |
| 62 | + :vartype encryption_scopes: azure.mgmt.storage.v2020_08_01_preview.operations.EncryptionScopesOperations |
| 63 | + :ivar blob_services: BlobServices operations |
| 64 | + :vartype blob_services: azure.mgmt.storage.v2020_08_01_preview.operations.BlobServicesOperations |
| 65 | + :ivar blob_containers: BlobContainers operations |
| 66 | + :vartype blob_containers: azure.mgmt.storage.v2020_08_01_preview.operations.BlobContainersOperations |
| 67 | + :ivar file_services: FileServices operations |
| 68 | + :vartype file_services: azure.mgmt.storage.v2020_08_01_preview.operations.FileServicesOperations |
| 69 | + :ivar file_shares: FileShares operations |
| 70 | + :vartype file_shares: azure.mgmt.storage.v2020_08_01_preview.operations.FileSharesOperations |
| 71 | + :ivar queue_services: QueueServices operations |
| 72 | + :vartype queue_services: azure.mgmt.storage.v2020_08_01_preview.operations.QueueServicesOperations |
| 73 | + :ivar queue: Queue operations |
| 74 | + :vartype queue: azure.mgmt.storage.v2020_08_01_preview.operations.QueueOperations |
| 75 | + :ivar table_services: TableServices operations |
| 76 | + :vartype table_services: azure.mgmt.storage.v2020_08_01_preview.operations.TableServicesOperations |
| 77 | + :ivar table: Table operations |
| 78 | + :vartype table: azure.mgmt.storage.v2020_08_01_preview.operations.TableOperations |
| 79 | +
|
| 80 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 81 | + :type credentials: :mod:`A msrestazure Credentials |
| 82 | + object<msrestazure.azure_active_directory>` |
| 83 | + :param subscription_id: The ID of the target subscription. |
| 84 | + :type subscription_id: str |
| 85 | + :param str base_url: Service URL |
| 86 | + """ |
| 87 | + |
| 88 | + def __init__( |
| 89 | + self, credentials, subscription_id, base_url=None): |
| 90 | + |
| 91 | + self.config = StorageManagementClientConfiguration(credentials, subscription_id, base_url) |
| 92 | + super(StorageManagementClient, self).__init__(self.config.credentials, self.config) |
| 93 | + |
| 94 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 95 | + self.api_version = '2020-08-01-preview' |
| 96 | + self._serialize = Serializer(client_models) |
| 97 | + self._deserialize = Deserializer(client_models) |
| 98 | + |
| 99 | + self.operations = Operations( |
| 100 | + self._client, self.config, self._serialize, self._deserialize) |
| 101 | + self.skus = SkusOperations( |
| 102 | + self._client, self.config, self._serialize, self._deserialize) |
| 103 | + self.storage_accounts = StorageAccountsOperations( |
| 104 | + self._client, self.config, self._serialize, self._deserialize) |
| 105 | + self.deleted_accounts = DeletedAccountsOperations( |
| 106 | + self._client, self.config, self._serialize, self._deserialize) |
| 107 | + self.usages = UsagesOperations( |
| 108 | + self._client, self.config, self._serialize, self._deserialize) |
| 109 | + self.management_policies = ManagementPoliciesOperations( |
| 110 | + self._client, self.config, self._serialize, self._deserialize) |
| 111 | + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( |
| 112 | + self._client, self.config, self._serialize, self._deserialize) |
| 113 | + self.private_link_resources = PrivateLinkResourcesOperations( |
| 114 | + self._client, self.config, self._serialize, self._deserialize) |
| 115 | + self.object_replication_policies = ObjectReplicationPoliciesOperations( |
| 116 | + self._client, self.config, self._serialize, self._deserialize) |
| 117 | + self.encryption_scopes = EncryptionScopesOperations( |
| 118 | + self._client, self.config, self._serialize, self._deserialize) |
| 119 | + self.blob_services = BlobServicesOperations( |
| 120 | + self._client, self.config, self._serialize, self._deserialize) |
| 121 | + self.blob_containers = BlobContainersOperations( |
| 122 | + self._client, self.config, self._serialize, self._deserialize) |
| 123 | + self.file_services = FileServicesOperations( |
| 124 | + self._client, self.config, self._serialize, self._deserialize) |
| 125 | + self.file_shares = FileSharesOperations( |
| 126 | + self._client, self.config, self._serialize, self._deserialize) |
| 127 | + self.queue_services = QueueServicesOperations( |
| 128 | + self._client, self.config, self._serialize, self._deserialize) |
| 129 | + self.queue = QueueOperations( |
| 130 | + self._client, self.config, self._serialize, self._deserialize) |
| 131 | + self.table_services = TableServicesOperations( |
| 132 | + self._client, self.config, self._serialize, self._deserialize) |
| 133 | + self.table = TableOperations( |
| 134 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments