GenericResources Interface
Implements
public interface GenericResources
extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<Blank>, SupportsDeletingById, HasManager<com.microsoft.azure.management.resources.implementation.ResourceManager>
Entry point to generic resources management API.
Method Summary
Method Details
checkExistence
public abstract boolean checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Checks if a resource exists in a resource group.
Parameters:
Returns:
checkExistenceById
public abstract boolean checkExistenceById(String id)
Checks if a resource exists. For consistency across service versions, please use checkExistenceById(String id, String apiVersion) instead.
Parameters:
Returns:
checkExistenceById
public abstract boolean checkExistenceById(String id, String apiVersion)
Checks if a resource exists.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources.
Parameters:
delete
public abstract void delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)
Force delete resource and all of its child resources. This is only available to limited resource types.
Parameters:
deleteAsync
public abstract Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Delete resource and all of its child resources asynchronously.
Parameters:
Returns:
deleteAsync
public abstract Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)
Force delete resource and all of its child resources asynchronously. This is only available to limited resource types.
Parameters:
Returns:
deleteAsync
public abstract ServiceFuture
Force delete resource and all of its child resources asynchronously. This is only available to limited resource types.
Parameters:
Returns:
deleteAsync
public abstract ServiceFuture
Delete resource and all of its child resources asynchronously.
Parameters:
Returns:
deleteById
public abstract void deleteById(String id)
Deletes a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteById(String id, String apiVersion) instead.
Parameters:
deleteById
public abstract void deleteById(String id, String apiVersion)
Deletes a resource from Azure, identifying it by its resource ID.
Parameters:
deleteByIdAsync
public abstract Completable deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteByIdAsync(String id, String apiVersion) instead.
Parameters:
Returns:
deleteByIdAsync
public abstract Completable deleteByIdAsync(String id, String apiVersion)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
Parameters:
Returns:
get
public abstract GenericResource get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)
Returns a resource belonging to a resource group.
Parameters:
Returns:
get
public abstract GenericResource get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
Returns a resource belonging to a resource group.
Parameters:
Returns:
getById
public abstract GenericResource getById(String id)
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getById(String id, String apiVersion) instead.
Parameters:
Returns:
getById
public abstract GenericResource getById(String id, String apiVersion)
Gets the information about a resource from Azure based on the resource id.
Parameters:
Returns:
getByIdAsync
public abstract Observable
Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getByIdAsync(String id, String apiVersion) instead.
Parameters:
Returns:
getByIdAsync
public abstract Observable
Gets the information about a resource from Azure based on the resource id.
Parameters:
Returns:
moveResources
public abstract void moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List
Move resources from one resource group to another.
Parameters:
moveResourcesAsync
public abstract Completable moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List
Move resources from one resource group to another asynchronously.
Parameters:
Returns:
moveResourcesAsync
public abstract ServiceFuture
Move resources from one resource group to another asynchronously.
Parameters:
Returns: