azure.mgmt.storage.v2016_01_01.models module¶
-
class
azure.mgmt.storage.v2016_01_01.models.
AccessTier
(value)[source]¶ -
Required for storage accounts where kind = BlobStorage. The access tier used for billing.
-
COOL
= 'Cool'¶
-
HOT
= 'Hot'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
AccountStatus
(value)[source]¶ -
Gets the status indicating whether the primary location of the storage account is available or unavailable.
-
AVAILABLE
= 'Available'¶
-
UNAVAILABLE
= 'Unavailable'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
CheckNameAvailabilityResult
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The CheckNameAvailability operation response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
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. Known values are: “AccountNameInvalid” and “AlreadyExists”.
message (str) – Gets an error message explaining the Reason value in more detail.
-
class
azure.mgmt.storage.v2016_01_01.models.
CustomDomain
(*, name: str, use_sub_domain_name: Optional[bool] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._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.
- Variables
- Keyword Arguments
-
class
azure.mgmt.storage.v2016_01_01.models.
Encryption
(*, key_source: Union[str, _models.EncryptionKeySource], services: Optional[_models.EncryptionServices] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The encryption settings on the storage account.
All required parameters must be populated in order to send to Azure.
- Variables
services (EncryptionServices) – List of services which support encryption.
key_source (str or EncryptionKeySource) – The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage. Required. “Microsoft.Storage”
- Keyword Arguments
services (EncryptionServices) – List of services which support encryption.
key_source (str or EncryptionKeySource) – The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage. Required. “Microsoft.Storage”
-
class
azure.mgmt.storage.v2016_01_01.models.
EncryptionKeySource
(value)[source]¶ -
The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage.
-
MICROSOFT_STORAGE
= 'Microsoft.Storage'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
EncryptionService
(*, enabled: Optional[bool] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
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.
- Variables
enabled (bool) – A boolean indicating whether or not the service encrypts the data as it is stored.
last_enabled_time (datetime) – 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.
- Keyword Arguments
enabled (bool) – A boolean indicating whether or not the service encrypts the data as it is stored.
-
class
azure.mgmt.storage.v2016_01_01.models.
EncryptionServices
(*, blob: Optional[_models.EncryptionService] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
A list of services that support encryption.
- Variables
blob (EncryptionService) – The encryption function of the blob storage service.
- Keyword Arguments
blob (EncryptionService) – The encryption function of the blob storage service.
-
class
azure.mgmt.storage.v2016_01_01.models.
Endpoints
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
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 sending a request.
-
class
azure.mgmt.storage.v2016_01_01.models.
KeyPermission
(value)[source]¶ -
Permissions for the key – read-only or full permissions.
-
FULL
= 'FULL'¶
-
READ
= 'READ'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
Kind
(value)[source]¶ -
Required. Indicates the type of storage account.
-
BLOB_STORAGE
= 'BlobStorage'¶
-
STORAGE
= 'Storage'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
ProvisioningState
(value)[source]¶ -
Gets the status of the storage account at the time the operation was called.
-
CREATING
= 'Creating'¶
-
RESOLVING_DNS
= 'ResolvingDNS'¶
-
SUCCEEDED
= 'Succeeded'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
Reason
(value)[source]¶ -
Gets 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.v2016_01_01.models.
Resource
(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
Resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Keyword Arguments
-
class
azure.mgmt.storage.v2016_01_01.models.
Sku
(*, name: Union[str, _models.SkuName], **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The SKU of the storage account.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Variables
name (str or SkuName) – Gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Required. Known values are: “Standard_LRS”, “Standard_GRS”, “Standard_RAGRS”, “Standard_ZRS”, and “Premium_LRS”.
tier (str or SkuTier) – Gets the sku tier. This is based on the SKU name. Known values are: “Standard” and “Premium”.
- Keyword Arguments
name (str or SkuName) – Gets or sets the sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. Required. Known values are: “Standard_LRS”, “Standard_GRS”, “Standard_RAGRS”, “Standard_ZRS”, and “Premium_LRS”.
-
class
azure.mgmt.storage.v2016_01_01.models.
SkuName
(value)[source]¶ -
Gets or sets 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.v2016_01_01.models.
SkuTier
(value)[source]¶ -
Gets the sku tier. This is based on the SKU name.
-
PREMIUM
= 'Premium'¶
-
STANDARD
= 'Standard'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccount
(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage.v2016_01_01.models._models_py3.Resource
The storage account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
name (str) – Resource name.
location (str) – Resource location.
tags (dict[str, str]) – Tags assigned to a resource; can be used for viewing and grouping a resource (across resource groups).
sku (Sku) – Gets the SKU.
kind (str or Kind) – Gets the Kind. Known values are: “Storage” and “BlobStorage”.
provisioning_state (str or ProvisioningState) – Gets the status of the storage account at the time the operation was called. Known values are: “Creating”, “ResolvingDNS”, and “Succeeded”.
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. Known values are: “Available” and “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. Known values are: “Available” and “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.
encryption (Encryption) – Gets the encryption settings on the account. If unspecified, the account is unencrypted.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: “Hot” and “Cool”.
- Keyword Arguments
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountCheckNameAvailabilityParameters
(*, name: str, type: Union[str, _models.StorageAccountCheckNameAvailabilityParametersType], **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
StorageAccountCheckNameAvailabilityParameters.
All required parameters must be populated in order to send to Azure.
- Variables
name (str) – Required.
type (str or StorageAccountCheckNameAvailabilityParametersType) – Required. “Microsoft.Storage/storageAccounts”
- Keyword Arguments
name (str) – Required.
type (str or StorageAccountCheckNameAvailabilityParametersType) – Required. “Microsoft.Storage/storageAccounts”
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountCheckNameAvailabilityParametersType
(value)[source]¶ -
StorageAccountCheckNameAvailabilityParametersType.
-
MICROSOFT_STORAGE_STORAGE_ACCOUNTS
= 'Microsoft.Storage/storageAccounts'¶
-
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountCreateParameters
(*, sku: _models.Sku, kind: Union[str, _models.Kind], location: str, tags: Optional[Dict[str, str]] = None, custom_domain: Optional[_models.CustomDomain] = None, encryption: Optional[_models.Encryption] = None, access_tier: Optional[Union[str, _models.AccessTier]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The parameters used when creating a storage account.
All required parameters must be populated in order to send to Azure.
- Variables
sku (Sku) – Required. Gets or sets the sku name. Required.
kind (str or Kind) – Required. Indicates the type of storage account. Required. Known values are: “Storage” and “BlobStorage”.
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. Required.
tags (dict[str, str]) – 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.
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.
encryption (Encryption) – Provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: “Hot” and “Cool”.
- Keyword Arguments
sku (Sku) – Required. Gets or sets the sku name. Required.
kind (str or Kind) – Required. Indicates the type of storage account. Required. Known values are: “Storage” and “BlobStorage”.
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. Required.
tags (dict[str, str]) – 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.
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.
encryption (Encryption) – Provides the encryption settings on the account. If left unspecified the account encryption settings will remain the same. The default setting is unencrypted.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: “Hot” and “Cool”.
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountKey
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
An access key for the storage account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
key_name (str) – Name of the key.
value (str) – Base 64-encoded value of the key.
permissions (str or KeyPermission) – Permissions for the key – read-only or full permissions. Known values are: “READ” and “FULL”.
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountListKeysResult
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The response from the ListKeys operation.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
keys (list[StorageAccountKey]) – Gets the list of storage account keys and their properties for the specified storage account.
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountListResult
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The response from the List Storage Accounts operation.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
value (list[StorageAccount]) – Gets the list of storage accounts and their properties.
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountRegenerateKeyParameters
(*, key_name: str, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
StorageAccountRegenerateKeyParameters.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.storage.v2016_01_01.models.
StorageAccountUpdateParameters
(*, sku: Optional[_models.Sku] = None, tags: Optional[Dict[str, str]] = None, custom_domain: Optional[_models.CustomDomain] = None, encryption: Optional[_models.Encryption] = None, access_tier: Optional[Union[str, _models.AccessTier]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The parameters that can be provided when updating the storage account properties.
- Variables
sku (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.
tags (dict[str, str]) – 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 in length than 128 characters and a value no greater in length than 256 characters.
custom_domain (CustomDomain) – 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.
encryption (Encryption) – Provides the encryption settings on the account. The default setting is unencrypted.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: “Hot” and “Cool”.
- Keyword Arguments
sku (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.
tags (dict[str, str]) – 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 in length than 128 characters and a value no greater in length than 256 characters.
custom_domain (CustomDomain) – 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.
encryption (Encryption) – Provides the encryption settings on the account. The default setting is unencrypted.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: “Hot” and “Cool”.
-
class
azure.mgmt.storage.v2016_01_01.models.
Usage
(**kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
Describes Storage Resource Usage.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
unit (str or UsageUnit) – Gets the unit of measurement. Known values are: “Count”, “Bytes”, “Seconds”, “Percent”, “CountsPerSecond”, and “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.v2016_01_01.models.
UsageListResult
(*, value: Optional[List[_models.Usage]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.storage._serialization.Model
The response from the List Usages operation.