Validates move resources from one resource group to another asynchronously.
Method Details
beginDeleteById
public abstract Accepted beginDeleteById(String id)
Begins deleting a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use beginDeleteById(String id, String apiVersion) instead.
Parameters:
id
- the resource ID of the resource to delete
Returns:
the accepted deleting operation
beginDeleteById
public abstract Accepted beginDeleteById(String id, String apiVersion)
Begins deleting a resource from Azure, identifying it by its resource ID.
Delete resource and all of its child resources asynchronously.
Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.
resourceProviderNamespace
- Resource identity.
parentResourcePath
- Resource identity.
resourceType
- Resource identity.
resourceName
- Resource identity.
apiVersion
- the API version
Returns:
a representation of the deferred computation of this call
deleteById
public abstract void deleteById(String id)
Deletes a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteById(String id, String apiVersion) instead.
Parameters:
id
- the resource ID of the resource to delete
deleteById
public abstract void deleteById(String id, String apiVersion)
Deletes a resource from Azure, identifying it by its resource ID.
Parameters:
id
- the resource ID of the resource to delete
apiVersion
- the API version
deleteByIdAsync
public abstract Mono deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteByIdAsync(String id, String apiVersion) instead.
Parameters:
id
- the resource ID of the resource to delete
Returns:
a representation of the deferred computation of this call
deleteByIdAsync
public abstract Mono deleteByIdAsync(String id, String apiVersion)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
Parameters:
id
- the resource ID of the resource to delete
apiVersion
- the API version
Returns:
a representation of the deferred computation of this call
resourceGroupName
- The name of the resource group. The name is case insensitive.
resourceProviderNamespace
- Resource identity.
parentResourcePath
- Resource identity.
resourceType
- Resource identity.
resourceName
- Resource identity.
apiVersion
- the API version
Returns:
the generic resource
getById
public abstract GenericResource getById(String id)
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getById(String id, String apiVersion) instead.
Parameters:
id
- the id of the resource.
Returns:
an immutable representation of the resource
getById
public abstract GenericResource getById(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id.
Parameters:
id
- the id of the resource.
apiVersion
- the API version
Returns:
an immutable representation of the resource
getByIdAsync
public abstract Mono getByIdAsync(String id)
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getByIdAsync(String id, String apiVersion) instead.
Parameters:
id
- the id of the resource.
Returns:
a Mono that emits the found resource asynchronously
getByIdAsync
public abstract Mono getByIdAsync(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id.
Parameters:
id
- the id of the resource.
apiVersion
- the API version
Returns:
a Mono that emits the found resource asynchronously
moveResources
public abstract void moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List resourceIds)
Move resources from one resource group to another.
Parameters:
sourceResourceGroupName
- Source resource group name
targetResourceGroup
- target resource group, can be in a different subscription
resourceIds
- the list of IDs of the resources to move
moveResourcesAsync
public abstract Mono moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List resourceIds)
Move resources from one resource group to another asynchronously.
Parameters:
sourceResourceGroupName
- Source resource group name
targetResourceGroup
- target resource group, can be in a different subscription
resourceIds
- the list of IDs of the resources to move
Returns:
a representation of the deferred computation of this call
validateMoveResources
public abstract void validateMoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List resourceIds)
Validates move resources from one resource group to another. If validation fails, ManagementException is thrown.
Parameters:
sourceResourceGroupName
- Source resource group name
targetResourceGroup
- target resource group, can be in a different subscription
resourceIds
- the list of IDs of the resources to move
validateMoveResourcesAsync
public abstract Mono validateMoveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List resourceIds)
Validates move resources from one resource group to another asynchronously. If validation fails, ManagementException is thrown.
Parameters:
sourceResourceGroupName
- Source resource group name
targetResourceGroup
- target resource group, can be in a different subscription
resourceIds
- the list of IDs of the resources to move
Returns:
a representation of the deferred computation of this call