ArmStorageModelFactory.BlobInventoryPolicySchema Method

Definition

Initializes a new instance of 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

Parameters

isEnabled
Boolean

Policy is enabled if set to true.

destination
String

Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'.

ruleType
BlobInventoryRuleType

The valid value is Inventory.

rules
IEnumerable<BlobInventoryPolicyRule>

The storage account blob inventory policy rules. The rule is applied when it is enabled.

Returns

A new BlobInventoryPolicySchema instance for mocking.

Applies to