Share via


ArmStorageModelFactory.BlobServiceData Method

Definition

Initializes a new instance of BlobServiceData.

public static Azure.ResourceManager.Storage.BlobServiceData BlobServiceData (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, string defaultServiceVersion = default, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy deleteRetentionPolicy = default, bool? isVersioningEnabled = default, bool? isAutomaticSnapshotPolicyEnabled = default, Azure.ResourceManager.Storage.Models.BlobServiceChangeFeed changeFeed = default, Azure.ResourceManager.Storage.Models.RestorePolicy restorePolicy = default, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy containerDeleteRetentionPolicy = default, Azure.ResourceManager.Storage.Models.LastAccessTimeTrackingPolicy lastAccessTimeTrackingPolicy = default);
static member BlobServiceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Azure.ResourceManager.Storage.Models.StorageSku * seq<Azure.ResourceManager.Storage.Models.StorageCorsRule> * string * Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.BlobServiceChangeFeed * Azure.ResourceManager.Storage.Models.RestorePolicy * Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy * Azure.ResourceManager.Storage.Models.LastAccessTimeTrackingPolicy -> Azure.ResourceManager.Storage.BlobServiceData
Public Shared Function BlobServiceData (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 defaultServiceVersion As String = Nothing, Optional deleteRetentionPolicy As DeleteRetentionPolicy = Nothing, Optional isVersioningEnabled As Nullable(Of Boolean) = Nothing, Optional isAutomaticSnapshotPolicyEnabled As Nullable(Of Boolean) = Nothing, Optional changeFeed As BlobServiceChangeFeed = Nothing, Optional restorePolicy As RestorePolicy = Nothing, Optional containerDeleteRetentionPolicy As DeleteRetentionPolicy = Nothing, Optional lastAccessTimeTrackingPolicy As LastAccessTimeTrackingPolicy = Nothing) As BlobServiceData

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

defaultServiceVersion
String

DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.

deleteRetentionPolicy
DeleteRetentionPolicy

The blob service properties for blob soft delete.

isVersioningEnabled
Nullable<Boolean>

Versioning is enabled if set to true.

isAutomaticSnapshotPolicyEnabled
Nullable<Boolean>

Deprecated in favor of isVersioningEnabled property.

changeFeed
BlobServiceChangeFeed

The blob service properties for change feed events.

restorePolicy
RestorePolicy

The blob service properties for blob restore policy.

containerDeleteRetentionPolicy
DeleteRetentionPolicy

The blob service properties for container soft delete.

lastAccessTimeTrackingPolicy
LastAccessTimeTrackingPolicy

The blob service property to configure last access time based tracking policy.

Returns

A new BlobServiceData instance for mocking.

Applies to