Freigeben über


ArmStorageModelFactory.BlobInventoryPolicySchema Methode

Definition

Initialisiert eine neue instance von BlobInventoryPolicySchema.

public static Azure.ResourceManager.Storage.Models.BlobInventoryPolicySchema BlobInventoryPolicySchema (bool isEnabled = false, string destination = default, Azure.ResourceManager.Storage.Models.BlobInventoryRuleType ruleType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.Models.BlobInventoryPolicyRule> rules = default);
static member BlobInventoryPolicySchema : bool * string * Azure.ResourceManager.Storage.Models.BlobInventoryRuleType * seq<Azure.ResourceManager.Storage.Models.BlobInventoryPolicyRule> -> Azure.ResourceManager.Storage.Models.BlobInventoryPolicySchema
Public Shared Function BlobInventoryPolicySchema (Optional isEnabled As Boolean = false, Optional destination As String = Nothing, Optional ruleType As BlobInventoryRuleType = Nothing, Optional rules As IEnumerable(Of BlobInventoryPolicyRule) = Nothing) As BlobInventoryPolicySchema

Parameter

isEnabled
Boolean

Die Richtlinie ist aktiviert, wenn sie auf true festgelegt ist.

destination
String

Als veraltete Eigenschaft ab API-Version 2021-04-01 muss der erforderliche Zielcontainername auf der Regelebene "policy.rule.destination" angegeben werden.

ruleType
BlobInventoryRuleType

Der gültige Wert ist Inventory.

rules
IEnumerable<BlobInventoryPolicyRule>

Die Speicherkonto-Blobinventurrichtlinienregeln. Die Regel wird angewendet, wenn sie aktiviert ist.

Gibt zurück

Eine neue BlobInventoryPolicySchema instance zum Mocking.

Gilt für: