azure.mgmt.storage.v2015_06_15.models module

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

Bases: msrest.serialization.Model

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

Parameters:
  • name (str) –
  • type (str) – Default value: “Microsoft.Storage/storageAccounts” .
class azure.mgmt.storage.v2015_06_15.models.CheckNameAvailabilityResult(name_available=None, reason=None, message=None)[source]

Bases: msrest.serialization.Model

The CheckNameAvailability operation response.

Parameters:
  • name_available (bool) – 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 is invalid and cannot be used.
  • reason (str or Reason) – Gets 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) – Gets an error message explaining the Reason value in more detail.
class azure.mgmt.storage.v2015_06_15.models.StorageAccountCreateParameters(location, account_type, tags=None)[source]

Bases: msrest.serialization.Model

The parameters to provide for the account.

Parameters:
  • location (str) – Required. Gets or sets 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) – Gets or sets 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) – 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_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’
class azure.mgmt.storage.v2015_06_15.models.Endpoints(blob=None, queue=None, table=None, file=None)[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) – Gets the blob endpoint.
  • queue (str) – Gets the queue endpoint.
  • table (str) – Gets the table endpoint.
  • file (str) – Gets the file endpoint.
class azure.mgmt.storage.v2015_06_15.models.CustomDomain(name, use_sub_domain=None)[source]

Bases: msrest.serialization.Model

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

Parameters:
  • name (str) – Gets or sets the custom domain name. Name is the CNAME source.
  • use_sub_domain (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.StorageAccount(location=None, tags=None, provisioning_state=None, account_type=None, primary_endpoints=None, primary_location=None, status_of_primary=None, last_geo_failover_time=None, secondary_location=None, status_of_secondary=None, creation_time=None, custom_domain=None, secondary_endpoints=None)[source]

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

The storage account.

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

Variables:
Parameters:
  • location (str) – Resource location
  • tags (dict) – Resource tags
  • provisioning_state (str or ProvisioningState) – Gets the status of the storage account at the time the operation was called. Possible values include: ‘Creating’, ‘ResolvingDNS’, ‘Succeeded’
  • account_type (str or AccountType) – Gets the type of the storage account. Possible values include: ‘Standard_LRS’, ‘Standard_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’
  • primary_endpoints (Endpoints) – Gets 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) – Gets the location of the primary data center for the storage account.
  • status_of_primary (str or AccountStatus) – Gets 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) – Gets 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) – Gets 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) – Gets 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) – Gets the creation date and time of the storage account in UTC.
  • custom_domain (CustomDomain) – Gets the custom domain the user assigned to this storage account.
  • secondary_endpoints (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 SKU name is Standard_RAGRS.
class azure.mgmt.storage.v2015_06_15.models.StorageAccountKeys(key1=None, key2=None)[source]

Bases: msrest.serialization.Model

The access keys for the storage account.

Parameters:
  • key1 (str) – Gets the value of key 1.
  • key2 (str) – Gets the value of key 2.
class azure.mgmt.storage.v2015_06_15.models.StorageAccountUpdateParameters(tags=None, account_type=None, custom_domain=None)[source]

Bases: msrest.serialization.Model

The parameters to update on the account.

Parameters:
  • tags (dict) – Resource tags
  • account_type (str or AccountType) – Gets or sets 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.StorageAccountRegenerateKeyParameters(key_name)[source]

Bases: msrest.serialization.Model

The parameters used to regenerate the storage account key.

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

Bases: msrest.serialization.Model

The Usage Names.

Parameters:
  • value (str) – Gets a string describing the resource name.
  • localized_value (str) – Gets a localized string describing the resource name.
class azure.mgmt.storage.v2015_06_15.models.Usage(unit, current_value, limit, name)[source]

Bases: msrest.serialization.Model

Describes Storage Resource Usage.

Parameters:
  • unit (str or UsageUnit) – Gets the unit of measurement. Possible values include: ‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountsPerSecond’, ‘BytesPerSecond’
  • current_value (int) – Gets the current count of the allocated resources in the subscription.
  • limit (int) – Gets the maximum count of the resources that can be allocated in the subscription.
  • name (UsageName) – Gets the name of the type of usage.
class azure.mgmt.storage.v2015_06_15.models.Resource(location=None, tags=None)[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:
Parameters:
  • location (str) – Resource location
  • tags (dict) – Resource tags
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

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

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

Bases: enum.Enum

An enumeration.

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

Bases: 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: enum.Enum

An enumeration.

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

Bases: enum.Enum

An enumeration.

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

Bases: enum.Enum

An enumeration.

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