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
Modifier and TypeMethodDescriptionBegins deleting a resource from Azure, identifying it by its resource ID.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.booleanChecks 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.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.Asynchronously delete a resource from Azure, identifying it by its resource ID.deleteByIdAsync(String id, String apiVersion) Asynchronously delete a resource from Azure, identifying it by its resource ID.Returns a resource belonging to a resource group.get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion) Returns a resource belonging to a resource group.Gets the information about a resource from Azure based on the resource id.Gets the information about a resource from Azure based on the resource id.getByIdAsync(String id) Gets the information about a resource from Azure based on the resource id.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.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.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
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating
defineMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingInResourceGroupByTag
listByTag, listByTagAsync
-
Method Details
-
deleteById
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
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
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
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
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
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
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
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
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
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
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
-
beginDeleteById
Begins deleting a resource from Azure, identifying it by its resource ID.- Parameters:
id- the resource ID of the resource to deleteapiVersion- the API version- Returns:
- the accepted deleting operation
-