azure.mgmt.storage.v2019_06_01.models module
- class azure.mgmt.storage.v2019_06_01.models.AccessTier(*values)[source]
-
Required for storage accounts where kind = BlobStorage. The access tier used for billing.
- COOL = 'Cool'
- HOT = 'Hot'
- class azure.mgmt.storage.v2019_06_01.models.AccountSasParameters(*, services: str | _models.Services, resource_types: str | _models.SignedResourceTypes, permissions: str | _models.Permissions, shared_access_expiry_time: datetime, ip_address_or_range: str | None = None, protocols: str | _models.HttpProtocol | None = None, shared_access_start_time: datetime | None = None, key_to_sign: str | None = None, **kwargs: Any)[source]
Bases:
ModelThe parameters to list SAS credentials of a storage account.
All required parameters must be populated in order to send to server.
- Variables:
services (str or Services) – The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Required. Known values are: “b”, “q”, “t”, and “f”.
resource_types (str or SignedResourceTypes) – 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. Required. Known values are: “s”, “c”, and “o”.
permissions (str or Permissions) – 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). Required. Known values are: “r”, “d”, “w”, “l”, “a”, “c”, “u”, and “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. Known values are: “https,http” and “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. Required.
key_to_sign (str) – The key to sign the account SAS token with.
- Keyword Arguments:
services (str or Services) – The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Required. Known values are: “b”, “q”, “t”, and “f”.
resource_types (str or SignedResourceTypes) – 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. Required. Known values are: “s”, “c”, and “o”.
permissions (str or Permissions) – 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). Required. Known values are: “r”, “d”, “w”, “l”, “a”, “c”, “u”, and “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. Known values are: “https,http” and “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. Required.
key_to_sign (str) – The key to sign the account SAS token with.
- class azure.mgmt.storage.v2019_06_01.models.AccountStatus(*values)[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_06_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: Any)[source]
Bases:
ModelSettings properties for Active Directory (AD).
All required parameters must be populated in order to send to server.
- Variables:
domain_name (str) – Specifies the primary domain that the AD DNS server is authoritative for. Required.
net_bios_domain_name (str) – Specifies the NetBIOS domain name. Required.
forest_name (str) – Specifies the Active Directory forest to get. Required.
domain_guid (str) – Specifies the domain GUID. Required.
domain_sid (str) – Specifies the security identifier (SID). Required.
azure_storage_sid (str) – Specifies the security identifier (SID) for Azure Storage. Required.
- Keyword Arguments:
domain_name (str) – Specifies the primary domain that the AD DNS server is authoritative for. Required.
net_bios_domain_name (str) – Specifies the NetBIOS domain name. Required.
forest_name (str) – Specifies the Active Directory forest to get. Required.
domain_guid (str) – Specifies the domain GUID. Required.
domain_sid (str) – Specifies the security identifier (SID). Required.
azure_storage_sid (str) – Specifies the security identifier (SID) for Azure Storage. Required.
- class azure.mgmt.storage.v2019_06_01.models.AzureEntityResource(**kwargs: Any)[source]
Bases:
ResourceThe resource model definition for an 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
etag (str) – Resource Etag.
- class azure.mgmt.storage.v2019_06_01.models.AzureFilesIdentityBasedAuthentication(*, directory_service_options: str | _models.DirectoryServiceOptions, active_directory_properties: _models.ActiveDirectoryProperties | None = None, **kwargs: Any)[source]
Bases:
ModelSettings for Azure Files identity based authentication.
All required parameters must be populated in order to send to server.
- Variables:
directory_service_options (str or DirectoryServiceOptions) – Indicates the directory service used. Required. Known values are: “None”, “AADDS”, and “AD”.
active_directory_properties (ActiveDirectoryProperties) – Required if choose AD.
- Keyword Arguments:
directory_service_options (str or DirectoryServiceOptions) – Indicates the directory service used. Required. Known values are: “None”, “AADDS”, and “AD”.
active_directory_properties (ActiveDirectoryProperties) – Required if choose AD.
- class azure.mgmt.storage.v2019_06_01.models.BlobContainer(*, default_encryption_scope: str | None = None, deny_encryption_scope_override: bool | None = None, public_access: str | _models.PublicAccess | None = None, metadata: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
AzureEntityResourceProperties 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
etag (str) – Resource Etag.
version (str) – The version of the deleted blob container.
deleted (bool) – Indicates whether the blob container was deleted.
deleted_time (datetime) – Blob container deletion time.
remaining_retention_days (int) – Remaining retention days for soft deleted blob container.
default_encryption_scope (str) – Default the container to use specified encryption scope for all writes.
deny_encryption_scope_override (bool) – Block override of encryption scope from the container default.
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Known values are: “Container”, “Blob”, and “None”.
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. Known values are: “Locked” and “Unlocked”.
lease_state (str or LeaseState) – Lease state of the container. Known values are: “Available”, “Leased”, “Expired”, “Breaking”, and “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. Known values are: “Infinite” and “Fixed”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
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.
- Keyword Arguments:
default_encryption_scope (str) – Default the container to use specified encryption scope for all writes.
deny_encryption_scope_override (bool) – Block override of encryption scope from the container default.
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Known values are: “Container”, “Blob”, and “None”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicy(*, policy: _models.BlobInventoryPolicySchema | None = None, **kwargs: Any)[source]
Bases:
ResourceThe storage account blob inventory policy.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
system_data (SystemData) – Metadata pertaining to creation and last modification of the resource.
last_modified_time (datetime) – Returns the last modified date and time of the blob inventory policy.
policy (BlobInventoryPolicySchema) – The storage account blob inventory policy object. It is composed of policy rules.
- Keyword Arguments:
policy (BlobInventoryPolicySchema) – The storage account blob inventory policy object. It is composed of policy rules.
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicyDefinition(*, filters: _models.BlobInventoryPolicyFilter, **kwargs: Any)[source]
Bases:
ModelAn object that defines the blob inventory rule. Each definition consists of a set of filters.
All required parameters must be populated in order to send to server.
- Variables:
filters (BlobInventoryPolicyFilter) – An object that defines the filter set. Required.
- Keyword Arguments:
filters (BlobInventoryPolicyFilter) – An object that defines the filter set. Required.
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicyFilter(*, blob_types: List[str], prefix_match: List[str] | None = None, include_blob_versions: bool | None = None, include_snapshots: bool | None = None, **kwargs: Any)[source]
Bases:
ModelAn object that defines the blob inventory rule filter conditions.
All required parameters must be populated in order to send to server.
- Variables:
prefix_match (list[str]) – An array of strings for blob prefixes to be matched.
blob_types (list[str]) – An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. Required.
include_blob_versions (bool) – Includes blob versions in blob inventory when value set to true.
include_snapshots (bool) – Includes blob snapshots in blob inventory when value set to true.
- Keyword Arguments:
prefix_match (list[str]) – An array of strings for blob prefixes to be matched.
blob_types (list[str]) – An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. Required.
include_blob_versions (bool) – Includes blob versions in blob inventory when value set to true.
include_snapshots (bool) – Includes blob snapshots in blob inventory when value set to true.
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicyName(*values)[source]
-
BlobInventoryPolicyName.
- DEFAULT = 'default'
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicyRule(*, enabled: bool, name: str, definition: _models.BlobInventoryPolicyDefinition, **kwargs: Any)[source]
Bases:
ModelAn object that wraps the blob inventory rule. Each rule is uniquely defined by name.
All required parameters must be populated in order to send to server.
- Variables:
enabled (bool) – Rule is enabled when set to true. Required.
name (str) – A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Required.
definition (BlobInventoryPolicyDefinition) – An object that defines the blob inventory policy rule. Required.
- Keyword Arguments:
enabled (bool) – Rule is enabled when set to true. Required.
name (str) – A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Required.
definition (BlobInventoryPolicyDefinition) – An object that defines the blob inventory policy rule. Required.
- class azure.mgmt.storage.v2019_06_01.models.BlobInventoryPolicySchema(*, enabled: bool, destination: str, type: str | _models.InventoryRuleType, rules: List[_models.BlobInventoryPolicyRule], **kwargs: Any)[source]
Bases:
ModelThe storage account blob inventory policy rules.
All required parameters must be populated in order to send to server.
- Variables:
enabled (bool) – Policy is enabled if set to true. Required.
destination (str) – Container name where blob inventory files are stored. Must be pre-created. Required.
type (str or InventoryRuleType) – The valid value is Inventory. Required. “Inventory”
rules (list[BlobInventoryPolicyRule]) – The storage account blob inventory policy rules. The rule is applied when it is enabled. Required.
- Keyword Arguments:
enabled (bool) – Policy is enabled if set to true. Required.
destination (str) – Container name where blob inventory files are stored. Must be pre-created. Required.
type (str or InventoryRuleType) – The valid value is Inventory. Required. “Inventory”
rules (list[BlobInventoryPolicyRule]) – The storage account blob inventory policy rules. The rule is applied when it is enabled. Required.
- class azure.mgmt.storage.v2019_06_01.models.BlobRestoreParameters(*, time_to_restore: datetime, blob_ranges: List[_models.BlobRestoreRange], **kwargs: Any)[source]
Bases:
ModelBlob restore parameters.
All required parameters must be populated in order to send to server.
- Variables:
time_to_restore (datetime) – Restore blob to the specified time. Required.
blob_ranges (list[BlobRestoreRange]) – Blob ranges to restore. Required.
- Keyword Arguments:
time_to_restore (datetime) – Restore blob to the specified time. Required.
blob_ranges (list[BlobRestoreRange]) – Blob ranges to restore. Required.
- class azure.mgmt.storage.v2019_06_01.models.BlobRestoreProgressStatus(*values)[source]
-
The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed.
- COMPLETE = 'Complete'
- FAILED = 'Failed'
- IN_PROGRESS = 'InProgress'
- class azure.mgmt.storage.v2019_06_01.models.BlobRestoreRange(*, start_range: str, end_range: str, **kwargs: Any)[source]
Bases:
ModelBlob range.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.BlobRestoreStatus(**kwargs: Any)[source]
Bases:
ModelBlob restore status.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
status (str or BlobRestoreProgressStatus) – The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed. Known values are: “InProgress”, “Complete”, and “Failed”.
failure_reason (str) – Failure reason when blob restore is failed.
restore_id (str) – Id for tracking blob restore request.
parameters (BlobRestoreParameters) – Blob restore request parameters.
- class azure.mgmt.storage.v2019_06_01.models.BlobServiceItems(**kwargs: Any)[source]
Bases:
ModelBlobServiceItems.
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_06_01.models.BlobServiceProperties(*, cors: _models.CorsRules | None = None, default_service_version: str | None = None, delete_retention_policy: _models.DeleteRetentionPolicy | None = None, is_versioning_enabled: bool | None = None, automatic_snapshot_policy_enabled: bool | None = None, change_feed: _models.ChangeFeed | None = None, restore_policy: _models.RestorePolicyProperties | None = None, container_delete_retention_policy: _models.DeleteRetentionPolicy | None = None, last_access_time_tracking_policy: _models.LastAccessTimeTrackingPolicy | None = None, **kwargs: Any)[source]
Bases:
ResourceThe 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
sku (Sku) – Sku name and tier.
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 blob soft delete.
is_versioning_enabled (bool) – Versioning is enabled if set to true.
automatic_snapshot_policy_enabled (bool) – Deprecated in favor of isVersioningEnabled property.
change_feed (ChangeFeed) – The blob service properties for change feed events.
restore_policy (RestorePolicyProperties) – The blob service properties for blob restore policy.
container_delete_retention_policy (DeleteRetentionPolicy) – The blob service properties for container soft delete.
last_access_time_tracking_policy (LastAccessTimeTrackingPolicy) – The blob service property to configure last access time based tracking policy.
- Keyword Arguments:
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 blob soft delete.
is_versioning_enabled (bool) – Versioning is enabled if set to true.
automatic_snapshot_policy_enabled (bool) – Deprecated in favor of isVersioningEnabled property.
change_feed (ChangeFeed) – The blob service properties for change feed events.
restore_policy (RestorePolicyProperties) – The blob service properties for blob restore policy.
container_delete_retention_policy (DeleteRetentionPolicy) – The blob service properties for container soft delete.
last_access_time_tracking_policy (LastAccessTimeTrackingPolicy) – The blob service property to configure last access time based tracking policy.
- class azure.mgmt.storage.v2019_06_01.models.Bypass(*values)[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_06_01.models.ChangeFeed(*, enabled: bool | None = None, retention_in_days: int | None = None, **kwargs: Any)[source]
Bases:
ModelThe blob service properties for change feed events.
- Variables:
enabled (bool) – Indicates whether change feed event logging is enabled for the Blob service.
retention_in_days (int) – Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- Keyword Arguments:
enabled (bool) – Indicates whether change feed event logging is enabled for the Blob service.
retention_in_days (int) – Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an infinite retention of the change feed.
- class azure.mgmt.storage.v2019_06_01.models.CheckNameAvailabilityResult(**kwargs: Any)[source]
Bases:
ModelThe 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.v2019_06_01.models.CloudErrorBody(*, code: str | None = None, message: str | None = None, target: str | None = None, details: List[_models.CloudErrorBody] | None = None, **kwargs: Any)[source]
Bases:
ModelAn error response from the Storage service.
- Variables:
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.
- Keyword Arguments:
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_06_01.models.CorsRule(*, allowed_origins: List[str], allowed_methods: List[str | _models.CorsRuleAllowedMethodsItem], max_age_in_seconds: int, exposed_headers: List[str], allowed_headers: List[str], **kwargs: Any)[source]
Bases:
ModelSpecifies a CORS rule for the Blob service.
All required parameters must be populated in order to send to server.
- Variables:
allowed_origins (list[str]) – Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or “*” to allow all domains. Required.
allowed_methods (list[str or CorsRuleAllowedMethodsItem]) – Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required.
max_age_in_seconds (int) – Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required.
exposed_headers (list[str]) – Required if CorsRule element is present. A list of response headers to expose to CORS clients. Required.
allowed_headers (list[str]) – Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. Required.
- Keyword Arguments:
allowed_origins (list[str]) – Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or “*” to allow all domains. Required.
allowed_methods (list[str or CorsRuleAllowedMethodsItem]) – Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required.
max_age_in_seconds (int) – Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required.
exposed_headers (list[str]) – Required if CorsRule element is present. A list of response headers to expose to CORS clients. Required.
allowed_headers (list[str]) – Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request. Required.
- class azure.mgmt.storage.v2019_06_01.models.CorsRuleAllowedMethodsItem(*values)[source]
-
CorsRuleAllowedMethodsItem.
- DELETE = 'DELETE'
- GET = 'GET'
- HEAD = 'HEAD'
- MERGE = 'MERGE'
- OPTIONS = 'OPTIONS'
- POST = 'POST'
- PUT = 'PUT'
- class azure.mgmt.storage.v2019_06_01.models.CorsRules(*, cors_rules: List[_models.CorsRule] | None = None, **kwargs: Any)[source]
Bases:
ModelSets the CORS rules. You can include up to five CorsRule elements in the request.
- class azure.mgmt.storage.v2019_06_01.models.CreatedByType(*values)[source]
-
The type of identity that created the resource.
- APPLICATION = 'Application'
- KEY = 'Key'
- MANAGED_IDENTITY = 'ManagedIdentity'
- USER = 'User'
- class azure.mgmt.storage.v2019_06_01.models.CustomDomain(*, name: str, use_sub_domain_name: bool | None = None, **kwargs: Any)[source]
Bases:
ModelThe custom domain assigned to this storage account. This can be set via Update.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.DateAfterCreation(*, days_after_creation_greater_than: float, **kwargs: Any)[source]
Bases:
ModelObject to define the number of days after creation.
All required parameters must be populated in order to send to server.
- class azure.mgmt.storage.v2019_06_01.models.DateAfterModification(*, days_after_modification_greater_than: float | None = None, days_after_last_access_time_greater_than: float | None = None, **kwargs: Any)[source]
Bases:
ModelObject to define the number of days after object last modification Or last access. Properties daysAfterModificationGreaterThan and daysAfterLastAccessTimeGreaterThan are mutually exclusive.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.DefaultAction(*values)[source]
-
Specifies the default action of allow or deny when no other rules match.
- ALLOW = 'Allow'
- DENY = 'Deny'
- class azure.mgmt.storage.v2019_06_01.models.DeleteRetentionPolicy(*, enabled: bool | None = None, days: int | None = None, **kwargs: Any)[source]
Bases:
ModelThe service properties for soft delete.
- Variables:
- Keyword Arguments:
Bases:
ModelThe deleted share to be restored.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.Dimension(*, name: str | None = None, display_name: str | None = None, **kwargs: Any)[source]
Bases:
ModelDimension of blobs, possibly be blob type or access tier.
- class azure.mgmt.storage.v2019_06_01.models.DirectoryServiceOptions(*values)[source]
-
Indicates the directory service used.
- AADDS = 'AADDS'
- AD = 'AD'
- NONE = 'None'
- class azure.mgmt.storage.v2019_06_01.models.EnabledProtocols(*values)[source]
-
The authentication protocol that is used for the file share. Can only be specified when creating a share.
- NFS = 'NFS'
- SMB = 'SMB'
- class azure.mgmt.storage.v2019_06_01.models.Encryption(*, key_source: str | _models.KeySource = 'Microsoft.Storage', services: _models.EncryptionServices | None = None, require_infrastructure_encryption: bool | None = None, key_vault_properties: _models.KeyVaultProperties | None = None, **kwargs: Any)[source]
Bases:
ModelThe encryption settings on the storage account.
All required parameters must be populated in order to send to server.
- Variables:
services (EncryptionServices) – List of services which support encryption.
key_source (str or KeySource) – The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Known values are: “Microsoft.Storage” and “Microsoft.Keyvault”.
require_infrastructure_encryption (bool) – A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
key_vault_properties (KeyVaultProperties) – Properties provided by key vault.
- Keyword Arguments:
services (EncryptionServices) – List of services which support encryption.
key_source (str or KeySource) – The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Known values are: “Microsoft.Storage” and “Microsoft.Keyvault”.
require_infrastructure_encryption (bool) – A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
key_vault_properties (KeyVaultProperties) – Properties provided by key vault.
- class azure.mgmt.storage.v2019_06_01.models.EncryptionScope(*, source: str | _models.EncryptionScopeSource | None = None, state: str | _models.EncryptionScopeState | None = None, key_vault_properties: _models.EncryptionScopeKeyVaultProperties | None = None, **kwargs: Any)[source]
Bases:
ResourceThe Encryption Scope 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
source (str or EncryptionScopeSource) – The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Known values are: “Microsoft.Storage” and “Microsoft.KeyVault”.
state (str or EncryptionScopeState) – The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. Known values are: “Enabled” and “Disabled”.
creation_time (datetime) – Gets the creation date and time of the encryption scope in UTC.
last_modified_time (datetime) – Gets the last modification date and time of the encryption scope in UTC.
key_vault_properties (EncryptionScopeKeyVaultProperties) – The key vault properties for the encryption scope. This is a required field if encryption scope ‘source’ attribute is set to ‘Microsoft.KeyVault’.
- Keyword Arguments:
source (str or EncryptionScopeSource) – The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Known values are: “Microsoft.Storage” and “Microsoft.KeyVault”.
state (str or EncryptionScopeState) – The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. Known values are: “Enabled” and “Disabled”.
key_vault_properties (EncryptionScopeKeyVaultProperties) – The key vault properties for the encryption scope. This is a required field if encryption scope ‘source’ attribute is set to ‘Microsoft.KeyVault’.
- class azure.mgmt.storage.v2019_06_01.models.EncryptionScopeKeyVaultProperties(*, key_uri: str | None = None, **kwargs: Any)[source]
Bases:
ModelThe key vault properties for the encryption scope. This is a required field if encryption scope ‘source’ attribute is set to ‘Microsoft.KeyVault’.
- Variables:
key_uri (str) – The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope.
- Keyword Arguments:
key_uri (str) – The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed key support on this encryption scope.
- class azure.mgmt.storage.v2019_06_01.models.EncryptionScopeListResult(**kwargs: Any)[source]
Bases:
ModelList of encryption scopes requested, and if paging is required, a URL to the next page of encryption scopes.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
value (list[EncryptionScope]) – List of encryption scopes requested.
next_link (str) – Request URL that can be used to query next page of encryption scopes. Returned when total number of requested encryption scopes exceeds the maximum page size.
- class azure.mgmt.storage.v2019_06_01.models.EncryptionScopeSource(*values)[source]
-
The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault.
- MICROSOFT_KEY_VAULT = 'Microsoft.KeyVault'
- MICROSOFT_STORAGE = 'Microsoft.Storage'
- class azure.mgmt.storage.v2019_06_01.models.EncryptionScopeState(*values)[source]
-
The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled.
- DISABLED = 'Disabled'
- ENABLED = 'Enabled'
- class azure.mgmt.storage.v2019_06_01.models.EncryptionService(*, enabled: bool | None = None, key_type: str | _models.KeyType | None = None, **kwargs: Any)[source]
Bases:
ModelA 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.
key_type (str or KeyType) – Encryption key type to be used for the encryption service. ‘Account’ key type implies that an account-scoped encryption key will be used. ‘Service’ key type implies that a default service key is used. Known values are: “Service” and “Account”.
- Keyword Arguments:
enabled (bool) – A boolean indicating whether or not the service encrypts the data as it is stored.
key_type (str or KeyType) – Encryption key type to be used for the encryption service. ‘Account’ key type implies that an account-scoped encryption key will be used. ‘Service’ key type implies that a default service key is used. Known values are: “Service” and “Account”.
- class azure.mgmt.storage.v2019_06_01.models.EncryptionServices(*, blob: _models.EncryptionService | None = None, file: _models.EncryptionService | None = None, table: _models.EncryptionService | None = None, queue: _models.EncryptionService | None = None, **kwargs: Any)[source]
Bases:
ModelA list of services that support encryption.
- Variables:
blob (EncryptionService) – The encryption function of the blob storage service.
file (EncryptionService) – The encryption function of the file storage service.
table (EncryptionService) – The encryption function of the table storage service.
queue (EncryptionService) – The encryption function of the queue storage service.
- Keyword Arguments:
blob (EncryptionService) – The encryption function of the blob storage service.
file (EncryptionService) – The encryption function of the file storage service.
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_06_01.models.Endpoints(*, microsoft_endpoints: _models.StorageAccountMicrosoftEndpoints | None = None, internet_endpoints: _models.StorageAccountInternetEndpoints | None = None, **kwargs: Any)[source]
Bases:
ModelThe 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.
- Variables:
blob (str) – Gets the blob endpoint.
queue (str) – Gets the queue endpoint.
table (str) – Gets the table endpoint.
file (str) – Gets the file endpoint.
web (str) – Gets the web endpoint.
dfs (str) – Gets the dfs endpoint.
microsoft_endpoints (StorageAccountMicrosoftEndpoints) – Gets the microsoft routing storage endpoints.
internet_endpoints (StorageAccountInternetEndpoints) – Gets the internet routing storage endpoints.
- Keyword Arguments:
microsoft_endpoints (StorageAccountMicrosoftEndpoints) – Gets the microsoft routing storage endpoints.
internet_endpoints (StorageAccountInternetEndpoints) – Gets the internet routing storage endpoints.
- class azure.mgmt.storage.v2019_06_01.models.ErrorResponse(*, error: _models.ErrorResponseBody | None = None, **kwargs: Any)[source]
Bases:
ModelAn error response from the storage resource provider.
- Variables:
error (ErrorResponseBody) – Azure Storage Resource Provider error response body.
- Keyword Arguments:
error (ErrorResponseBody) – Azure Storage Resource Provider error response body.
- class azure.mgmt.storage.v2019_06_01.models.ErrorResponseBody(*, code: str | None = None, message: str | None = None, **kwargs: Any)[source]
Bases:
ModelError response body contract.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.FileServiceItems(**kwargs: Any)[source]
Bases:
ModelFileServiceItems.
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_06_01.models.FileServiceProperties(*, cors: _models.CorsRules | None = None, share_delete_retention_policy: _models.DeleteRetentionPolicy | None = None, **kwargs: Any)[source]
Bases:
ResourceThe 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
sku (Sku) – Sku name and tier.
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.
share_delete_retention_policy (DeleteRetentionPolicy) – The file service properties for share soft delete.
- Keyword Arguments:
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.
share_delete_retention_policy (DeleteRetentionPolicy) – The file service properties for share soft delete.
Bases:
AzureEntityResourceProperties 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “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.
metadata (dict[str, str]) – A name-value pair to associate with the share as metadata.
share_quota (int) – The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
enabled_protocols (str or EnabledProtocols) – The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: “SMB” and “NFS”.
root_squash (str or RootSquashType) – The property is for NFS share only. The default is NoRootSquash. Known values are: “NoRootSquash”, “RootSquash”, and “AllSquash”.
version (str) – The version of the share.
deleted (bool) – Indicates whether the share was deleted.
deleted_time (datetime) – The deleted time if the share was deleted.
remaining_retention_days (int) – Remaining retention days for share that was soft deleted.
access_tier (str or ShareAccessTier) – Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: “TransactionOptimized”, “Hot”, “Cool”, and “Premium”.
access_tier_change_time (datetime) – Indicates the last modification time for share access tier.
access_tier_status (str) – Indicates if there is a pending transition for access tier.
share_usage_bytes (int) – The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- Keyword Arguments:
metadata (dict[str, str]) – A name-value pair to associate with the share as metadata.
share_quota (int) – The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
enabled_protocols (str or EnabledProtocols) – The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: “SMB” and “NFS”.
root_squash (str or RootSquashType) – The property is for NFS share only. The default is NoRootSquash. Known values are: “NoRootSquash”, “RootSquash”, and “AllSquash”.
access_tier (str or ShareAccessTier) – Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: “TransactionOptimized”, “Hot”, “Cool”, and “Premium”.
Bases:
AzureEntityResourceThe 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “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.
metadata (dict[str, str]) – A name-value pair to associate with the share as metadata.
share_quota (int) – The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
enabled_protocols (str or EnabledProtocols) – The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: “SMB” and “NFS”.
root_squash (str or RootSquashType) – The property is for NFS share only. The default is NoRootSquash. Known values are: “NoRootSquash”, “RootSquash”, and “AllSquash”.
version (str) – The version of the share.
deleted (bool) – Indicates whether the share was deleted.
deleted_time (datetime) – The deleted time if the share was deleted.
remaining_retention_days (int) – Remaining retention days for share that was soft deleted.
access_tier (str or ShareAccessTier) – Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: “TransactionOptimized”, “Hot”, “Cool”, and “Premium”.
access_tier_change_time (datetime) – Indicates the last modification time for share access tier.
access_tier_status (str) – Indicates if there is a pending transition for access tier.
share_usage_bytes (int) – The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
- Keyword Arguments:
metadata (dict[str, str]) – A name-value pair to associate with the share as metadata.
share_quota (int) – The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400.
enabled_protocols (str or EnabledProtocols) – The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: “SMB” and “NFS”.
root_squash (str or RootSquashType) – The property is for NFS share only. The default is NoRootSquash. Known values are: “NoRootSquash”, “RootSquash”, and “AllSquash”.
access_tier (str or ShareAccessTier) – Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: “TransactionOptimized”, “Hot”, “Cool”, and “Premium”.
Bases:
ModelResponse 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_06_01.models.GeoReplicationStats(**kwargs: Any)[source]
Bases:
ModelStatistics 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. Known values are: “Live”, “Bootstrap”, and “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_06_01.models.GeoReplicationStatus(*values)[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_06_01.models.HttpProtocol(*values)[source]
-
The protocol permitted for a request made with the account SAS.
- HTTPS = 'https'
- HTTPS_HTTP = 'https,http'
- class azure.mgmt.storage.v2019_06_01.models.IPRule(*, ip_address_or_range: str, action: Literal['Allow'] | None = None, **kwargs: Any)[source]
Bases:
ModelIP rule with specific IP or IP range in CIDR format.
All required parameters must be populated in order to send to server.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.Identity(**kwargs: Any)[source]
Bases:
ModelIdentity 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 server.
- Variables:
- type = 'SystemAssigned'
- class azure.mgmt.storage.v2019_06_01.models.ImmutabilityPolicy(*, immutability_period_since_creation_in_days: int | None = None, allow_protected_append_writes: bool | None = None, **kwargs: Any)[source]
Bases:
AzureEntityResourceThe 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.
- Variables:
id (str) – Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
etag (str) – Resource Etag.
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
state (str or ImmutabilityPolicyState) – The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Known values are: “Locked” and “Unlocked”.
allow_protected_append_writes (bool) – This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- Keyword Arguments:
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
allow_protected_append_writes (bool) – This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- class azure.mgmt.storage.v2019_06_01.models.ImmutabilityPolicyProperties(*, immutability_period_since_creation_in_days: int | None = None, allow_protected_append_writes: bool | None = None, **kwargs: Any)[source]
Bases:
ModelThe 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.
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
state (str or ImmutabilityPolicyState) – The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Known values are: “Locked” and “Unlocked”.
allow_protected_append_writes (bool) – This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- Keyword Arguments:
immutability_period_since_creation_in_days (int) – The immutability period for the blobs in the container since the policy creation, in days.
allow_protected_append_writes (bool) – This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
- class azure.mgmt.storage.v2019_06_01.models.ImmutabilityPolicyState(*values)[source]
-
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
- LOCKED = 'Locked'
- UNLOCKED = 'Unlocked'
- class azure.mgmt.storage.v2019_06_01.models.ImmutabilityPolicyUpdateType(*values)[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_06_01.models.InventoryRuleType(*values)[source]
-
The valid value is Inventory.
- INVENTORY = 'Inventory'
- class azure.mgmt.storage.v2019_06_01.models.KeyPermission(*values)[source]
-
Permissions for the key – read-only or full permissions.
- FULL = 'Full'
- READ = 'Read'
- class azure.mgmt.storage.v2019_06_01.models.KeySource(*values)[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_06_01.models.KeyType(*values)[source]
-
Encryption key type to be used for the encryption service. ‘Account’ key type implies that an account-scoped encryption key will be used. ‘Service’ key type implies that a default service key is used.
- ACCOUNT = 'Account'
- SERVICE = 'Service'
- class azure.mgmt.storage.v2019_06_01.models.KeyVaultProperties(*, key_name: str | None = None, key_version: str | None = None, key_vault_uri: str | None = None, **kwargs: Any)[source]
Bases:
ModelProperties of key vault.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
key_name (str) – The name of KeyVault key.
key_version (str) – The version of KeyVault key.
key_vault_uri (str) – The Uri of KeyVault.
current_versioned_key_identifier (str) – The object identifier of the current versioned Key Vault Key in use.
last_key_rotation_timestamp (datetime) – Timestamp of last rotation of the Key Vault Key.
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.Kind(*values)[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_06_01.models.LastAccessTimeTrackingPolicy(*, enable: bool, name: str | _models.Name | None = None, tracking_granularity_in_days: int | None = None, blob_type: List[str] | None = None, **kwargs: Any)[source]
Bases:
ModelThe blob service properties for Last access time based tracking policy.
All required parameters must be populated in order to send to server.
- Variables:
enable (bool) – When set to true last access time based tracking is enabled. Required.
name (str or Name) – Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. “AccessTimeTracking”
tracking_granularity_in_days (int) – The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1.
blob_type (list[str]) – An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
- Keyword Arguments:
enable (bool) – When set to true last access time based tracking is enabled. Required.
name (str or Name) – Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. “AccessTimeTracking”
tracking_granularity_in_days (int) – The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1.
blob_type (list[str]) – An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only.
- class azure.mgmt.storage.v2019_06_01.models.LeaseContainerRequest(*, action: str | _models.LeaseContainerRequestAction, lease_id: str | None = None, break_period: int | None = None, lease_duration: int | None = None, proposed_lease_id: str | None = None, **kwargs: Any)[source]
Bases:
ModelLease Container request schema.
All required parameters must be populated in order to send to server.
- Variables:
action (str or LeaseContainerRequestAction) – Specifies the lease action. Can be one of the available actions. Required. Known values are: “Acquire”, “Renew”, “Change”, “Release”, “Break”, and “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.
- Keyword Arguments:
action (str or LeaseContainerRequestAction) – Specifies the lease action. Can be one of the available actions. Required. Known values are: “Acquire”, “Renew”, “Change”, “Release”, “Break”, and “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_06_01.models.LeaseContainerRequestAction(*values)[source]
-
Specifies the lease action. Can be one of the available actions.
- ACQUIRE = 'Acquire'
- BREAK = 'Break'
- BREAK_ENUM = 'Break'
- CHANGE = 'Change'
- RELEASE = 'Release'
- RENEW = 'Renew'
- class azure.mgmt.storage.v2019_06_01.models.LeaseContainerResponse(*, lease_id: str | None = None, lease_time_seconds: str | None = None, **kwargs: Any)[source]
Bases:
ModelLease Container response schema.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.LeaseDuration(*values)[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_06_01.models.LeaseState(*values)[source]
-
Lease state of the container.
- AVAILABLE = 'Available'
- BREAKING = 'Breaking'
- BROKEN = 'Broken'
- EXPIRED = 'Expired'
- LEASED = 'Leased'
- class azure.mgmt.storage.v2019_06_01.models.LeaseStatus(*values)[source]
-
The lease status of the container.
- LOCKED = 'Locked'
- UNLOCKED = 'Unlocked'
- class azure.mgmt.storage.v2019_06_01.models.LegalHold(*, tags: List[str], **kwargs: Any)[source]
Bases:
ModelThe 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 server.
- 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.
tags (list[str]) – Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. Required.
- Keyword Arguments:
tags (list[str]) – Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. Required.
- class azure.mgmt.storage.v2019_06_01.models.LegalHoldProperties(*, tags: List[_models.TagProperty] | None = None, **kwargs: Any)[source]
Bases:
ModelThe 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.
tags (list[TagProperty]) – The list of LegalHold tags of a blob container.
- Keyword Arguments:
tags (list[TagProperty]) – The list of LegalHold tags of a blob container.
- class azure.mgmt.storage.v2019_06_01.models.ListAccountSasResponse(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.ListBlobInventoryPolicy(**kwargs: Any)[source]
Bases:
ModelList of blob inventory policies returned.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
value (list[BlobInventoryPolicy]) – List of blob inventory policies.
- class azure.mgmt.storage.v2019_06_01.models.ListContainerItem(*, default_encryption_scope: str | None = None, deny_encryption_scope_override: bool | None = None, public_access: str | _models.PublicAccess | None = None, metadata: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
AzureEntityResourceThe 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
etag (str) – Resource Etag.
version (str) – The version of the deleted blob container.
deleted (bool) – Indicates whether the blob container was deleted.
deleted_time (datetime) – Blob container deletion time.
remaining_retention_days (int) – Remaining retention days for soft deleted blob container.
default_encryption_scope (str) – Default the container to use specified encryption scope for all writes.
deny_encryption_scope_override (bool) – Block override of encryption scope from the container default.
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Known values are: “Container”, “Blob”, and “None”.
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. Known values are: “Locked” and “Unlocked”.
lease_state (str or LeaseState) – Lease state of the container. Known values are: “Available”, “Leased”, “Expired”, “Breaking”, and “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. Known values are: “Infinite” and “Fixed”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
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.
- Keyword Arguments:
default_encryption_scope (str) – Default the container to use specified encryption scope for all writes.
deny_encryption_scope_override (bool) – Block override of encryption scope from the container default.
public_access (str or PublicAccess) – Specifies whether data in the container may be accessed publicly and the level of access. Known values are: “Container”, “Blob”, and “None”.
metadata (dict[str, str]) – A name-value pair to associate with the container as metadata.
- class azure.mgmt.storage.v2019_06_01.models.ListContainerItems(**kwargs: Any)[source]
Bases:
ModelResponse 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_06_01.models.ListContainersInclude(*values)[source]
-
ListContainersInclude.
- DELETED = 'deleted'
- class azure.mgmt.storage.v2019_06_01.models.ListQueue(*, metadata: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
ResourceListQueue.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
metadata (dict[str, str]) – A name-value pair that represents queue metadata.
- Keyword Arguments:
metadata (dict[str, str]) – A name-value pair that represents queue metadata.
- class azure.mgmt.storage.v2019_06_01.models.ListQueueResource(**kwargs: Any)[source]
Bases:
ModelResponse schema. Contains list of queues returned.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.storage.v2019_06_01.models.ListQueueServices(**kwargs: Any)[source]
Bases:
ModelListQueueServices.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
value (list[QueueServiceProperties]) – List of queue services returned.
- class azure.mgmt.storage.v2019_06_01.models.ListServiceSasResponse(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.ListTableResource(**kwargs: Any)[source]
Bases:
ModelResponse schema. Contains list of tables returned.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.storage.v2019_06_01.models.ListTableServices(**kwargs: Any)[source]
Bases:
ModelListTableServices.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
value (list[TableServiceProperties]) – List of table services returned.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicy(*, policy: _models.ManagementPolicySchema | None = None, **kwargs: Any)[source]
Bases:
ResourceThe 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
last_modified_time (datetime) – Returns the date and time the ManagementPolicies was last modified.
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.
- Keyword Arguments:
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_06_01.models.ManagementPolicyAction(*, base_blob: _models.ManagementPolicyBaseBlob | None = None, snapshot: _models.ManagementPolicySnapShot | None = None, version: _models.ManagementPolicyVersion | None = None, **kwargs: Any)[source]
Bases:
ModelActions are applied to the filtered blobs when the execution condition is met.
- Variables:
base_blob (ManagementPolicyBaseBlob) – The management policy action for base blob.
snapshot (ManagementPolicySnapShot) – The management policy action for snapshot.
version (ManagementPolicyVersion) – The management policy action for version.
- Keyword Arguments:
base_blob (ManagementPolicyBaseBlob) – The management policy action for base blob.
snapshot (ManagementPolicySnapShot) – The management policy action for snapshot.
version (ManagementPolicyVersion) – The management policy action for version.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyBaseBlob(*, tier_to_cool: _models.DateAfterModification | None = None, tier_to_archive: _models.DateAfterModification | None = None, delete: _models.DateAfterModification | None = None, enable_auto_tier_to_hot_from_cool: bool | None = None, **kwargs: Any)[source]
Bases:
ModelManagement policy action for base blob.
- Variables:
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.
enable_auto_tier_to_hot_from_cool (bool) – This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- Keyword Arguments:
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.
enable_auto_tier_to_hot_from_cool (bool) – This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyDefinition(*, actions: _models.ManagementPolicyAction, filters: _models.ManagementPolicyFilter | None = None, **kwargs: Any)[source]
Bases:
ModelAn 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 server.
- Variables:
actions (ManagementPolicyAction) – An object that defines the action set. Required.
filters (ManagementPolicyFilter) – An object that defines the filter set.
- Keyword Arguments:
actions (ManagementPolicyAction) – An object that defines the action set. Required.
filters (ManagementPolicyFilter) – An object that defines the filter set.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyFilter(*, blob_types: List[str], prefix_match: List[str] | None = None, blob_index_match: List[_models.TagFilter] | None = None, **kwargs: Any)[source]
Bases:
ModelFilters 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 server.
- Variables:
prefix_match (list[str]) – An array of strings for prefixes to be match.
blob_types (list[str]) – An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. Required.
blob_index_match (list[TagFilter]) – An array of blob index tag based filters, there can be at most 10 tag filters.
- Keyword Arguments:
prefix_match (list[str]) – An array of strings for prefixes to be match.
blob_types (list[str]) – An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob. Required.
blob_index_match (list[TagFilter]) – An array of blob index tag based filters, there can be at most 10 tag filters.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyName(*values)[source]
-
ManagementPolicyName.
- DEFAULT = 'default'
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyRule(*, name: str, type: str | _models.RuleType, definition: _models.ManagementPolicyDefinition, enabled: bool | None = None, **kwargs: Any)[source]
Bases:
ModelAn object that wraps the Lifecycle rule. Each rule is uniquely defined by name.
All required parameters must be populated in order to send to server.
- Variables:
enabled (bool) – Rule is enabled if set to true.
name (str) – A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Required.
type (str or RuleType) – The valid value is Lifecycle. Required. “Lifecycle”
definition (ManagementPolicyDefinition) – An object that defines the Lifecycle rule. Required.
- Keyword Arguments:
enabled (bool) – Rule is enabled if set to true.
name (str) – A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy. Required.
type (str or RuleType) – The valid value is Lifecycle. Required. “Lifecycle”
definition (ManagementPolicyDefinition) – An object that defines the Lifecycle rule. Required.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicySchema(*, rules: List[_models.ManagementPolicyRule], **kwargs: Any)[source]
Bases:
ModelThe 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 server.
- Variables:
rules (list[ManagementPolicyRule]) – The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Required.
- Keyword Arguments:
rules (list[ManagementPolicyRule]) – The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Required.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicySnapShot(*, tier_to_cool: _models.DateAfterCreation | None = None, tier_to_archive: _models.DateAfterCreation | None = None, delete: _models.DateAfterCreation | None = None, **kwargs: Any)[source]
Bases:
ModelManagement policy action for snapshot.
- Variables:
tier_to_cool (DateAfterCreation) – The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier.
tier_to_archive (DateAfterCreation) – The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier.
delete (DateAfterCreation) – The function to delete the blob snapshot.
- Keyword Arguments:
tier_to_cool (DateAfterCreation) – The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier.
tier_to_archive (DateAfterCreation) – The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier.
delete (DateAfterCreation) – The function to delete the blob snapshot.
- class azure.mgmt.storage.v2019_06_01.models.ManagementPolicyVersion(*, tier_to_cool: _models.DateAfterCreation | None = None, tier_to_archive: _models.DateAfterCreation | None = None, delete: _models.DateAfterCreation | None = None, **kwargs: Any)[source]
Bases:
ModelManagement policy action for blob version.
- Variables:
tier_to_cool (DateAfterCreation) – The function to tier blob version to cool storage. Support blob version currently at Hot tier.
tier_to_archive (DateAfterCreation) – The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier.
delete (DateAfterCreation) – The function to delete the blob version.
- Keyword Arguments:
tier_to_cool (DateAfterCreation) – The function to tier blob version to cool storage. Support blob version currently at Hot tier.
tier_to_archive (DateAfterCreation) – The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier.
delete (DateAfterCreation) – The function to delete the blob version.
- class azure.mgmt.storage.v2019_06_01.models.MetricSpecification(*, name: str | None = None, display_name: str | None = None, display_description: str | None = None, unit: str | None = None, dimensions: List[_models.Dimension] | None = None, aggregation_type: str | None = None, fill_gap_with_zero: bool | None = None, category: str | None = None, resource_id_dimension_name_override: str | None = None, **kwargs: Any)[source]
Bases:
ModelMetric specification of operation.
- Variables:
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.
- Keyword Arguments:
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_06_01.models.MinimumTlsVersion(*values)[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_06_01.models.Name(*values)[source]
-
Name of the policy. The valid value is AccessTimeTracking. This field is currently read only.
- ACCESS_TIME_TRACKING = 'AccessTimeTracking'
- class azure.mgmt.storage.v2019_06_01.models.NetworkRuleSet(*, default_action: str | _models.DefaultAction = 'Allow', bypass: str | _models.Bypass = 'AzureServices', virtual_network_rules: List[_models.VirtualNetworkRule] | None = None, ip_rules: List[_models.IPRule] | None = None, **kwargs: Any)[source]
Bases:
ModelNetwork rule set.
All required parameters must be populated in order to send to server.
- Variables:
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. Known values are: “None”, “Logging”, “Metrics”, and “AzureServices”.
virtual_network_rules (list[VirtualNetworkRule]) – Sets the virtual network rules.
default_action (str or DefaultAction) – Specifies the default action of allow or deny when no other rules match. Known values are: “Allow” and “Deny”.
- Keyword Arguments:
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. Known values are: “None”, “Logging”, “Metrics”, and “AzureServices”.
virtual_network_rules (list[VirtualNetworkRule]) – Sets the virtual network rules.
default_action (str or DefaultAction) – Specifies the default action of allow or deny when no other rules match. Known values are: “Allow” and “Deny”.
- class azure.mgmt.storage.v2019_06_01.models.ObjectReplicationPolicies(*, value: List[_models.ObjectReplicationPolicy] | None = None, **kwargs: Any)[source]
Bases:
ModelList storage account object replication policies.
- Variables:
value (list[ObjectReplicationPolicy]) – The replication policy between two storage accounts.
- Keyword Arguments:
value (list[ObjectReplicationPolicy]) – The replication policy between two storage accounts.
- class azure.mgmt.storage.v2019_06_01.models.ObjectReplicationPolicy(*, source_account: str | None = None, destination_account: str | None = None, rules: List[_models.ObjectReplicationPolicyRule] | None = None, **kwargs: Any)[source]
Bases:
ResourceThe replication policy between two storage accounts. Multiple rules can be defined in one policy.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
policy_id (str) – A unique id for object replication policy.
enabled_time (datetime) – Indicates when the policy is enabled on the source account.
source_account (str) – Required. Source account name.
destination_account (str) – Required. Destination account name.
rules (list[ObjectReplicationPolicyRule]) – The storage account object replication rules.
- Keyword Arguments:
source_account (str) – Required. Source account name.
destination_account (str) – Required. Destination account name.
rules (list[ObjectReplicationPolicyRule]) – The storage account object replication rules.
- class azure.mgmt.storage.v2019_06_01.models.ObjectReplicationPolicyFilter(*, prefix_match: List[str] | None = None, min_creation_time: str | None = None, **kwargs: Any)[source]
Bases:
ModelFilters limit replication to a subset of blobs within the storage account. A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed on all filters.
- Variables:
prefix_match (list[str]) – Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
min_creation_time (str) – Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z.
- Keyword Arguments:
prefix_match (list[str]) – Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
min_creation_time (str) – Blobs created after the time will be replicated to the destination. It must be in datetime format ‘yyyy-MM-ddTHH:mm:ssZ’. Example: 2020-02-19T16:05:00Z.
- class azure.mgmt.storage.v2019_06_01.models.ObjectReplicationPolicyRule(*, source_container: str, destination_container: str, rule_id: str | None = None, filters: _models.ObjectReplicationPolicyFilter | None = None, **kwargs: Any)[source]
Bases:
ModelThe replication policy rule between two containers.
All required parameters must be populated in order to send to server.
- Variables:
rule_id (str) – Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
source_container (str) – Required. Source container name. Required.
destination_container (str) – Required. Destination container name. Required.
filters (ObjectReplicationPolicyFilter) – Optional. An object that defines the filter set.
- Keyword Arguments:
rule_id (str) – Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
source_container (str) – Required. Source container name. Required.
destination_container (str) – Required. Destination container name. Required.
filters (ObjectReplicationPolicyFilter) – Optional. An object that defines the filter set.
- class azure.mgmt.storage.v2019_06_01.models.Operation(*, name: str | None = None, display: _models.OperationDisplay | None = None, origin: str | None = None, service_specification: _models.ServiceSpecification | None = None, **kwargs: Any)[source]
Bases:
ModelStorage REST API operation definition.
- Variables:
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.
- Keyword Arguments:
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_06_01.models.OperationDisplay(*, provider: str | None = None, resource: str | None = None, operation: str | None = None, description: str | None = None, **kwargs: Any)[source]
Bases:
ModelDisplay metadata associated with the operation.
- Variables:
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.OperationListResult(*, value: List[_models.Operation] | None = None, **kwargs: Any)[source]
Bases:
ModelResult 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_06_01.models.Permissions(*values)[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_06_01.models.PrivateEndpoint(**kwargs: Any)[source]
Bases:
ModelThe Private Endpoint resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
id (str) – The ARM identifier for Private Endpoint.
- class azure.mgmt.storage.v2019_06_01.models.PrivateEndpointConnection(*, private_endpoint: _models.PrivateEndpoint | None = None, private_link_service_connection_state: _models.PrivateLinkServiceConnectionState | None = None, **kwargs: Any)[source]
Bases:
ResourceThe Private Endpoint Connection 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
private_endpoint (PrivateEndpoint) – The resource of private end point.
private_link_service_connection_state (PrivateLinkServiceConnectionState) – A collection of information about the state of the connection between service consumer and provider.
provisioning_state (str or PrivateEndpointConnectionProvisioningState) – The provisioning state of the private endpoint connection resource. Known values are: “Succeeded”, “Creating”, “Deleting”, and “Failed”.
- Keyword Arguments:
private_endpoint (PrivateEndpoint) – The resource of private end point.
private_link_service_connection_state (PrivateLinkServiceConnectionState) – A collection of information about the state of the connection between service consumer and provider.
- class azure.mgmt.storage.v2019_06_01.models.PrivateEndpointConnectionListResult(*, value: List[_models.PrivateEndpointConnection] | None = None, **kwargs: Any)[source]
Bases:
ModelList of private endpoint connection associated with the specified storage account.
- Variables:
value (list[PrivateEndpointConnection]) – Array of private endpoint connections.
- Keyword Arguments:
value (list[PrivateEndpointConnection]) – Array of private endpoint connections.
- class azure.mgmt.storage.v2019_06_01.models.PrivateEndpointConnectionProvisioningState(*values)[source]
-
The current provisioning state.
- CREATING = 'Creating'
- DELETING = 'Deleting'
- FAILED = 'Failed'
- SUCCEEDED = 'Succeeded'
- class azure.mgmt.storage.v2019_06_01.models.PrivateEndpointServiceConnectionStatus(*values)[source]
-
The private endpoint connection status.
- APPROVED = 'Approved'
- PENDING = 'Pending'
- REJECTED = 'Rejected'
- class azure.mgmt.storage.v2019_06_01.models.PrivateLinkResource(*, required_zone_names: List[str] | None = None, **kwargs: Any)[source]
Bases:
ResourceA private link 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
group_id (str) – The private link resource group id.
required_members (list[str]) – The private link resource required member names.
required_zone_names (list[str]) – The private link resource Private link DNS zone name.
- Keyword Arguments:
required_zone_names (list[str]) – The private link resource Private link DNS zone name.
- class azure.mgmt.storage.v2019_06_01.models.PrivateLinkResourceListResult(*, value: List[_models.PrivateLinkResource] | None = None, **kwargs: Any)[source]
Bases:
ModelA list of private link resources.
- Variables:
value (list[PrivateLinkResource]) – Array of private link resources.
- Keyword Arguments:
value (list[PrivateLinkResource]) – Array of private link resources.
- class azure.mgmt.storage.v2019_06_01.models.PrivateLinkServiceConnectionState(*, status: str | _models.PrivateEndpointServiceConnectionStatus | None = None, description: str | None = None, action_required: str | None = None, **kwargs: Any)[source]
Bases:
ModelA collection of information about the state of the connection between service consumer and provider.
- Variables:
status (str or PrivateEndpointServiceConnectionStatus) – Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: “Pending”, “Approved”, and “Rejected”.
description (str) – The reason for approval/rejection of the connection.
action_required (str) – A message indicating if changes on the service provider require any updates on the consumer.
- Keyword Arguments:
status (str or PrivateEndpointServiceConnectionStatus) – Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: “Pending”, “Approved”, and “Rejected”.
description (str) – The reason for approval/rejection of the connection.
action_required (str) – A message indicating if changes on the service provider require any updates on the consumer.
- class azure.mgmt.storage.v2019_06_01.models.ProvisioningState(*values)[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_06_01.models.PublicAccess(*values)[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_06_01.models.QueueServiceProperties(*, cors: _models.CorsRules | None = None, **kwargs: Any)[source]
Bases:
ResourceThe properties of a storage account’s Queue 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
cors (CorsRules) – Specifies CORS rules for the Queue 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 Queue service.
- Keyword Arguments:
cors (CorsRules) – Specifies CORS rules for the Queue 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 Queue service.
- class azure.mgmt.storage.v2019_06_01.models.Reason(*values)[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_06_01.models.ReasonCode(*values)[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_06_01.models.Resource(**kwargs: Any)[source]
Bases:
ModelCommon fields that are returned in the response for all Azure Resource Manager resources.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
- class azure.mgmt.storage.v2019_06_01.models.RestorePolicyProperties(*, enabled: bool, days: int | None = None, **kwargs: Any)[source]
Bases:
ModelThe blob service properties for blob restore policy.
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 server.
- Variables:
enabled (bool) – Blob restore is enabled if set to true. Required.
days (int) – how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
last_enabled_time (datetime) – Deprecated in favor of minRestoreTime property.
min_restore_time (datetime) – Returns the minimum date and time that the restore can be started.
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.Restriction(*, reason_code: str | _models.ReasonCode | None = None, **kwargs: Any)[source]
Bases:
ModelThe restriction because of which SKU cannot be used.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
type (str) – The type of restrictions. As of now only possible value for this is location.
values (list[str]) – The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
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. Known values are: “QuotaId” and “NotAvailableForSubscription”.
- Keyword Arguments:
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. Known values are: “QuotaId” and “NotAvailableForSubscription”.
- class azure.mgmt.storage.v2019_06_01.models.RootSquashType(*values)[source]
-
The property is for NFS share only. The default is NoRootSquash.
- ALL_SQUASH = 'AllSquash'
- NO_ROOT_SQUASH = 'NoRootSquash'
- ROOT_SQUASH = 'RootSquash'
- class azure.mgmt.storage.v2019_06_01.models.RoutingChoice(*values)[source]
-
Routing Choice defines the kind of network routing opted by the user.
- INTERNET_ROUTING = 'InternetRouting'
- MICROSOFT_ROUTING = 'MicrosoftRouting'
- class azure.mgmt.storage.v2019_06_01.models.RoutingPreference(*, routing_choice: str | _models.RoutingChoice | None = None, publish_microsoft_endpoints: bool | None = None, publish_internet_endpoints: bool | None = None, **kwargs: Any)[source]
Bases:
ModelRouting preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing.
- Variables:
routing_choice (str or RoutingChoice) – Routing Choice defines the kind of network routing opted by the user. Known values are: “MicrosoftRouting” and “InternetRouting”.
publish_microsoft_endpoints (bool) – A boolean flag which indicates whether microsoft routing storage endpoints are to be published.
publish_internet_endpoints (bool) – A boolean flag which indicates whether internet routing storage endpoints are to be published.
- Keyword Arguments:
routing_choice (str or RoutingChoice) – Routing Choice defines the kind of network routing opted by the user. Known values are: “MicrosoftRouting” and “InternetRouting”.
publish_microsoft_endpoints (bool) – A boolean flag which indicates whether microsoft routing storage endpoints are to be published.
publish_internet_endpoints (bool) – A boolean flag which indicates whether internet routing storage endpoints are to be published.
- class azure.mgmt.storage.v2019_06_01.models.RuleType(*values)[source]
-
The valid value is Lifecycle.
- LIFECYCLE = 'Lifecycle'
- class azure.mgmt.storage.v2019_06_01.models.SKUCapability(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.ServiceSasParameters(*, canonicalized_resource: str, resource: str | _models.SignedResource | None = None, permissions: str | _models.Permissions | None = None, ip_address_or_range: str | None = None, protocols: str | _models.HttpProtocol | None = None, shared_access_start_time: datetime | None = None, shared_access_expiry_time: datetime | None = None, identifier: str | None = None, partition_key_start: str | None = None, partition_key_end: str | None = None, row_key_start: str | None = None, row_key_end: str | None = None, key_to_sign: str | None = None, cache_control: str | None = None, content_disposition: str | None = None, content_encoding: str | None = None, content_language: str | None = None, content_type: str | None = None, **kwargs: Any)[source]
Bases:
ModelThe parameters to list service SAS credentials of a specific resource.
All required parameters must be populated in order to send to server.
- Variables:
canonicalized_resource (str) – The canonical path to the signed resource. Required.
resource (str or SignedResource) – The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Known values are: “b”, “c”, “f”, and “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). Known values are: “r”, “d”, “w”, “l”, “a”, “c”, “u”, and “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. Known values are: “https,http” and “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.
- Keyword Arguments:
canonicalized_resource (str) – The canonical path to the signed resource. Required.
resource (str or SignedResource) – The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Known values are: “b”, “c”, “f”, and “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). Known values are: “r”, “d”, “w”, “l”, “a”, “c”, “u”, and “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. Known values are: “https,http” and “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_06_01.models.ServiceSpecification(*, metric_specifications: List[_models.MetricSpecification] | None = None, **kwargs: Any)[source]
Bases:
ModelOne property of operation, include metric specifications.
- Variables:
metric_specifications (list[MetricSpecification]) – Metric specifications of operation.
- Keyword Arguments:
metric_specifications (list[MetricSpecification]) – Metric specifications of operation.
- class azure.mgmt.storage.v2019_06_01.models.Services(*values)[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'
-
Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
- class azure.mgmt.storage.v2019_06_01.models.SignedResource(*values)[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_06_01.models.SignedResourceTypes(*values)[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_06_01.models.Sku(*, name: str | _models.SkuName, **kwargs: Any)[source]
Bases:
ModelThe 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 server.
- Variables:
name (str or SkuName) – 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”, “Premium_LRS”, “Premium_ZRS”, “Standard_GZRS”, and “Standard_RAGZRS”.
tier (str or SkuTier) – The SKU tier. This is based on the SKU name. Known values are: “Standard” and “Premium”.
- Keyword Arguments:
name (str or SkuName) – 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”, “Premium_LRS”, “Premium_ZRS”, “Standard_GZRS”, and “Standard_RAGZRS”.
- class azure.mgmt.storage.v2019_06_01.models.SkuInformation(*, name: str | _models.SkuName, restrictions: List[_models.Restriction] | None = None, **kwargs: Any)[source]
Bases:
ModelStorage SKU and its properties.
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 server.
- Variables:
name (str or SkuName) – 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”, “Premium_LRS”, “Premium_ZRS”, “Standard_GZRS”, and “Standard_RAGZRS”.
tier (str or SkuTier) – The SKU tier. This is based on the SKU name. Known values are: “Standard” and “Premium”.
resource_type (str) – The type of the resource, usually it is ‘storageAccounts’.
kind (str or Kind) – Indicates the type of storage account. Known values are: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, and “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.
restrictions (list[Restriction]) – The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
- Keyword Arguments:
name (str or SkuName) – 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”, “Premium_LRS”, “Premium_ZRS”, “Standard_GZRS”, and “Standard_RAGZRS”.
restrictions (list[Restriction]) – The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
- class azure.mgmt.storage.v2019_06_01.models.SkuName(*values)[source]
-
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_06_01.models.SkuTier(*values)[source]
-
The SKU tier. This is based on the SKU name.
- PREMIUM = 'Premium'
- STANDARD = 'Standard'
- class azure.mgmt.storage.v2019_06_01.models.State(*values)[source]
-
Gets the state of virtual network rule.
- DEPROVISIONING = 'deprovisioning'
- FAILED = 'failed'
- NETWORK_SOURCE_DELETED = 'networkSourceDeleted'
- PROVISIONING = 'provisioning'
- SUCCEEDED = 'succeeded'
- class azure.mgmt.storage.v2019_06_01.models.StorageAccount(*, location: str, tags: Dict[str, str] | None = None, identity: _models.Identity | None = None, azure_files_identity_based_authentication: _models.AzureFilesIdentityBasedAuthentication | None = None, enable_https_traffic_only: bool | None = None, is_hns_enabled: bool | None = None, large_file_shares_state: str | _models.LargeFileSharesState | None = None, routing_preference: _models.RoutingPreference | None = None, allow_blob_public_access: bool | None = None, minimum_tls_version: str | _models.MinimumTlsVersion | None = None, allow_shared_key_access: bool | None = None, **kwargs: Any)[source]
Bases:
TrackedResourceThe 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 server.
- Variables:
id (str) – Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
location (str) – The geo-location where the resource lives. Required.
sku (Sku) – Gets the SKU.
kind (str or Kind) – Gets the Kind. Known values are: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, and “BlockBlobStorage”.
identity (Identity) – The identity of the resource.
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”.
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.
is_hns_enabled (bool) – Account HierarchicalNamespace enabled if sets to true.
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.
large_file_shares_state (str or LargeFileSharesState) – Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: “Disabled” and “Enabled”.
private_endpoint_connections (list[PrivateEndpointConnection]) – List of private endpoint connection associated with the specified storage account.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
blob_restore_status (BlobRestoreStatus) – Blob restore status.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- Keyword Arguments:
location (str) – The geo-location where the resource lives. Required.
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. Known values are: “Disabled” and “Enabled”.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountCheckNameAvailabilityParameters(*, name: str, **kwargs: Any)[source]
Bases:
ModelThe 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 server.
- Variables:
- Keyword Arguments:
name (str) – The storage account name. Required.
- type = 'Microsoft.Storage/storageAccounts'
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountCreateParameters(*, sku: _models.Sku, kind: str | _models.Kind, location: str, tags: Dict[str, str] | None = None, identity: _models.Identity | None = None, custom_domain: _models.CustomDomain | None = None, encryption: _models.Encryption | None = None, network_rule_set: _models.NetworkRuleSet | None = None, access_tier: str | _models.AccessTier | None = None, azure_files_identity_based_authentication: _models.AzureFilesIdentityBasedAuthentication | None = None, enable_https_traffic_only: bool | None = None, is_hns_enabled: bool | None = None, large_file_shares_state: str | _models.LargeFileSharesState | None = None, routing_preference: _models.RoutingPreference | None = None, allow_blob_public_access: bool | None = None, minimum_tls_version: str | _models.MinimumTlsVersion | None = None, allow_shared_key_access: bool | None = None, **kwargs: Any)[source]
Bases:
ModelThe parameters used when creating a storage account.
All required parameters must be populated in order to send to server.
- 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”, “StorageV2”, “BlobStorage”, “FileStorage”, and “BlockBlobStorage”.
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.
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. Known values are: “Hot” and “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. Known values are: “Disabled” and “Enabled”.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- 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”, “StorageV2”, “BlobStorage”, “FileStorage”, and “BlockBlobStorage”.
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.
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. Known values are: “Hot” and “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. Known values are: “Disabled” and “Enabled”.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountExpand(*values)[source]
-
StorageAccountExpand.
- BLOB_RESTORE_STATUS = 'blobRestoreStatus'
- GEO_REPLICATION_STATS = 'geoReplicationStats'
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountInternetEndpoints(**kwargs: Any)[source]
Bases:
ModelThe URIs that are used to perform a retrieval of a public blob, file, web or dfs object via a internet routing endpoint.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountKey(**kwargs: Any)[source]
Bases:
ModelAn 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.v2019_06_01.models.StorageAccountListKeysResult(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.StorageAccountListResult(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.StorageAccountMicrosoftEndpoints(**kwargs: Any)[source]
Bases:
ModelThe URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object via a microsoft routing endpoint.
Variables are only populated by the server, and will be ignored when sending a request.
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountRegenerateKeyParameters(*, key_name: str, **kwargs: Any)[source]
Bases:
ModelThe parameters used to regenerate the storage account key.
All required parameters must be populated in order to send to server.
- class azure.mgmt.storage.v2019_06_01.models.StorageAccountUpdateParameters(*, sku: _models.Sku | None = None, tags: Dict[str, str] | None = None, identity: _models.Identity | None = None, kind: str | _models.Kind | None = None, custom_domain: _models.CustomDomain | None = None, encryption: _models.Encryption | None = None, access_tier: str | _models.AccessTier | None = None, azure_files_identity_based_authentication: _models.AzureFilesIdentityBasedAuthentication | None = None, enable_https_traffic_only: bool | None = None, network_rule_set: _models.NetworkRuleSet | None = None, large_file_shares_state: str | _models.LargeFileSharesState | None = None, routing_preference: _models.RoutingPreference | None = None, allow_blob_public_access: bool | None = None, minimum_tls_version: str | _models.MinimumTlsVersion | None = None, allow_shared_key_access: bool | None = None, **kwargs: Any)[source]
Bases:
ModelThe 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, Premium_LRS or Premium_ZRS, 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.
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. Known values are: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, and “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. Known values are: “Hot” and “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. Known values are: “Disabled” and “Enabled”.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- Keyword Arguments:
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]) – 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. Known values are: “Storage”, “StorageV2”, “BlobStorage”, “FileStorage”, and “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. Known values are: “Hot” and “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. Known values are: “Disabled” and “Enabled”.
routing_preference (RoutingPreference) – Maintains information about the network routing choice opted by the user for data transfer.
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. Known values are: “TLS1_0”, “TLS1_1”, and “TLS1_2”.
allow_shared_key_access (bool) – Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
- class azure.mgmt.storage.v2019_06_01.models.StorageQueue(*, metadata: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
ResourceStorageQueue.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
metadata (dict[str, str]) – A name-value pair that represents queue metadata.
approximate_message_count (int) – Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
- Keyword Arguments:
metadata (dict[str, str]) – A name-value pair that represents queue metadata.
- class azure.mgmt.storage.v2019_06_01.models.StorageSkuListResult(**kwargs: Any)[source]
Bases:
ModelThe response from the List Storage SKUs operation.
Variables are only populated by the server, and will be ignored when sending a request.
- Variables:
value (list[SkuInformation]) – Get the list result of storage SKUs and their properties.
- class azure.mgmt.storage.v2019_06_01.models.SystemData(*, created_by: str | None = None, created_by_type: str | _models.CreatedByType | None = None, created_at: datetime | None = None, last_modified_by: str | None = None, last_modified_by_type: str | _models.CreatedByType | None = None, last_modified_at: datetime | None = None, **kwargs: Any)[source]
Bases:
ModelMetadata pertaining to creation and last modification of the resource.
- Variables:
created_by (str) – The identity that created the resource.
created_by_type (str or CreatedByType) – The type of identity that created the resource. Known values are: “User”, “Application”, “ManagedIdentity”, and “Key”.
created_at (datetime) – The timestamp of resource creation (UTC).
last_modified_by (str) – The identity that last modified the resource.
last_modified_by_type (str or CreatedByType) – The type of identity that last modified the resource. Known values are: “User”, “Application”, “ManagedIdentity”, and “Key”.
last_modified_at (datetime) – The timestamp of resource last modification (UTC).
- Keyword Arguments:
created_by (str) – The identity that created the resource.
created_by_type (str or CreatedByType) – The type of identity that created the resource. Known values are: “User”, “Application”, “ManagedIdentity”, and “Key”.
created_at (datetime) – The timestamp of resource creation (UTC).
last_modified_by (str) – The identity that last modified the resource.
last_modified_by_type (str or CreatedByType) – The type of identity that last modified the resource. Known values are: “User”, “Application”, “ManagedIdentity”, and “Key”.
last_modified_at (datetime) – The timestamp of resource last modification (UTC).
- class azure.mgmt.storage.v2019_06_01.models.Table(**kwargs: Any)[source]
Bases:
ResourceProperties of the table, including Id, resource name, resource type.
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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
table_name (str) – Table name under the specified account.
- class azure.mgmt.storage.v2019_06_01.models.TableServiceProperties(*, cors: _models.CorsRules | None = None, **kwargs: Any)[source]
Bases:
ResourceThe properties of a storage account’s Table 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}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
cors (CorsRules) – Specifies CORS rules for the Table 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 Table service.
- Keyword Arguments:
cors (CorsRules) – Specifies CORS rules for the Table 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 Table service.
- class azure.mgmt.storage.v2019_06_01.models.TagFilter(*, name: str, op: str, value: str, **kwargs: Any)[source]
Bases:
ModelBlob index tag based filtering for blob objects.
All required parameters must be populated in order to send to server.
- Variables:
name (str) – This is the filter tag name, it can have 1 - 128 characters. Required.
op (str) – This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported. Required.
value (str) – This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. Required.
- Keyword Arguments:
name (str) – This is the filter tag name, it can have 1 - 128 characters. Required.
op (str) – This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported. Required.
value (str) – This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. Required.
- class azure.mgmt.storage.v2019_06_01.models.TagProperty(**kwargs: Any)[source]
Bases:
ModelA 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_06_01.models.TrackedResource(*, location: str, tags: Dict[str, str] | None = None, **kwargs: Any)[source]
Bases:
ResourceThe resource model definition for an Azure Resource Manager tracked top level resource which has ‘tags’ and a ‘location’.
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 server.
- Variables:
id (str) – Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
name (str) – The name of the resource.
type (str) – The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”.
location (str) – The geo-location where the resource lives. Required.
- Keyword Arguments:
- class azure.mgmt.storage.v2019_06_01.models.UpdateHistoryProperty(**kwargs: Any)[source]
Bases:
ModelAn 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. Known values are: “put”, “lock”, and “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_06_01.models.Usage(**kwargs: Any)[source]
Bases:
ModelDescribes 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.v2019_06_01.models.UsageListResult(*, value: List[_models.Usage] | None = None, **kwargs: Any)[source]
Bases:
ModelThe response from the List Usages operation.
- class azure.mgmt.storage.v2019_06_01.models.UsageName(**kwargs: Any)[source]
Bases:
ModelThe 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_06_01.models.UsageUnit(*values)[source]
-
Gets the unit of measurement.
- BYTES = 'Bytes'
- BYTES_PER_SECOND = 'BytesPerSecond'
- COUNT = 'Count'
- COUNTS_PER_SECOND = 'CountsPerSecond'
- PERCENT = 'Percent'
- SECONDS = 'Seconds'
- class azure.mgmt.storage.v2019_06_01.models.VirtualNetworkRule(*, virtual_network_resource_id: str, action: Literal['Allow'] | None = None, state: str | _models.State | None = None, **kwargs: Any)[source]
Bases:
ModelVirtual Network rule.
All required parameters must be populated in order to send to server.
- Variables:
virtual_network_resource_id (str) – Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long Required.
action (str) – The action of virtual network rule. Default value is “Allow”.
state (str or State) – Gets the state of virtual network rule. Known values are: “provisioning”, “deprovisioning”, “succeeded”, “failed”, and “networkSourceDeleted”.
- Keyword Arguments:
virtual_network_resource_id (str) – Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long Required.
action (str) – The action of virtual network rule. Default value is “Allow”.
state (str or State) – Gets the state of virtual network rule. Known values are: “provisioning”, “deprovisioning”, “succeeded”, “failed”, and “networkSourceDeleted”.