BlobInventoryPolicyFilter Class

An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType all filter properties are applicable, 'blobTypes' is required and others are optional. For 'Container' definition.objectType only prefixMatch is applicable and is optional.

Inheritance
BlobInventoryPolicyFilter

Constructor

BlobInventoryPolicyFilter(*, prefix_match: Optional[List[str]] = None, blob_types: Optional[List[str]] = None, include_blob_versions: Optional[bool] = None, include_snapshots: Optional[bool] = None, **kwargs)

Variables

prefix_match
list[str]

An array of strings for blob prefixes to be matched.

blob_types
list[str]

An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.

include_blob_versions
bool

Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.

include_snapshots
bool

Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.