public class DeploymentOperationsImpl extends Object implements ServiceOperations<ResourceManagementClientImpl>, DeploymentOperations
| Modifier and Type | Method and Description |
|---|---|
LongRunningOperationResponse |
beginDeleting(String resourceGroupName,
String deploymentName)
Begin deleting deployment.To determine whether the operation has finished
processing the request, call GetLongRunningOperationStatus.
|
Future<LongRunningOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String deploymentName)
Begin deleting deployment.To determine whether the operation has finished
processing the request, call GetLongRunningOperationStatus.
|
OperationResponse |
cancel(String resourceGroupName,
String deploymentName)
Cancel a currently running template deployment.
|
Future<OperationResponse> |
cancelAsync(String resourceGroupName,
String deploymentName)
Cancel a currently running template deployment.
|
DeploymentExistsResult |
checkExistence(String resourceGroupName,
String deploymentName)
Checks whether deployment exists.
|
Future<DeploymentExistsResult> |
checkExistenceAsync(String resourceGroupName,
String deploymentName)
Checks whether deployment exists.
|
DeploymentOperationsCreateResult |
createOrUpdate(String resourceGroupName,
String deploymentName,
Deployment parameters)
Create a named template deployment using a template.
|
Future<DeploymentOperationsCreateResult> |
createOrUpdateAsync(String resourceGroupName,
String deploymentName,
Deployment parameters)
Create a named template deployment using a template.
|
OperationResponse |
delete(String resourceGroupName,
String deploymentName)
Delete deployment and all of its resources.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String deploymentName)
Delete deployment and all of its resources.
|
DeploymentGetResult |
get(String resourceGroupName,
String deploymentName)
Get a deployment.
|
Future<DeploymentGetResult> |
getAsync(String resourceGroupName,
String deploymentName)
Get a deployment.
|
ResourceManagementClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.resources.ResourceManagementClientImpl.
|
DeploymentListResult |
list(String resourceGroupName,
DeploymentListParameters parameters)
Get a list of deployments.
|
Future<DeploymentListResult> |
listAsync(String resourceGroupName,
DeploymentListParameters parameters)
Get a list of deployments.
|
DeploymentListResult |
listNext(String nextLink)
Get a list of deployments.
|
Future<DeploymentListResult> |
listNextAsync(String nextLink)
Get a list of deployments.
|
DeploymentValidateResponse |
validate(String resourceGroupName,
String deploymentName,
Deployment parameters)
Validate a deployment template.
|
Future<DeploymentValidateResponse> |
validateAsync(String resourceGroupName,
String deploymentName,
Deployment parameters)
Validate a deployment template.
|
public ResourceManagementClientImpl getClient()
getClient in interface ServiceOperations<ResourceManagementClientImpl>public Future<LongRunningOperationResponse> beginDeletingAsync(String resourceGroupName, String deploymentName)
beginDeletingAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment to be deleted.public LongRunningOperationResponse beginDeleting(String resourceGroupName, String deploymentName) throws IOException, ServiceException
beginDeleting in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment to be deleted.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<OperationResponse> cancelAsync(String resourceGroupName, String deploymentName)
cancelAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.public OperationResponse cancel(String resourceGroupName, String deploymentName) throws IOException, ServiceException
cancel in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.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<DeploymentExistsResult> checkExistenceAsync(String resourceGroupName, String deploymentName)
checkExistenceAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to
check. The name is case insensitive.deploymentName - Required. The name of the deployment.public DeploymentExistsResult checkExistence(String resourceGroupName, String deploymentName) throws IOException, ServiceException
checkExistence in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to
check. The name is case insensitive.deploymentName - Required. The name of the deployment.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<DeploymentOperationsCreateResult> createOrUpdateAsync(String resourceGroupName, String deploymentName, Deployment parameters)
createOrUpdateAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.parameters - Required. Additional parameters supplied to the
operation.public DeploymentOperationsCreateResult createOrUpdate(String resourceGroupName, String deploymentName, Deployment parameters) throws IOException, ServiceException, URISyntaxException
createOrUpdate in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.parameters - Required. Additional parameters supplied to the
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> deleteAsync(String resourceGroupName, String deploymentName)
deleteAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment to be deleted.public OperationResponse delete(String resourceGroupName, String deploymentName) throws InterruptedException, ExecutionException, IOException, ServiceException
delete in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment to be deleted.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<DeploymentGetResult> getAsync(String resourceGroupName, String deploymentName)
getAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to get.
The name is case insensitive.deploymentName - Required. The name of the deployment.public DeploymentGetResult get(String resourceGroupName, String deploymentName) throws IOException, ServiceException, URISyntaxException
get in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to get.
The name is case insensitive.deploymentName - Required. The name of the deployment.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<DeploymentListResult> listAsync(String resourceGroupName, DeploymentListParameters parameters)
listAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to
filter by. The name is case insensitive.parameters - Optional. Query parameters. If null is passed returns
all deployments.public DeploymentListResult list(String resourceGroupName, DeploymentListParameters parameters) throws IOException, ServiceException, URISyntaxException
list in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group to
filter by. The name is case insensitive.parameters - Optional. Query parameters. If null is passed returns
all deployments.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<DeploymentListResult> listNextAsync(String nextLink)
listNextAsync in interface DeploymentOperationsnextLink - Required. NextLink from the previous successful call to
List operation.public DeploymentListResult listNext(String nextLink) throws IOException, ServiceException, URISyntaxException
listNext in interface DeploymentOperationsnextLink - 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<DeploymentValidateResponse> validateAsync(String resourceGroupName, String deploymentName, Deployment parameters)
validateAsync in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.parameters - Required. Deployment to validate.public DeploymentValidateResponse validate(String resourceGroupName, String deploymentName, Deployment parameters) throws IOException, ServiceException, URISyntaxException
validate in interface DeploymentOperationsresourceGroupName - Required. The name of the resource group. The
name is case insensitive.deploymentName - Required. The name of the deployment.parameters - Required. Deployment to validate.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./**
* 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.
*/