GenericResources Interface
Implements
public interface GenericResources
extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<Blank>, SupportsDeletingById, HasManager<ResourceManager>
Entry point to generic resources management API.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract Accepted<Void> |
beginDeleteById(String id)
Begins deleting a resource from Azure, identifying it by its resource ID. |
| abstract Accepted<Void> |
beginDeleteById(String id, String apiVersion)
Begins deleting a resource from Azure, identifying it by its resource ID. |
| abstract boolean |
checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Checks if a resource exists in a resource group. |
| abstract boolean |
checkExistenceById(String id)
Checks if a resource exists. |
| abstract boolean |
checkExistenceById(String id, String apiVersion)
Checks if a resource exists. |
| abstract void |
delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources. |
| abstract reactor.core.publisher.Mono<Void> |
deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources asynchronously. |
| abstract void |
deleteById(String id)
Deletes a resource from Azure, identifying it by its resource ID. |
| abstract void |
deleteById(String id, String apiVersion)
Deletes a resource from Azure, identifying it by its resource ID. |
| abstract reactor.core.publisher.Mono<Void> |
deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID. |
| abstract reactor.core.publisher.Mono<Void> |
deleteByIdAsync(String id, String apiVersion)
Asynchronously delete a resource from Azure, identifying it by its resource ID. |
|
abstract
Generic |
get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)
Returns a resource belonging to a resource group. |
|
abstract
Generic |
get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Returns a resource belonging to a resource group. |
|
abstract
Generic |
getById(String id)
Gets the information about a resource from Azure based on the resource id. |
|
abstract
Generic |
getById(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id. |
|
abstract
reactor.core.publisher.Mono<Generic |
getByIdAsync(String id)
Gets the information about a resource from Azure based on the resource id. |
|
abstract
reactor.core.publisher.Mono<Generic |
getByIdAsync(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id. |
| abstract void |
moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another. |
| abstract reactor.core.publisher.Mono<Void> |
moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another asynchronously. |
| abstract void |
validateMoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another. |
| abstract reactor.core.publisher.Mono<Void> |
validateMoveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another asynchronously. |
Method Details
beginDeleteById
public abstract Accepted<Void> 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:
Returns:
beginDeleteById
public abstract Accepted<Void> beginDeleteById(String id, String apiVersion)
Begins deleting a resource from Azure, identifying it by its resource ID.
Parameters:
Returns:
checkExistence
public abstract boolean checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Checks if a resource exists in a resource group.
Parameters:
Returns:
checkExistenceById
public abstract boolean checkExistenceById(String id)
Checks if a resource exists. For consistency across service versions, please use checkExistenceById(String id, String apiVersion) instead.
Parameters:
Returns:
checkExistenceById
public abstract boolean checkExistenceById(String id, String apiVersion)
Checks if a resource exists.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources.
Parameters:
deleteAsync
public abstract Mono<Void> deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources asynchronously.
Parameters:
Returns:
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:
deleteById
public abstract void deleteById(String id, String apiVersion)
Deletes a resource from Azure, identifying it by its resource ID.
Parameters:
deleteByIdAsync
public abstract Mono<Void> 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:
Returns:
deleteByIdAsync
public abstract Mono<Void> deleteByIdAsync(String id, String apiVersion)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
Parameters:
Returns:
get
public abstract GenericResource get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)
Returns a resource belonging to a resource group.
Parameters:
Returns:
get
public abstract GenericResource get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Returns a resource belonging to a resource group.
Parameters:
Returns:
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:
Returns:
getById
public abstract GenericResource getById(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id.
Parameters:
Returns:
getByIdAsync
public abstract Mono<GenericResource> 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:
Returns:
getByIdAsync
public abstract Mono<GenericResource> getByIdAsync(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id.
Parameters:
Returns:
moveResources
public abstract void moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another.
Parameters:
moveResourcesAsync
public abstract Mono<Void> moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another asynchronously.
Parameters:
Returns:
validateMoveResources
public abstract void validateMoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another. If validation fails, ManagementException is thrown.
Parameters:
validateMoveResourcesAsync
public abstract Mono<Void> validateMoveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another asynchronously. If validation fails, ManagementException is thrown.
Parameters:
Returns: