Share via


ArmStorageModelFactory.BlobContainerData Method

Definition

Initializes a new instance of BlobContainerData.

public static Azure.ResourceManager.Storage.BlobContainerData BlobContainerData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string version = default, bool? isDeleted = default, DateTimeOffset? deletedOn = default, int? remainingRetentionDays = default, string defaultEncryptionScope = default, bool? preventEncryptionScopeOverride = default, Azure.ResourceManager.Storage.Models.StoragePublicAccessType? publicAccess = default, DateTimeOffset? lastModifiedOn = 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.IDictionary<string,string> metadata = default, Azure.ResourceManager.Storage.Models.BlobContainerImmutabilityPolicy immutabilityPolicy = default, Azure.ResourceManager.Storage.Models.LegalHoldProperties legalHold = default, bool? hasLegalHold = default, bool? hasImmutabilityPolicy = default, Azure.ResourceManager.Storage.Models.ImmutableStorageWithVersioning immutableStorageWithVersioning = default, bool? enableNfsV3RootSquash = default, bool? enableNfsV3AllSquash = default, Azure.ETag? etag = default);
static member BlobContainerData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<int> * string * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.StoragePublicAccessType> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseStatus> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseState> * Nullable<Azure.ResourceManager.Storage.Models.StorageLeaseDurationType> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Storage.Models.BlobContainerImmutabilityPolicy * Azure.ResourceManager.Storage.Models.LegalHoldProperties * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.ImmutableStorageWithVersioning * Nullable<bool> * Nullable<bool> * Nullable<Azure.ETag> -> Azure.ResourceManager.Storage.BlobContainerData
Public Shared Function BlobContainerData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = 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 defaultEncryptionScope As String = Nothing, Optional preventEncryptionScopeOverride As Nullable(Of Boolean) = Nothing, Optional publicAccess As Nullable(Of StoragePublicAccessType) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional leaseStatus As Nullable(Of StorageLeaseStatus) = Nothing, Optional leaseState As Nullable(Of StorageLeaseState) = Nothing, Optional leaseDuration As Nullable(Of StorageLeaseDurationType) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing, Optional immutabilityPolicy As BlobContainerImmutabilityPolicy = Nothing, Optional legalHold As LegalHoldProperties = Nothing, Optional hasLegalHold As Nullable(Of Boolean) = Nothing, Optional hasImmutabilityPolicy As Nullable(Of Boolean) = Nothing, Optional immutableStorageWithVersioning As ImmutableStorageWithVersioning = Nothing, Optional enableNfsV3RootSquash As Nullable(Of Boolean) = Nothing, Optional enableNfsV3AllSquash As Nullable(Of Boolean) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As BlobContainerData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

version
String

The version of the deleted blob container.

isDeleted
Nullable<Boolean>

Indicates whether the blob container was deleted.

deletedOn
Nullable<DateTimeOffset>

Blob container deletion time.

remainingRetentionDays
Nullable<Int32>

Remaining retention days for soft deleted blob container.

defaultEncryptionScope
String

Default the container to use specified encryption scope for all writes.

preventEncryptionScopeOverride
Nullable<Boolean>

Block override of encryption scope from the container default.

publicAccess
Nullable<StoragePublicAccessType>

Specifies whether data in the container may be accessed publicly and the level of access.

lastModifiedOn
Nullable<DateTimeOffset>

Returns the date and time the container was last modified.

leaseStatus
Nullable<StorageLeaseStatus>

The lease status of the container.

leaseState
Nullable<StorageLeaseState>

Lease state of the container.

leaseDuration
Nullable<StorageLeaseDurationType>

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

metadata
IDictionary<String,String>

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

immutabilityPolicy
BlobContainerImmutabilityPolicy

The ImmutabilityPolicy property of the container.

legalHold
LegalHoldProperties

The LegalHold property of the container.

hasLegalHold
Nullable<Boolean>

The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.

hasImmutabilityPolicy
Nullable<Boolean>

The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy public property is set to false by SRP if ImmutabilityPolicy has not been created for this container.

immutableStorageWithVersioning
ImmutableStorageWithVersioning

The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.

enableNfsV3RootSquash
Nullable<Boolean>

Enable NFSv3 root squash on blob container.

enableNfsV3AllSquash
Nullable<Boolean>

Enable NFSv3 all squash on blob container.

etag
Nullable<ETag>

Resource Etag.

Returns

A new BlobContainerData instance for mocking.

Applies to