From 82dae2d3e0166ac54baceeb630db0adc963665af Mon Sep 17 00:00:00 2001 From: SwaggerToSDK Automation Date: Wed, 2 Nov 2016 18:45:48 +0000 Subject: [PATCH] Generated from 409af1f53800684bfdbad995b28e91e675c88ce4 --- .../models/check_name_availability_result.py | 2 +- .../mgmt/storage/models/custom_domain.py | 6 +-- .../azure/mgmt/storage/models/encryption.py | 8 +-- .../mgmt/storage/models/encryption_service.py | 15 +++--- .../storage/models/encryption_services.py | 4 +- .../azure/mgmt/storage/models/endpoints.py | 2 +- .../azure/mgmt/storage/models/resource.py | 3 +- .../azure/mgmt/storage/models/sku.py | 2 +- .../mgmt/storage/models/storage_account.py | 38 +++++++------- .../storage_account_create_parameters.py | 24 ++++----- .../storage/models/storage_account_key.py | 6 +-- .../storage_account_list_keys_result.py | 5 +- .../storage_account_update_parameters.py | 28 +++++----- .../azure/mgmt/storage/models/usage_name.py | 2 +- .../operations/storage_accounts_operations.py | 52 ++++++++++++------- .../storage/operations/usage_operations.py | 1 + .../mgmt/storage/storage_management_client.py | 8 +-- 17 files changed, 110 insertions(+), 96 deletions(-) diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/check_name_availability_result.py b/azure-mgmt-storage/azure/mgmt/storage/models/check_name_availability_result.py index 5c507791e553..90a5107d099a 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/check_name_availability_result.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/check_name_availability_result.py @@ -20,7 +20,7 @@ class CheckNameAvailabilityResult(Model): :ivar name_available: Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If - false, the name has already been taken or invalid and cannot be used. + false, the name has already been taken or is invalid and cannot be used. :vartype name_available: bool :ivar reason: Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/custom_domain.py b/azure-mgmt-storage/azure/mgmt/storage/models/custom_domain.py index 5991a677a4ac..621a4c481ed7 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/custom_domain.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/custom_domain.py @@ -16,11 +16,11 @@ class CustomDomain(Model): """The custom domain assigned to this storage account. This can be set via Update. - :param name: Gets or sets the custom domain name. Name is the CNAME - source. + :param name: Gets or sets the custom domain name assigned to the storage + account. Name is the CNAME source. :type name: str :param use_sub_domain: Indicates whether indirect CName validation is - enabled. Default value is false. This should only be set on updates + enabled. Default value is false. This should only be set on updates. :type use_sub_domain: bool """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/encryption.py b/azure-mgmt-storage/azure/mgmt/storage/models/encryption.py index c006811e28b1..288e67a6003b 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/encryption.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/encryption.py @@ -13,16 +13,16 @@ class Encryption(Model): - """The encryption settings on the account. + """The encryption settings on the storage account. Variables are only populated by the server, and will be ignored when sending a request. - :param services: Gets the services which are encrypted. + :param services: List of services which support encryption. :type services: :class:`EncryptionServices ` - :ivar key_source: Gets the encryption keySource(provider). Possible - values (case-insensitive): Microsoft.Storage. Default value: + :ivar key_source: The encryption keySource (provider). Possible values + (case-insensitive): Microsoft.Storage. Default value: "Microsoft.Storage" . :vartype key_source: str """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/encryption_service.py b/azure-mgmt-storage/azure/mgmt/storage/models/encryption_service.py index c7dfd000a8dd..f0baed14e97c 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/encryption_service.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/encryption_service.py @@ -13,19 +13,18 @@ class EncryptionService(Model): - """An encrypted service. + """A service that allows server-side encryption to be used. Variables are only populated by the server, and will be ignored when sending a request. - :param enabled: A boolean indicating whether or not the service is - encrypted. + :param enabled: A boolean indicating whether or not the service encrypts + the data as it is stored. :type enabled: bool - :ivar last_enabled_time: Gets a time value indicating when was the - encryption enabled by the user last time. We return this value only when - encryption is enabled. There might be some unencrypted blobs which were - written after this time. This time is just to give a rough estimate of - when encryption was enabled. + :ivar last_enabled_time: Gets a rough estimate of the date/time when the + encryption was last enabled by the user. Only returned when encryption + is enabled. There might be some unencrypted blobs which were written + after this time, as it is just a rough estimate. :vartype last_enabled_time: datetime """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/encryption_services.py b/azure-mgmt-storage/azure/mgmt/storage/models/encryption_services.py index 23389f299620..5539b7061ff1 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/encryption_services.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/encryption_services.py @@ -13,9 +13,9 @@ class EncryptionServices(Model): - """The encrypted services. + """A list of services that support encryption. - :param blob: The blob service. + :param blob: The encryption function of the blob storage service. :type blob: :class:`EncryptionService ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/endpoints.py b/azure-mgmt-storage/azure/mgmt/storage/models/endpoints.py index 78e9c1a52e48..acb45943d7b3 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/endpoints.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/endpoints.py @@ -13,7 +13,7 @@ class Endpoints(Model): - """The URIs that are used to perform a retrieval of a public blob, queue or + """The URIs that are used to perform a retrieval of a public blob, queue, or table object. Variables are only populated by the server, and will be ignored when diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/resource.py b/azure-mgmt-storage/azure/mgmt/storage/models/resource.py index 2287bc619718..e0c4e97911cd 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/resource.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/resource.py @@ -26,7 +26,8 @@ class Resource(Model): :vartype type: str :param location: Resource location :type location: str - :param tags: Resource tags + :param tags: Tags assigned to a resource; can be used for viewing and + grouping a resource (across resource groups). :type tags: dict """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/sku.py b/azure-mgmt-storage/azure/mgmt/storage/models/sku.py index 5fe2a13b34f8..352f1a9cf376 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/sku.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/sku.py @@ -18,7 +18,7 @@ class Sku(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param name: Gets or sets the sku name. Required for account creation, + :param name: Gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS' diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account.py b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account.py index 60edd48f9458..73530c3f09c1 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account.py @@ -26,7 +26,8 @@ class StorageAccount(Resource): :vartype type: str :param location: Resource location :type location: str - :param tags: Resource tags + :param tags: Tags assigned to a resource; can be used for viewing and + grouping a resource (across resource groups). :type tags: dict :ivar sku: Gets the SKU. :vartype sku: :class:`Sku ` @@ -39,12 +40,12 @@ class StorageAccount(Resource): :vartype provisioning_state: str or :class:`ProvisioningState ` :ivar primary_endpoints: Gets the URLs that are used to perform a - retrieval of a public blob, queue or table object.Note that StandardZRS - and PremiumLRS accounts only return the blob endpoint. + retrieval of a public blob, queue, or table object. Note that + Standard_ZRS and Premium_LRS accounts only return the blob endpoint. :vartype primary_endpoints: :class:`Endpoints ` - :ivar primary_location: Gets the location of the primary for the storage - account. + :ivar primary_location: Gets the location of the primary data center for + the storage account. :vartype primary_location: str :ivar status_of_primary: Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible @@ -55,39 +56,38 @@ class StorageAccount(Resource): instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is - StandardGRS or StandardRAGRS. + Standard_GRS or Standard_RAGRS. :vartype last_geo_failover_time: datetime - :ivar secondary_location: Gets the location of the geo replicated + :ivar secondary_location: Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is - StandardGRS or StandardRAGRS. + Standard_GRS or Standard_RAGRS. :vartype secondary_location: str :ivar status_of_secondary: Gets the status indicating whether the secondary location of the storage account is available or unavailable. - Only available if the accountType is StandardGRS or StandardRAGRS. + Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'Available', 'Unavailable' :vartype status_of_secondary: str or :class:`AccountStatus ` :ivar creation_time: Gets the creation date and time of the storage account in UTC. :vartype creation_time: datetime - :ivar custom_domain: Gets the user assigned custom domain assigned to - this storage account. + :ivar custom_domain: Gets the custom domain the user assigned to this + storage account. :vartype custom_domain: :class:`CustomDomain ` :ivar secondary_endpoints: Gets the URLs that are used to perform a - retrieval of a public blob, queue or table object from the secondary - location of the storage account. Only available if the accountType is - StandardRAGRS. + retrieval of a public blob, queue, or table object from the secondary + location of the storage account. Only available if the SKU name is + Standard_RAGRS. :vartype secondary_endpoints: :class:`Endpoints ` :ivar encryption: Gets the encryption settings on the account. If - unspecified the account is unencrypted. + unspecified, the account is unencrypted. :vartype encryption: :class:`Encryption ` - :ivar access_tier: The access tier used for billing. Access tier cannot - be changed more than once every 7 days (168 hours). Access tier cannot - be set for StandardLRS, StandardGRS, StandardRAGRS, or PremiumLRS - account types. Possible values include: 'Hot', 'Cool' + :ivar access_tier: Required for storage accounts where kind = + BlobStorage. The access tier used for billing. Possible values include: + 'Hot', 'Cool' :vartype access_tier: str or :class:`AccessTier ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_create_parameters.py b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_create_parameters.py index d01ae457f91c..a3c778b5a6cf 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_create_parameters.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_create_parameters.py @@ -13,9 +13,9 @@ class StorageAccountCreateParameters(Model): - """The parameters to provide for the account. + """The parameters used when creating a storage account. - :param sku: Required. Gets or sets the sku type. + :param sku: Required. Gets or sets the sku name. :type sku: :class:`Sku ` :param kind: Required. Indicates the type of storage account. Possible values include: 'Storage', 'BlobStorage' @@ -24,13 +24,13 @@ class StorageAccountCreateParameters(Model): This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is - specified on update the request will succeed. + specified on update, the request will succeed. :type location: str :param tags: Gets or sets a list of key value pairs that describe the - resource. These tags can be used in viewing and grouping this resource + resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a - resource. Each tag must have a key no greater than 128 characters and - value no greater than 256 characters. + resource. Each tag must have a key with a length no greater than 128 + characters and a value with a length no greater than 256 characters. :type tags: dict :param custom_domain: User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage @@ -39,15 +39,13 @@ class StorageAccountCreateParameters(Model): :type custom_domain: :class:`CustomDomain ` :param encryption: Provides the encryption settings on the account. If - left unspecified the account encryption settings will remain. The - default setting is unencrypted. + left unspecified the account encryption settings will remain the same. + The default setting is unencrypted. :type encryption: :class:`Encryption ` - :param access_tier: Required for StandardBlob accounts. The access tier - used for billing. Access tier cannot be changed more than once every 7 - days (168 hours). Access tier cannot be set for StandardLRS, - StandardGRS, StandardRAGRS, or PremiumLRS account types. Possible values - include: 'Hot', 'Cool' + :param access_tier: Required for storage accounts where kind = + BlobStorage. The access tier used for billing. Possible values include: + 'Hot', 'Cool' :type access_tier: str or :class:`AccessTier ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_key.py b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_key.py index 0ab1a3102029..08cecd6cffb7 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_key.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_key.py @@ -20,10 +20,10 @@ class StorageAccountKey(Model): :ivar key_name: Name of the key. :vartype key_name: str - :ivar value: Base 64 encoded value of the key. + :ivar value: Base 64-encoded value of the key. :vartype value: str - :ivar permissions: Permissions for the key. Possible values include: - 'READ', 'FULL' + :ivar permissions: Permissions for the key -- read-only or full + permissions. Possible values include: 'READ', 'FULL' :vartype permissions: str or :class:`KeyPermission ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_list_keys_result.py b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_list_keys_result.py index 313d0250fabc..cda50a74bffe 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_list_keys_result.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_list_keys_result.py @@ -13,12 +13,13 @@ class StorageAccountListKeysResult(Model): - """The ListKeys operation response. + """The response from the ListKeys operation. Variables are only populated by the server, and will be ignored when sending a request. - :ivar keys: Gets the list of account keys and their properties. + :ivar keys: Gets the list of storage account keys and their properties + for the specified storage account. :vartype keys: list of :class:`StorageAccountKey ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_update_parameters.py b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_update_parameters.py index e2e3797c8d76..c93a86473a94 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_update_parameters.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/storage_account_update_parameters.py @@ -13,32 +13,32 @@ class StorageAccountUpdateParameters(Model): - """The parameters to provide for the account. + """The parameters that can be provided when updating the storage account + properties. - :param sku: Gets or sets the sku type. Note that sku cannot be updated to - StandardZRS or ProvisionedLRS, nor can accounts of that sku type be - updated to any other value. + :param sku: Gets or sets the SKU name. Note that the SKU name cannot be + updated to Standard_ZRS or Premium_LRS, nor can accounts of those sku + names be updated to any other value. :type sku: :class:`Sku ` :param tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a - resource. Each tag must have a key no greater than 128 characters and - value no greater than 256 characters. + resource. Each tag must have a key no greater in length than 128 + characters and a value no greater in length than 256 characters. :type tags: dict - :param custom_domain: User domain assigned to the storage account. Name - is the CNAME source. Only one custom domain is supported per storage - account at this time. To clear the existing custom domain, use an empty - string for the custom domain name property. + :param custom_domain: Custom domain assigned to the storage account by + the user. Name is the CNAME source. Only one custom domain is supported + per storage account at this time. To clear the existing custom domain, + use an empty string for the custom domain name property. :type custom_domain: :class:`CustomDomain ` :param encryption: Provides the encryption settings on the account. The default setting is unencrypted. :type encryption: :class:`Encryption ` - :param access_tier: The access tier used for billing. Access tier cannot - be changed more than once every 7 days (168 hours). Access tier cannot - be set for StandardLRS, StandardGRS, StandardRAGRS, or PremiumLRS - account types. Possible values include: 'Hot', 'Cool' + :param access_tier: Required for storage accounts where kind = + BlobStorage. The access tier used for billing. Possible values include: + 'Hot', 'Cool' :type access_tier: str or :class:`AccessTier ` """ diff --git a/azure-mgmt-storage/azure/mgmt/storage/models/usage_name.py b/azure-mgmt-storage/azure/mgmt/storage/models/usage_name.py index 5815f857c10c..878d8449d019 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/models/usage_name.py +++ b/azure-mgmt-storage/azure/mgmt/storage/models/usage_name.py @@ -13,7 +13,7 @@ class UsageName(Model): - """The Usage Names. + """The usage names that can be used; currently limited to StorageAccount. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-storage/azure/mgmt/storage/operations/storage_accounts_operations.py b/azure-mgmt-storage/azure/mgmt/storage/operations/storage_accounts_operations.py index 7b1b0e7904c0..453bfd8e6689 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/operations/storage_accounts_operations.py +++ b/azure-mgmt-storage/azure/mgmt/storage/operations/storage_accounts_operations.py @@ -36,7 +36,8 @@ def __init__(self, client, config, serializer, deserializer): def check_name_availability( self, name, custom_headers=None, raw=False, **operation_config): - """Checks that account name is valid and is not in use. + """Checks that the storage account name is valid and is not already in + use. :param name: :type name: str @@ -49,6 +50,7 @@ def check_name_availability( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ account_name = models.StorageAccountCheckNameAvailabilityParameters(name=name) @@ -100,11 +102,11 @@ def check_name_availability( def create( self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config): """Asynchronously creates a new storage account with the specified - parameters. If an account is already created and subsequent create + parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties - will be updated. If an account is already created and subsequent - create or update request is issued with exact same set of properties, - the request will succeed. + will be updated. If an account is already created and a subsequent + create or update request is issued with the exact same set of + properties, the request will succeed. :param resource_group_name: The name of the resource group within the user's subscription. @@ -126,6 +128,7 @@ def create( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' @@ -170,7 +173,7 @@ def get_long_running_status(status_link, headers=None): def get_long_running_output(response): - if response.status_code not in [202, 200]: + if response.status_code not in [200, 202]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -217,6 +220,7 @@ def delete( :rtype: None :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' @@ -257,7 +261,7 @@ def delete( def get_properties( self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): """Returns the properties for the specified storage account including but - not limited to name, account type, location, and account status. The + not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. :param resource_group_name: The name of the resource group within the @@ -277,6 +281,7 @@ def get_properties( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' @@ -323,16 +328,16 @@ def get_properties( def update( self, resource_group_name, account_name, parameters, custom_headers=None, raw=False, **operation_config): - """The update operation can be used to update the account type, - encryption, or tags for a storage account. It can also be used to map - the account to a custom domain. Only one custom domain is supported - per storage account and. replacement/change of custom domain is not + """The update operation can be used to update the SKU, encryption, access + tier, or tags for a storage account. It can also be used to map the + account to a custom domain. Only one custom domain is supported per + storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value - must be cleared/unregistered before a new value may be set. Update of - multiple properties is supported. This call does not change the - storage keys for the account. If you want to change storage account - keys, use the regenerate keys operation. The location and name of - the storage account cannot be changed after creation. + must be cleared/unregistered before a new value can be set. The + update of multiple properties is supported. This call does not change + the storage keys for the account. If you want to change the storage + account keys, use the regenerate keys operation. The location and + name of the storage account cannot be changed after creation. :param resource_group_name: The name of the resource group within the user's subscription. @@ -354,6 +359,7 @@ def update( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}' @@ -415,6 +421,7 @@ def list( overrides`. :rtype: :class:`StorageAccountPaged ` + :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -482,6 +489,7 @@ def list_by_resource_group( overrides`. :rtype: :class:`StorageAccountPaged ` + :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -538,9 +546,13 @@ def list_keys( self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config): """Lists the access keys for the specified storage account. - :param resource_group_name: The name of the resource group. + :param resource_group_name: The name of the resource group within the + user's subscription. :type resource_group_name: str - :param account_name: The name of the storage account. + :param account_name: The name of the storage account within the + specified resource group. Storage account names must be between 3 + and 24 characters in length and use numbers and lower-case letters + only. :type account_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -551,6 +563,7 @@ def list_keys( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ # Construct URL url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys' @@ -597,7 +610,7 @@ def list_keys( def regenerate_key( self, resource_group_name, account_name, key_name, custom_headers=None, raw=False, **operation_config): - """Regenerates the access keys for the specified storage account. + """Regenerates one of the access keys for the specified storage account. :param resource_group_name: The name of the resource group within the user's subscription. @@ -618,6 +631,7 @@ def regenerate_key( ` :rtype: :class:`ClientRawResponse` if raw=true + :raises: :class:`CloudError` """ regenerate_key = models.StorageAccountRegenerateKeyParameters(key_name=key_name) diff --git a/azure-mgmt-storage/azure/mgmt/storage/operations/usage_operations.py b/azure-mgmt-storage/azure/mgmt/storage/operations/usage_operations.py index 5d1308c648b8..4b3aa1366397 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/operations/usage_operations.py +++ b/azure-mgmt-storage/azure/mgmt/storage/operations/usage_operations.py @@ -44,6 +44,7 @@ def list( :param operation_config: :ref:`Operation configuration overrides`. :rtype: :class:`UsagePaged ` + :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): diff --git a/azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py b/azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py index 0c1d8e94ed5b..b8262fa2294c 100644 --- a/azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py +++ b/azure-mgmt-storage/azure/mgmt/storage/storage_management_client.py @@ -27,8 +27,8 @@ class StorageManagementClientConfiguration(AzureConfiguration): :type credentials: :mod:`A msrestazure Credentials object` :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. + identify the Microsoft Azure subscription. The subscription ID forms + part of the URI for every service call. :type subscription_id: str :param api_version: Client Api Version. :type api_version: str @@ -90,8 +90,8 @@ class StorageManagementClient(object): :type credentials: :mod:`A msrestazure Credentials object` :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. + identify the Microsoft Azure subscription. The subscription ID forms + part of the URI for every service call. :type subscription_id: str :param api_version: Client Api Version. :type api_version: str