forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 5aaacd5e87cb088557ee24b12dd33f833b43df70
- Loading branch information
SDK Automation
committed
Oct 2, 2020
1 parent
79bb773
commit b9da0f4
Showing
30 changed files
with
16,891 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_08_01_preview/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
48 changes: 48 additions & 0 deletions
48
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_08_01_preview/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
134 changes: 134 additions & 0 deletions
134
...e/azure-mgmt-storage/azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.