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.
|
boolean |
checkExistenceById(String id,
String apiVersion)
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.
|
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.
|
rx.Completable |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
Delete resource and all of its child resources asynchronously.
|
rx.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.
|
com.microsoft.rest.ServiceFuture<Void> |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion,
boolean forceDeletion,
com.microsoft.rest.ServiceCallback<Void> callback)
Force delete resource and all of its child resources asynchronously.
|
com.microsoft.rest.ServiceFuture<Void> |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion,
com.microsoft.rest.ServiceCallback<Void> callback)
Delete resource and all of its child resources asynchronously.
|
void |
deleteById(String id)
Deletes a resource from Azure, identifying it by its resource ID.
|
void |
deleteById(String id,
String apiVersion)
Deletes a resource from Azure, identifying it by its resource ID.
|
rx.Completable |
deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
|
rx.Completable |
deleteByIdAsync(String id,
String apiVersion)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
|
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.
|
GenericResource |
getById(String id)
Gets the information about a resource from Azure based on the resource id.
|
GenericResource |
getById(String id,
String apiVersion)
Gets the information about a resource from Azure based on the resource id.
|
rx.Observable<GenericResource> |
getByIdAsync(String id)
Gets the information about a resource from Azure based on the resource id.
|
rx.Observable<GenericResource> |
getByIdAsync(String id,
String apiVersion)
Gets the information about a resource from Azure based on the resource id.
|
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.
|
com.microsoft.rest.ServiceFuture<Void> |
moveResourcesAsync(String sourceResourceGroupName,
ResourceGroup targetResourceGroup,
List<String> resources,
com.microsoft.rest.ServiceCallback<Void> callback)
Move resources from one resource group to another asynchronously.
|
list, listAsynclistByResourceGroup, listByResourceGroupAsynclistByTag, listByTagAsyncgetByIdAsyncdefinedeleteByIdAsyncmanagervoid deleteById(String id)
deleteById(String, String) instead.deleteById in interface SupportsDeletingByIdid - the resource ID of the resource to deleterx.Completable deleteByIdAsync(String id)
deleteByIdAsync(String, String) instead.deleteByIdAsync in interface SupportsDeletingByIdid - the resource ID of the resource to deleteGenericResource getById(String id)
getById(String, String) instead.getById in interface SupportsGettingById<GenericResource>id - the id of the resource.rx.Observable<GenericResource> getByIdAsync(String id)
getByIdAsync(String, String) instead.getByIdAsync in interface SupportsGettingById<GenericResource>id - the id of the resource.void deleteById(String id, String apiVersion)
id - the resource ID of the resource to deleteapiVersion - the API versionrx.Completable deleteByIdAsync(String id, String apiVersion)
id - the resource ID of the resource to deleteapiVersion - the API versionGenericResource getById(String id, String apiVersion)
id - the id of the resource.apiVersion - the API versionrx.Observable<GenericResource> getByIdAsync(String id, String apiVersion)
id - the id of the resource.apiVersion - the API versionboolean 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)
checkExistenceById(String, String) instead.id - the ID of the resource.boolean checkExistenceById(String id, String apiVersion)
id - the ID of the resource.apiVersion - the API versionGenericResource 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 API versionGenericResource 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 movecom.microsoft.rest.ServiceFuture<Void> moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources, com.microsoft.rest.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 API versionrx.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 API versioncom.microsoft.rest.ServiceFuture<Void> deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, com.microsoft.rest.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 failurevoid delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)
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 API versionforceDeletion - the force delete parameterrx.Completable deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)
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 API versionforceDeletion - the force delete parametercom.microsoft.rest.ServiceFuture<Void> deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion, com.microsoft.rest.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 API versionforceDeletion - the force delete parametercallback - the callback to call on success or failure/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/