azure.mgmt.storage.v2015_06_15.models module

class azure.mgmt.storage.v2015_06_15.models.CheckNameAvailabilityResult(*, name_available: Optional[bool] = None, reason: Union[str, Reason, None] = None, message: Optional[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: Optional[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: Optional[str] = None, queue: Optional[str] = None, table: Optional[str] = None, file: Optional[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: Optional[str] = None, tags: Optional[Dict[str, str]] = 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]) – A set of tags. Resource tags.

class azure.mgmt.storage.v2015_06_15.models.StorageAccount(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, provisioning_state: Union[str, ProvisioningState, None] = None, account_type: Union[str, AccountType, None] = None, primary_endpoints: Optional[Endpoints] = None, primary_location: Optional[str] = None, status_of_primary: Union[str, AccountStatus, None] = None, last_geo_failover_time: Optional[datetime.datetime] = None, secondary_location: Optional[str] = None, status_of_secondary: Union[str, AccountStatus, None] = None, creation_time: Optional[datetime.datetime] = None, custom_domain: Optional[CustomDomain] = None, secondary_endpoints: Optional[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]) – A set of tags. 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: Optional[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) –

class azure.mgmt.storage.v2015_06_15.models.StorageAccountCreateParameters(*, location: str, tags: Optional[Dict[str, str]] = None, account_type: Union[str, AccountType, None] = 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 set of tags. 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) – 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: Optional[str] = None, key2: Optional[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.StorageAccountListResult(*, value: Optional[List[StorageAccount]] = None, **kwargs)[source]

Bases: msrest.serialization.Model

The list storage accounts operation response.

Parameters

value (list[StorageAccount]) – The list of storage accounts and their properties.

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: Optional[Dict[str, str]] = None, account_type: Union[str, AccountType, None] = None, custom_domain: Optional[CustomDomain] = None, **kwargs)[source]

Bases: msrest.serialization.Model

The parameters to update on the account.

Parameters
  • tags (dict[str, str]) – A set of tags. 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: Union[str, UsageUnit], current_value: int, limit: int, name: azure.mgmt.storage.v2015_06_15.models._models_py3.UsageName, **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.UsageListResult(*, value: Optional[List[Usage]] = None, **kwargs)[source]

Bases: msrest.serialization.Model

The List Usages operation response.

Parameters

value (list[Usage]) – The list Storage Resource Usages.

class azure.mgmt.storage.v2015_06_15.models.UsageName(*, value: Optional[str] = None, localized_value: Optional[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.AccountStatus[source]

Bases: str, enum.Enum

The status indicating whether the primary location of the storage account is available or unavailable.

AVAILABLE = 'Available'
UNAVAILABLE = 'Unavailable'
class azure.mgmt.storage.v2015_06_15.models.AccountType[source]

Bases: str, enum.Enum

The sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType.

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

The status of the storage account at the time the operation was called.

CREATING = 'Creating'
RESOLVING_DNS = 'ResolvingDNS'
SUCCEEDED = 'Succeeded'
class azure.mgmt.storage.v2015_06_15.models.Reason[source]

Bases: str, enum.Enum

The reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.

ACCOUNT_NAME_INVALID = 'AccountNameInvalid'
ALREADY_EXISTS = 'AlreadyExists'
class azure.mgmt.storage.v2015_06_15.models.UsageUnit[source]

Bases: str, enum.Enum

The unit of measurement.

BYTES = 'Bytes'
BYTES_PER_SECOND = 'BytesPerSecond'
COUNT = 'Count'
COUNTS_PER_SECOND = 'CountsPerSecond'
PERCENT = 'Percent'
SECONDS = 'Seconds'