azure.mgmt.storage.v2015_06_15.models module

class azure.mgmt.storage.v2015_06_15.models.CheckNameAvailabilityResult(*, name_available: bool = None, reason=None, message: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The CheckNameAvailability operation response.

Parameters
  • name_available (bool) – 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 is invalid and cannot be used.

  • reason (str or Reason) – The reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Possible values include: ‘AccountNameInvalid’, ‘AlreadyExists’

  • message (str) – The error message explaining the Reason value in more detail.

class azure.mgmt.storage.v2015_06_15.models.CustomDomain(*, name: str, use_sub_domain_name: bool = None, **kwargs)[source]

Bases: msrest.serialization.Model

The custom domain assigned to this storage account. This can be set via Update.

All required parameters must be populated in order to send to Azure.

Parameters
  • name (str) – Required. The custom domain name. Name is the CNAME source.

  • use_sub_domain_name (bool) – Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates

class azure.mgmt.storage.v2015_06_15.models.Endpoints(*, blob: str = None, queue: str = None, table: str = None, file: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The URIs that are used to perform a retrieval of a public blob, queue or table object.

Parameters
  • blob (str) – The blob endpoint.

  • queue (str) – The queue endpoint.

  • table (str) – The table endpoint.

  • file (str) – The file endpoint.

class azure.mgmt.storage.v2015_06_15.models.Resource(*, location: str = None, tags=None, **kwargs)[source]

Bases: msrest.serialization.Model

Describes a storage resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Resource Id

  • name (str) – Resource name

  • type (str) – Resource type

Parameters
  • location (str) – Resource location

  • tags (dict[str, str]) – Resource tags

class azure.mgmt.storage.v2015_06_15.models.StorageAccount(*, location: str = None, tags=None, provisioning_state=None, account_type=None, primary_endpoints=None, primary_location: str = None, status_of_primary=None, last_geo_failover_time=None, secondary_location: str = None, status_of_secondary=None, creation_time=None, custom_domain=None, secondary_endpoints=None, **kwargs)[source]

Bases: azure.mgmt.storage.v2015_06_15.models._models_py3.Resource

The storage account.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Resource Id

  • name (str) – Resource name

  • type (str) – Resource type

Parameters
  • location (str) – Resource location

  • tags (dict[str, str]) – Resource tags

  • provisioning_state (str or ProvisioningState) – The status of the storage account at the time the operation was called. Possible values include: ‘Creating’, ‘ResolvingDNS’, ‘Succeeded’

  • account_type (str or AccountType) – The type of the storage account. Possible values include: ‘Standard_LRS’, ‘Standard_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’

  • primary_endpoints (Endpoints) – The URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

  • primary_location (str) – The location of the primary data center for the storage account.

  • status_of_primary (str or AccountStatus) – The status indicating whether the primary location of the storage account is available or unavailable. Possible values include: ‘Available’, ‘Unavailable’

  • last_geo_failover_time (datetime) – The timestamp of the most recent 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 Standard_GRS or Standard_RAGRS.

  • secondary_location (str) – The location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

  • status_of_secondary (str or AccountStatus) – The status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: ‘Available’, ‘Unavailable’

  • creation_time (datetime) – The creation date and time of the storage account in UTC.

  • custom_domain (CustomDomain) – The custom domain the user assigned to this storage account.

  • secondary_endpoints (Endpoints) – 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 SKU name is Standard_RAGRS.

class azure.mgmt.storage.v2015_06_15.models.StorageAccountCheckNameAvailabilityParameters(*, name: str, type: str = 'Microsoft.Storage/storageAccounts', **kwargs)[source]

Bases: msrest.serialization.Model

The parameters used to check the availability of the storage account name.

All required parameters must be populated in order to send to Azure.

Parameters
  • name (str) – Required.

  • type (str) – Default value: “Microsoft.Storage/storageAccounts” .

class azure.mgmt.storage.v2015_06_15.models.StorageAccountCreateParameters(*, location: str, account_type, tags=None, **kwargs)[source]

Bases: msrest.serialization.Model

The parameters to provide for the account.

All required parameters must be populated in order to send to Azure.

Parameters
  • location (str) – Required. The location of the resource. 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.

  • tags (dict[str, str]) – A list of key value pairs that describe the 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 with a length no greater than 128 characters and a value with a length no greater than 256 characters.

  • account_type (str or AccountType) – Required. 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_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’

class azure.mgmt.storage.v2015_06_15.models.StorageAccountKeys(*, key1: str = None, key2: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The access keys for the storage account.

Parameters
  • key1 (str) – The value of key 1.

  • key2 (str) – The value of key 2.

class azure.mgmt.storage.v2015_06_15.models.StorageAccountRegenerateKeyParameters(*, key_name: str, **kwargs)[source]

Bases: msrest.serialization.Model

The parameters used to regenerate the storage account key.

All required parameters must be populated in order to send to Azure.

Parameters

key_name (str) – Required.

class azure.mgmt.storage.v2015_06_15.models.StorageAccountUpdateParameters(*, tags=None, account_type=None, custom_domain=None, **kwargs)[source]

Bases: msrest.serialization.Model

The parameters to update on the account.

Parameters
  • tags (dict[str, str]) – Resource tags

  • account_type (str or AccountType) – The account type. Note that StandardZRS and PremiumLRS accounts cannot be changed to other account types, and other account types cannot be changed to StandardZRS or PremiumLRS. Possible values include: ‘Standard_LRS’, ‘Standard_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’

  • custom_domain (CustomDomain) – 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.

class azure.mgmt.storage.v2015_06_15.models.Usage(*, unit, current_value: int, limit: int, name, **kwargs)[source]

Bases: msrest.serialization.Model

Describes Storage Resource Usage.

All required parameters must be populated in order to send to Azure.

Parameters
  • unit (str or UsageUnit) – Required. The unit of measurement. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountsPerSecond’, ‘BytesPerSecond’

  • current_value (int) – Required. The current count of the allocated resources in the subscription.

  • limit (int) – Required. The maximum count of the resources that can be allocated in the subscription.

  • name (UsageName) – Required. The name of the type of usage.

class azure.mgmt.storage.v2015_06_15.models.UsageName(*, value: str = None, localized_value: str = None, **kwargs)[source]

Bases: msrest.serialization.Model

The Usage Names.

Parameters
  • value (str) – A string describing the resource name.

  • localized_value (str) – A localized string describing the resource name.

class azure.mgmt.storage.v2015_06_15.models.StorageAccountPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of StorageAccount object

Bring async to Paging.

“async_command” is mandatory keyword argument for this mixin to work.

class azure.mgmt.storage.v2015_06_15.models.UsagePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Usage object

Bring async to Paging.

“async_command” is mandatory keyword argument for this mixin to work.

class azure.mgmt.storage.v2015_06_15.models.Reason[source]

Bases: str, enum.Enum

An enumeration.

account_name_invalid = 'AccountNameInvalid'
already_exists = 'AlreadyExists'
class azure.mgmt.storage.v2015_06_15.models.AccountType[source]

Bases: str, enum.Enum

An enumeration.

premium_lrs = 'Premium_LRS'
standard_grs = 'Standard_GRS'
standard_lrs = 'Standard_LRS'
standard_ragrs = 'Standard_RAGRS'
standard_zrs = 'Standard_ZRS'
class azure.mgmt.storage.v2015_06_15.models.ProvisioningState[source]

Bases: str, enum.Enum

An enumeration.

creating = 'Creating'
resolving_dns = 'ResolvingDNS'
succeeded = 'Succeeded'
class azure.mgmt.storage.v2015_06_15.models.AccountStatus[source]

Bases: str, enum.Enum

An enumeration.

available = 'Available'
unavailable = 'Unavailable'
class azure.mgmt.storage.v2015_06_15.models.UsageUnit[source]

Bases: str, enum.Enum

An enumeration.

bytes = 'Bytes'
bytes_per_second = 'BytesPerSecond'
count = 'Count'
counts_per_second = 'CountsPerSecond'
percent = 'Percent'
seconds = 'Seconds'