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.v2019_06_01.models._models_py3.AzureEntityResourceFileShare
Constructor
FileShare(*, metadata: Optional[Dict[str, str]] = None, share_quota: Optional[int] = None, enabled_protocols: Optional[Union[str, azure.mgmt.storage.v2019_06_01.models._storage_management_client_enums.EnabledProtocols]] = None, root_squash: Optional[Union[str, azure.mgmt.storage.v2019_06_01.models._storage_management_client_enums.RootSquashType]] = None, access_tier: Optional[Union[str, azure.mgmt.storage.v2019_06_01.models._storage_management_client_enums.ShareAccessTier]] = None, **kwargs)
Variables
- id
- str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- str
The name of the resource.
- type
- str
The type of the resource. 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.
- 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. Possible values include: "SMB", "NFS".
- root_squash
- str or RootSquashType
The property is for NFS share only. The default is NoRootSquash. Possible values include: "NoRootSquash", "RootSquash", "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. Possible values include: "TransactionOptimized", "Hot", "Cool", "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
- <xref:long>
The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
Feedback
Submit and view feedback for