All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.gkemulticloud.v1.stub.GrpcAwsClustersStub Maven / Gradle / Ivy

Go to download

Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane.

There is a newer version: 0.48.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.cloud.gkemulticloud.v1.stub;

import static com.google.cloud.gkemulticloud.v1.AwsClustersClient.ListAwsClustersPagedResponse;
import static com.google.cloud.gkemulticloud.v1.AwsClustersClient.ListAwsNodePoolsPagedResponse;

import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.gkemulticloud.v1.AwsCluster;
import com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys;
import com.google.cloud.gkemulticloud.v1.AwsNodePool;
import com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig;
import com.google.cloud.gkemulticloud.v1.AwsServerConfig;
import com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest;
import com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest;
import com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse;
import com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse;
import com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest;
import com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest;
import com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest;
import com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest;
import com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest;
import com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse;
import com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest;
import com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse;
import com.google.cloud.gkemulticloud.v1.OperationMetadata;
import com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest;
import com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest;
import com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the AwsClusters service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcAwsClustersStub extends AwsClustersStub { private static final MethodDescriptor createAwsClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsCluster") .setRequestMarshaller( ProtoUtils.marshaller(CreateAwsClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateAwsClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsCluster") .setRequestMarshaller( ProtoUtils.marshaller(UpdateAwsClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getAwsClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GetAwsCluster") .setRequestMarshaller( ProtoUtils.marshaller(GetAwsClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AwsCluster.getDefaultInstance())) .build(); private static final MethodDescriptor listAwsClustersMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/ListAwsClusters") .setRequestMarshaller( ProtoUtils.marshaller(ListAwsClustersRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListAwsClustersResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAwsClusterMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsCluster") .setRequestMarshaller( ProtoUtils.marshaller(DeleteAwsClusterRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsClusterAgentToken") .setRequestMarshaller( ProtoUtils.marshaller(GenerateAwsClusterAgentTokenRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(GenerateAwsClusterAgentTokenResponse.getDefaultInstance())) .build(); private static final MethodDescriptor< GenerateAwsAccessTokenRequest, GenerateAwsAccessTokenResponse> generateAwsAccessTokenMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GenerateAwsAccessToken") .setRequestMarshaller( ProtoUtils.marshaller(GenerateAwsAccessTokenRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(GenerateAwsAccessTokenResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createAwsNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/CreateAwsNodePool") .setRequestMarshaller( ProtoUtils.marshaller(CreateAwsNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateAwsNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/UpdateAwsNodePool") .setRequestMarshaller( ProtoUtils.marshaller(UpdateAwsNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor rollbackAwsNodePoolUpdateMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.gkemulticloud.v1.AwsClusters/RollbackAwsNodePoolUpdate") .setRequestMarshaller( ProtoUtils.marshaller(RollbackAwsNodePoolUpdateRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getAwsNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GetAwsNodePool") .setRequestMarshaller( ProtoUtils.marshaller(GetAwsNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AwsNodePool.getDefaultInstance())) .build(); private static final MethodDescriptor listAwsNodePoolsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/ListAwsNodePools") .setRequestMarshaller( ProtoUtils.marshaller(ListAwsNodePoolsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListAwsNodePoolsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAwsNodePoolMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/DeleteAwsNodePool") .setRequestMarshaller( ProtoUtils.marshaller(DeleteAwsNodePoolRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getAwsOpenIdConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GetAwsOpenIdConfig") .setRequestMarshaller( ProtoUtils.marshaller(GetAwsOpenIdConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AwsOpenIdConfig.getDefaultInstance())) .build(); private static final MethodDescriptor getAwsJsonWebKeysMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GetAwsJsonWebKeys") .setRequestMarshaller( ProtoUtils.marshaller(GetAwsJsonWebKeysRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AwsJsonWebKeys.getDefaultInstance())) .build(); private static final MethodDescriptor getAwsServerConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.gkemulticloud.v1.AwsClusters/GetAwsServerConfig") .setRequestMarshaller( ProtoUtils.marshaller(GetAwsServerConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AwsServerConfig.getDefaultInstance())) .build(); private final UnaryCallable createAwsClusterCallable; private final OperationCallable createAwsClusterOperationCallable; private final UnaryCallable updateAwsClusterCallable; private final OperationCallable updateAwsClusterOperationCallable; private final UnaryCallable getAwsClusterCallable; private final UnaryCallable listAwsClustersCallable; private final UnaryCallable listAwsClustersPagedCallable; private final UnaryCallable deleteAwsClusterCallable; private final OperationCallable deleteAwsClusterOperationCallable; private final UnaryCallable< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenCallable; private final UnaryCallable generateAwsAccessTokenCallable; private final UnaryCallable createAwsNodePoolCallable; private final OperationCallable createAwsNodePoolOperationCallable; private final UnaryCallable updateAwsNodePoolCallable; private final OperationCallable updateAwsNodePoolOperationCallable; private final UnaryCallable rollbackAwsNodePoolUpdateCallable; private final OperationCallable rollbackAwsNodePoolUpdateOperationCallable; private final UnaryCallable getAwsNodePoolCallable; private final UnaryCallable listAwsNodePoolsCallable; private final UnaryCallable listAwsNodePoolsPagedCallable; private final UnaryCallable deleteAwsNodePoolCallable; private final OperationCallable deleteAwsNodePoolOperationCallable; private final UnaryCallable getAwsOpenIdConfigCallable; private final UnaryCallable getAwsJsonWebKeysCallable; private final UnaryCallable getAwsServerConfigCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcAwsClustersStub create(AwsClustersStubSettings settings) throws IOException { return new GrpcAwsClustersStub(settings, ClientContext.create(settings)); } public static final GrpcAwsClustersStub create(ClientContext clientContext) throws IOException { return new GrpcAwsClustersStub(AwsClustersStubSettings.newBuilder().build(), clientContext); } public static final GrpcAwsClustersStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcAwsClustersStub( AwsClustersStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcAwsClustersStub, 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. */ protected GrpcAwsClustersStub(AwsClustersStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcAwsClustersCallableFactory()); } /** * Constructs an instance of GrpcAwsClustersStub, 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. */ protected GrpcAwsClustersStub( AwsClustersStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createAwsClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAwsClusterMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAwsClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAwsClusterMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "aws_cluster.name", String.valueOf(request.getAwsCluster().getName())); return builder.build(); }) .build(); GrpcCallSettings getAwsClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAwsClusterMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAwsClustersTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAwsClustersMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteAwsClusterTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAwsClusterMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings generateAwsClusterAgentTokenTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(generateAwsClusterAgentTokenMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("aws_cluster", String.valueOf(request.getAwsCluster())); return builder.build(); }) .build(); GrpcCallSettings generateAwsAccessTokenTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(generateAwsAccessTokenMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("aws_cluster", String.valueOf(request.getAwsCluster())); return builder.build(); }) .build(); GrpcCallSettings createAwsNodePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAwsNodePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAwsNodePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAwsNodePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "aws_node_pool.name", String.valueOf(request.getAwsNodePool().getName())); return builder.build(); }) .build(); GrpcCallSettings rollbackAwsNodePoolUpdateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(rollbackAwsNodePoolUpdateMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getAwsNodePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAwsNodePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAwsNodePoolsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAwsNodePoolsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteAwsNodePoolTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAwsNodePoolMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getAwsOpenIdConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAwsOpenIdConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("aws_cluster", String.valueOf(request.getAwsCluster())); return builder.build(); }) .build(); GrpcCallSettings getAwsJsonWebKeysTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAwsJsonWebKeysMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("aws_cluster", String.valueOf(request.getAwsCluster())); return builder.build(); }) .build(); GrpcCallSettings getAwsServerConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAwsServerConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.createAwsClusterCallable = callableFactory.createUnaryCallable( createAwsClusterTransportSettings, settings.createAwsClusterSettings(), clientContext); this.createAwsClusterOperationCallable = callableFactory.createOperationCallable( createAwsClusterTransportSettings, settings.createAwsClusterOperationSettings(), clientContext, operationsStub); this.updateAwsClusterCallable = callableFactory.createUnaryCallable( updateAwsClusterTransportSettings, settings.updateAwsClusterSettings(), clientContext); this.updateAwsClusterOperationCallable = callableFactory.createOperationCallable( updateAwsClusterTransportSettings, settings.updateAwsClusterOperationSettings(), clientContext, operationsStub); this.getAwsClusterCallable = callableFactory.createUnaryCallable( getAwsClusterTransportSettings, settings.getAwsClusterSettings(), clientContext); this.listAwsClustersCallable = callableFactory.createUnaryCallable( listAwsClustersTransportSettings, settings.listAwsClustersSettings(), clientContext); this.listAwsClustersPagedCallable = callableFactory.createPagedCallable( listAwsClustersTransportSettings, settings.listAwsClustersSettings(), clientContext); this.deleteAwsClusterCallable = callableFactory.createUnaryCallable( deleteAwsClusterTransportSettings, settings.deleteAwsClusterSettings(), clientContext); this.deleteAwsClusterOperationCallable = callableFactory.createOperationCallable( deleteAwsClusterTransportSettings, settings.deleteAwsClusterOperationSettings(), clientContext, operationsStub); this.generateAwsClusterAgentTokenCallable = callableFactory.createUnaryCallable( generateAwsClusterAgentTokenTransportSettings, settings.generateAwsClusterAgentTokenSettings(), clientContext); this.generateAwsAccessTokenCallable = callableFactory.createUnaryCallable( generateAwsAccessTokenTransportSettings, settings.generateAwsAccessTokenSettings(), clientContext); this.createAwsNodePoolCallable = callableFactory.createUnaryCallable( createAwsNodePoolTransportSettings, settings.createAwsNodePoolSettings(), clientContext); this.createAwsNodePoolOperationCallable = callableFactory.createOperationCallable( createAwsNodePoolTransportSettings, settings.createAwsNodePoolOperationSettings(), clientContext, operationsStub); this.updateAwsNodePoolCallable = callableFactory.createUnaryCallable( updateAwsNodePoolTransportSettings, settings.updateAwsNodePoolSettings(), clientContext); this.updateAwsNodePoolOperationCallable = callableFactory.createOperationCallable( updateAwsNodePoolTransportSettings, settings.updateAwsNodePoolOperationSettings(), clientContext, operationsStub); this.rollbackAwsNodePoolUpdateCallable = callableFactory.createUnaryCallable( rollbackAwsNodePoolUpdateTransportSettings, settings.rollbackAwsNodePoolUpdateSettings(), clientContext); this.rollbackAwsNodePoolUpdateOperationCallable = callableFactory.createOperationCallable( rollbackAwsNodePoolUpdateTransportSettings, settings.rollbackAwsNodePoolUpdateOperationSettings(), clientContext, operationsStub); this.getAwsNodePoolCallable = callableFactory.createUnaryCallable( getAwsNodePoolTransportSettings, settings.getAwsNodePoolSettings(), clientContext); this.listAwsNodePoolsCallable = callableFactory.createUnaryCallable( listAwsNodePoolsTransportSettings, settings.listAwsNodePoolsSettings(), clientContext); this.listAwsNodePoolsPagedCallable = callableFactory.createPagedCallable( listAwsNodePoolsTransportSettings, settings.listAwsNodePoolsSettings(), clientContext); this.deleteAwsNodePoolCallable = callableFactory.createUnaryCallable( deleteAwsNodePoolTransportSettings, settings.deleteAwsNodePoolSettings(), clientContext); this.deleteAwsNodePoolOperationCallable = callableFactory.createOperationCallable( deleteAwsNodePoolTransportSettings, settings.deleteAwsNodePoolOperationSettings(), clientContext, operationsStub); this.getAwsOpenIdConfigCallable = callableFactory.createUnaryCallable( getAwsOpenIdConfigTransportSettings, settings.getAwsOpenIdConfigSettings(), clientContext); this.getAwsJsonWebKeysCallable = callableFactory.createUnaryCallable( getAwsJsonWebKeysTransportSettings, settings.getAwsJsonWebKeysSettings(), clientContext); this.getAwsServerConfigCallable = callableFactory.createUnaryCallable( getAwsServerConfigTransportSettings, settings.getAwsServerConfigSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createAwsClusterCallable() { return createAwsClusterCallable; } @Override public OperationCallable createAwsClusterOperationCallable() { return createAwsClusterOperationCallable; } @Override public UnaryCallable updateAwsClusterCallable() { return updateAwsClusterCallable; } @Override public OperationCallable updateAwsClusterOperationCallable() { return updateAwsClusterOperationCallable; } @Override public UnaryCallable getAwsClusterCallable() { return getAwsClusterCallable; } @Override public UnaryCallable listAwsClustersCallable() { return listAwsClustersCallable; } @Override public UnaryCallable listAwsClustersPagedCallable() { return listAwsClustersPagedCallable; } @Override public UnaryCallable deleteAwsClusterCallable() { return deleteAwsClusterCallable; } @Override public OperationCallable deleteAwsClusterOperationCallable() { return deleteAwsClusterOperationCallable; } @Override public UnaryCallable generateAwsClusterAgentTokenCallable() { return generateAwsClusterAgentTokenCallable; } @Override public UnaryCallable generateAwsAccessTokenCallable() { return generateAwsAccessTokenCallable; } @Override public UnaryCallable createAwsNodePoolCallable() { return createAwsNodePoolCallable; } @Override public OperationCallable createAwsNodePoolOperationCallable() { return createAwsNodePoolOperationCallable; } @Override public UnaryCallable updateAwsNodePoolCallable() { return updateAwsNodePoolCallable; } @Override public OperationCallable updateAwsNodePoolOperationCallable() { return updateAwsNodePoolOperationCallable; } @Override public UnaryCallable rollbackAwsNodePoolUpdateCallable() { return rollbackAwsNodePoolUpdateCallable; } @Override public OperationCallable rollbackAwsNodePoolUpdateOperationCallable() { return rollbackAwsNodePoolUpdateOperationCallable; } @Override public UnaryCallable getAwsNodePoolCallable() { return getAwsNodePoolCallable; } @Override public UnaryCallable listAwsNodePoolsCallable() { return listAwsNodePoolsCallable; } @Override public UnaryCallable listAwsNodePoolsPagedCallable() { return listAwsNodePoolsPagedCallable; } @Override public UnaryCallable deleteAwsNodePoolCallable() { return deleteAwsNodePoolCallable; } @Override public OperationCallable deleteAwsNodePoolOperationCallable() { return deleteAwsNodePoolOperationCallable; } @Override public UnaryCallable getAwsOpenIdConfigCallable() { return getAwsOpenIdConfigCallable; } @Override public UnaryCallable getAwsJsonWebKeysCallable() { return getAwsJsonWebKeysCallable; } @Override public UnaryCallable getAwsServerConfigCallable() { return getAwsServerConfigCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy