azure.mgmt.storage.v2019_04_01.models module¶
-
class
azure.mgmt.storage.v2019_04_01.models.
AccountSasParameters
(*, services: Union[str, Services], resource_types: Union[str, SignedResourceTypes], permissions: Union[str, Permissions], shared_access_expiry_time: datetime.datetime, ip_address_or_range: Optional[str] = None, protocols: Union[str, HttpProtocol, None] = None, shared_access_start_time: Optional[datetime.datetime] = None, key_to_sign: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The parameters to list SAS credentials of a storage account.
All required parameters must be populated in order to send to Azure.
- Parameters
services (str or Services) – Required. The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Possible values include: “b”, “q”, “t”, “f”.
resource_types (str or SignedResourceTypes) – Required. The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Possible values include: “s”, “c”, “o”.
permissions (str or Permissions) – Required. The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: “r”, “d”, “w”, “l”, “a”, “c”, “u”, “p”.
ip_address_or_range (str) – An IP address or a range of IP addresses from which to accept requests.
protocols (str or HttpProtocol) – The protocol permitted for a request made with the account SAS. Possible values include: “https,http”, “https”.
shared_access_start_time (datetime) – The time at which the SAS becomes valid.
shared_access_expiry_time (datetime) – Required. The time at which the shared access signature becomes invalid.
key_to_sign (str) – The key to sign the account SAS token with.
-
class
azure.mgmt.storage.v2019_04_01.models.
ActiveDirectoryProperties
(*, domain_name: str, net_bios_domain_name: str, forest_name: str, domain_guid: str, domain_sid: str, azure_storage_sid: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Settings properties for Active Directory (AD).
All required parameters must be populated in order to send to Azure.
- Parameters
domain_name (str) – Required. Specifies the primary domain that the AD DNS server is authoritative for.
net_bios_domain_name (str) – Required. Specifies the NetBIOS domain name.
forest_name (str) – Required. Specifies the Active Directory forest to get.
domain_guid (str) – Required. Specifies the domain GUID.
domain_sid (str) – Required. Specifies the security identifier (SID).
azure_storage_sid (str) – Required. Specifies the security identifier (SID) for Azure Storage.
-
class
azure.mgmt.storage.v2019_04_01.models.
AzureEntityResource
(**kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.Resource
The resource model definition for a Azure Resource Manager resource with an etag.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
-
class
azure.mgmt.storage.v2019_04_01.models.
AzureFilesIdentityBasedAuthentication
(*, directory_service_options: Union[str, DirectoryServiceOptions], active_directory_properties: Optional[ActiveDirectoryProperties] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Settings for Azure Files identity based authentication.
All required parameters must be populated in order to send to Azure.
- Parameters
directory_service_options (str or DirectoryServiceOptions) – Required. Indicates the directory service used. Possible values include: “None”, “AADDS”, “AD”.
active_directory_properties (ActiveDirectoryProperties) – Required if choose AD.
-
class
azure.mgmt.storage.v2019_04_01.models.
BlobContainer
(*, public_access: Union[str, PublicAccess, None] = None, metadata: Optional[Dict[str, str]] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.AzureEntityResource
Properties of the blob container, including Id, resource name, resource type, Etag.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
last_modified_time (datetime) – Returns the date and time the container was last modified.
lease_status (str or LeaseStatus) – The lease status of the container. Possible values include: “Locked”, “Unlocked”.
lease_state (str or LeaseState) – Lease state of the container. Possible values include: “Available”, “Leased”, “Expired”, “Breaking”, “Broken”.
lease_duration (str or LeaseDuration) – Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: “Infinite”, “Fixed”.
immutability_policy (ImmutabilityPolicyProperties) – The ImmutabilityPolicy property of the container.
legal_hold (LegalHoldProperties) – The LegalHold property of the container.
has_legal_hold (bool) – The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
has_immutability_policy (bool) – The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.
- Parameters
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: “Container”, “Blob”, “None”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
-
class
azure.mgmt.storage.v2019_04_01.models.
BlobServiceItems
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
BlobServiceItems.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
value (list[BlobServiceProperties]) – List of blob services returned.
-
class
azure.mgmt.storage.v2019_04_01.models.
BlobServiceProperties
(*, cors: Optional[CorsRules] = None, default_service_version: Optional[str] = None, delete_retention_policy: Optional[DeleteRetentionPolicy] = None, automatic_snapshot_policy_enabled: Optional[bool] = None, change_feed: Optional[ChangeFeed] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.Resource
The properties of a storage account’s Blob service.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Parameters
cors (CorsRules) – Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service.
default_service_version (str) – DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
delete_retention_policy (DeleteRetentionPolicy) – The blob service properties for soft delete.
automatic_snapshot_policy_enabled (bool) – Automatic Snapshot is enabled if set to true.
change_feed (ChangeFeed) – The blob service properties for change feed events.
-
class
azure.mgmt.storage.v2019_04_01.models.
ChangeFeed
(*, enabled: Optional[bool] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The blob service properties for change feed events.
- Parameters
enabled (bool) – Indicates whether change feed event logging is enabled for the Blob service.
-
class
azure.mgmt.storage.v2019_04_01.models.
CheckNameAvailabilityResult
(**kwargs)[source]¶ Bases:
msrest.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. Possible values include: “AccountNameInvalid”, “AlreadyExists”.
message (str) – Gets an error message explaining the Reason value in more detail.
-
class
azure.mgmt.storage.v2019_04_01.models.
CloudErrorBody
(*, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, details: Optional[List[CloudErrorBody]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
An error response from the Storage service.
- Parameters
code (str) – An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
message (str) – A message describing the error, intended to be suitable for display in a user interface.
target (str) – The target of the particular error. For example, the name of the property in error.
details (list[CloudErrorBody]) – A list of additional details about the error.
-
class
azure.mgmt.storage.v2019_04_01.models.
CorsRule
(*, allowed_origins: List[str], allowed_methods: List[Union[str, CorsRuleAllowedMethodsItem]], max_age_in_seconds: int, exposed_headers: List[str], allowed_headers: List[str], **kwargs)[source]¶ Bases:
msrest.serialization.Model
Specifies a CORS rule for the Blob service.
All required parameters must be populated in order to send to Azure.
- Parameters
allowed_origins (list[str]) – Required. Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or “*” to allow all domains.
allowed_methods (list[str or CorsRuleAllowedMethodsItem]) – Required. Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
max_age_in_seconds (int) – Required. Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
exposed_headers (list[str]) – Required. Required if CorsRule element is present. A list of response headers to expose to CORS clients.
allowed_headers (list[str]) – Required. Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
-
class
azure.mgmt.storage.v2019_04_01.models.
CorsRules
(*, cors_rules: Optional[List[CorsRule]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Sets the CORS rules. You can include up to five CorsRule elements in the request.
-
class
azure.mgmt.storage.v2019_04_01.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.
-
class
azure.mgmt.storage.v2019_04_01.models.
DateAfterCreation
(*, days_after_creation_greater_than: float, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Object to define the number of days after creation.
All required parameters must be populated in order to send to Azure.
- Parameters
days_after_creation_greater_than (float) – Required. Value indicating the age in days after creation.
-
class
azure.mgmt.storage.v2019_04_01.models.
DateAfterModification
(*, days_after_modification_greater_than: float, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Object to define the number of days after last modification.
All required parameters must be populated in order to send to Azure.
- Parameters
days_after_modification_greater_than (float) – Required. Value indicating the age in days after last modification.
-
class
azure.mgmt.storage.v2019_04_01.models.
DeleteRetentionPolicy
(*, enabled: Optional[bool] = None, days: Optional[int] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The blob service properties for soft delete.
-
class
azure.mgmt.storage.v2019_04_01.models.
Dimension
(*, name: Optional[str] = None, display_name: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Dimension of blobs, possibly be blob type or access tier.
-
class
azure.mgmt.storage.v2019_04_01.models.
Encryption
(*, key_source: Union[str, KeySource] = 'Microsoft.Storage', services: Optional[EncryptionServices] = None, key_vault_properties: Optional[KeyVaultProperties] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The encryption settings on the storage account.
All required parameters must be populated in order to send to Azure.
- Parameters
services (EncryptionServices) – List of services which support encryption.
key_source (str or KeySource) – Required. The encryption keySource (provider). Possible values (case- insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible values include: “Microsoft.Storage”, “Microsoft.Keyvault”. Default value: “Microsoft.Storage”.
key_vault_properties (KeyVaultProperties) – Properties provided by key vault.
-
class
azure.mgmt.storage.v2019_04_01.models.
EncryptionService
(*, enabled: Optional[bool] = None, **kwargs)[source]¶ Bases:
msrest.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.
- Parameters
enabled (bool) – A boolean indicating whether or not the service encrypts the data as it is stored.
- Variables
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.
-
class
azure.mgmt.storage.v2019_04_01.models.
EncryptionServices
(*, blob: Optional[EncryptionService] = None, file: Optional[EncryptionService] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
A list of services that support encryption.
Variables are only populated by the server, and will be ignored when sending a request.
- Parameters
blob (EncryptionService) – The encryption function of the blob storage service.
file (EncryptionService) – The encryption function of the file storage service.
- Variables
table (EncryptionService) – The encryption function of the table storage service.
queue (EncryptionService) – The encryption function of the queue storage service.
-
class
azure.mgmt.storage.v2019_04_01.models.
Endpoints
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.storage.v2019_04_01.models.
FileServiceItems
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
FileServiceItems.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
value (list[FileServiceProperties]) – List of file services returned.
-
class
azure.mgmt.storage.v2019_04_01.models.
FileServiceProperties
(*, cors: Optional[CorsRules] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.Resource
The properties of File services in storage account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Parameters
cors (CorsRules) – Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service.
Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.AzureEntityResource
Properties of the file share, including Id, resource name, resource type, Etag.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
last_modified_time (datetime) – Returns the date and time the share was last modified.
- Parameters
Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.AzureEntityResource
The file share properties be listed out.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
last_modified_time (datetime) – Returns the date and time the share was last modified.
- Parameters
Bases:
msrest.serialization.Model
Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
value (list[FileShareItem]) – List of file shares returned.
next_link (str) – Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size.
-
class
azure.mgmt.storage.v2019_04_01.models.
GeoReplicationStats
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Statistics related to replication for storage account’s Blob, Table, Queue and File services. It is only available when geo-redundant replication is enabled for the storage account.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
status (str or GeoReplicationStatus) – The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable. Possible values include: “Live”, “Bootstrap”, “Unavailable”.
last_sync_time (datetime) – All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap.
can_failover (bool) – A boolean flag which indicates whether or not account failover is supported for the account.
-
class
azure.mgmt.storage.v2019_04_01.models.
IPRule
(*, ip_address_or_range: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
IP rule with specific IP or IP range in CIDR format.
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.
- Parameters
ip_address_or_range (str) – Required. Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Variables
action (str) – The action of IP ACL rule. Default value: “Allow”.
-
action
= 'Allow'¶
-
class
azure.mgmt.storage.v2019_04_01.models.
Identity
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Identity for the resource.
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
-
type
= 'SystemAssigned'¶
-
class
azure.mgmt.storage.v2019_04_01.models.
ImmutabilityPolicy
(*, immutability_period_since_creation_in_days: int, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.AzureEntityResource
The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
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
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
state (str or ImmutabilityPolicyState) – The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: “Locked”, “Unlocked”.
- Parameters
immutability_period_since_creation_in_days (int) – Required. The immutability period for the blobs in the container since the policy creation, in days.
-
class
azure.mgmt.storage.v2019_04_01.models.
ImmutabilityPolicyProperties
(*, immutability_period_since_creation_in_days: Optional[int] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The properties of an ImmutabilityPolicy of a blob container.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
etag (str) – ImmutabilityPolicy Etag.
update_history (list[UpdateHistoryProperty]) – The ImmutabilityPolicy update history of the blob container.
state (str or ImmutabilityPolicyState) – The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Possible values include: “Locked”, “Unlocked”.
- Parameters
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
-
class
azure.mgmt.storage.v2019_04_01.models.
KeyVaultProperties
(*, key_name: Optional[str] = None, key_version: Optional[str] = None, key_vault_uri: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Properties of key vault.
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseContainerRequest
(*, action: Union[str, LeaseContainerRequestAction], lease_id: Optional[str] = None, break_period: Optional[int] = None, lease_duration: Optional[int] = None, proposed_lease_id: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Lease Container request schema.
All required parameters must be populated in order to send to Azure.
- Parameters
action (str or LeaseContainerRequestAction) – Required. Specifies the lease action. Can be one of the available actions. Possible values include: “Acquire”, “Renew”, “Change”, “Release”, “Break”.
lease_id (str) – Identifies the lease. Can be specified in any valid GUID string format.
break_period (int) – Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
lease_duration (int) – Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
proposed_lease_id (str) – Optional for acquire, required for change. Proposed lease ID, in a GUID string format.
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseContainerResponse
(*, lease_id: Optional[str] = None, lease_time_seconds: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Lease Container response schema.
-
class
azure.mgmt.storage.v2019_04_01.models.
LegalHold
(*, tags: List[str], **kwargs)[source]¶ Bases:
msrest.serialization.Model
The LegalHold property of a blob container.
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
has_legal_hold (bool) – The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
- Parameters
tags (list[str]) – Required. A set of tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
-
class
azure.mgmt.storage.v2019_04_01.models.
LegalHoldProperties
(*, tags: Optional[List[TagProperty]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The LegalHold property of a blob container.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
has_legal_hold (bool) – The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
- Parameters
tags (list[TagProperty]) – A set of tags. The list of LegalHold tags of a blob container.
-
class
azure.mgmt.storage.v2019_04_01.models.
ListAccountSasResponse
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The List SAS credentials operation response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
account_sas_token (str) – List SAS credentials of storage account.
-
class
azure.mgmt.storage.v2019_04_01.models.
ListContainerItem
(*, public_access: Union[str, PublicAccess, None] = None, metadata: Optional[Dict[str, str]] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.AzureEntityResource
The blob container properties be listed out.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
etag (str) – Resource Etag.
last_modified_time (datetime) – Returns the date and time the container was last modified.
lease_status (str or LeaseStatus) – The lease status of the container. Possible values include: “Locked”, “Unlocked”.
lease_state (str or LeaseState) – Lease state of the container. Possible values include: “Available”, “Leased”, “Expired”, “Breaking”, “Broken”.
lease_duration (str or LeaseDuration) – Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Possible values include: “Infinite”, “Fixed”.
immutability_policy (ImmutabilityPolicyProperties) – The ImmutabilityPolicy property of the container.
legal_hold (LegalHoldProperties) – The LegalHold property of the container.
has_legal_hold (bool) – The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
has_immutability_policy (bool) – The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.
- Parameters
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Possible values include: “Container”, “Blob”, “None”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
-
class
azure.mgmt.storage.v2019_04_01.models.
ListContainerItems
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
value (list[ListContainerItem]) – List of blobs containers returned.
next_link (str) – Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.
-
class
azure.mgmt.storage.v2019_04_01.models.
ListServiceSasResponse
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The List service SAS credentials operation response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
service_sas_token (str) – List service SAS credentials of specific resource.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicy
(*, policy: Optional[ManagementPolicySchema] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.Resource
The Get Storage Account ManagementPolicies operation response.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
last_modified_time (datetime) – Returns the date and time the ManagementPolicies was last modified.
- Parameters
policy (ManagementPolicySchema) – The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyAction
(*, base_blob: Optional[ManagementPolicyBaseBlob] = None, snapshot: Optional[ManagementPolicySnapShot] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Actions are applied to the filtered blobs when the execution condition is met.
- Parameters
base_blob (ManagementPolicyBaseBlob) – The management policy action for base blob.
snapshot (ManagementPolicySnapShot) – The management policy action for snapshot.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyBaseBlob
(*, tier_to_cool: Optional[DateAfterModification] = None, tier_to_archive: Optional[DateAfterModification] = None, delete: Optional[DateAfterModification] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Management policy action for base blob.
- Parameters
tier_to_cool (DateAfterModification) – The function to tier blobs to cool storage. Support blobs currently at Hot tier.
tier_to_archive (DateAfterModification) – The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier.
delete (DateAfterModification) – The function to delete the blob.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyDefinition
(*, actions: azure.mgmt.storage.v2019_04_01.models._models_py3.ManagementPolicyAction, filters: Optional[ManagementPolicyFilter] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.
All required parameters must be populated in order to send to Azure.
- Parameters
actions (ManagementPolicyAction) – Required. An object that defines the action set.
filters (ManagementPolicyFilter) – An object that defines the filter set.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyFilter
(*, blob_types: List[str], prefix_match: Optional[List[str]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters.
All required parameters must be populated in order to send to Azure.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyRule
(*, name: str, type: Union[str, RuleType], definition: azure.mgmt.storage.v2019_04_01.models._models_py3.ManagementPolicyDefinition, enabled: Optional[bool] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.
All required parameters must be populated in order to send to Azure.
- Parameters
enabled (bool) – Rule is enabled if set to true.
name (str) – Required. A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
type (str or RuleType) – Required. The valid value is Lifecycle. Possible values include: “Lifecycle”.
definition (ManagementPolicyDefinition) – Required. An object that defines the Lifecycle rule.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicySchema
(*, rules: List[ManagementPolicyRule], **kwargs)[source]¶ Bases:
msrest.serialization.Model
The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
All required parameters must be populated in order to send to Azure.
- Parameters
rules (list[ManagementPolicyRule]) – Required. The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicySnapShot
(*, delete: Optional[DateAfterCreation] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Management policy action for snapshot.
- Parameters
delete (DateAfterCreation) – The function to delete the blob snapshot.
-
class
azure.mgmt.storage.v2019_04_01.models.
MetricSpecification
(*, name: Optional[str] = None, display_name: Optional[str] = None, display_description: Optional[str] = None, unit: Optional[str] = None, dimensions: Optional[List[Dimension]] = None, aggregation_type: Optional[str] = None, fill_gap_with_zero: Optional[bool] = None, category: Optional[str] = None, resource_id_dimension_name_override: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Metric specification of operation.
- Parameters
name (str) – Name of metric specification.
display_name (str) – Display name of metric specification.
display_description (str) – Display description of metric specification.
unit (str) – Unit could be Bytes or Count.
dimensions (list[Dimension]) – Dimensions of blobs, including blob type and access tier.
aggregation_type (str) – Aggregation type could be Average.
fill_gap_with_zero (bool) – The property to decide fill gap with zero or not.
category (str) – The category this metric specification belong to, could be Capacity.
resource_id_dimension_name_override (str) – Account Resource Id.
-
class
azure.mgmt.storage.v2019_04_01.models.
NetworkRuleSet
(*, default_action: Union[str, DefaultAction] = 'Allow', bypass: Union[str, Bypass, None] = 'AzureServices', virtual_network_rules: Optional[List[VirtualNetworkRule]] = None, ip_rules: Optional[List[IPRule]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Network rule set.
All required parameters must be populated in order to send to Azure.
- Parameters
bypass (str or Bypass) – Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, “Logging, Metrics”), or None to bypass none of those traffics. Possible values include: “None”, “Logging”, “Metrics”, “AzureServices”. Default value: “AzureServices”.
virtual_network_rules (list[VirtualNetworkRule]) – Sets the virtual network rules.
default_action (str or DefaultAction) – Required. Specifies the default action of allow or deny when no other rules match. Possible values include: “Allow”, “Deny”. Default value: “Allow”.
-
class
azure.mgmt.storage.v2019_04_01.models.
Operation
(*, name: Optional[str] = None, display: Optional[OperationDisplay] = None, origin: Optional[str] = None, service_specification: Optional[ServiceSpecification] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Storage REST API operation definition.
- Parameters
name (str) – Operation name: {provider}/{resource}/{operation}.
display (OperationDisplay) – Display metadata associated with the operation.
origin (str) – The origin of operations.
service_specification (ServiceSpecification) – One property of operation, include metric specifications.
-
class
azure.mgmt.storage.v2019_04_01.models.
OperationDisplay
(*, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Display metadata associated with the operation.
-
class
azure.mgmt.storage.v2019_04_01.models.
OperationListResult
(*, value: Optional[List[Operation]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.
-
class
azure.mgmt.storage.v2019_04_01.models.
Resource
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
Resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
-
class
azure.mgmt.storage.v2019_04_01.models.
Restriction
(*, reason_code: Union[str, ReasonCode, None] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The restriction because of which SKU cannot be used.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
- Parameters
reason_code (str or ReasonCode) – The reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: “QuotaId”, “NotAvailableForSubscription”.
-
class
azure.mgmt.storage.v2019_04_01.models.
SKUCapability
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.storage.v2019_04_01.models.
ServiceSasParameters
(*, canonicalized_resource: str, resource: Union[str, SignedResource, None] = None, permissions: Union[str, Permissions, None] = None, ip_address_or_range: Optional[str] = None, protocols: Union[str, HttpProtocol, None] = None, shared_access_start_time: Optional[datetime.datetime] = None, shared_access_expiry_time: Optional[datetime.datetime] = None, identifier: Optional[str] = None, partition_key_start: Optional[str] = None, partition_key_end: Optional[str] = None, row_key_start: Optional[str] = None, row_key_end: Optional[str] = None, key_to_sign: Optional[str] = None, cache_control: Optional[str] = None, content_disposition: Optional[str] = None, content_encoding: Optional[str] = None, content_language: Optional[str] = None, content_type: Optional[str] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The parameters to list service SAS credentials of a specific resource.
All required parameters must be populated in order to send to Azure.
- Parameters
canonicalized_resource (str) – Required. The canonical path to the signed resource.
resource (str or SignedResource) – The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Possible values include: “b”, “c”, “f”, “s”.
permissions (str or Permissions) – The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Possible values include: “r”, “d”, “w”, “l”, “a”, “c”, “u”, “p”.
ip_address_or_range (str) – An IP address or a range of IP addresses from which to accept requests.
protocols (str or HttpProtocol) – The protocol permitted for a request made with the account SAS. Possible values include: “https,http”, “https”.
shared_access_start_time (datetime) – The time at which the SAS becomes valid.
shared_access_expiry_time (datetime) – The time at which the shared access signature becomes invalid.
identifier (str) – A unique value up to 64 characters in length that correlates to an access policy specified for the container, queue, or table.
partition_key_start (str) – The start of partition key.
partition_key_end (str) – The end of partition key.
row_key_start (str) – The start of row key.
row_key_end (str) – The end of row key.
key_to_sign (str) – The key to sign the account SAS token with.
cache_control (str) – The response header override for cache control.
content_disposition (str) – The response header override for content disposition.
content_encoding (str) – The response header override for content encoding.
content_language (str) – The response header override for content language.
content_type (str) – The response header override for content type.
-
class
azure.mgmt.storage.v2019_04_01.models.
ServiceSpecification
(*, metric_specifications: Optional[List[MetricSpecification]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
One property of operation, include metric specifications.
- Parameters
metric_specifications (list[MetricSpecification]) – Metric specifications of operation.
-
class
azure.mgmt.storage.v2019_04_01.models.
Sku
(*, name: Union[str, SkuName], restrictions: Optional[List[Restriction]] = None, **kwargs)[source]¶ Bases:
msrest.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.
- Parameters
name (str or SkuName) – Required. 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”, “Premium_ZRS”, “Standard_GZRS”, “Standard_RAGZRS”.
restrictions (list[Restriction]) – The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
- Variables
tier (str or SkuTier) – Gets the SKU tier. This is based on the SKU name. Possible values include: “Standard”, “Premium”.
resource_type (str) – The type of the resource, usually it is ‘storageAccounts’.
kind (str or Kind) – Indicates the type of storage account. Possible values include: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, “BlockBlobStorage”.
locations (list[str]) – The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).
capabilities (list[SKUCapability]) – The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccount
(*, location: str, tags: Optional[Dict[str, str]] = None, identity: Optional[Identity] = None, azure_files_identity_based_authentication: Optional[AzureFilesIdentityBasedAuthentication] = None, enable_https_traffic_only: Optional[bool] = None, is_hns_enabled: Optional[bool] = None, large_file_shares_state: Union[str, LargeFileSharesState, None] = None, allow_blob_public_access: Optional[bool] = None, minimum_tls_version: Union[str, MinimumTlsVersion, None] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.TrackedResource
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
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
sku (Sku) – Gets the SKU.
kind (str or Kind) – Gets the Kind. Possible values include: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, “BlockBlobStorage”.
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”.
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.
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. Possible values include: “Hot”, “Cool”.
network_rule_set (NetworkRuleSet) – Network rule set.
geo_replication_stats (GeoReplicationStats) – Geo Replication Stats.
failover_in_progress (bool) – If the failover is in progress, the value will be true, otherwise, it will be null.
- Parameters
location (str) – Required. The geo-location where the resource lives.
identity (Identity) – The identity of the resource.
azure_files_identity_based_authentication (AzureFilesIdentityBasedAuthentication) – Provides the identity based authentication settings for Azure Files.
enable_https_traffic_only (bool) – Allows https traffic only to storage service if sets to true.
is_hns_enabled (bool) – Account HierarchicalNamespace enabled if sets to true.
large_file_shares_state (str or LargeFileSharesState) – Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: “Disabled”, “Enabled”.
allow_blob_public_access (bool) – Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
minimum_tls_version (str or MinimumTlsVersion) – Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: “TLS1_0”, “TLS1_1”, “TLS1_2”.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccountCheckNameAvailabilityParameters
(*, name: str, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The parameters used to check the availability of the storage account name.
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.
- Parameters
name (str) – Required. The storage account name.
- Variables
type (str) – Required. The type of resource, Microsoft.Storage/storageAccounts. Default value: “Microsoft.Storage/storageAccounts”.
-
type
= 'Microsoft.Storage/storageAccounts'¶
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccountCreateParameters
(*, sku: azure.mgmt.storage.v2019_04_01.models._models_py3.Sku, kind: Union[str, Kind], location: str, tags: Optional[Dict[str, str]] = None, identity: Optional[Identity] = None, custom_domain: Optional[CustomDomain] = None, encryption: Optional[Encryption] = None, network_rule_set: Optional[NetworkRuleSet] = None, access_tier: Union[str, AccessTier, None] = None, azure_files_identity_based_authentication: Optional[AzureFilesIdentityBasedAuthentication] = None, enable_https_traffic_only: Optional[bool] = None, is_hns_enabled: Optional[bool] = None, large_file_shares_state: Union[str, LargeFileSharesState, None] = None, allow_blob_public_access: Optional[bool] = None, minimum_tls_version: Union[str, MinimumTlsVersion, None] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The parameters used when creating a storage account.
All required parameters must be populated in order to send to Azure.
- Parameters
sku (Sku) – Required. Required. Gets or sets the SKU name.
kind (str or Kind) – Required. Required. Indicates the type of storage account. Possible values include: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, “BlockBlobStorage”.
location (str) – Required. 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[str, str]) – A set of tags. 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.
identity (Identity) – The identity of the resource.
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) – Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled.
network_rule_set (NetworkRuleSet) – Network rule set.
access_tier (str or AccessTier) – Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: “Hot”, “Cool”.
azure_files_identity_based_authentication (AzureFilesIdentityBasedAuthentication) – Provides the identity based authentication settings for Azure Files.
enable_https_traffic_only (bool) – Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01.
is_hns_enabled (bool) – Account HierarchicalNamespace enabled if sets to true.
large_file_shares_state (str or LargeFileSharesState) – Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: “Disabled”, “Enabled”.
allow_blob_public_access (bool) – Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
minimum_tls_version (str or MinimumTlsVersion) – Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: “TLS1_0”, “TLS1_1”, “TLS1_2”.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccountKey
(**kwargs)[source]¶ Bases:
msrest.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. Possible values include: “Read”, “Full”.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccountListKeysResult
(**kwargs)[source]¶ Bases:
msrest.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.v2019_04_01.models.
StorageAccountListResult
(**kwargs)[source]¶ Bases:
msrest.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.
next_link (str) – Request URL that can be used to query next page of storage accounts. Returned when total number of requested storage accounts exceed maximum page size.
-
class
azure.mgmt.storage.v2019_04_01.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. The name of storage keys that want to be regenerated, possible values are key1, key2, kerb1, kerb2.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageAccountUpdateParameters
(*, sku: Optional[Sku] = None, tags: Optional[Dict[str, str]] = None, identity: Optional[Identity] = None, kind: Union[str, Kind, None] = None, custom_domain: Optional[CustomDomain] = None, encryption: Optional[Encryption] = None, access_tier: Union[str, AccessTier, None] = None, azure_files_identity_based_authentication: Optional[AzureFilesIdentityBasedAuthentication] = None, enable_https_traffic_only: Optional[bool] = None, network_rule_set: Optional[NetworkRuleSet] = None, large_file_shares_state: Union[str, LargeFileSharesState, None] = None, allow_blob_public_access: Optional[bool] = None, minimum_tls_version: Union[str, MinimumTlsVersion, None] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The parameters that can be provided when updating the storage account properties.
- Parameters
sku (Sku) – Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value.
tags (dict[str, str]) – A set of 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 in length than 128 characters and a value no greater in length than 256 characters.
identity (Identity) – The identity of the resource.
kind (str or Kind) – Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Possible values include: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, “BlockBlobStorage”.
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. Possible values include: “Hot”, “Cool”.
azure_files_identity_based_authentication (AzureFilesIdentityBasedAuthentication) – Provides the identity based authentication settings for Azure Files.
enable_https_traffic_only (bool) – Allows https traffic only to storage service if sets to true.
network_rule_set (NetworkRuleSet) – Network rule set.
large_file_shares_state (str or LargeFileSharesState) – Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: “Disabled”, “Enabled”.
allow_blob_public_access (bool) – Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
minimum_tls_version (str or MinimumTlsVersion) – Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: “TLS1_0”, “TLS1_1”, “TLS1_2”.
-
class
azure.mgmt.storage.v2019_04_01.models.
StorageSkuListResult
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
The response from the List Storage SKUs operation.
Variables are only populated by the server, and will be ignored when sending a request.
-
class
azure.mgmt.storage.v2019_04_01.models.
TagProperty
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
A tag of the LegalHold of a blob container.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
tag (str) – The tag value.
timestamp (datetime) – Returns the date and time the tag was added.
object_identifier (str) – Returns the Object ID of the user who added the tag.
tenant_id (str) – Returns the Tenant ID that issued the token for the user who added the tag.
upn (str) – Returns the User Principal Name of the user who added the tag.
-
class
azure.mgmt.storage.v2019_04_01.models.
TrackedResource
(*, location: str, tags: Optional[Dict[str, str]] = None, **kwargs)[source]¶ Bases:
azure.mgmt.storage.v2019_04_01.models._models_py3.Resource
The resource model definition for a ARM tracked top level resource.
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
id (str) – Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
name (str) – The name of the resource.
type (str) – The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Parameters
-
class
azure.mgmt.storage.v2019_04_01.models.
UpdateHistoryProperty
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
An update history of the ImmutabilityPolicy of a blob container.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables
update (str or ImmutabilityPolicyUpdateType) – The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Possible values include: “put”, “lock”, “extend”.
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
timestamp (datetime) – Returns the date and time the ImmutabilityPolicy was updated.
object_identifier (str) – Returns the Object ID of the user who updated the ImmutabilityPolicy.
tenant_id (str) – Returns the Tenant ID that issued the token for the user who updated the ImmutabilityPolicy.
upn (str) – Returns the User Principal Name of the user who updated the ImmutabilityPolicy.
-
class
azure.mgmt.storage.v2019_04_01.models.
Usage
(**kwargs)[source]¶ Bases:
msrest.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. 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.v2019_04_01.models.
UsageListResult
(*, value: Optional[List[Usage]] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
The response from the List Usages operation.
-
class
azure.mgmt.storage.v2019_04_01.models.
UsageName
(**kwargs)[source]¶ Bases:
msrest.serialization.Model
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.
-
class
azure.mgmt.storage.v2019_04_01.models.
VirtualNetworkRule
(*, virtual_network_resource_id: str, state: Union[str, State, None] = None, **kwargs)[source]¶ Bases:
msrest.serialization.Model
Virtual Network rule.
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.
- Parameters
virtual_network_resource_id (str) – Required. Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
state (str or State) – Gets the state of virtual network rule. Possible values include: “provisioning”, “deprovisioning”, “succeeded”, “failed”, “networkSourceDeleted”.
- Variables
action (str) – The action of virtual network rule. Default value: “Allow”.
-
action
= 'Allow'¶
-
class
azure.mgmt.storage.v2019_04_01.models.
AccessTier
[source]¶ -
Required for storage accounts where kind = BlobStorage. The access tier used for billing.
-
COOL
= 'Cool'¶
-
HOT
= 'Hot'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
AccountStatus
[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.v2019_04_01.models.
Bypass
[source]¶ -
Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, “Logging, Metrics”), or None to bypass none of those traffics.
-
AZURE_SERVICES
= 'AzureServices'¶
-
LOGGING
= 'Logging'¶
-
METRICS
= 'Metrics'¶
-
NONE
= 'None'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
CorsRuleAllowedMethodsItem
[source]¶ -
An enumeration.
-
DELETE
= 'DELETE'¶
-
GET
= 'GET'¶
-
HEAD
= 'HEAD'¶
-
MERGE
= 'MERGE'¶
-
OPTIONS
= 'OPTIONS'¶
-
POST
= 'POST'¶
-
PUT
= 'PUT'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
DefaultAction
[source]¶ -
Specifies the default action of allow or deny when no other rules match.
-
ALLOW
= 'Allow'¶
-
DENY
= 'Deny'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
DirectoryServiceOptions
[source]¶ -
Indicates the directory service used.
-
AADDS
= 'AADDS'¶
-
AD
= 'AD'¶
-
NONE
= 'None'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
GeoReplicationStatus
[source]¶ -
The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable.
-
BOOTSTRAP
= 'Bootstrap'¶
-
LIVE
= 'Live'¶
-
UNAVAILABLE
= 'Unavailable'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
HttpProtocol
[source]¶ -
The protocol permitted for a request made with the account SAS.
-
HTTPS
= 'https'¶
-
HTTPS_HTTP
= 'https,http'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
ImmutabilityPolicyState
[source]¶ -
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
-
LOCKED
= 'Locked'¶
-
UNLOCKED
= 'Unlocked'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
ImmutabilityPolicyUpdateType
[source]¶ -
The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.
-
EXTEND
= 'extend'¶
-
LOCK
= 'lock'¶
-
PUT
= 'put'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
KeyPermission
[source]¶ -
Permissions for the key – read-only or full permissions.
-
FULL
= 'Full'¶
-
READ
= 'Read'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
KeySource
[source]¶ -
The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault
-
MICROSOFT_KEYVAULT
= 'Microsoft.Keyvault'¶
-
MICROSOFT_STORAGE
= 'Microsoft.Storage'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
Kind
[source]¶ -
Indicates the type of storage account.
-
BLOB_STORAGE
= 'BlobStorage'¶
-
BLOCK_BLOB_STORAGE
= 'BlockBlobStorage'¶
-
FILE_STORAGE
= 'FileStorage'¶
-
STORAGE
= 'Storage'¶
-
STORAGE_V2
= 'StorageV2'¶
-
-
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseContainerRequestAction
[source]¶ -
Specifies the lease action. Can be one of the available actions.
-
ACQUIRE
= 'Acquire'¶
-
BREAK_ENUM
= 'Break'¶
-
CHANGE
= 'Change'¶
-
RELEASE
= 'Release'¶
-
RENEW
= 'Renew'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseDuration
[source]¶ -
Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.
-
FIXED
= 'Fixed'¶
-
INFINITE
= 'Infinite'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseState
[source]¶ -
Lease state of the container.
-
AVAILABLE
= 'Available'¶
-
BREAKING
= 'Breaking'¶
-
BROKEN
= 'Broken'¶
-
EXPIRED
= 'Expired'¶
-
LEASED
= 'Leased'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
LeaseStatus
[source]¶ -
The lease status of the container.
-
LOCKED
= 'Locked'¶
-
UNLOCKED
= 'Unlocked'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
ManagementPolicyName
[source]¶ -
An enumeration.
-
DEFAULT
= 'default'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
MinimumTlsVersion
[source]¶ -
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.
-
TLS1_0
= 'TLS1_0'¶
-
TLS1_1
= 'TLS1_1'¶
-
TLS1_2
= 'TLS1_2'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
Permissions
[source]¶ -
The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
-
A
= 'a'¶
-
C
= 'c'¶
-
D
= 'd'¶
-
L
= 'l'¶
-
P
= 'p'¶
-
R
= 'r'¶
-
U
= 'u'¶
-
W
= 'w'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
ProvisioningState
[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.v2019_04_01.models.
PublicAccess
[source]¶ -
Specifies whether data in the container may be accessed publicly and the level of access.
-
BLOB
= 'Blob'¶
-
CONTAINER
= 'Container'¶
-
NONE
= 'None'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
Reason
[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.v2019_04_01.models.
ReasonCode
[source]¶ -
The reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC.
-
NOT_AVAILABLE_FOR_SUBSCRIPTION
= 'NotAvailableForSubscription'¶
-
QUOTA_ID
= 'QuotaId'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
RuleType
[source]¶ -
The valid value is Lifecycle
-
LIFECYCLE
= 'Lifecycle'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
Services
[source]¶ -
The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
-
B
= 'b'¶
-
F
= 'f'¶
-
Q
= 'q'¶
-
T
= 't'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
SignedResource
[source]¶ -
The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).
-
B
= 'b'¶
-
C
= 'c'¶
-
F
= 'f'¶
-
S
= 's'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
SignedResourceTypes
[source]¶ -
The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
-
C
= 'c'¶
-
O
= 'o'¶
-
S
= 's'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
SkuName
[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'¶
-
PREMIUM_ZRS
= 'Premium_ZRS'¶
-
STANDARD_GRS
= 'Standard_GRS'¶
-
STANDARD_GZRS
= 'Standard_GZRS'¶
-
STANDARD_LRS
= 'Standard_LRS'¶
-
STANDARD_RAGRS
= 'Standard_RAGRS'¶
-
STANDARD_RAGZRS
= 'Standard_RAGZRS'¶
-
STANDARD_ZRS
= 'Standard_ZRS'¶
-
-
class
azure.mgmt.storage.v2019_04_01.models.
SkuTier
[source]¶ -
Gets the SKU tier. This is based on the SKU name.
-
PREMIUM
= 'Premium'¶
-
STANDARD
= 'Standard'¶
-