Skip to content

Commit cb7aaf0

Browse files
author
SDK Automation
committed
Generated from fd8466803ac15c63995b9b6f9b088f13debfae1a
1 parent 3f96b10 commit cb7aaf0

30 files changed

+16524
-1
lines changed

sdk/storage/azure-mgmt-storage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the Microsoft Azure Storage Management Client Library.
44
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5-
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77

88
# Usage

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py

Lines changed: 68 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 ._configuration import StorageManagementClientConfiguration
13+
from ._storage_management_client import StorageManagementClient
14+
__all__ = ['StorageManagementClient', 'StorageManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class StorageManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for StorageManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(StorageManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-storage/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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

Comments
 (0)