共用方式為


ArmStorageModelFactory.FileShareData Method

Definition

Initializes a new instance of FileShareData.

public static Azure.ResourceManager.Storage.FileShareData FileShareData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, DateTimeOffset? lastModifiedOn = default, System.Collections.Generic.IDictionary<string,string> metadata = default, int? shareQuota = default, Azure.ResourceManager.Storage.Models.FileShareEnabledProtocol? enabledProtocol = default, Azure.ResourceManager.Storage.Models.RootSquashType? rootSquash = default, string version = default, bool? isDeleted = default, DateTimeOffset? deletedOn = default, int? remainingRetentionDays = default, Azure.ResourceManager.Storage.Models.FileShareAccessTier? accessTier = default, DateTimeOffset? accessTierChangeOn = default, string accessTierStatus = default, long? shareUsageBytes = default, Azure.ResourceManager.Storage.Models.StorageLeaseStatus? leaseStatus = default, Azure.ResourceManager.Storage.Models.StorageLeaseState? leaseState = default, Azure.ResourceManager.Storage.Models.StorageLeaseDurationType? leaseDuration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.Models.StorageSignedIdentifier> signedIdentifiers = default, DateTimeOffset? snapshotOn = default, Azure.ETag? etag = default);
static member FileShareData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<DateTimeOffset> * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<Azure.ResourceManager.Storage.Models.FileShareEnabledProtocol> * Nullable<Azure.ResourceManager.Storage.Models.RootSquashType> * string * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<int> * Nullable<Azure.ResourceManager.Storage.Models.FileShareAccessTier> * Nullable<DateTimeOffset> * string * Nullable<int64> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseStatus> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseState> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseDurationType> * seq<Azure.ResourceManager.Storage.Models.StorageSignedIdentifier> * Nullable<DateTimeOffset> * Nullable<Azure.ETag> -> Azure.ResourceManager.Storage.FileShareData
Public Shared Function FileShareData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing, Optional shareQuota As Nullable(Of Integer) = Nothing, Optional enabledProtocol As Nullable(Of FileShareEnabledProtocol) = Nothing, Optional rootSquash As Nullable(Of RootSquashType) = Nothing, Optional version As String = Nothing, Optional isDeleted As Nullable(Of Boolean) = Nothing, Optional deletedOn As Nullable(Of DateTimeOffset) = Nothing, Optional remainingRetentionDays As Nullable(Of Integer) = Nothing, Optional accessTier As Nullable(Of FileShareAccessTier) = Nothing, Optional accessTierChangeOn As Nullable(Of DateTimeOffset) = Nothing, Optional accessTierStatus As String = Nothing, Optional shareUsageBytes As Nullable(Of Long) = Nothing, Optional leaseStatus As Nullable(Of StorageLeaseStatus) = Nothing, Optional leaseState As Nullable(Of StorageLeaseState) = Nothing, Optional leaseDuration As Nullable(Of StorageLeaseDurationType) = Nothing, Optional signedIdentifiers As IEnumerable(Of StorageSignedIdentifier) = Nothing, Optional snapshotOn As Nullable(Of DateTimeOffset) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As FileShareData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

lastModifiedOn
Nullable<DateTimeOffset>

Returns the date and time the share was last modified.

metadata
IDictionary<String,String>

A name-value pair to associate with the share as metadata.

shareQuota
Nullable<Int32>

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.

enabledProtocol
Nullable<FileShareEnabledProtocol>

The authentication protocol that is used for the file share. Can only be specified when creating a share.

rootSquash
Nullable<RootSquashType>

The property is for NFS share only. The default is NoRootSquash.

version
String

The version of the share.

isDeleted
Nullable<Boolean>

Indicates whether the share was deleted.

deletedOn
Nullable<DateTimeOffset>

The deleted time if the share was deleted.

remainingRetentionDays
Nullable<Int32>

Remaining retention days for share that was soft deleted.

accessTier
Nullable<FileShareAccessTier>

Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.

accessTierChangeOn
Nullable<DateTimeOffset>

Indicates the last modification time for share access tier.

accessTierStatus
String

Indicates if there is a pending transition for access tier.

shareUsageBytes
Nullable<Int64>

The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.

leaseStatus
Nullable<StorageLeaseStatus>

The lease status of the share.

leaseState
Nullable<StorageLeaseState>

Lease state of the share.

leaseDuration
Nullable<StorageLeaseDurationType>

Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.

signedIdentifiers
IEnumerable<StorageSignedIdentifier>

List of stored access policies specified on the share.

snapshotOn
Nullable<DateTimeOffset>

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

etag
Nullable<ETag>

Resource Etag.

Returns

A new FileShareData instance for mocking.

Applies to