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.objectMoveResourcesOperations
Constructor
MoveResourcesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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. |
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.resourcemover.models._models_py3.MoveResource] = None, **kwargs) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.resourcemover.models._models_py3.MoveResource]
Parameters
- body
- <xref:resource_mover_service_api.models.MoveResource>
- 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
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.resourcemover.models._models_py3.OperationStatus]
Parameters
- 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
Exceptions
get
Gets the Move Resource.
async get(resource_group_name: str, move_collection_name: str, move_resource_name: str, **kwargs) -> azure.mgmt.resourcemover.models._models_py3.MoveResource
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
MoveResource, or the result of cls(response)
Return type
Exceptions
list
Lists the Move Resources in the move collection.
list(resource_group_name: str, move_collection_name: str, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.resourcemover.models._models_py3.MoveResourceCollection]
Parameters
- filter
- str
The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either MoveResourceCollection or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.resourcemover.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resourcemover\\models\\__init__.py'>
Feedback
Submit and view feedback for