FileShareItem Class

The file share properties be listed out.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.storage.v2021_01_01.models._models_py3.AzureEntityResource
FileShareItem

Constructor

FileShareItem(*, 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, **kwargs: Any)

Keyword-Only Parameters

Name Description
metadata

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

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".

Variables

Name Description
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

Returns the date and time the share was last modified.

metadata

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

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
str

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
int

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
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.

snapshot_time

Creation time of share snapshot returned in the response of list shares with expand param "snapshots".