BlobInventoryPoliciesOperations Class

BlobInventoryPoliciesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
BlobInventoryPoliciesOperations

Constructor

BlobInventoryPoliciesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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, account_name, blob_inventory_policy_name, properties, **kwargs)

Parameters

resource_group_name
str
Required

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

account_name
str
Required

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.

blob_inventory_policy_name
str or BlobInventoryPolicyName
Required

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

properties
BlobInventoryPolicy
Required

The blob inventory policy set to a storage account.

cls
callable

A custom type or function that will be passed the direct response

Returns

BlobInventoryPolicy, or the result of cls(response)

Return type

delete

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

delete(resource_group_name, account_name, blob_inventory_policy_name, **kwargs)

Parameters

resource_group_name
str
Required

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

account_name
str
Required

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.

blob_inventory_policy_name
str or BlobInventoryPolicyName
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

get

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

get(resource_group_name, account_name, blob_inventory_policy_name, **kwargs)

Parameters

resource_group_name
str
Required

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

account_name
str
Required

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.

blob_inventory_policy_name
str or BlobInventoryPolicyName
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

BlobInventoryPolicy, or the result of cls(response)

Return type

list

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

list(resource_group_name, account_name, **kwargs)

Parameters

resource_group_name
str
Required

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

account_name
str
Required

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.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Attributes

models

models = <module 'azure.mgmt.storage.v2021_01_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\storage\\v2021_01_01\\models\\__init__.py'>