Class CloudDeployClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
DeliveryPipelineName name =
DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name);
}
Note: close() needs to be called on the CloudDeployClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
ListDeliveryPipelines |
Lists DeliveryPipelines in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDeliveryPipeline |
Gets details of a single DeliveryPipeline. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDeliveryPipeline |
Creates a new DeliveryPipeline in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDeliveryPipeline |
Updates the parameters of a single DeliveryPipeline. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDeliveryPipeline |
Deletes a single DeliveryPipeline. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListTargets |
Lists Targets in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RollbackTarget |
Creates a `Rollout` to roll back the specified target. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetTarget |
Gets details of a single Target. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateTarget |
Creates a new Target in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateTarget |
Updates the parameters of a single Target. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteTarget |
Deletes a single Target. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListCustomTargetTypes |
Lists CustomTargetTypes in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetCustomTargetType |
Gets details of a single CustomTargetType. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateCustomTargetType |
Creates a new CustomTargetType in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateCustomTargetType |
Updates a single CustomTargetType. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteCustomTargetType |
Deletes a single CustomTargetType. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListReleases |
Lists Releases in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetRelease |
Gets details of a single Release. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateRelease |
Creates a new Release in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
AbandonRelease |
Abandons a Release in the Delivery Pipeline. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDeployPolicy |
Creates a new DeployPolicy in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDeployPolicy |
Updates the parameters of a single DeployPolicy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDeployPolicy |
Deletes a single DeployPolicy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDeployPolicies |
Lists DeployPolicies in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDeployPolicy |
Gets details of a single DeployPolicy. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ApproveRollout |
Approves a Rollout. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
AdvanceRollout |
Advances a Rollout in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CancelRollout |
Cancels a Rollout in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListRollouts |
Lists Rollouts in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetRollout |
Gets details of a single Rollout. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateRollout |
Creates a new Rollout in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
IgnoreJob |
Ignores the specified Job in a Rollout. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
RetryJob |
Retries the specified Job in a Rollout. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListJobRuns |
Lists JobRuns in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetJobRun |
Gets details of a single JobRun. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
TerminateJobRun |
Terminates a Job Run in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetConfig |
Gets the configuration for a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAutomation |
Creates a new Automation in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateAutomation |
Updates the parameters of a single Automation resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAutomation |
Deletes a single Automation resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAutomation |
Gets details of a single Automation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutomations |
Lists Automations in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAutomationRun |
Gets details of a single AutomationRun. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAutomationRuns |
Lists AutomationRuns in a given project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CancelAutomationRun |
Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
SetIamPolicy |
Sets the access control policy on the specified resource. Replacesany existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetIamPolicy |
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
TestIamPermissions |
Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of CloudDeploySettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CloudDeploySettings cloudDeploySettings =
CloudDeploySettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CloudDeploySettings cloudDeploySettings =
CloudDeploySettings.newBuilder().setEndpoint(myEndpoint).build();
CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CloudDeploySettings cloudDeploySettings = CloudDeploySettings.newHttpJsonBuilder().build();
CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCloudDeployClient(CloudDeploySettings settings) Constructs an instance of CloudDeployClient, using the given settings.protected -
Method Summary
Modifier and TypeMethodDescriptionfinal AbandonReleaseResponseabandonRelease(AbandonReleaseRequest request) Abandons a Release in the Delivery Pipeline.final AbandonReleaseResponseabandonRelease(ReleaseName name) Abandons a Release in the Delivery Pipeline.final AbandonReleaseResponseabandonRelease(String name) Abandons a Release in the Delivery Pipeline.Abandons a Release in the Delivery Pipeline.final AdvanceRolloutResponseadvanceRollout(AdvanceRolloutRequest request) Advances a Rollout in a given project and location.final AdvanceRolloutResponseadvanceRollout(RolloutName name, String phaseId) Advances a Rollout in a given project and location.final AdvanceRolloutResponseadvanceRollout(String name, String phaseId) Advances a Rollout in a given project and location.Advances a Rollout in a given project and location.final ApproveRolloutResponseapproveRollout(ApproveRolloutRequest request) Approves a Rollout.final ApproveRolloutResponseapproveRollout(RolloutName name) Approves a Rollout.final ApproveRolloutResponseapproveRollout(String name) Approves a Rollout.Approves a Rollout.booleanawaitTermination(long duration, TimeUnit unit) Cancels an AutomationRun.Cancels an AutomationRun.cancelAutomationRun(String name) Cancels an AutomationRun.Cancels an AutomationRun.final CancelRolloutResponsecancelRollout(CancelRolloutRequest request) Cancels a Rollout in a given project and location.final CancelRolloutResponsecancelRollout(RolloutName name) Cancels a Rollout in a given project and location.final CancelRolloutResponsecancelRollout(String name) Cancels a Rollout in a given project and location.Cancels a Rollout in a given project and location.final voidclose()static final CloudDeployClientcreate()Constructs an instance of CloudDeployClient with default settings.static final CloudDeployClientcreate(CloudDeploySettings settings) Constructs an instance of CloudDeployClient, using the given settings.static final CloudDeployClientcreate(CloudDeployStub stub) Constructs an instance of CloudDeployClient, using the given stub for making calls.Creates a new Automation in a given project and location.createAutomationAsync(DeliveryPipelineName parent, Automation automation, String automationId) Creates a new Automation in a given project and location.createAutomationAsync(String parent, Automation automation, String automationId) Creates a new Automation in a given project and location.Creates a new Automation in a given project and location.Creates a new Automation in a given project and location.Creates a new CustomTargetType in a given project and location.createCustomTargetTypeAsync(LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) Creates a new CustomTargetType in a given project and location.createCustomTargetTypeAsync(String parent, CustomTargetType customTargetType, String customTargetTypeId) Creates a new CustomTargetType in a given project and location.Creates a new CustomTargetType in a given project and location.Creates a new CustomTargetType in a given project and location.Creates a new DeliveryPipeline in a given project and location.createDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) Creates a new DeliveryPipeline in a given project and location.createDeliveryPipelineAsync(String parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) Creates a new DeliveryPipeline in a given project and location.Creates a new DeliveryPipeline in a given project and location.Creates a new DeliveryPipeline in a given project and location.Creates a new DeployPolicy in a given project and location.createDeployPolicyAsync(LocationName parent, DeployPolicy deployPolicy, String deployPolicyId) Creates a new DeployPolicy in a given project and location.createDeployPolicyAsync(String parent, DeployPolicy deployPolicy, String deployPolicyId) Creates a new DeployPolicy in a given project and location.Creates a new DeployPolicy in a given project and location.Creates a new DeployPolicy in a given project and location.createReleaseAsync(CreateReleaseRequest request) Creates a new Release in a given project and location.createReleaseAsync(DeliveryPipelineName parent, Release release, String releaseId) Creates a new Release in a given project and location.createReleaseAsync(String parent, Release release, String releaseId) Creates a new Release in a given project and location.Creates a new Release in a given project and location.Creates a new Release in a given project and location.createRolloutAsync(CreateRolloutRequest request) Creates a new Rollout in a given project and location.createRolloutAsync(ReleaseName parent, Rollout rollout, String rolloutId) Creates a new Rollout in a given project and location.createRolloutAsync(String parent, Rollout rollout, String rolloutId) Creates a new Rollout in a given project and location.Creates a new Rollout in a given project and location.Creates a new Rollout in a given project and location.createTargetAsync(CreateTargetRequest request) Creates a new Target in a given project and location.createTargetAsync(LocationName parent, Target target, String targetId) Creates a new Target in a given project and location.createTargetAsync(String parent, Target target, String targetId) Creates a new Target in a given project and location.Creates a new Target in a given project and location.Creates a new Target in a given project and location.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Automation resource.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single Automation resource.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAutomationAsync(String name) Deletes a single Automation resource.Deletes a single Automation resource.final OperationCallable<DeleteAutomationRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Automation resource.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single CustomTargetType.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single CustomTargetType.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single CustomTargetType.Deletes a single CustomTargetType.final OperationCallable<DeleteCustomTargetTypeRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single CustomTargetType.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeliveryPipeline.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeliveryPipeline.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeliveryPipeline.Deletes a single DeliveryPipeline.final OperationCallable<DeleteDeliveryPipelineRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single DeliveryPipeline.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeployPolicy.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeployPolicy.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes a single DeployPolicy.Deletes a single DeployPolicy.final OperationCallable<DeleteDeployPolicyRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single DeployPolicy.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(DeleteTargetRequest request) Deletes a single Target.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(TargetName name) Deletes a single Target.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(String name) Deletes a single Target.Deletes a single Target.final OperationCallable<DeleteTargetRequest,com.google.protobuf.Empty, OperationMetadata> Deletes a single Target.final AutomationgetAutomation(AutomationName name) Gets details of a single Automation.final AutomationgetAutomation(GetAutomationRequest request) Gets details of a single Automation.final AutomationgetAutomation(String name) Gets details of a single Automation.Gets details of a single Automation.final AutomationRunGets details of a single AutomationRun.final AutomationRungetAutomationRun(GetAutomationRunRequest request) Gets details of a single AutomationRun.final AutomationRungetAutomationRun(String name) Gets details of a single AutomationRun.Gets details of a single AutomationRun.final ConfiggetConfig(ConfigName name) Gets the configuration for a location.final ConfiggetConfig(GetConfigRequest request) Gets the configuration for a location.final ConfigGets the configuration for a location.final UnaryCallable<GetConfigRequest,Config> Gets the configuration for a location.final CustomTargetTypeGets details of a single CustomTargetType.final CustomTargetTypeGets details of a single CustomTargetType.final CustomTargetTypegetCustomTargetType(String name) Gets details of a single CustomTargetType.Gets details of a single CustomTargetType.final DeliveryPipelineGets details of a single DeliveryPipeline.final DeliveryPipelineGets details of a single DeliveryPipeline.final DeliveryPipelinegetDeliveryPipeline(String name) Gets details of a single DeliveryPipeline.Gets details of a single DeliveryPipeline.final DeployPolicyGets details of a single DeployPolicy.final DeployPolicygetDeployPolicy(GetDeployPolicyRequest request) Gets details of a single DeployPolicy.final DeployPolicygetDeployPolicy(String name) Gets details of a single DeployPolicy.Gets details of a single DeployPolicy.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final PolicygetIamPolicy(GetIamPolicyRequest request) Gets the access control policy for a resource.Gets the access control policy for a resource.final JobRungetJobRun(GetJobRunRequest request) Gets details of a single JobRun.final JobRungetJobRun(JobRunName name) Gets details of a single JobRun.final JobRunGets details of a single JobRun.final UnaryCallable<GetJobRunRequest,JobRun> Gets details of a single JobRun.final LocationgetLocation(GetLocationRequest request) Gets information about a location.Gets information about a location.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final ReleasegetRelease(GetReleaseRequest request) Gets details of a single Release.final ReleasegetRelease(ReleaseName name) Gets details of a single Release.final ReleasegetRelease(String name) Gets details of a single Release.Gets details of a single Release.final RolloutgetRollout(GetRolloutRequest request) Gets details of a single Rollout.final RolloutgetRollout(RolloutName name) Gets details of a single Rollout.final RolloutgetRollout(String name) Gets details of a single Rollout.Gets details of a single Rollout.final CloudDeploySettingsgetStub()final TargetgetTarget(GetTargetRequest request) Gets details of a single Target.final TargetgetTarget(TargetName name) Gets details of a single Target.final TargetGets details of a single Target.final UnaryCallable<GetTargetRequest,Target> Gets details of a single Target.final IgnoreJobResponseignoreJob(IgnoreJobRequest request) Ignores the specified Job in a Rollout.final IgnoreJobResponseignoreJob(RolloutName rollout, String phaseId, String jobId) Ignores the specified Job in a Rollout.final IgnoreJobResponseIgnores the specified Job in a Rollout.Ignores the specified Job in a Rollout.booleanbooleanLists AutomationRuns in a given project and location.Lists AutomationRuns in a given project and location.listAutomationRuns(String parent) Lists AutomationRuns in a given project and location.Lists AutomationRuns in a given project and location.Lists AutomationRuns in a given project and location.listAutomations(DeliveryPipelineName parent) Lists Automations in a given project and location.listAutomations(ListAutomationsRequest request) Lists Automations in a given project and location.listAutomations(String parent) Lists Automations in a given project and location.Lists Automations in a given project and location.Lists Automations in a given project and location.Lists CustomTargetTypes in a given project and location.listCustomTargetTypes(LocationName parent) Lists CustomTargetTypes in a given project and location.listCustomTargetTypes(String parent) Lists CustomTargetTypes in a given project and location.Lists CustomTargetTypes in a given project and location.final UnaryCallable<ListCustomTargetTypesRequest,CloudDeployClient.ListCustomTargetTypesPagedResponse> Lists CustomTargetTypes in a given project and location.Lists DeliveryPipelines in a given project and location.listDeliveryPipelines(LocationName parent) Lists DeliveryPipelines in a given project and location.listDeliveryPipelines(String parent) Lists DeliveryPipelines in a given project and location.Lists DeliveryPipelines in a given project and location.final UnaryCallable<ListDeliveryPipelinesRequest,CloudDeployClient.ListDeliveryPipelinesPagedResponse> Lists DeliveryPipelines in a given project and location.Lists DeployPolicies in a given project and location.listDeployPolicies(LocationName parent) Lists DeployPolicies in a given project and location.listDeployPolicies(String parent) Lists DeployPolicies in a given project and location.Lists DeployPolicies in a given project and location.Lists DeployPolicies in a given project and location.listJobRuns(ListJobRunsRequest request) Lists JobRuns in a given project and location.listJobRuns(RolloutName parent) Lists JobRuns in a given project and location.listJobRuns(String parent) Lists JobRuns in a given project and location.Lists JobRuns in a given project and location.Lists JobRuns in a given project and location.listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Lists information about the supported locations for this service.Lists information about the supported locations for this service.listReleases(DeliveryPipelineName parent) Lists Releases in a given project and location.listReleases(ListReleasesRequest request) Lists Releases in a given project and location.listReleases(String parent) Lists Releases in a given project and location.Lists Releases in a given project and location.Lists Releases in a given project and location.listRollouts(ListRolloutsRequest request) Lists Rollouts in a given project and location.listRollouts(ReleaseName parent) Lists Rollouts in a given project and location.listRollouts(String parent) Lists Rollouts in a given project and location.Lists Rollouts in a given project and location.Lists Rollouts in a given project and location.listTargets(ListTargetsRequest request) Lists Targets in a given project and location.listTargets(LocationName parent) Lists Targets in a given project and location.listTargets(String parent) Lists Targets in a given project and location.Lists Targets in a given project and location.Lists Targets in a given project and location.final RetryJobResponseretryJob(RetryJobRequest request) Retries the specified Job in a Rollout.final RetryJobResponseretryJob(RolloutName rollout, String phaseId, String jobId) Retries the specified Job in a Rollout.final RetryJobResponseRetries the specified Job in a Rollout.Retries the specified Job in a Rollout.final RollbackTargetResponserollbackTarget(DeliveryPipelineName name, String targetId, String rolloutId) Creates a `Rollout` to roll back the specified target.final RollbackTargetResponserollbackTarget(RollbackTargetRequest request) Creates a `Rollout` to roll back the specified target.final RollbackTargetResponserollbackTarget(String name, String targetId, String rolloutId) Creates a `Rollout` to roll back the specified target.Creates a `Rollout` to roll back the specified target.final PolicysetIamPolicy(SetIamPolicyRequest request) Sets the access control policy on the specified resource.Sets the access control policy on the specified resource.voidshutdown()voidfinal TerminateJobRunResponseterminateJobRun(JobRunName name) Terminates a Job Run in a given project and location.final TerminateJobRunResponseterminateJobRun(TerminateJobRunRequest request) Terminates a Job Run in a given project and location.final TerminateJobRunResponseterminateJobRun(String name) Terminates a Job Run in a given project and location.Terminates a Job Run in a given project and location.Returns permissions that a caller has on the specified resource.Returns permissions that a caller has on the specified resource.updateAutomationAsync(Automation automation, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Automation resource.Updates the parameters of a single Automation resource.Updates the parameters of a single Automation resource.Updates the parameters of a single Automation resource.updateCustomTargetTypeAsync(CustomTargetType customTargetType, com.google.protobuf.FieldMask updateMask) Updates a single CustomTargetType.Updates a single CustomTargetType.Updates a single CustomTargetType.Updates a single CustomTargetType.updateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single DeliveryPipeline.Updates the parameters of a single DeliveryPipeline.Updates the parameters of a single DeliveryPipeline.Updates the parameters of a single DeliveryPipeline.updateDeployPolicyAsync(DeployPolicy deployPolicy, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single DeployPolicy.Updates the parameters of a single DeployPolicy.Updates the parameters of a single DeployPolicy.Updates the parameters of a single DeployPolicy.updateTargetAsync(Target target, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Target.updateTargetAsync(UpdateTargetRequest request) Updates the parameters of a single Target.Updates the parameters of a single Target.Updates the parameters of a single Target.
-
Constructor Details
-
CloudDeployClient
Constructs an instance of CloudDeployClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
CloudDeployClient
-
-
Method Details
-
create
Constructs an instance of CloudDeployClient with default settings.- Throws:
IOException
-
create
Constructs an instance of CloudDeployClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.- Throws:
IOException
-
create
Constructs an instance of CloudDeployClient, using the given stub for making calls. This is for advanced usage - prefer using create(CloudDeploySettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
getHttpJsonOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
listDeliveryPipelines
public final CloudDeployClient.ListDeliveryPipelinesPagedResponse listDeliveryPipelines(LocationName parent) Lists DeliveryPipelines in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (DeliveryPipeline element : cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of pipelines. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listDeliveryPipelines
public final CloudDeployClient.ListDeliveryPipelinesPagedResponse listDeliveryPipelines(String parent) Lists DeliveryPipelines in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (DeliveryPipeline element : cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of pipelines. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listDeliveryPipelines
public final CloudDeployClient.ListDeliveryPipelinesPagedResponse listDeliveryPipelines(ListDeliveryPipelinesRequest request) Lists DeliveryPipelines in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeliveryPipelinesRequest request = ListDeliveryPipelinesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (DeliveryPipeline element : cloudDeployClient.listDeliveryPipelines(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listDeliveryPipelinesPagedCallable
public final UnaryCallable<ListDeliveryPipelinesRequest,CloudDeployClient.ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesPagedCallable()Lists DeliveryPipelines in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeliveryPipelinesRequest request = ListDeliveryPipelinesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<DeliveryPipeline> future = cloudDeployClient.listDeliveryPipelinesPagedCallable().futureCall(request); // Do something. for (DeliveryPipeline element : future.get().iterateAll()) { // doThingsWith(element); } } -
listDeliveryPipelinesCallable
public final UnaryCallable<ListDeliveryPipelinesRequest,ListDeliveryPipelinesResponse> listDeliveryPipelinesCallable()Lists DeliveryPipelines in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeliveryPipelinesRequest request = ListDeliveryPipelinesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListDeliveryPipelinesResponse response = cloudDeployClient.listDeliveryPipelinesCallable().call(request); for (DeliveryPipeline element : response.getDeliveryPipelinesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getDeliveryPipeline
Gets details of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name); }- Parameters:
name- Required. Name of the `DeliveryPipeline`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
getDeliveryPipeline
Gets details of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name); }- Parameters:
name- Required. Name of the `DeliveryPipeline`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
getDeliveryPipeline
Gets details of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetDeliveryPipelineRequest request = GetDeliveryPipelineRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .build(); DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getDeliveryPipelineCallable
public final UnaryCallable<GetDeliveryPipelineRequest,DeliveryPipeline> getDeliveryPipelineCallable()Gets details of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetDeliveryPipelineRequest request = GetDeliveryPipelineRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .build(); ApiFuture<DeliveryPipeline> future = cloudDeployClient.getDeliveryPipelineCallable().futureCall(request); // Do something. DeliveryPipeline response = future.get(); } -
createDeliveryPipelineAsync
public final OperationFuture<DeliveryPipeline,OperationMetadata> createDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) Creates a new DeliveryPipeline in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); String deliveryPipelineId = "deliveryPipelineId-632411535"; DeliveryPipeline response = cloudDeployClient .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId) .get(); }- Parameters:
parent- Required. The parent collection in which the `DeliveryPipeline` must be created. The format is `projects/{project_id}/locations/{location_name}`.deliveryPipeline- Required. The `DeliveryPipeline` to create.deliveryPipelineId- Required. ID of the `DeliveryPipeline`.- Throws:
ApiException- if the remote call fails
-
createDeliveryPipelineAsync
public final OperationFuture<DeliveryPipeline,OperationMetadata> createDeliveryPipelineAsync(String parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) Creates a new DeliveryPipeline in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); String deliveryPipelineId = "deliveryPipelineId-632411535"; DeliveryPipeline response = cloudDeployClient .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId) .get(); }- Parameters:
parent- Required. The parent collection in which the `DeliveryPipeline` must be created. The format is `projects/{project_id}/locations/{location_name}`.deliveryPipeline- Required. The `DeliveryPipeline` to create.deliveryPipelineId- Required. ID of the `DeliveryPipeline`.- Throws:
ApiException- if the remote call fails
-
createDeliveryPipelineAsync
public final OperationFuture<DeliveryPipeline,OperationMetadata> createDeliveryPipelineAsync(CreateDeliveryPipelineRequest request) Creates a new DeliveryPipeline in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeliveryPipelineRequest request = CreateDeliveryPipelineRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeliveryPipelineId("deliveryPipelineId-632411535") .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); DeliveryPipeline response = cloudDeployClient.createDeliveryPipelineAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createDeliveryPipelineOperationCallable
public final OperationCallable<CreateDeliveryPipelineRequest,DeliveryPipeline, createDeliveryPipelineOperationCallable()OperationMetadata> Creates a new DeliveryPipeline in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeliveryPipelineRequest request = CreateDeliveryPipelineRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeliveryPipelineId("deliveryPipelineId-632411535") .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); OperationFuture<DeliveryPipeline, OperationMetadata> future = cloudDeployClient.createDeliveryPipelineOperationCallable().futureCall(request); // Do something. DeliveryPipeline response = future.get(); } -
createDeliveryPipelineCallable
public final UnaryCallable<CreateDeliveryPipelineRequest,Operation> createDeliveryPipelineCallable()Creates a new DeliveryPipeline in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeliveryPipelineRequest request = CreateDeliveryPipelineRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeliveryPipelineId("deliveryPipelineId-632411535") .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.createDeliveryPipelineCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateDeliveryPipelineAsync
public final OperationFuture<DeliveryPipeline,OperationMetadata> updateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); DeliveryPipeline response = cloudDeployClient.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); }- Parameters:
deliveryPipeline- Required. The `DeliveryPipeline` to update.updateMask- Required. Field mask is used to specify the fields to be overwritten by the update in the `DeliveryPipeline` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.- Throws:
ApiException- if the remote call fails
-
updateDeliveryPipelineAsync
public final OperationFuture<DeliveryPipeline,OperationMetadata> updateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest request) Updates the parameters of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeliveryPipelineRequest request = UpdateDeliveryPipelineRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); DeliveryPipeline response = cloudDeployClient.updateDeliveryPipelineAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateDeliveryPipelineOperationCallable
public final OperationCallable<UpdateDeliveryPipelineRequest,DeliveryPipeline, updateDeliveryPipelineOperationCallable()OperationMetadata> Updates the parameters of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeliveryPipelineRequest request = UpdateDeliveryPipelineRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<DeliveryPipeline, OperationMetadata> future = cloudDeployClient.updateDeliveryPipelineOperationCallable().futureCall(request); // Do something. DeliveryPipeline response = future.get(); } -
updateDeliveryPipelineCallable
public final UnaryCallable<UpdateDeliveryPipelineRequest,Operation> updateDeliveryPipelineCallable()Updates the parameters of a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeliveryPipelineRequest request = UpdateDeliveryPipelineRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.updateDeliveryPipelineCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteDeliveryPipelineAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeliveryPipelineAsync(DeliveryPipelineName name) Deletes a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); cloudDeployClient.deleteDeliveryPipelineAsync(name).get(); }- Parameters:
name- Required. The name of the `DeliveryPipeline` to delete. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
deleteDeliveryPipelineAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeliveryPipelineAsync(String name) Deletes a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); cloudDeployClient.deleteDeliveryPipelineAsync(name).get(); }- Parameters:
name- Required. The name of the `DeliveryPipeline` to delete. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
deleteDeliveryPipelineAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest request) Deletes a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeliveryPipelineRequest request = DeleteDeliveryPipelineRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setForce(true) .setEtag("etag3123477") .build(); cloudDeployClient.deleteDeliveryPipelineAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteDeliveryPipelineOperationCallable
public final OperationCallable<DeleteDeliveryPipelineRequest,com.google.protobuf.Empty, deleteDeliveryPipelineOperationCallable()OperationMetadata> Deletes a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeliveryPipelineRequest request = DeleteDeliveryPipelineRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setForce(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = cloudDeployClient.deleteDeliveryPipelineOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteDeliveryPipelineCallable
public final UnaryCallable<DeleteDeliveryPipelineRequest,Operation> deleteDeliveryPipelineCallable()Deletes a single DeliveryPipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeliveryPipelineRequest request = DeleteDeliveryPipelineRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setForce(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = cloudDeployClient.deleteDeliveryPipelineCallable().futureCall(request); // Do something. future.get(); } -
listTargets
Lists Targets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of targets. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listTargets
Lists Targets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of targets. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listTargets
Lists Targets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListTargetsRequest request = ListTargetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Target element : cloudDeployClient.listTargets(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listTargetsPagedCallable
public final UnaryCallable<ListTargetsRequest,CloudDeployClient.ListTargetsPagedResponse> listTargetsPagedCallable()Lists Targets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListTargetsRequest request = ListTargetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Target> future = cloudDeployClient.listTargetsPagedCallable().futureCall(request); // Do something. for (Target element : future.get().iterateAll()) { // doThingsWith(element); } } -
listTargetsCallable
Lists Targets in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListTargetsRequest request = ListTargetsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListTargetsResponse response = cloudDeployClient.listTargetsCallable().call(request); for (Target element : response.getTargetsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
rollbackTarget
public final RollbackTargetResponse rollbackTarget(DeliveryPipelineName name, String targetId, String rolloutId) Creates a `Rollout` to roll back the specified target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); String targetId = "targetId-441951604"; String rolloutId = "rolloutId551248556"; RollbackTargetResponse response = cloudDeployClient.rollbackTarget(name, targetId, rolloutId); }- Parameters:
name- Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.targetId- Required. ID of the `Target` that is being rolled back.rolloutId- Required. ID of the rollback `Rollout` to create.- Throws:
ApiException- if the remote call fails
-
rollbackTarget
Creates a `Rollout` to roll back the specified target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); String targetId = "targetId-441951604"; String rolloutId = "rolloutId551248556"; RollbackTargetResponse response = cloudDeployClient.rollbackTarget(name, targetId, rolloutId); }- Parameters:
name- Required. The `DeliveryPipeline` for which the rollback `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.targetId- Required. ID of the `Target` that is being rolled back.rolloutId- Required. ID of the rollback `Rollout` to create.- Throws:
ApiException- if the remote call fails
-
rollbackTarget
Creates a `Rollout` to roll back the specified target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RollbackTargetRequest request = RollbackTargetRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setTargetId("targetId-441951604") .setRolloutId("rolloutId551248556") .setReleaseId("releaseId89607042") .setRolloutToRollBack("rolloutToRollBack-1195544784") .setRollbackConfig(RollbackTargetConfig.newBuilder().build()) .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); RollbackTargetResponse response = cloudDeployClient.rollbackTarget(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
rollbackTargetCallable
Creates a `Rollout` to roll back the specified target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RollbackTargetRequest request = RollbackTargetRequest.newBuilder() .setName( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setTargetId("targetId-441951604") .setRolloutId("rolloutId551248556") .setReleaseId("releaseId89607042") .setRolloutToRollBack("rolloutToRollBack-1195544784") .setRollbackConfig(RollbackTargetConfig.newBuilder().build()) .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<RollbackTargetResponse> future = cloudDeployClient.rollbackTargetCallable().futureCall(request); // Do something. RollbackTargetResponse response = future.get(); } -
getTarget
Gets details of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); Target response = cloudDeployClient.getTarget(name); }- Parameters:
name- Required. Name of the `Target`. Format must be `projects/{project_id}/locations/{location_name}/targets/{target_name}`.- Throws:
ApiException- if the remote call fails
-
getTarget
Gets details of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); Target response = cloudDeployClient.getTarget(name); }- Parameters:
name- Required. Name of the `Target`. Format must be `projects/{project_id}/locations/{location_name}/targets/{target_name}`.- Throws:
ApiException- if the remote call fails
-
getTarget
Gets details of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetTargetRequest request = GetTargetRequest.newBuilder() .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) .build(); Target response = cloudDeployClient.getTarget(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getTargetCallable
Gets details of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetTargetRequest request = GetTargetRequest.newBuilder() .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) .build(); ApiFuture<Target> future = cloudDeployClient.getTargetCallable().futureCall(request); // Do something. Target response = future.get(); } -
createTargetAsync
public final OperationFuture<Target,OperationMetadata> createTargetAsync(LocationName parent, Target target, String targetId) Creates a new Target in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Target target = Target.newBuilder().build(); String targetId = "targetId-441951604"; Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); }- Parameters:
parent- Required. The parent collection in which the `Target` must be created. The format is `projects/{project_id}/locations/{location_name}`.target- Required. The `Target` to create.targetId- Required. ID of the `Target`.- Throws:
ApiException- if the remote call fails
-
createTargetAsync
public final OperationFuture<Target,OperationMetadata> createTargetAsync(String parent, Target target, String targetId) Creates a new Target in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Target target = Target.newBuilder().build(); String targetId = "targetId-441951604"; Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); }- Parameters:
parent- Required. The parent collection in which the `Target` must be created. The format is `projects/{project_id}/locations/{location_name}`.target- Required. The `Target` to create.targetId- Required. ID of the `Target`.- Throws:
ApiException- if the remote call fails
-
createTargetAsync
public final OperationFuture<Target,OperationMetadata> createTargetAsync(CreateTargetRequest request) Creates a new Target in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateTargetRequest request = CreateTargetRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setTargetId("targetId-441951604") .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); Target response = cloudDeployClient.createTargetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createTargetOperationCallable
public final OperationCallable<CreateTargetRequest,Target, createTargetOperationCallable()OperationMetadata> Creates a new Target in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateTargetRequest request = CreateTargetRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setTargetId("targetId-441951604") .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); OperationFuture<Target, OperationMetadata> future = cloudDeployClient.createTargetOperationCallable().futureCall(request); // Do something. Target response = future.get(); } -
createTargetCallable
Creates a new Target in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateTargetRequest request = CreateTargetRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setTargetId("targetId-441951604") .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.createTargetCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateTargetAsync
public final OperationFuture<Target,OperationMetadata> updateTargetAsync(Target target, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { Target target = Target.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Target response = cloudDeployClient.updateTargetAsync(target, updateMask).get(); }- Parameters:
target- Required. The `Target` to update.updateMask- Required. Field mask is used to specify the fields to be overwritten by the update in the `Target` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.- Throws:
ApiException- if the remote call fails
-
updateTargetAsync
public final OperationFuture<Target,OperationMetadata> updateTargetAsync(UpdateTargetRequest request) Updates the parameters of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateTargetRequest request = UpdateTargetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); Target response = cloudDeployClient.updateTargetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateTargetOperationCallable
public final OperationCallable<UpdateTargetRequest,Target, updateTargetOperationCallable()OperationMetadata> Updates the parameters of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateTargetRequest request = UpdateTargetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<Target, OperationMetadata> future = cloudDeployClient.updateTargetOperationCallable().futureCall(request); // Do something. Target response = future.get(); } -
updateTargetCallable
Updates the parameters of a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateTargetRequest request = UpdateTargetRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setTarget(Target.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.updateTargetCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteTargetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(TargetName name) Deletes a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); cloudDeployClient.deleteTargetAsync(name).get(); }- Parameters:
name- Required. The name of the `Target` to delete. The format is `projects/{project_id}/locations/{location_name}/targets/{target_name}`.- Throws:
ApiException- if the remote call fails
-
deleteTargetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(String name) Deletes a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); cloudDeployClient.deleteTargetAsync(name).get(); }- Parameters:
name- Required. The name of the `Target` to delete. The format is `projects/{project_id}/locations/{location_name}/targets/{target_name}`.- Throws:
ApiException- if the remote call fails
-
deleteTargetAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteTargetAsync(DeleteTargetRequest request) Deletes a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteTargetRequest request = DeleteTargetRequest.newBuilder() .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); cloudDeployClient.deleteTargetAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteTargetOperationCallable
public final OperationCallable<DeleteTargetRequest,com.google.protobuf.Empty, deleteTargetOperationCallable()OperationMetadata> Deletes a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteTargetRequest request = DeleteTargetRequest.newBuilder() .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = cloudDeployClient.deleteTargetOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteTargetCallable
Deletes a single Target.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteTargetRequest request = DeleteTargetRequest.newBuilder() .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = cloudDeployClient.deleteTargetCallable().futureCall(request); // Do something. future.get(); } -
listCustomTargetTypes
public final CloudDeployClient.ListCustomTargetTypesPagedResponse listCustomTargetTypes(LocationName parent) Lists CustomTargetTypes in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (CustomTargetType element : cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent that owns this collection of custom target types. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listCustomTargetTypes
public final CloudDeployClient.ListCustomTargetTypesPagedResponse listCustomTargetTypes(String parent) Lists CustomTargetTypes in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (CustomTargetType element : cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent that owns this collection of custom target types. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listCustomTargetTypes
public final CloudDeployClient.ListCustomTargetTypesPagedResponse listCustomTargetTypes(ListCustomTargetTypesRequest request) Lists CustomTargetTypes in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListCustomTargetTypesRequest request = ListCustomTargetTypesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (CustomTargetType element : cloudDeployClient.listCustomTargetTypes(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listCustomTargetTypesPagedCallable
public final UnaryCallable<ListCustomTargetTypesRequest,CloudDeployClient.ListCustomTargetTypesPagedResponse> listCustomTargetTypesPagedCallable()Lists CustomTargetTypes in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListCustomTargetTypesRequest request = ListCustomTargetTypesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<CustomTargetType> future = cloudDeployClient.listCustomTargetTypesPagedCallable().futureCall(request); // Do something. for (CustomTargetType element : future.get().iterateAll()) { // doThingsWith(element); } } -
listCustomTargetTypesCallable
public final UnaryCallable<ListCustomTargetTypesRequest,ListCustomTargetTypesResponse> listCustomTargetTypesCallable()Lists CustomTargetTypes in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListCustomTargetTypesRequest request = ListCustomTargetTypesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListCustomTargetTypesResponse response = cloudDeployClient.listCustomTargetTypesCallable().call(request); for (CustomTargetType element : response.getCustomTargetTypesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getCustomTargetType
Gets details of a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CustomTargetTypeName name = CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); CustomTargetType response = cloudDeployClient.getCustomTargetType(name); }- Parameters:
name- Required. Name of the `CustomTargetType`. Format must be `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.- Throws:
ApiException- if the remote call fails
-
getCustomTargetType
Gets details of a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString(); CustomTargetType response = cloudDeployClient.getCustomTargetType(name); }- Parameters:
name- Required. Name of the `CustomTargetType`. Format must be `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.- Throws:
ApiException- if the remote call fails
-
getCustomTargetType
Gets details of a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetCustomTargetTypeRequest request = GetCustomTargetTypeRequest.newBuilder() .setName( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .build(); CustomTargetType response = cloudDeployClient.getCustomTargetType(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getCustomTargetTypeCallable
public final UnaryCallable<GetCustomTargetTypeRequest,CustomTargetType> getCustomTargetTypeCallable()Gets details of a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetCustomTargetTypeRequest request = GetCustomTargetTypeRequest.newBuilder() .setName( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .build(); ApiFuture<CustomTargetType> future = cloudDeployClient.getCustomTargetTypeCallable().futureCall(request); // Do something. CustomTargetType response = future.get(); } -
createCustomTargetTypeAsync
public final OperationFuture<CustomTargetType,OperationMetadata> createCustomTargetTypeAsync(LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) Creates a new CustomTargetType in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); String customTargetTypeId = "customTargetTypeId1451302135"; CustomTargetType response = cloudDeployClient .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId) .get(); }- Parameters:
parent- Required. The parent collection in which the `CustomTargetType` must be created. The format is `projects/{project_id}/locations/{location_name}`.customTargetType- Required. The `CustomTargetType` to create.customTargetTypeId- Required. ID of the `CustomTargetType`.- Throws:
ApiException- if the remote call fails
-
createCustomTargetTypeAsync
public final OperationFuture<CustomTargetType,OperationMetadata> createCustomTargetTypeAsync(String parent, CustomTargetType customTargetType, String customTargetTypeId) Creates a new CustomTargetType in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); String customTargetTypeId = "customTargetTypeId1451302135"; CustomTargetType response = cloudDeployClient .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId) .get(); }- Parameters:
parent- Required. The parent collection in which the `CustomTargetType` must be created. The format is `projects/{project_id}/locations/{location_name}`.customTargetType- Required. The `CustomTargetType` to create.customTargetTypeId- Required. ID of the `CustomTargetType`.- Throws:
ApiException- if the remote call fails
-
createCustomTargetTypeAsync
public final OperationFuture<CustomTargetType,OperationMetadata> createCustomTargetTypeAsync(CreateCustomTargetTypeRequest request) Creates a new CustomTargetType in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateCustomTargetTypeRequest request = CreateCustomTargetTypeRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCustomTargetTypeId("customTargetTypeId1451302135") .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); CustomTargetType response = cloudDeployClient.createCustomTargetTypeAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createCustomTargetTypeOperationCallable
public final OperationCallable<CreateCustomTargetTypeRequest,CustomTargetType, createCustomTargetTypeOperationCallable()OperationMetadata> Creates a new CustomTargetType in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateCustomTargetTypeRequest request = CreateCustomTargetTypeRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCustomTargetTypeId("customTargetTypeId1451302135") .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); OperationFuture<CustomTargetType, OperationMetadata> future = cloudDeployClient.createCustomTargetTypeOperationCallable().futureCall(request); // Do something. CustomTargetType response = future.get(); } -
createCustomTargetTypeCallable
public final UnaryCallable<CreateCustomTargetTypeRequest,Operation> createCustomTargetTypeCallable()Creates a new CustomTargetType in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateCustomTargetTypeRequest request = CreateCustomTargetTypeRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCustomTargetTypeId("customTargetTypeId1451302135") .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.createCustomTargetTypeCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateCustomTargetTypeAsync
public final OperationFuture<CustomTargetType,OperationMetadata> updateCustomTargetTypeAsync(CustomTargetType customTargetType, com.google.protobuf.FieldMask updateMask) Updates a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); CustomTargetType response = cloudDeployClient.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); }- Parameters:
customTargetType- Required. The `CustomTargetType` to update.updateMask- Required. Field mask is used to specify the fields to be overwritten by the update in the `CustomTargetType` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.- Throws:
ApiException- if the remote call fails
-
updateCustomTargetTypeAsync
public final OperationFuture<CustomTargetType,OperationMetadata> updateCustomTargetTypeAsync(UpdateCustomTargetTypeRequest request) Updates a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateCustomTargetTypeRequest request = UpdateCustomTargetTypeRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); CustomTargetType response = cloudDeployClient.updateCustomTargetTypeAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateCustomTargetTypeOperationCallable
public final OperationCallable<UpdateCustomTargetTypeRequest,CustomTargetType, updateCustomTargetTypeOperationCallable()OperationMetadata> Updates a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateCustomTargetTypeRequest request = UpdateCustomTargetTypeRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<CustomTargetType, OperationMetadata> future = cloudDeployClient.updateCustomTargetTypeOperationCallable().futureCall(request); // Do something. CustomTargetType response = future.get(); } -
updateCustomTargetTypeCallable
public final UnaryCallable<UpdateCustomTargetTypeRequest,Operation> updateCustomTargetTypeCallable()Updates a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateCustomTargetTypeRequest request = UpdateCustomTargetTypeRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setCustomTargetType(CustomTargetType.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.updateCustomTargetTypeCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteCustomTargetTypeAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCustomTargetTypeAsync(CustomTargetTypeName name) Deletes a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CustomTargetTypeName name = CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); cloudDeployClient.deleteCustomTargetTypeAsync(name).get(); }- Parameters:
name- Required. The name of the `CustomTargetType` to delete. Format must be `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.- Throws:
ApiException- if the remote call fails
-
deleteCustomTargetTypeAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCustomTargetTypeAsync(String name) Deletes a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString(); cloudDeployClient.deleteCustomTargetTypeAsync(name).get(); }- Parameters:
name- Required. The name of the `CustomTargetType` to delete. Format must be `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.- Throws:
ApiException- if the remote call fails
-
deleteCustomTargetTypeAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCustomTargetTypeAsync(DeleteCustomTargetTypeRequest request) Deletes a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteCustomTargetTypeRequest request = DeleteCustomTargetTypeRequest.newBuilder() .setName( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); cloudDeployClient.deleteCustomTargetTypeAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteCustomTargetTypeOperationCallable
public final OperationCallable<DeleteCustomTargetTypeRequest,com.google.protobuf.Empty, deleteCustomTargetTypeOperationCallable()OperationMetadata> Deletes a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteCustomTargetTypeRequest request = DeleteCustomTargetTypeRequest.newBuilder() .setName( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = cloudDeployClient.deleteCustomTargetTypeOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteCustomTargetTypeCallable
public final UnaryCallable<DeleteCustomTargetTypeRequest,Operation> deleteCustomTargetTypeCallable()Deletes a single CustomTargetType.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteCustomTargetTypeRequest request = DeleteCustomTargetTypeRequest.newBuilder() .setName( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = cloudDeployClient.deleteCustomTargetTypeCallable().futureCall(request); // Do something. future.get(); } -
listReleases
Lists Releases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `DeliveryPipeline` which owns this collection of `Release` objects.- Throws:
ApiException- if the remote call fails
-
listReleases
Lists Releases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `DeliveryPipeline` which owns this collection of `Release` objects.- Throws:
ApiException- if the remote call fails
-
listReleases
Lists Releases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Release element : cloudDeployClient.listReleases(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listReleasesPagedCallable
public final UnaryCallable<ListReleasesRequest,CloudDeployClient.ListReleasesPagedResponse> listReleasesPagedCallable()Lists Releases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Release> future = cloudDeployClient.listReleasesPagedCallable().futureCall(request); // Do something. for (Release element : future.get().iterateAll()) { // doThingsWith(element); } } -
listReleasesCallable
Lists Releases in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListReleasesRequest request = ListReleasesRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListReleasesResponse response = cloudDeployClient.listReleasesCallable().call(request); for (Release element : response.getReleasesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getRelease
Gets details of a single Release.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); Release response = cloudDeployClient.getRelease(name); }- Parameters:
name- Required. Name of the `Release`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.- Throws:
ApiException- if the remote call fails
-
getRelease
Gets details of a single Release.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); Release response = cloudDeployClient.getRelease(name); }- Parameters:
name- Required. Name of the `Release`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.- Throws:
ApiException- if the remote call fails
-
getRelease
Gets details of a single Release.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetReleaseRequest request = GetReleaseRequest.newBuilder() .setName( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .build(); Release response = cloudDeployClient.getRelease(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getReleaseCallable
Gets details of a single Release.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetReleaseRequest request = GetReleaseRequest.newBuilder() .setName( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .build(); ApiFuture<Release> future = cloudDeployClient.getReleaseCallable().futureCall(request); // Do something. Release response = future.get(); } -
createReleaseAsync
public final OperationFuture<Release,OperationMetadata> createReleaseAsync(DeliveryPipelineName parent, Release release, String releaseId) Creates a new Release in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); Release release = Release.newBuilder().build(); String releaseId = "releaseId89607042"; Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get(); }- Parameters:
parent- Required. The parent collection in which the `Release` is created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.release- Required. The `Release` to create.releaseId- Required. ID of the `Release`.- Throws:
ApiException- if the remote call fails
-
createReleaseAsync
public final OperationFuture<Release,OperationMetadata> createReleaseAsync(String parent, Release release, String releaseId) Creates a new Release in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); Release release = Release.newBuilder().build(); String releaseId = "releaseId89607042"; Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get(); }- Parameters:
parent- Required. The parent collection in which the `Release` is created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.release- Required. The `Release` to create.releaseId- Required. ID of the `Release`.- Throws:
ApiException- if the remote call fails
-
createReleaseAsync
public final OperationFuture<Release,OperationMetadata> createReleaseAsync(CreateReleaseRequest request) Creates a new Release in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setReleaseId("releaseId89607042") .setRelease(Release.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); Release response = cloudDeployClient.createReleaseAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createReleaseOperationCallable
public final OperationCallable<CreateReleaseRequest,Release, createReleaseOperationCallable()OperationMetadata> Creates a new Release in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setReleaseId("releaseId89607042") .setRelease(Release.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); OperationFuture<Release, OperationMetadata> future = cloudDeployClient.createReleaseOperationCallable().futureCall(request); // Do something. Release response = future.get(); } -
createReleaseCallable
Creates a new Release in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateReleaseRequest request = CreateReleaseRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setReleaseId("releaseId89607042") .setRelease(Release.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<Operation> future = cloudDeployClient.createReleaseCallable().futureCall(request); // Do something. Operation response = future.get(); } -
abandonRelease
Abandons a Release in the Delivery Pipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name); }- Parameters:
name- Required. Name of the Release. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.- Throws:
ApiException- if the remote call fails
-
abandonRelease
Abandons a Release in the Delivery Pipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name); }- Parameters:
name- Required. Name of the Release. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.- Throws:
ApiException- if the remote call fails
-
abandonRelease
Abandons a Release in the Delivery Pipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AbandonReleaseRequest request = AbandonReleaseRequest.newBuilder() .setName( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .build(); AbandonReleaseResponse response = cloudDeployClient.abandonRelease(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
abandonReleaseCallable
Abandons a Release in the Delivery Pipeline.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AbandonReleaseRequest request = AbandonReleaseRequest.newBuilder() .setName( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .build(); ApiFuture<AbandonReleaseResponse> future = cloudDeployClient.abandonReleaseCallable().futureCall(request); // Do something. AbandonReleaseResponse response = future.get(); } -
createDeployPolicyAsync
public final OperationFuture<DeployPolicy,OperationMetadata> createDeployPolicyAsync(LocationName parent, DeployPolicy deployPolicy, String deployPolicyId) Creates a new DeployPolicy in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); DeployPolicy deployPolicy = DeployPolicy.newBuilder().build(); String deployPolicyId = "deployPolicyId-1490278412"; DeployPolicy response = cloudDeployClient.createDeployPolicyAsync(parent, deployPolicy, deployPolicyId).get(); }- Parameters:
parent- Required. The parent collection in which the `DeployPolicy` must be created. The format is `projects/{project_id}/locations/{location_name}`.deployPolicy- Required. The `DeployPolicy` to create.deployPolicyId- Required. ID of the `DeployPolicy`.- Throws:
ApiException- if the remote call fails
-
createDeployPolicyAsync
public final OperationFuture<DeployPolicy,OperationMetadata> createDeployPolicyAsync(String parent, DeployPolicy deployPolicy, String deployPolicyId) Creates a new DeployPolicy in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); DeployPolicy deployPolicy = DeployPolicy.newBuilder().build(); String deployPolicyId = "deployPolicyId-1490278412"; DeployPolicy response = cloudDeployClient.createDeployPolicyAsync(parent, deployPolicy, deployPolicyId).get(); }- Parameters:
parent- Required. The parent collection in which the `DeployPolicy` must be created. The format is `projects/{project_id}/locations/{location_name}`.deployPolicy- Required. The `DeployPolicy` to create.deployPolicyId- Required. ID of the `DeployPolicy`.- Throws:
ApiException- if the remote call fails
-
createDeployPolicyAsync
public final OperationFuture<DeployPolicy,OperationMetadata> createDeployPolicyAsync(CreateDeployPolicyRequest request) Creates a new DeployPolicy in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeployPolicyRequest request = CreateDeployPolicyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeployPolicyId("deployPolicyId-1490278412") .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); DeployPolicy response = cloudDeployClient.createDeployPolicyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createDeployPolicyOperationCallable
public final OperationCallable<CreateDeployPolicyRequest,DeployPolicy, createDeployPolicyOperationCallable()OperationMetadata> Creates a new DeployPolicy in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeployPolicyRequest request = CreateDeployPolicyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeployPolicyId("deployPolicyId-1490278412") .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); OperationFuture<DeployPolicy, OperationMetadata> future = cloudDeployClient.createDeployPolicyOperationCallable().futureCall(request); // Do something. DeployPolicy response = future.get(); } -
createDeployPolicyCallable
Creates a new DeployPolicy in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateDeployPolicyRequest request = CreateDeployPolicyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setDeployPolicyId("deployPolicyId-1490278412") .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.createDeployPolicyCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateDeployPolicyAsync
public final OperationFuture<DeployPolicy,OperationMetadata> updateDeployPolicyAsync(DeployPolicy deployPolicy, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeployPolicy deployPolicy = DeployPolicy.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); DeployPolicy response = cloudDeployClient.updateDeployPolicyAsync(deployPolicy, updateMask).get(); }- Parameters:
deployPolicy- Required. The `DeployPolicy` to update.updateMask- Required. Field mask is used to specify the fields to be overwritten by the update in the `DeployPolicy` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.- Throws:
ApiException- if the remote call fails
-
updateDeployPolicyAsync
public final OperationFuture<DeployPolicy,OperationMetadata> updateDeployPolicyAsync(UpdateDeployPolicyRequest request) Updates the parameters of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeployPolicyRequest request = UpdateDeployPolicyRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); DeployPolicy response = cloudDeployClient.updateDeployPolicyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateDeployPolicyOperationCallable
public final OperationCallable<UpdateDeployPolicyRequest,DeployPolicy, updateDeployPolicyOperationCallable()OperationMetadata> Updates the parameters of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeployPolicyRequest request = UpdateDeployPolicyRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<DeployPolicy, OperationMetadata> future = cloudDeployClient.updateDeployPolicyOperationCallable().futureCall(request); // Do something. DeployPolicy response = future.get(); } -
updateDeployPolicyCallable
Updates the parameters of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateDeployPolicyRequest request = UpdateDeployPolicyRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setDeployPolicy(DeployPolicy.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.updateDeployPolicyCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteDeployPolicyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeployPolicyAsync(DeployPolicyName name) Deletes a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeployPolicyName name = DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]"); cloudDeployClient.deleteDeployPolicyAsync(name).get(); }- Parameters:
name- Required. The name of the `DeployPolicy` to delete. The format is `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.- Throws:
ApiException- if the remote call fails
-
deleteDeployPolicyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeployPolicyAsync(String name) Deletes a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString(); cloudDeployClient.deleteDeployPolicyAsync(name).get(); }- Parameters:
name- Required. The name of the `DeployPolicy` to delete. The format is `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.- Throws:
ApiException- if the remote call fails
-
deleteDeployPolicyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteDeployPolicyAsync(DeleteDeployPolicyRequest request) Deletes a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeployPolicyRequest request = DeleteDeployPolicyRequest.newBuilder() .setName(DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); cloudDeployClient.deleteDeployPolicyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteDeployPolicyOperationCallable
public final OperationCallable<DeleteDeployPolicyRequest,com.google.protobuf.Empty, deleteDeployPolicyOperationCallable()OperationMetadata> Deletes a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeployPolicyRequest request = DeleteDeployPolicyRequest.newBuilder() .setName(DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = cloudDeployClient.deleteDeployPolicyOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteDeployPolicyCallable
Deletes a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteDeployPolicyRequest request = DeleteDeployPolicyRequest.newBuilder() .setName(DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = cloudDeployClient.deleteDeployPolicyCallable().futureCall(request); // Do something. future.get(); } -
listDeployPolicies
public final CloudDeployClient.ListDeployPoliciesPagedResponse listDeployPolicies(LocationName parent) Lists DeployPolicies in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (DeployPolicy element : cloudDeployClient.listDeployPolicies(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of deploy policies. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listDeployPolicies
Lists DeployPolicies in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (DeployPolicy element : cloudDeployClient.listDeployPolicies(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent, which owns this collection of deploy policies. Format must be `projects/{project_id}/locations/{location_name}`.- Throws:
ApiException- if the remote call fails
-
listDeployPolicies
public final CloudDeployClient.ListDeployPoliciesPagedResponse listDeployPolicies(ListDeployPoliciesRequest request) Lists DeployPolicies in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeployPoliciesRequest request = ListDeployPoliciesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (DeployPolicy element : cloudDeployClient.listDeployPolicies(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listDeployPoliciesPagedCallable
public final UnaryCallable<ListDeployPoliciesRequest,CloudDeployClient.ListDeployPoliciesPagedResponse> listDeployPoliciesPagedCallable()Lists DeployPolicies in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeployPoliciesRequest request = ListDeployPoliciesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<DeployPolicy> future = cloudDeployClient.listDeployPoliciesPagedCallable().futureCall(request); // Do something. for (DeployPolicy element : future.get().iterateAll()) { // doThingsWith(element); } } -
listDeployPoliciesCallable
public final UnaryCallable<ListDeployPoliciesRequest,ListDeployPoliciesResponse> listDeployPoliciesCallable()Lists DeployPolicies in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListDeployPoliciesRequest request = ListDeployPoliciesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListDeployPoliciesResponse response = cloudDeployClient.listDeployPoliciesCallable().call(request); for (DeployPolicy element : response.getDeployPoliciesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getDeployPolicy
Gets details of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeployPolicyName name = DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]"); DeployPolicy response = cloudDeployClient.getDeployPolicy(name); }- Parameters:
name- Required. Name of the `DeployPolicy`. Format must be `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.- Throws:
ApiException- if the remote call fails
-
getDeployPolicy
Gets details of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString(); DeployPolicy response = cloudDeployClient.getDeployPolicy(name); }- Parameters:
name- Required. Name of the `DeployPolicy`. Format must be `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`.- Throws:
ApiException- if the remote call fails
-
getDeployPolicy
Gets details of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetDeployPolicyRequest request = GetDeployPolicyRequest.newBuilder() .setName(DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString()) .build(); DeployPolicy response = cloudDeployClient.getDeployPolicy(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getDeployPolicyCallable
Gets details of a single DeployPolicy.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetDeployPolicyRequest request = GetDeployPolicyRequest.newBuilder() .setName(DeployPolicyName.of("[PROJECT]", "[LOCATION]", "[DEPLOY_POLICY]").toString()) .build(); ApiFuture<DeployPolicy> future = cloudDeployClient.getDeployPolicyCallable().futureCall(request); // Do something. DeployPolicy response = future.get(); } -
approveRollout
Approves a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName name = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); ApproveRolloutResponse response = cloudDeployClient.approveRollout(name); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.- Throws:
ApiException- if the remote call fails
-
approveRollout
Approves a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); ApproveRolloutResponse response = cloudDeployClient.approveRollout(name); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.- Throws:
ApiException- if the remote call fails
-
approveRollout
Approves a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ApproveRolloutRequest request = ApproveRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setApproved(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApproveRolloutResponse response = cloudDeployClient.approveRollout(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
approveRolloutCallable
Approves a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ApproveRolloutRequest request = ApproveRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setApproved(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<ApproveRolloutResponse> future = cloudDeployClient.approveRolloutCallable().futureCall(request); // Do something. ApproveRolloutResponse response = future.get(); } -
advanceRollout
Advances a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName name = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); String phaseId = "phaseId-608264202"; AdvanceRolloutResponse response = cloudDeployClient.advanceRollout(name, phaseId); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID to advance the `Rollout` to.- Throws:
ApiException- if the remote call fails
-
advanceRollout
Advances a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); String phaseId = "phaseId-608264202"; AdvanceRolloutResponse response = cloudDeployClient.advanceRollout(name, phaseId); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID to advance the `Rollout` to.- Throws:
ApiException- if the remote call fails
-
advanceRollout
Advances a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AdvanceRolloutRequest request = AdvanceRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); AdvanceRolloutResponse response = cloudDeployClient.advanceRollout(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
advanceRolloutCallable
Advances a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AdvanceRolloutRequest request = AdvanceRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<AdvanceRolloutResponse> future = cloudDeployClient.advanceRolloutCallable().futureCall(request); // Do something. AdvanceRolloutResponse response = future.get(); } -
cancelRollout
Cancels a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName name = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); CancelRolloutResponse response = cloudDeployClient.cancelRollout(name); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.- Throws:
ApiException- if the remote call fails
-
cancelRollout
Cancels a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); CancelRolloutResponse response = cloudDeployClient.cancelRollout(name); }- Parameters:
name- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.- Throws:
ApiException- if the remote call fails
-
cancelRollout
Cancels a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CancelRolloutRequest request = CancelRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); CancelRolloutResponse response = cloudDeployClient.cancelRollout(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
cancelRolloutCallable
Cancels a Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CancelRolloutRequest request = CancelRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<CancelRolloutResponse> future = cloudDeployClient.cancelRolloutCallable().futureCall(request); // Do something. CancelRolloutResponse response = future.get(); } -
listRollouts
Lists Rollouts in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ReleaseName parent = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `Release` which owns this collection of `Rollout` objects.- Throws:
ApiException- if the remote call fails
-
listRollouts
Lists Rollouts in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `Release` which owns this collection of `Rollout` objects.- Throws:
ApiException- if the remote call fails
-
listRollouts
Lists Rollouts in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Rollout element : cloudDeployClient.listRollouts(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listRolloutsPagedCallable
public final UnaryCallable<ListRolloutsRequest,CloudDeployClient.ListRolloutsPagedResponse> listRolloutsPagedCallable()Lists Rollouts in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Rollout> future = cloudDeployClient.listRolloutsPagedCallable().futureCall(request); // Do something. for (Rollout element : future.get().iterateAll()) { // doThingsWith(element); } } -
listRolloutsCallable
Lists Rollouts in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListRolloutsRequest request = ListRolloutsRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListRolloutsResponse response = cloudDeployClient.listRolloutsCallable().call(request); for (Rollout element : response.getRolloutsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getRollout
Gets details of a single Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName name = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); Rollout response = cloudDeployClient.getRollout(name); }- Parameters:
name- Required. Name of the `Rollout`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.- Throws:
ApiException- if the remote call fails
-
getRollout
Gets details of a single Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); Rollout response = cloudDeployClient.getRollout(name); }- Parameters:
name- Required. Name of the `Rollout`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`.- Throws:
ApiException- if the remote call fails
-
getRollout
Gets details of a single Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetRolloutRequest request = GetRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .build(); Rollout response = cloudDeployClient.getRollout(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getRolloutCallable
Gets details of a single Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetRolloutRequest request = GetRolloutRequest.newBuilder() .setName( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .build(); ApiFuture<Rollout> future = cloudDeployClient.getRolloutCallable().futureCall(request); // Do something. Rollout response = future.get(); } -
createRolloutAsync
public final OperationFuture<Rollout,OperationMetadata> createRolloutAsync(ReleaseName parent, Rollout rollout, String rolloutId) Creates a new Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ReleaseName parent = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); Rollout rollout = Rollout.newBuilder().build(); String rolloutId = "rolloutId551248556"; Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get(); }- Parameters:
parent- Required. The parent collection in which the `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.rollout- Required. The `Rollout` to create.rolloutId- Required. ID of the `Rollout`.- Throws:
ApiException- if the remote call fails
-
createRolloutAsync
public final OperationFuture<Rollout,OperationMetadata> createRolloutAsync(String parent, Rollout rollout, String rolloutId) Creates a new Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); Rollout rollout = Rollout.newBuilder().build(); String rolloutId = "rolloutId551248556"; Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get(); }- Parameters:
parent- Required. The parent collection in which the `Rollout` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`.rollout- Required. The `Rollout` to create.rolloutId- Required. ID of the `Rollout`.- Throws:
ApiException- if the remote call fails
-
createRolloutAsync
public final OperationFuture<Rollout,OperationMetadata> createRolloutAsync(CreateRolloutRequest request) Creates a new Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateRolloutRequest request = CreateRolloutRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setRolloutId("rolloutId551248556") .setRollout(Rollout.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .setStartingPhaseId("startingPhaseId-326529130") .build(); Rollout response = cloudDeployClient.createRolloutAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createRolloutOperationCallable
public final OperationCallable<CreateRolloutRequest,Rollout, createRolloutOperationCallable()OperationMetadata> Creates a new Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateRolloutRequest request = CreateRolloutRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setRolloutId("rolloutId551248556") .setRollout(Rollout.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .setStartingPhaseId("startingPhaseId-326529130") .build(); OperationFuture<Rollout, OperationMetadata> future = cloudDeployClient.createRolloutOperationCallable().futureCall(request); // Do something. Rollout response = future.get(); } -
createRolloutCallable
Creates a new Rollout in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateRolloutRequest request = CreateRolloutRequest.newBuilder() .setParent( ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") .toString()) .setRolloutId("rolloutId551248556") .setRollout(Rollout.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .addAllOverrideDeployPolicy(new ArrayList<String>()) .setStartingPhaseId("startingPhaseId-326529130") .build(); ApiFuture<Operation> future = cloudDeployClient.createRolloutCallable().futureCall(request); // Do something. Operation response = future.get(); } -
ignoreJob
Ignores the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName rollout = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); String phaseId = "phaseId-608264202"; String jobId = "jobId101296568"; IgnoreJobResponse response = cloudDeployClient.ignoreJob(rollout, phaseId, jobId); }- Parameters:
rollout- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID the Job to ignore belongs to.jobId- Required. The job ID for the Job to ignore.- Throws:
ApiException- if the remote call fails
-
ignoreJob
Ignores the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String rollout = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); String phaseId = "phaseId-608264202"; String jobId = "jobId101296568"; IgnoreJobResponse response = cloudDeployClient.ignoreJob(rollout, phaseId, jobId); }- Parameters:
rollout- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID the Job to ignore belongs to.jobId- Required. The job ID for the Job to ignore.- Throws:
ApiException- if the remote call fails
-
ignoreJob
Ignores the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { IgnoreJobRequest request = IgnoreJobRequest.newBuilder() .setRollout( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .setJobId("jobId101296568") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); IgnoreJobResponse response = cloudDeployClient.ignoreJob(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
ignoreJobCallable
Ignores the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { IgnoreJobRequest request = IgnoreJobRequest.newBuilder() .setRollout( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .setJobId("jobId101296568") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<IgnoreJobResponse> future = cloudDeployClient.ignoreJobCallable().futureCall(request); // Do something. IgnoreJobResponse response = future.get(); } -
retryJob
Retries the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName rollout = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); String phaseId = "phaseId-608264202"; String jobId = "jobId101296568"; RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId); }- Parameters:
rollout- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID the Job to retry belongs to.jobId- Required. The job ID for the Job to retry.- Throws:
ApiException- if the remote call fails
-
retryJob
Retries the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String rollout = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); String phaseId = "phaseId-608264202"; String jobId = "jobId101296568"; RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId); }- Parameters:
rollout- Required. Name of the Rollout. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.phaseId- Required. The phase ID the Job to retry belongs to.jobId- Required. The job ID for the Job to retry.- Throws:
ApiException- if the remote call fails
-
retryJob
Retries the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RetryJobRequest request = RetryJobRequest.newBuilder() .setRollout( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .setJobId("jobId101296568") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); RetryJobResponse response = cloudDeployClient.retryJob(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
retryJobCallable
Retries the specified Job in a Rollout.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RetryJobRequest request = RetryJobRequest.newBuilder() .setRollout( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPhaseId("phaseId-608264202") .setJobId("jobId101296568") .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<RetryJobResponse> future = cloudDeployClient.retryJobCallable().futureCall(request); // Do something. RetryJobResponse response = future.get(); } -
listJobRuns
Lists JobRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { RolloutName parent = RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `Rollout` which owns this collection of `JobRun` objects.- Throws:
ApiException- if the remote call fails
-
listJobRuns
Lists JobRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString(); for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The `Rollout` which owns this collection of `JobRun` objects.- Throws:
ApiException- if the remote call fails
-
listJobRuns
Lists JobRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListJobRunsRequest request = ListJobRunsRequest.newBuilder() .setParent( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (JobRun element : cloudDeployClient.listJobRuns(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listJobRunsPagedCallable
public final UnaryCallable<ListJobRunsRequest,CloudDeployClient.ListJobRunsPagedResponse> listJobRunsPagedCallable()Lists JobRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListJobRunsRequest request = ListJobRunsRequest.newBuilder() .setParent( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<JobRun> future = cloudDeployClient.listJobRunsPagedCallable().futureCall(request); // Do something. for (JobRun element : future.get().iterateAll()) { // doThingsWith(element); } } -
listJobRunsCallable
Lists JobRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListJobRunsRequest request = ListJobRunsRequest.newBuilder() .setParent( RolloutName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListJobRunsResponse response = cloudDeployClient.listJobRunsCallable().call(request); for (JobRun element : response.getJobRunsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getJobRun
Gets details of a single JobRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { JobRunName name = JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]"); JobRun response = cloudDeployClient.getJobRun(name); }- Parameters:
name- Required. Name of the `JobRun`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.- Throws:
ApiException- if the remote call fails
-
getJobRun
Gets details of a single JobRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString(); JobRun response = cloudDeployClient.getJobRun(name); }- Parameters:
name- Required. Name of the `JobRun`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.- Throws:
ApiException- if the remote call fails
-
getJobRun
Gets details of a single JobRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetJobRunRequest request = GetJobRunRequest.newBuilder() .setName( JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString()) .build(); JobRun response = cloudDeployClient.getJobRun(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getJobRunCallable
Gets details of a single JobRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetJobRunRequest request = GetJobRunRequest.newBuilder() .setName( JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString()) .build(); ApiFuture<JobRun> future = cloudDeployClient.getJobRunCallable().futureCall(request); // Do something. JobRun response = future.get(); } -
terminateJobRun
Terminates a Job Run in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { JobRunName name = JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]"); TerminateJobRunResponse response = cloudDeployClient.terminateJobRun(name); }- Parameters:
name- Required. Name of the `JobRun`. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.- Throws:
ApiException- if the remote call fails
-
terminateJobRun
Terminates a Job Run in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString(); TerminateJobRunResponse response = cloudDeployClient.terminateJobRun(name); }- Parameters:
name- Required. Name of the `JobRun`. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`.- Throws:
ApiException- if the remote call fails
-
terminateJobRun
Terminates a Job Run in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TerminateJobRunRequest request = TerminateJobRunRequest.newBuilder() .setName( JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString()) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); TerminateJobRunResponse response = cloudDeployClient.terminateJobRun(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
terminateJobRunCallable
public final UnaryCallable<TerminateJobRunRequest,TerminateJobRunResponse> terminateJobRunCallable()Terminates a Job Run in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TerminateJobRunRequest request = TerminateJobRunRequest.newBuilder() .setName( JobRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]") .toString()) .addAllOverrideDeployPolicy(new ArrayList<String>()) .build(); ApiFuture<TerminateJobRunResponse> future = cloudDeployClient.terminateJobRunCallable().futureCall(request); // Do something. TerminateJobRunResponse response = future.get(); } -
getConfig
Gets the configuration for a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); Config response = cloudDeployClient.getConfig(name); }- Parameters:
name- Required. Name of requested configuration.- Throws:
ApiException- if the remote call fails
-
getConfig
Gets the configuration for a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); Config response = cloudDeployClient.getConfig(name); }- Parameters:
name- Required. Name of requested configuration.- Throws:
ApiException- if the remote call fails
-
getConfig
Gets the configuration for a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetConfigRequest request = GetConfigRequest.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); Config response = cloudDeployClient.getConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getConfigCallable
Gets the configuration for a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetConfigRequest request = GetConfigRequest.newBuilder() .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); ApiFuture<Config> future = cloudDeployClient.getConfigCallable().futureCall(request); // Do something. Config response = future.get(); } -
createAutomationAsync
public final OperationFuture<Automation,OperationMetadata> createAutomationAsync(DeliveryPipelineName parent, Automation automation, String automationId) Creates a new Automation in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); Automation automation = Automation.newBuilder().build(); String automationId = "automationId64173202"; Automation response = cloudDeployClient.createAutomationAsync(parent, automation, automationId).get(); }- Parameters:
parent- Required. The parent collection in which the `Automation` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.automation- Required. The `Automation` to create.automationId- Required. ID of the `Automation`.- Throws:
ApiException- if the remote call fails
-
createAutomationAsync
public final OperationFuture<Automation,OperationMetadata> createAutomationAsync(String parent, Automation automation, String automationId) Creates a new Automation in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); Automation automation = Automation.newBuilder().build(); String automationId = "automationId64173202"; Automation response = cloudDeployClient.createAutomationAsync(parent, automation, automationId).get(); }- Parameters:
parent- Required. The parent collection in which the `Automation` must be created. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.automation- Required. The `Automation` to create.automationId- Required. ID of the `Automation`.- Throws:
ApiException- if the remote call fails
-
createAutomationAsync
public final OperationFuture<Automation,OperationMetadata> createAutomationAsync(CreateAutomationRequest request) Creates a new Automation in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateAutomationRequest request = CreateAutomationRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setAutomationId("automationId64173202") .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); Automation response = cloudDeployClient.createAutomationAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAutomationOperationCallable
public final OperationCallable<CreateAutomationRequest,Automation, createAutomationOperationCallable()OperationMetadata> Creates a new Automation in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateAutomationRequest request = CreateAutomationRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setAutomationId("automationId64173202") .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); OperationFuture<Automation, OperationMetadata> future = cloudDeployClient.createAutomationOperationCallable().futureCall(request); // Do something. Automation response = future.get(); } -
createAutomationCallable
Creates a new Automation in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CreateAutomationRequest request = CreateAutomationRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setAutomationId("automationId64173202") .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.createAutomationCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateAutomationAsync
public final OperationFuture<Automation,OperationMetadata> updateAutomationAsync(Automation automation, com.google.protobuf.FieldMask updateMask) Updates the parameters of a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { Automation automation = Automation.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Automation response = cloudDeployClient.updateAutomationAsync(automation, updateMask).get(); }- Parameters:
automation- Required. The `Automation` to update.updateMask- Required. Field mask is used to specify the fields to be overwritten by the update in the `Automation` resource. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it's in the mask. If the user doesn't provide a mask then all fields are overwritten.- Throws:
ApiException- if the remote call fails
-
updateAutomationAsync
public final OperationFuture<Automation,OperationMetadata> updateAutomationAsync(UpdateAutomationRequest request) Updates the parameters of a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateAutomationRequest request = UpdateAutomationRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); Automation response = cloudDeployClient.updateAutomationAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAutomationOperationCallable
public final OperationCallable<UpdateAutomationRequest,Automation, updateAutomationOperationCallable()OperationMetadata> Updates the parameters of a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateAutomationRequest request = UpdateAutomationRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); OperationFuture<Automation, OperationMetadata> future = cloudDeployClient.updateAutomationOperationCallable().futureCall(request); // Do something. Automation response = future.get(); } -
updateAutomationCallable
Updates the parameters of a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { UpdateAutomationRequest request = UpdateAutomationRequest.newBuilder() .setUpdateMask(FieldMask.newBuilder().build()) .setAutomation(Automation.newBuilder().build()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .build(); ApiFuture<Operation> future = cloudDeployClient.updateAutomationCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteAutomationAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAutomationAsync(AutomationName name) Deletes a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AutomationName name = AutomationName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]"); cloudDeployClient.deleteAutomationAsync(name).get(); }- Parameters:
name- Required. The name of the `Automation` to delete. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.- Throws:
ApiException- if the remote call fails
-
deleteAutomationAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAutomationAsync(String name) Deletes a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = AutomationName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString(); cloudDeployClient.deleteAutomationAsync(name).get(); }- Parameters:
name- Required. The name of the `Automation` to delete. The format is `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.- Throws:
ApiException- if the remote call fails
-
deleteAutomationAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAutomationAsync(DeleteAutomationRequest request) Deletes a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteAutomationRequest request = DeleteAutomationRequest.newBuilder() .setName( AutomationName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); cloudDeployClient.deleteAutomationAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAutomationOperationCallable
public final OperationCallable<DeleteAutomationRequest,com.google.protobuf.Empty, deleteAutomationOperationCallable()OperationMetadata> Deletes a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteAutomationRequest request = DeleteAutomationRequest.newBuilder() .setName( AutomationName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = cloudDeployClient.deleteAutomationOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAutomationCallable
Deletes a single Automation resource.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeleteAutomationRequest request = DeleteAutomationRequest.newBuilder() .setName( AutomationName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString()) .setRequestId("requestId693933066") .setAllowMissing(true) .setValidateOnly(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = cloudDeployClient.deleteAutomationCallable().futureCall(request); // Do something. future.get(); } -
getAutomation
Gets details of a single Automation.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AutomationName name = AutomationName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]"); Automation response = cloudDeployClient.getAutomation(name); }- Parameters:
name- Required. Name of the `Automation`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.- Throws:
ApiException- if the remote call fails
-
getAutomation
Gets details of a single Automation.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = AutomationName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString(); Automation response = cloudDeployClient.getAutomation(name); }- Parameters:
name- Required. Name of the `Automation`. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`.- Throws:
ApiException- if the remote call fails
-
getAutomation
Gets details of a single Automation.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetAutomationRequest request = GetAutomationRequest.newBuilder() .setName( AutomationName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString()) .build(); Automation response = cloudDeployClient.getAutomation(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAutomationCallable
Gets details of a single Automation.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetAutomationRequest request = GetAutomationRequest.newBuilder() .setName( AutomationName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION]") .toString()) .build(); ApiFuture<Automation> future = cloudDeployClient.getAutomationCallable().futureCall(request); // Do something. Automation response = future.get(); } -
listAutomations
public final CloudDeployClient.ListAutomationsPagedResponse listAutomations(DeliveryPipelineName parent) Lists Automations in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); for (Automation element : cloudDeployClient.listAutomations(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `Delivery Pipeline`, which owns this collection of automations. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
listAutomations
Lists Automations in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); for (Automation element : cloudDeployClient.listAutomations(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `Delivery Pipeline`, which owns this collection of automations. Format must be `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.- Throws:
ApiException- if the remote call fails
-
listAutomations
public final CloudDeployClient.ListAutomationsPagedResponse listAutomations(ListAutomationsRequest request) Lists Automations in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationsRequest request = ListAutomationsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Automation element : cloudDeployClient.listAutomations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutomationsPagedCallable
public final UnaryCallable<ListAutomationsRequest,CloudDeployClient.ListAutomationsPagedResponse> listAutomationsPagedCallable()Lists Automations in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationsRequest request = ListAutomationsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Automation> future = cloudDeployClient.listAutomationsPagedCallable().futureCall(request); // Do something. for (Automation element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAutomationsCallable
public final UnaryCallable<ListAutomationsRequest,ListAutomationsResponse> listAutomationsCallable()Lists Automations in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationsRequest request = ListAutomationsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListAutomationsResponse response = cloudDeployClient.listAutomationsCallable().call(request); for (Automation element : response.getAutomationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getAutomationRun
Gets details of a single AutomationRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AutomationRunName name = AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]"); AutomationRun response = cloudDeployClient.getAutomationRun(name); }- Parameters:
name- Required. Name of the `AutomationRun`. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.- Throws:
ApiException- if the remote call fails
-
getAutomationRun
Gets details of a single AutomationRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = AutomationRunName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString(); AutomationRun response = cloudDeployClient.getAutomationRun(name); }- Parameters:
name- Required. Name of the `AutomationRun`. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.- Throws:
ApiException- if the remote call fails
-
getAutomationRun
Gets details of a single AutomationRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetAutomationRunRequest request = GetAutomationRunRequest.newBuilder() .setName( AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString()) .build(); AutomationRun response = cloudDeployClient.getAutomationRun(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAutomationRunCallable
Gets details of a single AutomationRun.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetAutomationRunRequest request = GetAutomationRunRequest.newBuilder() .setName( AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString()) .build(); ApiFuture<AutomationRun> future = cloudDeployClient.getAutomationRunCallable().futureCall(request); // Do something. AutomationRun response = future.get(); } -
listAutomationRuns
public final CloudDeployClient.ListAutomationRunsPagedResponse listAutomationRuns(DeliveryPipelineName parent) Lists AutomationRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { DeliveryPipelineName parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); for (AutomationRun element : cloudDeployClient.listAutomationRuns(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `Delivery Pipeline`, which owns this collection of automationRuns. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.- Throws:
ApiException- if the remote call fails
-
listAutomationRuns
Lists AutomationRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String parent = DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); for (AutomationRun element : cloudDeployClient.listAutomationRuns(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `Delivery Pipeline`, which owns this collection of automationRuns. Format must be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.- Throws:
ApiException- if the remote call fails
-
listAutomationRuns
public final CloudDeployClient.ListAutomationRunsPagedResponse listAutomationRuns(ListAutomationRunsRequest request) Lists AutomationRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationRunsRequest request = ListAutomationRunsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (AutomationRun element : cloudDeployClient.listAutomationRuns(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listAutomationRunsPagedCallable
public final UnaryCallable<ListAutomationRunsRequest,CloudDeployClient.ListAutomationRunsPagedResponse> listAutomationRunsPagedCallable()Lists AutomationRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationRunsRequest request = ListAutomationRunsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<AutomationRun> future = cloudDeployClient.listAutomationRunsPagedCallable().futureCall(request); // Do something. for (AutomationRun element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAutomationRunsCallable
public final UnaryCallable<ListAutomationRunsRequest,ListAutomationRunsResponse> listAutomationRunsCallable()Lists AutomationRuns in a given project and location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListAutomationRunsRequest request = ListAutomationRunsRequest.newBuilder() .setParent( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListAutomationRunsResponse response = cloudDeployClient.listAutomationRunsCallable().call(request); for (AutomationRun element : response.getAutomationRunsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
cancelAutomationRun
Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { AutomationRunName name = AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]"); CancelAutomationRunResponse response = cloudDeployClient.cancelAutomationRun(name); }- Parameters:
name- Required. Name of the `AutomationRun`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.- Throws:
ApiException- if the remote call fails
-
cancelAutomationRun
Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { String name = AutomationRunName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString(); CancelAutomationRunResponse response = cloudDeployClient.cancelAutomationRun(name); }- Parameters:
name- Required. Name of the `AutomationRun`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`.- Throws:
ApiException- if the remote call fails
-
cancelAutomationRun
Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CancelAutomationRunRequest request = CancelAutomationRunRequest.newBuilder() .setName( AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString()) .build(); CancelAutomationRunResponse response = cloudDeployClient.cancelAutomationRun(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
cancelAutomationRunCallable
public final UnaryCallable<CancelAutomationRunRequest,CancelAutomationRunResponse> cancelAutomationRunCallable()Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { CancelAutomationRunRequest request = CancelAutomationRunRequest.newBuilder() .setName( AutomationRunName.of( "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[AUTOMATION_RUN]") .toString()) .build(); ApiFuture<CancelAutomationRunResponse> future = cloudDeployClient.cancelAutomationRunCallable().futureCall(request); // Do something. CancelAutomationRunResponse response = future.get(); } -
listLocations
public final CloudDeployClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request) Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (Location element : cloudDeployClient.listLocations(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLocationsPagedCallable
public final UnaryCallable<ListLocationsRequest,CloudDeployClient.ListLocationsPagedResponse> listLocationsPagedCallable()Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<Location> future = cloudDeployClient.listLocationsPagedCallable().futureCall(request); // Do something. for (Location element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLocationsCallable
Lists information about the supported locations for this service.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { ListLocationsRequest request = ListLocationsRequest.newBuilder() .setName("name3373707") .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListLocationsResponse response = cloudDeployClient.listLocationsCallable().call(request); for (Location element : response.getLocationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getLocation
Gets information about a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); Location response = cloudDeployClient.getLocation(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLocationCallable
Gets information about a location.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); ApiFuture<Location> future = cloudDeployClient.getLocationCallable().futureCall(request); // Do something. Location response = future.get(); } -
setIamPolicy
Sets the access control policy on the specified resource. Replacesany existing policy.Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); Policy response = cloudDeployClient.setIamPolicy(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
setIamPolicyCallable
Sets the access control policy on the specified resource. Replacesany existing policy.Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() .setResource( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Policy> future = cloudDeployClient.setIamPolicyCallable().futureCall(request); // Do something. Policy response = future.get(); } -
getIamPolicy
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); Policy response = cloudDeployClient.getIamPolicy(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getIamPolicyCallable
Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() .setResource( CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") .toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); ApiFuture<Policy> future = cloudDeployClient.getIamPolicyCallable().futureCall(request); // Do something. Policy response = future.get(); } -
testIamPermissions
Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .addAllPermissions(new ArrayList<String>()) .build(); TestIamPermissionsResponse response = cloudDeployClient.testIamPermissions(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
testIamPermissionsCallable
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error.Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource( DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") .toString()) .addAllPermissions(new ArrayList<String>()) .build(); ApiFuture<TestIamPermissionsResponse> future = cloudDeployClient.testIamPermissionsCallable().futureCall(request); // Do something. TestIamPermissionsResponse response = future.get(); } -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-