FileShare Class
Properties of the file share, including Id, resource name, resource type, Etag.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.storage.v2022_09_01.models._models_py3.AzureEntityResourceFileShare
Constructor
FileShare(*, metadata: Dict[str, str] | None = None, share_quota: int | None = None, enabled_protocols: str | _models.EnabledProtocols | None = None, root_squash: str | _models.RootSquashType | None = None, access_tier: str | _models.ShareAccessTier | None = None, signed_identifiers: List[_models.SignedIdentifier] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
metadata
|
A name-value pair to associate with the share as metadata. |
share_quota
|
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
|
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
|
The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". |
access_tier
|
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". |
signed_identifiers
|
List of stored access policies specified on the share. |
Variables
Name | Description |
---|---|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name
|
The name of the resource. |
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
etag
|
Resource Etag. |
last_modified_time
|
Returns the date and time the share was last modified. |
metadata
|
A name-value pair to associate with the share as metadata. |
share_quota
|
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
|
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
|
The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". |
version
|
The version of the share. |
deleted
|
Indicates whether the share was deleted. |
deleted_time
|
The deleted time if the share was deleted. |
remaining_retention_days
|
Remaining retention days for share that was soft deleted. |
access_tier
|
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
|
Indicates the last modification time for share access tier. |
access_tier_status
|
Indicates if there is a pending transition for access tier. |
share_usage_bytes
|
The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files. |
lease_status
|
str or
LeaseStatus
The lease status of the share. Known values are: "Locked" and "Unlocked". |
lease_state
|
str or
LeaseState
Lease state of the share. Known values are: "Available", "Leased", "Expired", "Breaking", and "Broken". |
lease_duration
|
str or
LeaseDuration
Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased. Known values are: "Infinite" and "Fixed". |
signed_identifiers
|
List of stored access policies specified on the share. |
snapshot_time
|
Creation time of share snapshot returned in the response of list shares with expand param "snapshots". |
Azure SDK for Python