public interface ResourceGroupOperations
| Modifier and Type | Method and Description |
|---|---|
LongRunningOperationResponse |
beginDeleting(String resourceGroupName)
Begin deleting resource group.To determine whether the operation has
finished processing the request, call GetLongRunningOperationStatus.
|
Future<LongRunningOperationResponse> |
beginDeletingAsync(String resourceGroupName)
Begin deleting resource group.To determine whether the operation has
finished processing the request, call GetLongRunningOperationStatus.
|
ResourceGroupExistsResult |
checkExistence(String resourceGroupName)
Checks whether resource group exists.
|
Future<ResourceGroupExistsResult> |
checkExistenceAsync(String resourceGroupName)
Checks whether resource group exists.
|
ResourceGroupCreateOrUpdateResult |
createOrUpdate(String resourceGroupName,
ResourceGroup parameters)
Create a resource group.
|
Future<ResourceGroupCreateOrUpdateResult> |
createOrUpdateAsync(String resourceGroupName,
ResourceGroup parameters)
Create a resource group.
|
OperationResponse |
delete(String resourceGroupName)
Delete resource group and all of its resources.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName)
Delete resource group and all of its resources.
|
ResourceGroupGetResult |
get(String resourceGroupName)
Get a resource group.
|
Future<ResourceGroupGetResult> |
getAsync(String resourceGroupName)
Get a resource group.
|
ResourceGroupListResult |
list(ResourceGroupListParameters parameters)
Gets a collection of resource groups.
|
Future<ResourceGroupListResult> |
listAsync(ResourceGroupListParameters parameters)
Gets a collection of resource groups.
|
ResourceGroupListResult |
listNext(String nextLink)
Get a list of deployments.
|
Future<ResourceGroupListResult> |
listNextAsync(String nextLink)
Get a list of deployments.
|
ResourceGroupPatchResult |
patch(String resourceGroupName,
ResourceGroup parameters)
Resource groups can be updated through a simple PATCH operation to a
group address.
|
Future<ResourceGroupPatchResult> |
patchAsync(String resourceGroupName,
ResourceGroup parameters)
Resource groups can be updated through a simple PATCH operation to a
group address.
|
LongRunningOperationResponse beginDeleting(String resourceGroupName) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group to be
deleted. The name is case insensitive.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<LongRunningOperationResponse> beginDeletingAsync(String resourceGroupName)
resourceGroupName - Required. The name of the resource group to be
deleted. The name is case insensitive.ResourceGroupExistsResult checkExistence(String resourceGroupName) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group to
check. The name is case insensitive.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<ResourceGroupExistsResult> checkExistenceAsync(String resourceGroupName)
resourceGroupName - Required. The name of the resource group to
check. The name is case insensitive.ResourceGroupCreateOrUpdateResult createOrUpdate(String resourceGroupName, ResourceGroup parameters) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group to be
created or updated.parameters - Required. Parameters supplied to the create or update
resource group service operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<ResourceGroupCreateOrUpdateResult> createOrUpdateAsync(String resourceGroupName, ResourceGroup parameters)
resourceGroupName - Required. The name of the resource group to be
created or updated.parameters - Required. Parameters supplied to the create or update
resource group service operation.OperationResponse delete(String resourceGroupName) throws InterruptedException, ExecutionException, IOException, ServiceException
resourceGroupName - Required. The name of the resource group to be
deleted. The name is case insensitive.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.ServiceException - Thrown if an unexpected response is found.Future<OperationResponse> deleteAsync(String resourceGroupName)
resourceGroupName - Required. The name of the resource group to be
deleted. The name is case insensitive.ResourceGroupGetResult get(String resourceGroupName) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group to get.
The name is case insensitive.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<ResourceGroupGetResult> getAsync(String resourceGroupName)
resourceGroupName - Required. The name of the resource group to get.
The name is case insensitive.ResourceGroupListResult list(ResourceGroupListParameters parameters) throws IOException, ServiceException, URISyntaxException
parameters - Optional. Query parameters. If null is passed returns
all resource groups.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<ResourceGroupListResult> listAsync(ResourceGroupListParameters parameters)
parameters - Optional. Query parameters. If null is passed returns
all resource groups.ResourceGroupListResult listNext(String nextLink) throws IOException, ServiceException, URISyntaxException
nextLink - Required. NextLink from the previous successful call to
List operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<ResourceGroupListResult> listNextAsync(String nextLink)
nextLink - Required. NextLink from the previous successful call to
List operation.ResourceGroupPatchResult patch(String resourceGroupName, ResourceGroup parameters) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group to be
created or updated. The name is case insensitive.parameters - Required. Parameters supplied to the update state
resource group service operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<ResourceGroupPatchResult> patchAsync(String resourceGroupName, ResourceGroup parameters)
resourceGroupName - Required. The name of the resource group to be
created or updated. The name is case insensitive.parameters - Required. Parameters supplied to the update state
resource group service operation./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/