BlobInventoryPoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

StorageManagementClient's

<xref:blob_inventory_policies> attribute.

Inheritance
builtins.object
BlobInventoryPoliciesOperations

Constructor

BlobInventoryPoliciesOperations(*args, **kwargs)

Methods

create_or_update

Sets the blob inventory policy to the specified storage account.

delete

Deletes the blob inventory policy associated with the specified storage account.

get

Gets the blob inventory policy associated with the specified storage account.

list

Gets the blob inventory policy associated with the specified storage account.

create_or_update

Sets the blob inventory policy to the specified storage account.

create_or_update(resource_group_name: str, account_name: str, blob_inventory_policy_name: str | _models.BlobInventoryPolicyName, properties: _models.BlobInventoryPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BlobInventoryPolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the user's subscription. The name is case insensitive. Required.

account_name
Required
str

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required.

blob_inventory_policy_name
Required

The name of the storage account blob inventory policy. It should always be 'default'. "default" Required.

properties
Required

The blob inventory policy set to a storage account. Is either a BlobInventoryPolicy type or a IO[bytes] type. Required.

Returns

Type Description

BlobInventoryPolicy or the result of cls(response)

Exceptions

Type Description

delete

Deletes the blob inventory policy associated with the specified storage account.

delete(resource_group_name: str, account_name: str, blob_inventory_policy_name: str | BlobInventoryPolicyName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the user's subscription. The name is case insensitive. Required.

account_name
Required
str

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required.

blob_inventory_policy_name
Required

The name of the storage account blob inventory policy. It should always be 'default'. "default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the blob inventory policy associated with the specified storage account.

get(resource_group_name: str, account_name: str, blob_inventory_policy_name: str | BlobInventoryPolicyName, **kwargs: Any) -> BlobInventoryPolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the user's subscription. The name is case insensitive. Required.

account_name
Required
str

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required.

blob_inventory_policy_name
Required

The name of the storage account blob inventory policy. It should always be 'default'. "default" Required.

Returns

Type Description

BlobInventoryPolicy or the result of cls(response)

Exceptions

Type Description

list

Gets the blob inventory policy associated with the specified storage account.

list(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[BlobInventoryPolicy]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the user's subscription. The name is case insensitive. Required.

account_name
Required
str

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required.

Returns

Type Description

An iterator like instance of either BlobInventoryPolicy or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.storage.v2019_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\storage\\v2019_06_01\\models\\__init__.py'>