Share via


ResourceGroups Interface

Implements

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

Entry point to resource group management API.

Method Summary

Modifier and Type Method and Description
abstract boolean checkExistence(String name)

Deprecated

Use contain() instead.

Checks whether resource group exists.

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 rx.Completable deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes)

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

abstract com.microsoft.rest.ServiceFuture<java.lang.Void> deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes, ServiceCallback<Void> callback)

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

Method Details

checkExistence


public abstract boolean checkExistence(String name)

Deprecated

Use contain() instead.

Checks whether resource group exists.

Parameters:

name - The name of the resource group to check. The name is case insensitive

Returns:

true if the resource group exists; false otherwise

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 Completable 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 representation of the deferred computation of this call

deleteByNameAsync

public abstract ServiceFuture deleteByNameAsync(String name, Collection forceDeletionResourceTypes, ServiceCallback callback)

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
callback - the callback on success or failure

Returns:

a handle to cancel the request

Applies to