public interface GenericResources extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<GenericResource.DefinitionStages.Blank>, SupportsDeletingById, HasManager<com.microsoft.azure.management.resources.implementation.ResourceManager>
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExistence(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
Checks if a resource exists in a resource group.
|
boolean |
checkExistenceById(String id)
Checks if a resource exists.
|
void |
delete(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
Delete resource and all of its child resources.
|
rx.Completable |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
Delete resource and all of its child resources asynchronously.
|
ServiceFuture<Void> |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion,
ServiceCallback<Void> callback)
Delete resource and all of its child resources asynchronously.
|
GenericResource |
get(String resourceGroupName,
String providerNamespace,
String resourceType,
String resourceName)
Returns a resource belonging to a resource group.
|
GenericResource |
get(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
Returns a resource belonging to a resource group.
|
void |
moveResources(String sourceResourceGroupName,
ResourceGroup targetResourceGroup,
List<String> resources)
Move resources from one resource group to another.
|
rx.Completable |
moveResourcesAsync(String sourceResourceGroupName,
ResourceGroup targetResourceGroup,
List<String> resources)
Move resources from one resource group to another asynchronously.
|
ServiceFuture<Void> |
moveResourcesAsync(String sourceResourceGroupName,
ResourceGroup targetResourceGroup,
List<String> resources,
ServiceCallback<Void> callback)
Move resources from one resource group to another asynchronously.
|
list, listAsynclistByResourceGroup, listByResourceGroupAsynclistByTag, listByTagAsyncgetById, getByIdAsync, getByIdAsyncdefinedeleteById, deleteByIdAsync, deleteByIdAsyncmanagerboolean checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
resourceGroupName - the resource group's nameresourceProviderNamespace - the resource provider's namespaceparentResourcePath - the parent's resource pathresourceType - the type of the resourceresourceName - the name of the resourceapiVersion - the API versionboolean checkExistenceById(String id)
id - the ID of the resource.GenericResource get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
resourceGroupName - The name of the resource group. The name is case insensitive.resourceProviderNamespace - Resource identity.parentResourcePath - Resource identity.resourceType - Resource identity.resourceName - Resource identity.apiVersion - the String valueGenericResource get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)
resourceGroupName - the resource group nameproviderNamespace - the provider namespaceresourceType - the resource typeresourceName - the name of the resourcevoid moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources)
sourceResourceGroupName - Source resource group nametargetResourceGroup - target resource group, can be in a different subscriptionresources - the list of IDs of the resources to moverx.Completable moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources)
sourceResourceGroupName - Source resource group nametargetResourceGroup - target resource group, can be in a different subscriptionresources - the list of IDs of the resources to moveServiceFuture<Void> moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources, ServiceCallback<Void> callback)
sourceResourceGroupName - Source resource group nametargetResourceGroup - target resource group, can be in a different subscriptionresources - the list of IDs of the resources to movecallback - the callback to call on success or failurevoid delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
resourceGroupName - The name of the resource group. The name is case insensitive.resourceProviderNamespace - Resource identity.parentResourcePath - Resource identity.resourceType - Resource identity.resourceName - Resource identity.apiVersion - the String valuerx.Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)
resourceGroupName - The name of the resource group. The name is case insensitive.resourceProviderNamespace - Resource identity.parentResourcePath - Resource identity.resourceType - Resource identity.resourceName - Resource identity.apiVersion - the String valueServiceFuture<Void> deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, ServiceCallback<Void> callback)
resourceGroupName - The name of the resource group. The name is case insensitive.resourceProviderNamespace - Resource identity.parentResourcePath - Resource identity.resourceType - Resource identity.resourceName - Resource identity.apiVersion - the String valuecallback - the callback to call on success or failureCopyright © 2019. All rights reserved.