Interface GenericResources
-
- All Superinterfaces:
HasManager<ResourceManager>,SupportsCreating<GenericResource.DefinitionStages.Blank>,SupportsDeletingById,SupportsGettingById<GenericResource>,SupportsListing<GenericResource>,SupportsListingByResourceGroup<GenericResource>,SupportsListingInResourceGroupByTag<GenericResource>
public interface GenericResources extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<GenericResource.DefinitionStages.Blank>, SupportsDeletingById, HasManager<ResourceManager>
Entry point to generic resources management API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Accepted<Void>beginDeleteById(String id)Begins deleting a resource from Azure, identifying it by its resource ID.Accepted<Void>beginDeleteById(String id, String apiVersion)Begins deleting a resource from Azure, identifying it by its resource ID.booleancheckExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)Checks if a resource exists in a resource group.booleancheckExistenceById(String id)Checks if a resource exists.booleancheckExistenceById(String id, String apiVersion)Checks if a resource exists.voiddelete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)Delete resource and all of its child resources.Mono<Void>deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)Delete resource and all of its child resources asynchronously.voiddeleteById(String id)Deletes a resource from Azure, identifying it by its resource ID.voiddeleteById(String id, String apiVersion)Deletes a resource from Azure, identifying it by its resource ID.Mono<Void>deleteByIdAsync(String id)Asynchronously delete a resource from Azure, identifying it by its resource ID.Mono<Void>deleteByIdAsync(String id, String apiVersion)Asynchronously delete a resource from Azure, identifying it by its resource ID.GenericResourceget(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)Returns a resource belonging to a resource group.GenericResourceget(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)Returns a resource belonging to a resource group.GenericResourcegetById(String id)Gets the information about a resource from Azure based on the resource id.GenericResourcegetById(String id, String apiVersion)Gets the information about a resource from Azure based on the resource id.Mono<GenericResource>getByIdAsync(String id)Gets the information about a resource from Azure based on the resource id.Mono<GenericResource>getByIdAsync(String id, String apiVersion)Gets the information about a resource from Azure based on the resource id.voidmoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)Move resources from one resource group to another.Mono<Void>moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)Move resources from one resource group to another asynchronously.voidvalidateMoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)Validates move resources from one resource group to another.Mono<Void>validateMoveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)Validates move resources from one resource group to another asynchronously.-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating
define
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingInResourceGroupByTag
listByTag, listByTagAsync
-
-
-
-
Method Detail
-
deleteById
void deleteById(String id)
Deletes a resource from Azure, identifying it by its resource ID. For consistency across service versions, please usedeleteById(String, String)instead.- Specified by:
deleteByIdin interfaceSupportsDeletingById- Parameters:
id- the resource ID of the resource to delete
-
deleteByIdAsync
Mono<Void> deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID. For consistency across service versions, please usedeleteByIdAsync(String, String)instead.- Specified by:
deleteByIdAsyncin interfaceSupportsDeletingById- Parameters:
id- the resource ID of the resource to delete- Returns:
- a representation of the deferred computation of this call
-
getById
GenericResource getById(String id)
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please usegetById(String, String)instead.- Specified by:
getByIdin interfaceSupportsGettingById<GenericResource>- Parameters:
id- the id of the resource.- Returns:
- an immutable representation of the resource
-
getByIdAsync
Mono<GenericResource> getByIdAsync(String id)
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please usegetByIdAsync(String, String)instead.- Specified by:
getByIdAsyncin interfaceSupportsGettingById<GenericResource>- Parameters:
id- the id of the resource.- Returns:
- a
Monothat emits the found resource asynchronously
-
deleteById
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 deleteapiVersion- the API version
-
deleteByIdAsync
Mono<Void> 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 deleteapiVersion- the API version- Returns:
- a representation of the deferred computation of this call
-
getById
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
Mono<GenericResource> 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
Monothat emits the found resource asynchronously
-
checkExistence
boolean checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Checks if a resource exists in a resource group.- Parameters:
resourceGroupName- the resource group's nameresourceProviderNamespace- the resource provider's namespaceparentResourcePath- the parent's resource pathresourceType- the type of the resourceresourceName- the name of the resourceapiVersion- the API version- Returns:
- true if the resource exists; false otherwise
-
checkExistenceById
boolean checkExistenceById(String id)
Checks if a resource exists. For consistency across service versions, please usecheckExistenceById(String, String)instead.- Parameters:
id- the ID of the resource.- Returns:
- true if the resource exists; false otherwise
-
checkExistenceById
boolean checkExistenceById(String id, String apiVersion)
Checks if a resource exists.- Parameters:
id- the ID of the resource.apiVersion- the API version- Returns:
- true if the resource exists; false otherwise
-
get
GenericResource get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Returns a resource belonging to a resource group.- 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:
- the generic resource
-
get
GenericResource get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)
Returns a resource belonging to a resource group.- Parameters:
resourceGroupName- the resource group nameproviderNamespace- the provider namespaceresourceType- the resource typeresourceName- the name of the resource- Returns:
- the generic resource
-
validateMoveResources
void validateMoveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another. If validation fails,ManagementExceptionis thrown.- Parameters:
sourceResourceGroupName- Source resource group nametargetResourceGroup- target resource group, can be in a different subscriptionresourceIds- the list of IDs of the resources to move
-
validateMoveResourcesAsync
Mono<Void> validateMoveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Validates move resources from one resource group to another asynchronously. If validation fails,ManagementExceptionis thrown.- Parameters:
sourceResourceGroupName- Source resource group nametargetResourceGroup- target resource group, can be in a different subscriptionresourceIds- the list of IDs of the resources to move- Returns:
- a representation of the deferred computation of this call
-
moveResources
void moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another.- Parameters:
sourceResourceGroupName- Source resource group nametargetResourceGroup- target resource group, can be in a different subscriptionresourceIds- the list of IDs of the resources to move
-
moveResourcesAsync
Mono<Void> moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resourceIds)
Move resources from one resource group to another asynchronously.- Parameters:
sourceResourceGroupName- Source resource group nametargetResourceGroup- target resource group, can be in a different subscriptionresourceIds- the list of IDs of the resources to move- Returns:
- a representation of the deferred computation of this call
-
delete
void delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources.- 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
-
deleteAsync
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:
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
-
beginDeleteById
Accepted<Void> beginDeleteById(String id)
Begins deleting a resource from Azure, identifying it by its resource ID. For consistency across service versions, please usebeginDeleteById(String, String)instead.- Parameters:
id- the resource ID of the resource to delete- Returns:
- the accepted deleting operation
-
-