Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-mgmt-storage] [Microsoft.Storage] Adding support for ResourceAccessRules #13982

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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