public class ResourceOperationsImpl extends Object implements ServiceOperations<ResourceManagementClientImpl>, ResourceOperations
| Modifier and Type | Method and Description |
|---|---|
LongRunningOperationResponse |
beginMoving(String sourceResourceGroupName,
ResourcesMoveInfo parameters)
Begin moving resources.To determine whether the operation has finished
processing the request, call GetLongRunningOperationStatus.
|
Future<LongRunningOperationResponse> |
beginMovingAsync(String sourceResourceGroupName,
ResourcesMoveInfo parameters)
Begin moving resources.To determine whether the operation has finished
processing the request, call GetLongRunningOperationStatus.
|
ResourceExistsResult |
checkExistence(String resourceGroupName,
ResourceIdentity identity)
Checks whether resource exists.
|
Future<ResourceExistsResult> |
checkExistenceAsync(String resourceGroupName,
ResourceIdentity identity)
Checks whether resource exists.
|
ResourceCreateOrUpdateResult |
createOrUpdate(String resourceGroupName,
ResourceIdentity identity,
GenericResource parameters)
Create a resource.
|
Future<ResourceCreateOrUpdateResult> |
createOrUpdateAsync(String resourceGroupName,
ResourceIdentity identity,
GenericResource parameters)
Create a resource.
|
OperationResponse |
delete(String resourceGroupName,
ResourceIdentity identity)
Delete resource and all of its resources.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
ResourceIdentity identity)
Delete resource and all of its resources.
|
ResourceGetResult |
get(String resourceGroupName,
ResourceIdentity identity)
Returns a resource belonging to a resource group.
|
Future<ResourceGetResult> |
getAsync(String resourceGroupName,
ResourceIdentity identity)
Returns a resource belonging to a resource group.
|
ResourceManagementClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.resources.ResourceManagementClientImpl.
|
ResourceListResult |
list(ResourceListParameters parameters)
Get all of the resources under a subscription.
|
Future<ResourceListResult> |
listAsync(ResourceListParameters parameters)
Get all of the resources under a subscription.
|
ResourceListResult |
listNext(String nextLink)
Get a list of deployments.
|
Future<ResourceListResult> |
listNextAsync(String nextLink)
Get a list of deployments.
|
OperationResponse |
moveResources(String sourceResourceGroupName,
ResourcesMoveInfo parameters)
Move resources within or across subscriptions.
|
Future<OperationResponse> |
moveResourcesAsync(String sourceResourceGroupName,
ResourcesMoveInfo parameters)
Move resources within or across subscriptions.
|
public ResourceManagementClientImpl getClient()
getClient in interface ServiceOperations<ResourceManagementClientImpl>public Future<LongRunningOperationResponse> beginMovingAsync(String sourceResourceGroupName, ResourcesMoveInfo parameters)
beginMovingAsync in interface ResourceOperationssourceResourceGroupName - Required. Source resource group name.parameters - Required. move resources' parameters.public LongRunningOperationResponse beginMoving(String sourceResourceGroupName, ResourcesMoveInfo parameters) throws IOException, ServiceException
beginMoving in interface ResourceOperationssourceResourceGroupName - Required. Source resource group name.parameters - Required. move resources' parameters.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.public Future<ResourceExistsResult> checkExistenceAsync(String resourceGroupName, ResourceIdentity identity)
checkExistenceAsync in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.public ResourceExistsResult checkExistence(String resourceGroupName, ResourceIdentity identity) throws IOException, ServiceException
checkExistence in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.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.public Future<ResourceCreateOrUpdateResult> createOrUpdateAsync(String resourceGroupName, ResourceIdentity identity, GenericResource parameters)
createOrUpdateAsync in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.parameters - Required. Create or update resource parameters.public ResourceCreateOrUpdateResult createOrUpdate(String resourceGroupName, ResourceIdentity identity, GenericResource parameters) throws IOException, ServiceException, URISyntaxException
createOrUpdate in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.parameters - Required. Create or update resource parameters.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.public Future<OperationResponse> deleteAsync(String resourceGroupName, ResourceIdentity identity)
deleteAsync in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.public OperationResponse delete(String resourceGroupName, ResourceIdentity identity) throws InterruptedException, ExecutionException, IOException, ServiceException
delete in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.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.public Future<ResourceGetResult> getAsync(String resourceGroupName, ResourceIdentity identity)
getAsync in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.public ResourceGetResult get(String resourceGroupName, ResourceIdentity identity) throws IOException, ServiceException, URISyntaxException
get in interface ResourceOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.identity - Required. Resource identity.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.public Future<ResourceListResult> listAsync(ResourceListParameters parameters)
listAsync in interface ResourceOperationsparameters - Optional. Query parameters. If null is passed returns
all resource groups.public ResourceListResult list(ResourceListParameters parameters) throws IOException, ServiceException, URISyntaxException
list in interface ResourceOperationsparameters - 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.public Future<ResourceListResult> listNextAsync(String nextLink)
listNextAsync in interface ResourceOperationsnextLink - Required. NextLink from the previous successful call to
List operation.public ResourceListResult listNext(String nextLink) throws IOException, ServiceException, URISyntaxException
listNext in interface ResourceOperationsnextLink - 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.public Future<OperationResponse> moveResourcesAsync(String sourceResourceGroupName, ResourcesMoveInfo parameters)
moveResourcesAsync in interface ResourceOperationssourceResourceGroupName - Required. Source resource group name.parameters - Required. move resources' parameters.public OperationResponse moveResources(String sourceResourceGroupName, ResourcesMoveInfo parameters) throws InterruptedException, ExecutionException, IOException
moveResources in interface ResourceOperationssourceResourceGroupName - Required. Source resource group name.parameters - Required. move resources' parameters.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./**
* 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.
*/