Skip to content

Commit

Permalink
Generated from 5aaacd5e87cb088557ee24b12dd33f833b43df70
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 2, 2020
1 parent 79bb773 commit b9da0f4
Show file tree
Hide file tree
Showing 30 changed files with 16,891 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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


# Usage
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import StorageManagementClientConfiguration
from ._storage_management_client import StorageManagementClient
__all__ = ['StorageManagementClient', 'StorageManagementClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class StorageManagementClientConfiguration(AzureConfiguration):
"""Configuration for StorageManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(StorageManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-storage/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import StorageManagementClientConfiguration
from .operations import Operations
from .operations import SkusOperations
from .operations import StorageAccountsOperations
from .operations import DeletedAccountsOperations
from .operations import UsagesOperations
from .operations import ManagementPoliciesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import ObjectReplicationPoliciesOperations
from .operations import EncryptionScopesOperations
from .operations import BlobServicesOperations
from .operations import BlobContainersOperations
from .operations import FileServicesOperations
from .operations import FileSharesOperations
from .operations import QueueServicesOperations
from .operations import QueueOperations
from .operations import TableServicesOperations
from .operations import TableOperations
from . import models


class StorageManagementClient(SDKClient):
"""The Azure Storage Management API.
:ivar config: Configuration for client.
:vartype config: StorageManagementClientConfiguration
:ivar operations: Operations operations
:vartype operations: azure.mgmt.storage.v2020_08_01_preview.operations.Operations
:ivar skus: Skus operations
:vartype skus: azure.mgmt.storage.v2020_08_01_preview.operations.SkusOperations
:ivar storage_accounts: StorageAccounts operations
:vartype storage_accounts: azure.mgmt.storage.v2020_08_01_preview.operations.StorageAccountsOperations
:ivar deleted_accounts: DeletedAccounts operations
:vartype deleted_accounts: azure.mgmt.storage.v2020_08_01_preview.operations.DeletedAccountsOperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.storage.v2020_08_01_preview.operations.UsagesOperations
:ivar management_policies: ManagementPolicies operations
:vartype management_policies: azure.mgmt.storage.v2020_08_01_preview.operations.ManagementPoliciesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.storage.v2020_08_01_preview.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.storage.v2020_08_01_preview.operations.PrivateLinkResourcesOperations
:ivar object_replication_policies: ObjectReplicationPolicies operations
:vartype object_replication_policies: azure.mgmt.storage.v2020_08_01_preview.operations.ObjectReplicationPoliciesOperations
:ivar encryption_scopes: EncryptionScopes operations
:vartype encryption_scopes: azure.mgmt.storage.v2020_08_01_preview.operations.EncryptionScopesOperations
:ivar blob_services: BlobServices operations
:vartype blob_services: azure.mgmt.storage.v2020_08_01_preview.operations.BlobServicesOperations
:ivar blob_containers: BlobContainers operations
:vartype blob_containers: azure.mgmt.storage.v2020_08_01_preview.operations.BlobContainersOperations
:ivar file_services: FileServices operations
:vartype file_services: azure.mgmt.storage.v2020_08_01_preview.operations.FileServicesOperations
:ivar file_shares: FileShares operations
:vartype file_shares: azure.mgmt.storage.v2020_08_01_preview.operations.FileSharesOperations
:ivar queue_services: QueueServices operations
:vartype queue_services: azure.mgmt.storage.v2020_08_01_preview.operations.QueueServicesOperations
:ivar queue: Queue operations
:vartype queue: azure.mgmt.storage.v2020_08_01_preview.operations.QueueOperations
:ivar table_services: TableServices operations
:vartype table_services: azure.mgmt.storage.v2020_08_01_preview.operations.TableServicesOperations
:ivar table: Table operations
:vartype table: azure.mgmt.storage.v2020_08_01_preview.operations.TableOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = StorageManagementClientConfiguration(credentials, subscription_id, base_url)
super(StorageManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-08-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.skus = SkusOperations(
self._client, self.config, self._serialize, self._deserialize)
self.storage_accounts = StorageAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.deleted_accounts = DeletedAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.management_policies = ManagementPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.object_replication_policies = ObjectReplicationPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.encryption_scopes = EncryptionScopesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.blob_services = BlobServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.blob_containers = BlobContainersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.file_services = FileServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.file_shares = FileSharesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.queue_services = QueueServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.queue = QueueOperations(
self._client, self.config, self._serialize, self._deserialize)
self.table_services = TableServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.table = TableOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading

0 comments on commit b9da0f4

Please sign in to comment.