MoveResourcesOperations Class

MoveResourcesOperations async 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
MoveResourcesOperations

Constructor

MoveResourcesOperations(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

begin_create

Creates or updates a Move Resource in the move collection.

begin_delete

Deletes a Move Resource from the move collection.

get

Gets the Move Resource.

list

Lists the Move Resources in the move collection.

param resource_group_name: The Resource Group Name.

type resource_group_name: str

param move_collection_name: The Move Collection Name.

type move_collection_name: str

param filter: The filter to apply on the operation. For example, you can use

$filter=Properties/ProvisioningState eq 'Succeeded'. type filter: str

keyword callable cls: A custom type or function that will be passed the direct response

return: An iterator like instance of either MoveResourceCollection or the result of cls(response)

rtype: ~azure.core.async_paging.AsyncItemPaged[~region_move_service_api.models.MoveResourceCollection]

raises: ~azure.core.exceptions.HttpResponseError

begin_create

Creates or updates a Move Resource in the move collection.

async begin_create(resource_group_name: str, move_collection_name: str, move_resource_name: str, body: Optional[azure.mgmt.regionmove.models._models_py3.MoveResource] = None, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.regionmove.models._models_py3.MoveResource]

Parameters

resource_group_name
str
Required

The Resource Group Name.

move_collection_name
str
Required

The Move Collection Name.

move_resource_name
str
Required

The Move Resource Name.

body
<xref:region_move_service_api.models.MoveResource>
default value: None
cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either MoveResource or the result of cls(response)

Return type

AsyncLROPoller[<xref:region_move_service_api.models.MoveResource>]

Exceptions

begin_delete

Deletes a Move Resource from the move collection.

async begin_delete(resource_group_name: str, move_collection_name: str, move_resource_name: str, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.regionmove.models._models_py3.OperationStatus]

Parameters

resource_group_name
str
Required

The Resource Group Name.

move_collection_name
str
Required

The Move Collection Name.

move_resource_name
str
Required

The Move Resource Name.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either OperationStatus or the result of cls(response)

Return type

AsyncLROPoller[<xref:region_move_service_api.models.OperationStatus>]

Exceptions

get

Gets the Move Resource.

async get(resource_group_name: str, move_collection_name: str, move_resource_name: str, **kwargs) -> azure.mgmt.regionmove.models._models_py3.MoveResource

Parameters

resource_group_name
str
Required

The Resource Group Name.

move_collection_name
str
Required

The Move Collection Name.

move_resource_name
str
Required

The Move Resource Name.

cls
callable

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

Returns

MoveResource, or the result of cls(response)

Return type

<xref:region_move_service_api.models.MoveResource>

Exceptions

list

Lists the Move Resources in the move collection.

param resource_group_name: The Resource Group Name.

type resource_group_name: str

param move_collection_name: The Move Collection Name.

type move_collection_name: str

param filter: The filter to apply on the operation. For example, you can use

$filter=Properties/ProvisioningState eq 'Succeeded'. type filter: str

keyword callable cls: A custom type or function that will be passed the direct response

return: An iterator like instance of either MoveResourceCollection or the result of cls(response)

rtype: ~azure.core.async_paging.AsyncItemPaged[~region_move_service_api.models.MoveResourceCollection]

raises: ~azure.core.exceptions.HttpResponseError

list(resource_group_name: str, move_collection_name: str, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.regionmove.models._models_py3.MoveResourceCollection]

Parameters

resource_group_name
Required
move_collection_name
Required
filter
default value: None

Exceptions

Attributes

models

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