public interface GenericResources extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<GenericResource.DefinitionStages.Blank>, SupportsDeletingById, HasManager<ResourceManager>
| Modifier and Type | Method and Description |
|---|---|
Accepted<Void> |
beginDeleteById(String id)
Begins deleting a resource from Azure, identifying it by its resource ID.
|
Accepted<Void> |
beginDeleteById(String id,
String apiVersion)
Begins deleting a resource from Azure, identifying it by its resource ID.
|
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.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String resourceProviderNamespace,
String parentResourcePath,
String resourceType,
String resourceName,
String apiVersion)
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.
|
Mono<Void> |
deleteByIdAsync(String id)
Asynchronously delete a resource from Azure, identifying it by its resource ID.
|
Mono<Void> |
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.
|
Mono<GenericResource> |
getByIdAsync(String id)
Gets the information about a resource from Azure based on the resource id.
|
Mono<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.
|
Mono<Void> |
moveResourcesAsync(String sourceResourceGroupName,
ResourceGroup targetResourceGroup,
List<String> resources)
Move resources from one resource group to another asynchronously.
|
list, listAsynclistByResourceGroup, listByResourceGroupAsynclistByTag, listByTagAsyncdefinemanagervoid deleteById(String id)
GenericResources.deleteById(String, String) instead.deleteById in interface SupportsDeletingByIdid - the resource ID of the resource to deleteMono<Void> deleteByIdAsync(String id)
GenericResources.deleteByIdAsync(String, String) instead.deleteByIdAsync in interface SupportsDeletingByIdid - the resource ID of the resource to deleteGenericResource getById(String id)
GenericResources.getById(String, String) instead.getById in interface SupportsGettingById<GenericResource>id - the id of the resource.Mono<GenericResource> getByIdAsync(String id)
GenericResources.getByIdAsync(String, String) instead.getByIdAsync in interface SupportsGettingById<GenericResource>id - the id of the resource.Mono that emits the found resource asynchronouslyvoid deleteById(String id, String apiVersion)
id - the resource ID of the resource to deleteapiVersion - the API versionMono<Void> 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 versionMono<GenericResource> getByIdAsync(String id, String apiVersion)
id - the id of the resource.apiVersion - the API versionMono that emits the found resource asynchronouslyboolean 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)
GenericResources.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 moveMono<Void> 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 movevoid 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 versionMono<Void> 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 versionAccepted<Void> beginDeleteById(String id)
GenericResources.beginDeleteById(String, String) instead.id - the resource ID of the resource to deleteCopyright © 2021 Microsoft Corporation. All rights reserved.