Interface ResourceGroups
- All Superinterfaces:
HasManager<ResourceManager>,SupportsBatchCreation<ResourceGroup>,SupportsCreating<ResourceGroup.DefinitionStages.Blank>,SupportsDeletingByName,SupportsGettingByName<ResourceGroup>,SupportsListing<ResourceGroup>,SupportsListingByTag<ResourceGroup>
public interface ResourceGroups
extends SupportsListing<ResourceGroup>, SupportsListingByTag<ResourceGroup>, SupportsGettingByName<ResourceGroup>, SupportsCreating<ResourceGroup.DefinitionStages.Blank>, SupportsDeletingByName, SupportsBatchCreation<ResourceGroup>, HasManager<ResourceManager>
Entry point to resource group management API.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDeleteByName(String name) Begins deleting a resource group from Azure, identifying it by its name.beginDeleteByName(String name, com.azure.core.util.Context context) Begins deleting a resource group from Azure, identifying it by its name.beginDeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes) Begins deleting a resource group from Azure, identifying it by its name.beginDeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes, com.azure.core.util.Context context) Begins deleting a resource group from Azure, identifying it by its name.booleanChecks whether resource group exists.voiddeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes) Deletes a resource from Azure, identifying it by its resource name.deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes) Asynchronously delete a resource from Azure, identifying it by its resource name.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation
create, create, createAsync, createAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating
defineMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingByName
deleteByName, deleteByNameAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByName
getByName, getByNameAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing
list, listAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingByTag
listByTag, listByTagAsync
-
Method Details
-
contain
Checks whether resource group exists.- Parameters:
name- the name (case insensitive) of the resource group to check for- Returns:
- true of exists, otherwise false
-
beginDeleteByName
Begins deleting a resource group from Azure, identifying it by its name.- Parameters:
name- the resource group name- Returns:
- the accepted deleting operation
-
beginDeleteByName
Begins deleting a resource group from Azure, identifying it by its name.- Parameters:
name- the resource group namecontext- theContextof the request- Returns:
- the accepted deleting operation
-
beginDeleteByName
Accepted<Void> beginDeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes) Begins deleting a resource group from Azure, identifying it by its name.- Parameters:
name- the resource group nameforceDeletionResourceTypes- resource types for force deletion- Returns:
- the accepted deleting operation
-
beginDeleteByName
default Accepted<Void> beginDeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes, com.azure.core.util.Context context) Begins deleting a resource group from Azure, identifying it by its name.- Parameters:
name- the resource group nameforceDeletionResourceTypes- resource types for force deletioncontext- theContextof the request- Returns:
- the accepted deleting operation
-
deleteByName
Deletes a resource from Azure, identifying it by its resource name.- Parameters:
name- the name of the resource to deleteforceDeletionResourceTypes- resource types for force deletion
-
deleteByNameAsync
Mono<Void> deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes) Asynchronously delete a resource from Azure, identifying it by its resource name.- Parameters:
name- the name of the resource to deleteforceDeletionResourceTypes- resource types for force deletion- Returns:
- a handle to cancel the request
-