Share via


ArmStorageModelFactory.FileServiceData Method

Definition

Initializes a new instance of FileServiceData.

public static Azure.ResourceManager.Storage.FileServiceData FileServiceData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Storage.Models.StorageSku sku = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.Models.StorageCorsRule> corsRules = default, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = default, Azure.ResourceManager.Storage.Models.SmbSetting protocolSmbSetting = default);
static member FileServiceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.Storage.Models.StorageSku * seq<Azure.ResourceManager.Storage.Models.StorageCorsRule> * Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy * Azure.ResourceManager.Storage.Models.SmbSetting -> Azure.ResourceManager.Storage.FileServiceData
Public Shared Function FileServiceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional sku As StorageSku = Nothing, Optional corsRules As IEnumerable(Of StorageCorsRule) = Nothing, Optional shareDeleteRetentionPolicy As DeleteRetentionPolicy = Nothing, Optional protocolSmbSetting As SmbSetting = Nothing) As FileServiceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

sku
StorageSku

Sku name and tier.

corsRules
IEnumerable<StorageCorsRule>

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.

shareDeleteRetentionPolicy
DeleteRetentionPolicy

The file service properties for share soft delete.

protocolSmbSetting
SmbSetting

Protocol settings for file service.

Returns

A new FileServiceData instance for mocking.

Applies to