Share via


StorageTaskAssignmentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

StorageManagementClient's

<xref:storage_task_assignments> attribute.

Constructor

StorageTaskAssignmentsOperations(*args, **kwargs)

Methods

begin_create

Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.

begin_delete

Delete the storage task assignment sub-resource.

begin_update

Update storage task assignment properties.

get

Get the storage task assignment properties.

list

List all the storage task assignments in an account.

begin_create

Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.

begin_create(resource_group_name: str, account_name: str, storage_task_assignment_name: str, parameters: _models.StorageTaskAssignment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.StorageTaskAssignment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. 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.

storage_task_assignment_name
Required
str

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

parameters
Required

The parameters to create a Storage Task Assignment. Is either a StorageTaskAssignment type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete the storage task assignment sub-resource.

begin_delete(resource_group_name: str, account_name: str, storage_task_assignment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. 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.

storage_task_assignment_name
Required
str

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

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Update storage task assignment properties.

begin_update(resource_group_name: str, account_name: str, storage_task_assignment_name: str, parameters: _models.StorageTaskAssignmentUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.StorageTaskAssignment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. 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.

storage_task_assignment_name
Required
str

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

parameters
Required

The parameters to update a Storage Task Assignment. Is either a StorageTaskAssignmentUpdateParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response)

Exceptions

Type Description

get

Get the storage task assignment properties.

get(resource_group_name: str, account_name: str, storage_task_assignment_name: str, **kwargs: Any) -> StorageTaskAssignment

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. 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.

storage_task_assignment_name
Required
str

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

Returns

Type Description

StorageTaskAssignment or the result of cls(response)

Exceptions

Type Description

list

List all the storage task assignments in an account.

list(resource_group_name: str, account_name: str, maxpagesize: int | None = None, **kwargs: Any) -> Iterable[StorageTaskAssignment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. 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.

maxpagesize
int

Optional, specifies the maximum number of storage task assignment Ids to be included in the list response. Default value is None.

Default value: None

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.storage.v2024_01_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv214\\Lib\\site-packages\\azure\\mgmt\\storage\\v2024_01_01\\models\\__init__.py'>