Interface ResourceGroups

All Superinterfaces:
SupportsBatchCreation<ResourceGroup>, SupportsBeginDeletingByName, SupportsCreating<ResourceGroup.DefinitionStages.Blank>, SupportsDeletingByName, SupportsGettingByName<ResourceGroup>, SupportsListing<ResourceGroup>, SupportsListingByTag<ResourceGroup>

Entry point to resource group management API.
  • Method Details

    • checkExistence

      @Deprecated 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

      @Beta(V1_4_0) 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

      @Beta(V1_38_0) void deleteByName(String name, Collection<ForceDeletionResourceType> 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

      @Beta(V1_38_0) com.microsoft.rest.ServiceFuture<Void> deleteByNameAsync(String name, Collection<ForceDeletionResourceType> forceDeletionResourceTypes, com.microsoft.rest.ServiceCallback<Void> 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
    • deleteByNameAsync

      @Beta(V1_38_0) rx.Completable 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 delete
      forceDeletionResourceTypes - resource types for force deletion
      Returns:
      a representation of the deferred computation of this call