你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceGroups Interface

Implements

public interface ResourceGroups
extends SupportsListing<ResourceGroup>, SupportsListingByTag<ResourceGroup>, SupportsGettingByName<ResourceGroup>, SupportsCreating<Blank>, SupportsDeletingByName, SupportsBatchCreation<ResourceGroup>, HasManager<ResourceManager>

Entry point to resource group management API.

Method Summary

Modifier and Type Method and Description
abstract Accepted<Void> beginDeleteByName(String name)

Begins deleting a resource group from Azure, identifying it by its name.

abstract Accepted<Void> beginDeleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes)

Begins deleting a resource group from Azure, identifying it by its name.

abstract boolean contain(String name)

Checks whether resource group exists.

abstract void deleteByName(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes)

Deletes a resource from Azure, identifying it by its resource name.

abstract Mono<Void> deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes)

Asynchronously delete a resource from Azure, identifying it by its resource name.

Method Details

beginDeleteByName

public abstract Accepted beginDeleteByName(String name)

Begins deleting a resource group from Azure, identifying it by its name.

Parameters:

name - the resource group name

Returns:

the accepted deleting operation

beginDeleteByName

public abstract Accepted beginDeleteByName(String name, Collection forceDeletionResourceTypes)

Begins deleting a resource group from Azure, identifying it by its name.

Parameters:

name - the resource group name
forceDeletionResourceTypes - resource types for force deletion

Returns:

the accepted deleting operation

contain

public abstract boolean contain(String name)

Checks whether resource group exists.

Parameters:

name - the name (case insensitive) of the resource group to check for

Returns:

true of exists, otherwise false

deleteByName

public abstract void deleteByName(String name, Collection forceDeletionResourceTypes)

Deletes a resource from Azure, identifying it by its resource name.

Parameters:

name - the name of the resource to delete
forceDeletionResourceTypes - resource types for force deletion

deleteByNameAsync

public abstract Mono deleteByNameAsync(String name, Collection forceDeletionResourceTypes)

Asynchronously delete a resource from Azure, identifying it by its resource name.

Parameters:

name - the name of the resource to delete
forceDeletionResourceTypes - resource types for force deletion

Returns:

a handle to cancel the request

Applies to