Class AwsClustersClient
- 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) {
AwsClusterName name = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]");
AwsCluster response = awsClustersClient.getAwsCluster(name);
}
Note: close() needs to be called on the AwsClustersClient 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 |
|---|---|---|
CreateAwsCluster |
Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
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.
|
UpdateAwsCluster |
Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. |
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.
|
GetAwsCluster |
Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. |
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.
|
ListAwsClusters |
Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region. |
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.
|
DeleteAwsCluster |
Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
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.
|
GenerateAwsClusterAgentToken |
Generates an access token for a cluster agent. |
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.
|
GenerateAwsAccessToken |
Generates a short-lived access token to authenticate to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. |
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.
|
CreateAwsNodePool |
Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
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.
|
UpdateAwsNodePool |
Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. |
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.
|
RollbackAwsNodePoolUpdate |
Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback. |
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.
|
GetAwsNodePool |
Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. |
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.
|
ListAwsNodePools |
Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. |
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.
|
DeleteAwsNodePool |
Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation. |
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.
|
GetAwsOpenIdConfig |
Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details. |
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.
|
GetAwsJsonWebKeys |
Gets the public component of the cluster signing keys in JSON Web Key format. |
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.
|
GetAwsServerConfig |
Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud 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.
|
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 AwsClustersSettings 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
AwsClustersSettings awsClustersSettings =
AwsClustersSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
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
AwsClustersSettings awsClustersSettings =
AwsClustersSettings.newBuilder().setEndpoint(myEndpoint).build();
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
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
AwsClustersSettings awsClustersSettings = AwsClustersSettings.newHttpJsonBuilder().build();
AwsClustersClient awsClustersClient = AwsClustersClient.create(awsClustersSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated.static classDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAwsClustersClient(AwsClustersSettings settings) Deprecated.Constructs an instance of AwsClustersClient, using the given settings.protectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) Deprecated.final voidclose()Deprecated.static final AwsClustersClientcreate()Deprecated.Constructs an instance of AwsClustersClient with default settings.static final AwsClustersClientcreate(AwsClustersSettings settings) Deprecated.Constructs an instance of AwsClustersClient, using the given settings.static final AwsClustersClientcreate(AwsClustersStub stub) Deprecated.Constructs an instance of AwsClustersClient, using the given stub for making calls.Deprecated.This method is deprecated and will be removed in the next major version update.createAwsClusterAsync(LocationName parent, AwsCluster awsCluster, String awsClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.createAwsClusterAsync(String parent, AwsCluster awsCluster, String awsClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.createAwsNodePoolAsync(AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.createAwsNodePoolAsync(String parent, AwsNodePool awsNodePool, String awsNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsClusterAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationCallable<DeleteAwsClusterRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsNodePoolAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationCallable<DeleteAwsNodePoolRequest,com.google.protobuf.Empty, OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AwsClustergetAwsCluster(AwsClusterName name) Deprecated.This method is deprecated and will be removed in the next major version update.final AwsClustergetAwsCluster(GetAwsClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.final AwsClustergetAwsCluster(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AwsJsonWebKeysDeprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AwsNodePoolDeprecated.This method is deprecated and will be removed in the next major version update.final AwsNodePoolgetAwsNodePool(GetAwsNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.final AwsNodePoolgetAwsNodePool(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AwsOpenIdConfigDeprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final AwsServerConfigDeprecated.This method is deprecated and will be removed in the next major version update.final AwsServerConfigDeprecated.This method is deprecated and will be removed in the next major version update.final AwsServerConfiggetAwsServerConfig(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.final OperationsClientDeprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final OperationsClientDeprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final AwsClustersSettingsDeprecated.getStub()Deprecated.booleanDeprecated.booleanDeprecated.listAwsClusters(ListAwsClustersRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.listAwsClusters(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.listAwsClusters(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.listAwsNodePools(AwsClusterName parent) Deprecated.This method is deprecated and will be removed in the next major version update.listAwsNodePools(ListAwsNodePoolsRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.listAwsNodePools(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.voidshutdown()Deprecated.voidDeprecated.updateAwsClusterAsync(AwsCluster awsCluster, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.updateAwsNodePoolAsync(AwsNodePool awsNodePool, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.Deprecated.This method is deprecated and will be removed in the next major version update.
-
Constructor Details
-
AwsClustersClient
Deprecated.Constructs an instance of AwsClustersClient, 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
-
AwsClustersClient
Deprecated.
-
-
Method Details
-
create
Deprecated.Constructs an instance of AwsClustersClient with default settings.- Throws:
IOException
-
create
Deprecated.Constructs an instance of AwsClustersClient, 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
Deprecated.Constructs an instance of AwsClustersClient, using the given stub for making calls. This is for advanced usage - prefer using create(AwsClustersSettings). -
getSettings
Deprecated. -
getStub
Deprecated. -
getOperationsClient
Deprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
getHttpJsonOperationsClient
Deprecated.Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
createAwsClusterAsync
@Deprecated public final OperationFuture<AwsCluster,OperationMetadata> createAwsClusterAsync(LocationName parent, AwsCluster awsCluster, String awsClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); AwsCluster awsCluster = AwsCluster.newBuilder().build(); String awsClusterId = "awsClusterId1988965944"; AwsCluster response = awsClustersClient.createAwsClusterAsync(parent, awsCluster, awsClusterId).get(); }- Parameters:
parent- Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
awsCluster- Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.awsClusterId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAwsClusterAsync
@Deprecated public final OperationFuture<AwsCluster,OperationMetadata> createAwsClusterAsync(String parent, AwsCluster awsCluster, String awsClusterId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); AwsCluster awsCluster = AwsCluster.newBuilder().build(); String awsClusterId = "awsClusterId1988965944"; AwsCluster response = awsClustersClient.createAwsClusterAsync(parent, awsCluster, awsClusterId).get(); }- Parameters:
parent- Required. The parent location where this [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource will be created.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
awsCluster- Required. The specification of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to create.awsClusterId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource name formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAwsClusterAsync
@Deprecated public final OperationFuture<AwsCluster,OperationMetadata> createAwsClusterAsync(CreateAwsClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsClusterRequest request = CreateAwsClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAwsCluster(AwsCluster.newBuilder().build()) .setAwsClusterId("awsClusterId1988965944") .setValidateOnly(true) .build(); AwsCluster response = awsClustersClient.createAwsClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAwsClusterOperationCallable
@Deprecated public final OperationCallable<CreateAwsClusterRequest,AwsCluster, createAwsClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsClusterRequest request = CreateAwsClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAwsCluster(AwsCluster.newBuilder().build()) .setAwsClusterId("awsClusterId1988965944") .setValidateOnly(true) .build(); OperationFuture<AwsCluster, OperationMetadata> future = awsClustersClient.createAwsClusterOperationCallable().futureCall(request); // Do something. AwsCluster response = future.get(); } -
createAwsClusterCallable
@Deprecated public final UnaryCallable<CreateAwsClusterRequest,Operation> createAwsClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsClusterRequest request = CreateAwsClusterRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setAwsCluster(AwsCluster.newBuilder().build()) .setAwsClusterId("awsClusterId1988965944") .setValidateOnly(true) .build(); ApiFuture<Operation> future = awsClustersClient.createAwsClusterCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateAwsClusterAsync
@Deprecated public final OperationFuture<AwsCluster,OperationMetadata> updateAwsClusterAsync(AwsCluster awsCluster, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsCluster awsCluster = AwsCluster.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); AwsCluster response = awsClustersClient.updateAwsClusterAsync(awsCluster, updateMask).get(); }- Parameters:
awsCluster- Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to update.updateMask- Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]:* `description`. * `annotations`. * `control_plane.version`. * `authorization.admin_users`. * `authorization.admin_groups`. * `binary_authorization.evaluation_mode`. * `control_plane.aws_services_authentication.role_arn`. * `control_plane.aws_services_authentication.role_session_name`. * `control_plane.config_encryption.kms_key_arn`. * `control_plane.instance_type`. * `control_plane.security_group_ids`. * `control_plane.proxy_config`. * `control_plane.proxy_config.secret_arn`. * `control_plane.proxy_config.secret_version`. * `control_plane.root_volume.size_gib`. * `control_plane.root_volume.volume_type`. * `control_plane.root_volume.iops`. * `control_plane.root_volume.throughput`. * `control_plane.root_volume.kms_key_arn`. * `control_plane.ssh_config`. * `control_plane.ssh_config.ec2_key_pair`. * `control_plane.instance_placement.tenancy`. * `control_plane.iam_instance_profile`. * `logging_config.component_config.enable_components`. * `control_plane.tags`. * `monitoring_config.managed_prometheus_config.enabled`. * `networking.per_node_pool_sg_rules_disabled`.
- Throws:
ApiException- if the remote call fails
-
updateAwsClusterAsync
@Deprecated public final OperationFuture<AwsCluster,OperationMetadata> updateAwsClusterAsync(UpdateAwsClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsClusterRequest request = UpdateAwsClusterRequest.newBuilder() .setAwsCluster(AwsCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); AwsCluster response = awsClustersClient.updateAwsClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAwsClusterOperationCallable
@Deprecated public final OperationCallable<UpdateAwsClusterRequest,AwsCluster, updateAwsClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsClusterRequest request = UpdateAwsClusterRequest.newBuilder() .setAwsCluster(AwsCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<AwsCluster, OperationMetadata> future = awsClustersClient.updateAwsClusterOperationCallable().futureCall(request); // Do something. AwsCluster response = future.get(); } -
updateAwsClusterCallable
@Deprecated public final UnaryCallable<UpdateAwsClusterRequest,Operation> updateAwsClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsClusterRequest request = UpdateAwsClusterRequest.newBuilder() .setAwsCluster(AwsCluster.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = awsClustersClient.updateAwsClusterCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getAwsCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsClusterName name = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]"); AwsCluster response = awsClustersClient.getAwsCluster(name); }- Parameters:
name- Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString(); AwsCluster response = awsClustersClient.getAwsCluster(name); }- Parameters:
name- Required. The name of the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource to describe.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsCluster
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsClusterRequest request = GetAwsClusterRequest.newBuilder() .setName(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); AwsCluster response = awsClustersClient.getAwsCluster(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAwsClusterCallable
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsClusterRequest request = GetAwsClusterRequest.newBuilder() .setName(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); ApiFuture<AwsCluster> future = awsClustersClient.getAwsClusterCallable().futureCall(request); // Do something. AwsCluster response = future.get(); } -
listAwsClusters
@Deprecated public final AwsClustersClient.ListAwsClustersPagedResponse listAwsClusters(LocationName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (AwsCluster element : awsClustersClient.listAwsClusters(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAwsClusters
@Deprecated public final AwsClustersClient.ListAwsClustersPagedResponse listAwsClusters(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (AwsCluster element : awsClustersClient.listAwsClusters(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent location which owns this collection of [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources.Location names are formatted as `projects/<project-id>/locations/<region>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
listAwsClusters
@Deprecated public final AwsClustersClient.ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AwsCluster element : awsClustersClient.listAwsClusters(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
-
listAwsClustersPagedCallable
@Deprecated public final UnaryCallable<ListAwsClustersRequest,AwsClustersClient.ListAwsClustersPagedResponse> listAwsClustersPagedCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AwsCluster> future = awsClustersClient.listAwsClustersPagedCallable().futureCall(request); // Do something. for (AwsCluster element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAwsClustersCallable
@Deprecated public final UnaryCallable<ListAwsClustersRequest,ListAwsClustersResponse> listAwsClustersCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListAwsClustersResponse response = awsClustersClient.listAwsClustersCallable().call(request); for (AwsCluster element : response.getAwsClustersList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
deleteAwsClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsClusterAsync(AwsClusterName name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsClusterName name = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]"); awsClustersClient.deleteAwsClusterAsync(name).get(); }- Parameters:
name- Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAwsClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsClusterAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString(); awsClustersClient.deleteAwsClusterAsync(name).get(); }- Parameters:
name- Required. The resource name the [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] to delete.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud Platform resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAwsClusterAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsClusterAsync(DeleteAwsClusterRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsClusterRequest request = DeleteAwsClusterRequest.newBuilder() .setName(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); awsClustersClient.deleteAwsClusterAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAwsClusterOperationCallable
@Deprecated public final OperationCallable<DeleteAwsClusterRequest,com.google.protobuf.Empty, deleteAwsClusterOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsClusterRequest request = DeleteAwsClusterRequest.newBuilder() .setName(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = awsClustersClient.deleteAwsClusterOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAwsClusterCallable
@Deprecated public final UnaryCallable<DeleteAwsClusterRequest,Operation> deleteAwsClusterCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.
If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsClusterRequest request = DeleteAwsClusterRequest.newBuilder() .setName(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = awsClustersClient.deleteAwsClusterCallable().futureCall(request); // Do something. future.get(); } -
generateAwsClusterAgentToken
@Deprecated public final GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken(GenerateAwsClusterAgentTokenRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Generates an access token for a cluster agent.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GenerateAwsClusterAgentTokenRequest request = GenerateAwsClusterAgentTokenRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setSubjectToken("subjectToken-1519661011") .setSubjectTokenType("subjectTokenType1839592711") .setVersion("version351608024") .setNodePoolId("nodePoolId1121557241") .setGrantType("grantType-1219832202") .setAudience("audience975628804") .setScope("scope109264468") .setRequestedTokenType("requestedTokenType1733106949") .setOptions("options-1249474914") .build(); GenerateAwsClusterAgentTokenResponse response = awsClustersClient.generateAwsClusterAgentToken(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
generateAwsClusterAgentTokenCallable
@Deprecated public final UnaryCallable<GenerateAwsClusterAgentTokenRequest,GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Generates an access token for a cluster agent.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GenerateAwsClusterAgentTokenRequest request = GenerateAwsClusterAgentTokenRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setSubjectToken("subjectToken-1519661011") .setSubjectTokenType("subjectTokenType1839592711") .setVersion("version351608024") .setNodePoolId("nodePoolId1121557241") .setGrantType("grantType-1219832202") .setAudience("audience975628804") .setScope("scope109264468") .setRequestedTokenType("requestedTokenType1733106949") .setOptions("options-1249474914") .build(); ApiFuture<GenerateAwsClusterAgentTokenResponse> future = awsClustersClient.generateAwsClusterAgentTokenCallable().futureCall(request); // Do something. GenerateAwsClusterAgentTokenResponse response = future.get(); } -
generateAwsAccessToken
@Deprecated public final GenerateAwsAccessTokenResponse generateAwsAccessToken(GenerateAwsAccessTokenRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Generates a short-lived access token to authenticate to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GenerateAwsAccessTokenRequest request = GenerateAwsAccessTokenRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); GenerateAwsAccessTokenResponse response = awsClustersClient.generateAwsAccessToken(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
generateAwsAccessTokenCallable
@Deprecated public final UnaryCallable<GenerateAwsAccessTokenRequest,GenerateAwsAccessTokenResponse> generateAwsAccessTokenCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Generates a short-lived access token to authenticate to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GenerateAwsAccessTokenRequest request = GenerateAwsAccessTokenRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); ApiFuture<GenerateAwsAccessTokenResponse> future = awsClustersClient.generateAwsAccessTokenCallable().futureCall(request); // Do something. GenerateAwsAccessTokenResponse response = future.get(); } -
createAwsNodePoolAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> createAwsNodePoolAsync(AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsClusterName parent = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]"); AwsNodePool awsNodePool = AwsNodePool.newBuilder().build(); String awsNodePoolId = "awsNodePoolId-1885267498"; AwsNodePool response = awsClustersClient.createAwsNodePoolAsync(parent, awsNodePool, awsNodePoolId).get(); }- Parameters:
parent- Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
awsNodePool- Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.awsNodePoolId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAwsNodePoolAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> createAwsNodePoolAsync(String parent, AwsNodePool awsNodePool, String awsNodePoolId) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String parent = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString(); AwsNodePool awsNodePool = AwsNodePool.newBuilder().build(); String awsNodePoolId = "awsNodePoolId-1885267498"; AwsNodePool response = awsClustersClient.createAwsNodePoolAsync(parent, awsNodePool, awsNodePoolId).get(); }- Parameters:
parent- Required. The [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource where this node pool will be created.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
awsNodePool- Required. The specification of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to create.awsNodePoolId- Required. A client provided ID the resource. Must be unique within the parent resource.The provided ID will be part of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource name formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
- Throws:
ApiException- if the remote call fails
-
createAwsNodePoolAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> createAwsNodePoolAsync(CreateAwsNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsNodePoolRequest request = CreateAwsNodePoolRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setAwsNodePool(AwsNodePool.newBuilder().build()) .setAwsNodePoolId("awsNodePoolId-1885267498") .setValidateOnly(true) .build(); AwsNodePool response = awsClustersClient.createAwsNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createAwsNodePoolOperationCallable
@Deprecated public final OperationCallable<CreateAwsNodePoolRequest,AwsNodePool, createAwsNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsNodePoolRequest request = CreateAwsNodePoolRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setAwsNodePool(AwsNodePool.newBuilder().build()) .setAwsNodePoolId("awsNodePoolId-1885267498") .setValidateOnly(true) .build(); OperationFuture<AwsNodePool, OperationMetadata> future = awsClustersClient.createAwsNodePoolOperationCallable().futureCall(request); // Do something. AwsNodePool response = future.get(); } -
createAwsNodePoolCallable
@Deprecated public final UnaryCallable<CreateAwsNodePoolRequest,Operation> createAwsNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { CreateAwsNodePoolRequest request = CreateAwsNodePoolRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setAwsNodePool(AwsNodePool.newBuilder().build()) .setAwsNodePoolId("awsNodePoolId-1885267498") .setValidateOnly(true) .build(); ApiFuture<Operation> future = awsClustersClient.createAwsNodePoolCallable().futureCall(request); // Do something. Operation response = future.get(); } -
updateAwsNodePoolAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> updateAwsNodePoolAsync(AwsNodePool awsNodePool, com.google.protobuf.FieldMask updateMask) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsNodePool awsNodePool = AwsNodePool.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); AwsNodePool response = awsClustersClient.updateAwsNodePoolAsync(awsNodePool, updateMask).get(); }- Parameters:
awsNodePool- Required. The [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to update.updateMask- Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field can only include these fields from [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]:* `annotations`. * `version`. * `autoscaling.min_node_count`. * `autoscaling.max_node_count`. * `config.config_encryption.kms_key_arn`. * `config.security_group_ids`. * `config.root_volume.iops`. * `config.root_volume.throughput`. * `config.root_volume.kms_key_arn`. * `config.root_volume.volume_type`. * `config.root_volume.size_gib`. * `config.proxy_config`. * `config.proxy_config.secret_arn`. * `config.proxy_config.secret_version`. * `config.ssh_config`. * `config.ssh_config.ec2_key_pair`. * `config.instance_placement.tenancy`. * `config.iam_instance_profile`. * `config.labels`. * `config.tags`. * `config.autoscaling_metrics_collection`. * `config.autoscaling_metrics_collection.granularity`. * `config.autoscaling_metrics_collection.metrics`. * `config.instance_type`. * `management.auto_repair`. * `management`. * `update_settings`. * `update_settings.surge_settings`. * `update_settings.surge_settings.max_surge`. * `update_settings.surge_settings.max_unavailable`.
- Throws:
ApiException- if the remote call fails
-
updateAwsNodePoolAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> updateAwsNodePoolAsync(UpdateAwsNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsNodePoolRequest request = UpdateAwsNodePoolRequest.newBuilder() .setAwsNodePool(AwsNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); AwsNodePool response = awsClustersClient.updateAwsNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateAwsNodePoolOperationCallable
@Deprecated public final OperationCallable<UpdateAwsNodePoolRequest,AwsNodePool, updateAwsNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsNodePoolRequest request = UpdateAwsNodePoolRequest.newBuilder() .setAwsNodePool(AwsNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<AwsNodePool, OperationMetadata> future = awsClustersClient.updateAwsNodePoolOperationCallable().futureCall(request); // Do something. AwsNodePool response = future.get(); } -
updateAwsNodePoolCallable
@Deprecated public final UnaryCallable<UpdateAwsNodePoolRequest,Operation> updateAwsNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { UpdateAwsNodePoolRequest request = UpdateAwsNodePoolRequest.newBuilder() .setAwsNodePool(AwsNodePool.newBuilder().build()) .setValidateOnly(true) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = awsClustersClient.updateAwsNodePoolCallable().futureCall(request); // Do something. Operation response = future.get(); } -
rollbackAwsNodePoolUpdateAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> rollbackAwsNodePoolUpdateAsync(AwsNodePoolName name) Deprecated.This method is deprecated and will be removed in the next major version update.Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsNodePoolName name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]"); AwsNodePool response = awsClustersClient.rollbackAwsNodePoolUpdateAsync(name).get(); }- Parameters:
name- Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to rollback.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
rollbackAwsNodePoolUpdateAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> rollbackAwsNodePoolUpdateAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString(); AwsNodePool response = awsClustersClient.rollbackAwsNodePoolUpdateAsync(name).get(); }- Parameters:
name- Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to rollback.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
rollbackAwsNodePoolUpdateAsync
@Deprecated public final OperationFuture<AwsNodePool,OperationMetadata> rollbackAwsNodePoolUpdateAsync(RollbackAwsNodePoolUpdateRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { RollbackAwsNodePoolUpdateRequest request = RollbackAwsNodePoolUpdateRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setRespectPdb(true) .build(); AwsNodePool response = awsClustersClient.rollbackAwsNodePoolUpdateAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
rollbackAwsNodePoolUpdateOperationCallable
@Deprecated public final OperationCallable<RollbackAwsNodePoolUpdateRequest,AwsNodePool, rollbackAwsNodePoolUpdateOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { RollbackAwsNodePoolUpdateRequest request = RollbackAwsNodePoolUpdateRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setRespectPdb(true) .build(); OperationFuture<AwsNodePool, OperationMetadata> future = awsClustersClient.rollbackAwsNodePoolUpdateOperationCallable().futureCall(request); // Do something. AwsNodePool response = future.get(); } -
rollbackAwsNodePoolUpdateCallable
@Deprecated public final UnaryCallable<RollbackAwsNodePoolUpdateRequest,Operation> rollbackAwsNodePoolUpdateCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { RollbackAwsNodePoolUpdateRequest request = RollbackAwsNodePoolUpdateRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setRespectPdb(true) .build(); ApiFuture<Operation> future = awsClustersClient.rollbackAwsNodePoolUpdateCallable().futureCall(request); // Do something. Operation response = future.get(); } -
getAwsNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsNodePoolName name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]"); AwsNodePool response = awsClustersClient.getAwsNodePool(name); }- Parameters:
name- Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString(); AwsNodePool response = awsClustersClient.getAwsNodePool(name); }- Parameters:
name- Required. The name of the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource to describe.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsNodePool
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsNodePoolRequest request = GetAwsNodePoolRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .build(); AwsNodePool response = awsClustersClient.getAwsNodePool(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAwsNodePoolCallable
Deprecated.This method is deprecated and will be removed in the next major version update.Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsNodePoolRequest request = GetAwsNodePoolRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .build(); ApiFuture<AwsNodePool> future = awsClustersClient.getAwsNodePoolCallable().futureCall(request); // Do something. AwsNodePool response = future.get(); } -
listAwsNodePools
@Deprecated public final AwsClustersClient.ListAwsNodePoolsPagedResponse listAwsNodePools(AwsClusterName parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsClusterName parent = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]"); for (AwsNodePool element : awsClustersClient.listAwsNodePools(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `AwsCluster` which owns this collection of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
listAwsNodePools
@Deprecated public final AwsClustersClient.ListAwsNodePoolsPagedResponse listAwsNodePools(String parent) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String parent = AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString(); for (AwsNodePool element : awsClustersClient.listAwsNodePools(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The parent `AwsCluster` which owns this collection of [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources.`AwsCluster` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
listAwsNodePools
@Deprecated public final AwsClustersClient.ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (AwsNodePool element : awsClustersClient.listAwsNodePools(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
-
listAwsNodePoolsPagedCallable
@Deprecated public final UnaryCallable<ListAwsNodePoolsRequest,AwsClustersClient.ListAwsNodePoolsPagedResponse> listAwsNodePoolsPagedCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<AwsNodePool> future = awsClustersClient.listAwsNodePoolsPagedCallable().futureCall(request); // Do something. for (AwsNodePool element : future.get().iterateAll()) { // doThingsWith(element); } } -
listAwsNodePoolsCallable
@Deprecated public final UnaryCallable<ListAwsNodePoolsRequest,ListAwsNodePoolsResponse> listAwsNodePoolsCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder() .setParent(AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListAwsNodePoolsResponse response = awsClustersClient.listAwsNodePoolsCallable().call(request); for (AwsNodePool element : response.getAwsNodePoolsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
deleteAwsNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsNodePoolAsync(AwsNodePoolName name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsNodePoolName name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]"); awsClustersClient.deleteAwsNodePoolAsync(name).get(); }- Parameters:
name- Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAwsNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsNodePoolAsync(String name) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString(); awsClustersClient.deleteAwsNodePoolAsync(name).get(); }- Parameters:
name- Required. The resource name the [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] to delete.`AwsNodePool` names are formatted as `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
deleteAwsNodePoolAsync
@Deprecated public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteAwsNodePoolAsync(DeleteAwsNodePoolRequest request) Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsNodePoolRequest request = DeleteAwsNodePoolRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); awsClustersClient.deleteAwsNodePoolAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteAwsNodePoolOperationCallable
@Deprecated public final OperationCallable<DeleteAwsNodePoolRequest,com.google.protobuf.Empty, deleteAwsNodePoolOperationCallable()OperationMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsNodePoolRequest request = DeleteAwsNodePoolRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); OperationFuture<Empty, OperationMetadata> future = awsClustersClient.deleteAwsNodePoolOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteAwsNodePoolCallable
@Deprecated public final UnaryCallable<DeleteAwsNodePoolRequest,Operation> deleteAwsNodePoolCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.
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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { DeleteAwsNodePoolRequest request = DeleteAwsNodePoolRequest.newBuilder() .setName( AwsNodePoolName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]", "[AWS_NODE_POOL]") .toString()) .setValidateOnly(true) .setAllowMissing(true) .setIgnoreErrors(true) .setEtag("etag3123477") .build(); ApiFuture<Operation> future = awsClustersClient.deleteAwsNodePoolCallable().futureCall(request); // Do something. future.get(); } -
getAwsOpenIdConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsOpenIdConfigRequest request = GetAwsOpenIdConfigRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); AwsOpenIdConfig response = awsClustersClient.getAwsOpenIdConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAwsOpenIdConfigCallable
@Deprecated public final UnaryCallable<GetAwsOpenIdConfigRequest,AwsOpenIdConfig> getAwsOpenIdConfigCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsOpenIdConfigRequest request = GetAwsOpenIdConfigRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); ApiFuture<AwsOpenIdConfig> future = awsClustersClient.getAwsOpenIdConfigCallable().futureCall(request); // Do something. AwsOpenIdConfig response = future.get(); } -
getAwsJsonWebKeys
Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsJsonWebKeysRequest request = GetAwsJsonWebKeysRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); AwsJsonWebKeys response = awsClustersClient.getAwsJsonWebKeys(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAwsJsonWebKeysCallable
@Deprecated public final UnaryCallable<GetAwsJsonWebKeysRequest,AwsJsonWebKeys> getAwsJsonWebKeysCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Gets the public component of the cluster signing keys in JSON Web Key format.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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsJsonWebKeysRequest request = GetAwsJsonWebKeysRequest.newBuilder() .setAwsCluster( AwsClusterName.of("[PROJECT]", "[LOCATION]", "[AWS_CLUSTER]").toString()) .build(); ApiFuture<AwsJsonWebKeys> future = awsClustersClient.getAwsJsonWebKeysCallable().futureCall(request); // Do something. AwsJsonWebKeys response = future.get(); } -
getAwsServerConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { AwsServerConfigName name = AwsServerConfigName.of("[PROJECT]", "[LOCATION]"); AwsServerConfig response = awsClustersClient.getAwsServerConfig(name); }- Parameters:
name- Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.`AwsServerConfig` names are formatted as `projects/<project-id>/locations/<region>/awsServerConfig`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsServerConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { String name = AwsServerConfigName.of("[PROJECT]", "[LOCATION]").toString(); AwsServerConfig response = awsClustersClient.getAwsServerConfig(name); }- Parameters:
name- Required. The name of the [AwsServerConfig][google.cloud.gkemulticloud.v1.AwsServerConfig] resource to describe.`AwsServerConfig` names are formatted as `projects/<project-id>/locations/<region>/awsServerConfig`.
See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more details on Google Cloud resource names.
- Throws:
ApiException- if the remote call fails
-
getAwsServerConfig
Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsServerConfigRequest request = GetAwsServerConfigRequest.newBuilder() .setName(AwsServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); AwsServerConfig response = awsClustersClient.getAwsServerConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getAwsServerConfigCallable
@Deprecated public final UnaryCallable<GetAwsServerConfigRequest,AwsServerConfig> getAwsServerConfigCallable()Deprecated.This method is deprecated and will be removed in the next major version update.Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud 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 (AwsClustersClient awsClustersClient = AwsClustersClient.create()) { GetAwsServerConfigRequest request = GetAwsServerConfigRequest.newBuilder() .setName(AwsServerConfigName.of("[PROJECT]", "[LOCATION]").toString()) .build(); ApiFuture<AwsServerConfig> future = awsClustersClient.getAwsServerConfigCallable().futureCall(request); // Do something. AwsServerConfig response = future.get(); } -
close
public final void close()Deprecated.- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()Deprecated.- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()Deprecated.- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()Deprecated.- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
Deprecated.- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-