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

com.google.cloud.gkemulticloud.v1.stub.HttpJsonAzureClustersStub 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.53.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.AzureClustersClient.ListAzureClientsPagedResponse;
import static com.google.cloud.gkemulticloud.v1.AzureClustersClient.ListAzureClustersPagedResponse;
import static com.google.cloud.gkemulticloud.v1.AzureClustersClient.ListAzureNodePoolsPagedResponse;

import com.google.api.HttpRule;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.httpjson.ApiMethodDescriptor;
import com.google.api.gax.httpjson.HttpJsonCallSettings;
import com.google.api.gax.httpjson.HttpJsonOperationSnapshot;
import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
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.AzureClient;
import com.google.cloud.gkemulticloud.v1.AzureCluster;
import com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys;
import com.google.cloud.gkemulticloud.v1.AzureNodePool;
import com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig;
import com.google.cloud.gkemulticloud.v1.AzureServerConfig;
import com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest;
import com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest;
import com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest;
import com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest;
import com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse;
import com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest;
import com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse;
import com.google.cloud.gkemulticloud.v1.GetAzureClientRequest;
import com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest;
import com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest;
import com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest;
import com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest;
import com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest;
import com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest;
import com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse;
import com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest;
import com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse;
import com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest;
import com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse;
import com.google.cloud.gkemulticloud.v1.OperationMetadata;
import com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest;
import com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest;
import com.google.common.collect.ImmutableMap;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.TypeRegistry;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * REST stub implementation for the AzureClusters service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class HttpJsonAzureClustersStub extends AzureClustersStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(OperationMetadata.getDescriptor()) .add(Empty.getDescriptor()) .add(AzureNodePool.getDescriptor()) .add(AzureCluster.getDescriptor()) .add(AzureClient.getDescriptor()) .build(); private static final ApiMethodDescriptor createAzureClientMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureClient") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/azureClients", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "azureClientId", request.getAzureClientId()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("azureClient", request.getAzureClient(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateAzureClientRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor getAzureClientMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureClient") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClients/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureClient.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor listAzureClientsMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClients") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/azureClients", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListAzureClientsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor deleteAzureClientMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureClient") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClients/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "allowMissing", request.getAllowMissing()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteAzureClientRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor createAzureClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureCluster") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/azureClusters", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "azureClusterId", request.getAzureClusterId()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("azureCluster", request.getAzureCluster(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateAzureClusterRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor updateAzureClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureCluster") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureCluster.name=projects/*/locations/*/azureClusters/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureCluster.name", request.getAzureCluster().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("azureCluster", request.getAzureCluster(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (UpdateAzureClusterRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor getAzureClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureCluster") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClusters/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureCluster.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor listAzureClustersMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/ListAzureClusters") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/azureClusters", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListAzureClustersResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor deleteAzureClusterMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureCluster") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClusters/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "allowMissing", request.getAllowMissing()); serializer.putQueryParam(fields, "etag", request.getEtag()); serializer.putQueryParam( fields, "ignoreErrors", request.getIgnoreErrors()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteAzureClusterRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenMethodDescriptor = ApiMethodDescriptor . newBuilder() .setFullMethodName( "google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureClusterAgentToken") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureCluster=projects/*/locations/*/azureClusters/*}:generateAzureClusterAgentToken", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureCluster", request.getAzureCluster()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody( "*", request.toBuilder().clearAzureCluster().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance( GenerateAzureClusterAgentTokenResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< GenerateAzureAccessTokenRequest, GenerateAzureAccessTokenResponse> generateAzureAccessTokenMethodDescriptor = ApiMethodDescriptor .newBuilder() .setFullMethodName( "google.cloud.gkemulticloud.v1.AzureClusters/GenerateAzureAccessToken") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureCluster=projects/*/locations/*/azureClusters/*}:generateAzureAccessToken", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureCluster", request.getAzureCluster()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(GenerateAzureAccessTokenResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor createAzureNodePoolMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/CreateAzureNodePool") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "azureNodePoolId", request.getAzureNodePoolId()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("azureNodePool", request.getAzureNodePool(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateAzureNodePoolRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor updateAzureNodePoolMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/UpdateAzureNodePool") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureNodePool.name=projects/*/locations/*/azureClusters/*/azureNodePools/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureNodePool.name", request.getAzureNodePool().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("azureNodePool", request.getAzureNodePool(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (UpdateAzureNodePoolRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor getAzureNodePoolMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureNodePool") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureNodePool.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor listAzureNodePoolsMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/ListAzureNodePools") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListAzureNodePoolsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor deleteAzureNodePoolMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/DeleteAzureNodePool") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam( fields, "allowMissing", request.getAllowMissing()); serializer.putQueryParam(fields, "etag", request.getEtag()); serializer.putQueryParam( fields, "ignoreErrors", request.getIgnoreErrors()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteAzureNodePoolRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor getAzureOpenIdConfigMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureOpenIdConfig") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureCluster=projects/*/locations/*/azureClusters/*}/.well-known/openid-configuration", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureCluster", request.getAzureCluster()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureOpenIdConfig.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getAzureJsonWebKeysMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureJsonWebKeys") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{azureCluster=projects/*/locations/*/azureClusters/*}/jwks", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "azureCluster", request.getAzureCluster()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureJsonWebKeys.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getAzureServerConfigMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.gkemulticloud.v1.AzureClusters/GetAzureServerConfig") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/azureServerConfig}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AzureServerConfig.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private final UnaryCallable createAzureClientCallable; private final OperationCallable createAzureClientOperationCallable; private final UnaryCallable getAzureClientCallable; private final UnaryCallable listAzureClientsCallable; private final UnaryCallable listAzureClientsPagedCallable; private final UnaryCallable deleteAzureClientCallable; private final OperationCallable deleteAzureClientOperationCallable; private final UnaryCallable createAzureClusterCallable; private final OperationCallable createAzureClusterOperationCallable; private final UnaryCallable updateAzureClusterCallable; private final OperationCallable updateAzureClusterOperationCallable; private final UnaryCallable getAzureClusterCallable; private final UnaryCallable listAzureClustersCallable; private final UnaryCallable listAzureClustersPagedCallable; private final UnaryCallable deleteAzureClusterCallable; private final OperationCallable deleteAzureClusterOperationCallable; private final UnaryCallable< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenCallable; private final UnaryCallable generateAzureAccessTokenCallable; private final UnaryCallable createAzureNodePoolCallable; private final OperationCallable createAzureNodePoolOperationCallable; private final UnaryCallable updateAzureNodePoolCallable; private final OperationCallable updateAzureNodePoolOperationCallable; private final UnaryCallable getAzureNodePoolCallable; private final UnaryCallable listAzureNodePoolsCallable; private final UnaryCallable listAzureNodePoolsPagedCallable; private final UnaryCallable deleteAzureNodePoolCallable; private final OperationCallable deleteAzureNodePoolOperationCallable; private final UnaryCallable getAzureOpenIdConfigCallable; private final UnaryCallable getAzureJsonWebKeysCallable; private final UnaryCallable getAzureServerConfigCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonAzureClustersStub create(AzureClustersStubSettings settings) throws IOException { return new HttpJsonAzureClustersStub(settings, ClientContext.create(settings)); } public static final HttpJsonAzureClustersStub create(ClientContext clientContext) throws IOException { return new HttpJsonAzureClustersStub( AzureClustersStubSettings.newHttpJsonBuilder().build(), clientContext); } public static final HttpJsonAzureClustersStub create( ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { return new HttpJsonAzureClustersStub( AzureClustersStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of HttpJsonAzureClustersStub, 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 HttpJsonAzureClustersStub( AzureClustersStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new HttpJsonAzureClustersCallableFactory()); } /** * Constructs an instance of HttpJsonAzureClustersStub, 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 HttpJsonAzureClustersStub( AzureClustersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.httpJsonOperationsStub = HttpJsonOperationsStub.create( clientContext, callableFactory, typeRegistry, ImmutableMap.builder() .put( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=projects/*/locations/*/operations/*}") .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*/operations/*}") .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*}/operations") .build()) .build()); HttpJsonCallSettings createAzureClientTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAzureClientMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureClientTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureClientMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listAzureClientsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listAzureClientsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings deleteAzureClientTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAzureClientMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings createAzureClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAzureClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings updateAzureClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateAzureClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "azure_cluster.name", String.valueOf(request.getAzureCluster().getName())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listAzureClustersTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listAzureClustersMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings deleteAzureClusterTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAzureClusterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenTransportSettings = HttpJsonCallSettings . newBuilder() .setMethodDescriptor(generateAzureClusterAgentTokenMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("azure_cluster", String.valueOf(request.getAzureCluster())); return builder.build(); }) .build(); HttpJsonCallSettings generateAzureAccessTokenTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(generateAzureAccessTokenMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("azure_cluster", String.valueOf(request.getAzureCluster())); return builder.build(); }) .build(); HttpJsonCallSettings createAzureNodePoolTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAzureNodePoolMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings updateAzureNodePoolTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateAzureNodePoolMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "azure_node_pool.name", String.valueOf(request.getAzureNodePool().getName())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureNodePoolTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureNodePoolMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listAzureNodePoolsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listAzureNodePoolsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings deleteAzureNodePoolTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAzureNodePoolMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureOpenIdConfigTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureOpenIdConfigMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("azure_cluster", String.valueOf(request.getAzureCluster())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureJsonWebKeysTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureJsonWebKeysMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("azure_cluster", String.valueOf(request.getAzureCluster())); return builder.build(); }) .build(); HttpJsonCallSettings getAzureServerConfigTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAzureServerConfigMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.createAzureClientCallable = callableFactory.createUnaryCallable( createAzureClientTransportSettings, settings.createAzureClientSettings(), clientContext); this.createAzureClientOperationCallable = callableFactory.createOperationCallable( createAzureClientTransportSettings, settings.createAzureClientOperationSettings(), clientContext, httpJsonOperationsStub); this.getAzureClientCallable = callableFactory.createUnaryCallable( getAzureClientTransportSettings, settings.getAzureClientSettings(), clientContext); this.listAzureClientsCallable = callableFactory.createUnaryCallable( listAzureClientsTransportSettings, settings.listAzureClientsSettings(), clientContext); this.listAzureClientsPagedCallable = callableFactory.createPagedCallable( listAzureClientsTransportSettings, settings.listAzureClientsSettings(), clientContext); this.deleteAzureClientCallable = callableFactory.createUnaryCallable( deleteAzureClientTransportSettings, settings.deleteAzureClientSettings(), clientContext); this.deleteAzureClientOperationCallable = callableFactory.createOperationCallable( deleteAzureClientTransportSettings, settings.deleteAzureClientOperationSettings(), clientContext, httpJsonOperationsStub); this.createAzureClusterCallable = callableFactory.createUnaryCallable( createAzureClusterTransportSettings, settings.createAzureClusterSettings(), clientContext); this.createAzureClusterOperationCallable = callableFactory.createOperationCallable( createAzureClusterTransportSettings, settings.createAzureClusterOperationSettings(), clientContext, httpJsonOperationsStub); this.updateAzureClusterCallable = callableFactory.createUnaryCallable( updateAzureClusterTransportSettings, settings.updateAzureClusterSettings(), clientContext); this.updateAzureClusterOperationCallable = callableFactory.createOperationCallable( updateAzureClusterTransportSettings, settings.updateAzureClusterOperationSettings(), clientContext, httpJsonOperationsStub); this.getAzureClusterCallable = callableFactory.createUnaryCallable( getAzureClusterTransportSettings, settings.getAzureClusterSettings(), clientContext); this.listAzureClustersCallable = callableFactory.createUnaryCallable( listAzureClustersTransportSettings, settings.listAzureClustersSettings(), clientContext); this.listAzureClustersPagedCallable = callableFactory.createPagedCallable( listAzureClustersTransportSettings, settings.listAzureClustersSettings(), clientContext); this.deleteAzureClusterCallable = callableFactory.createUnaryCallable( deleteAzureClusterTransportSettings, settings.deleteAzureClusterSettings(), clientContext); this.deleteAzureClusterOperationCallable = callableFactory.createOperationCallable( deleteAzureClusterTransportSettings, settings.deleteAzureClusterOperationSettings(), clientContext, httpJsonOperationsStub); this.generateAzureClusterAgentTokenCallable = callableFactory.createUnaryCallable( generateAzureClusterAgentTokenTransportSettings, settings.generateAzureClusterAgentTokenSettings(), clientContext); this.generateAzureAccessTokenCallable = callableFactory.createUnaryCallable( generateAzureAccessTokenTransportSettings, settings.generateAzureAccessTokenSettings(), clientContext); this.createAzureNodePoolCallable = callableFactory.createUnaryCallable( createAzureNodePoolTransportSettings, settings.createAzureNodePoolSettings(), clientContext); this.createAzureNodePoolOperationCallable = callableFactory.createOperationCallable( createAzureNodePoolTransportSettings, settings.createAzureNodePoolOperationSettings(), clientContext, httpJsonOperationsStub); this.updateAzureNodePoolCallable = callableFactory.createUnaryCallable( updateAzureNodePoolTransportSettings, settings.updateAzureNodePoolSettings(), clientContext); this.updateAzureNodePoolOperationCallable = callableFactory.createOperationCallable( updateAzureNodePoolTransportSettings, settings.updateAzureNodePoolOperationSettings(), clientContext, httpJsonOperationsStub); this.getAzureNodePoolCallable = callableFactory.createUnaryCallable( getAzureNodePoolTransportSettings, settings.getAzureNodePoolSettings(), clientContext); this.listAzureNodePoolsCallable = callableFactory.createUnaryCallable( listAzureNodePoolsTransportSettings, settings.listAzureNodePoolsSettings(), clientContext); this.listAzureNodePoolsPagedCallable = callableFactory.createPagedCallable( listAzureNodePoolsTransportSettings, settings.listAzureNodePoolsSettings(), clientContext); this.deleteAzureNodePoolCallable = callableFactory.createUnaryCallable( deleteAzureNodePoolTransportSettings, settings.deleteAzureNodePoolSettings(), clientContext); this.deleteAzureNodePoolOperationCallable = callableFactory.createOperationCallable( deleteAzureNodePoolTransportSettings, settings.deleteAzureNodePoolOperationSettings(), clientContext, httpJsonOperationsStub); this.getAzureOpenIdConfigCallable = callableFactory.createUnaryCallable( getAzureOpenIdConfigTransportSettings, settings.getAzureOpenIdConfigSettings(), clientContext); this.getAzureJsonWebKeysCallable = callableFactory.createUnaryCallable( getAzureJsonWebKeysTransportSettings, settings.getAzureJsonWebKeysSettings(), clientContext); this.getAzureServerConfigCallable = callableFactory.createUnaryCallable( getAzureServerConfigTransportSettings, settings.getAzureServerConfigSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(createAzureClientMethodDescriptor); methodDescriptors.add(getAzureClientMethodDescriptor); methodDescriptors.add(listAzureClientsMethodDescriptor); methodDescriptors.add(deleteAzureClientMethodDescriptor); methodDescriptors.add(createAzureClusterMethodDescriptor); methodDescriptors.add(updateAzureClusterMethodDescriptor); methodDescriptors.add(getAzureClusterMethodDescriptor); methodDescriptors.add(listAzureClustersMethodDescriptor); methodDescriptors.add(deleteAzureClusterMethodDescriptor); methodDescriptors.add(generateAzureClusterAgentTokenMethodDescriptor); methodDescriptors.add(generateAzureAccessTokenMethodDescriptor); methodDescriptors.add(createAzureNodePoolMethodDescriptor); methodDescriptors.add(updateAzureNodePoolMethodDescriptor); methodDescriptors.add(getAzureNodePoolMethodDescriptor); methodDescriptors.add(listAzureNodePoolsMethodDescriptor); methodDescriptors.add(deleteAzureNodePoolMethodDescriptor); methodDescriptors.add(getAzureOpenIdConfigMethodDescriptor); methodDescriptors.add(getAzureJsonWebKeysMethodDescriptor); methodDescriptors.add(getAzureServerConfigMethodDescriptor); return methodDescriptors; } public HttpJsonOperationsStub getHttpJsonOperationsStub() { return httpJsonOperationsStub; } @Override public UnaryCallable createAzureClientCallable() { return createAzureClientCallable; } @Override public OperationCallable createAzureClientOperationCallable() { return createAzureClientOperationCallable; } @Override public UnaryCallable getAzureClientCallable() { return getAzureClientCallable; } @Override public UnaryCallable listAzureClientsCallable() { return listAzureClientsCallable; } @Override public UnaryCallable listAzureClientsPagedCallable() { return listAzureClientsPagedCallable; } @Override public UnaryCallable deleteAzureClientCallable() { return deleteAzureClientCallable; } @Override public OperationCallable deleteAzureClientOperationCallable() { return deleteAzureClientOperationCallable; } @Override public UnaryCallable createAzureClusterCallable() { return createAzureClusterCallable; } @Override public OperationCallable createAzureClusterOperationCallable() { return createAzureClusterOperationCallable; } @Override public UnaryCallable updateAzureClusterCallable() { return updateAzureClusterCallable; } @Override public OperationCallable updateAzureClusterOperationCallable() { return updateAzureClusterOperationCallable; } @Override public UnaryCallable getAzureClusterCallable() { return getAzureClusterCallable; } @Override public UnaryCallable listAzureClustersCallable() { return listAzureClustersCallable; } @Override public UnaryCallable listAzureClustersPagedCallable() { return listAzureClustersPagedCallable; } @Override public UnaryCallable deleteAzureClusterCallable() { return deleteAzureClusterCallable; } @Override public OperationCallable deleteAzureClusterOperationCallable() { return deleteAzureClusterOperationCallable; } @Override public UnaryCallable< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenCallable() { return generateAzureClusterAgentTokenCallable; } @Override public UnaryCallable generateAzureAccessTokenCallable() { return generateAzureAccessTokenCallable; } @Override public UnaryCallable createAzureNodePoolCallable() { return createAzureNodePoolCallable; } @Override public OperationCallable createAzureNodePoolOperationCallable() { return createAzureNodePoolOperationCallable; } @Override public UnaryCallable updateAzureNodePoolCallable() { return updateAzureNodePoolCallable; } @Override public OperationCallable updateAzureNodePoolOperationCallable() { return updateAzureNodePoolOperationCallable; } @Override public UnaryCallable getAzureNodePoolCallable() { return getAzureNodePoolCallable; } @Override public UnaryCallable listAzureNodePoolsCallable() { return listAzureNodePoolsCallable; } @Override public UnaryCallable listAzureNodePoolsPagedCallable() { return listAzureNodePoolsPagedCallable; } @Override public UnaryCallable deleteAzureNodePoolCallable() { return deleteAzureNodePoolCallable; } @Override public OperationCallable deleteAzureNodePoolOperationCallable() { return deleteAzureNodePoolOperationCallable; } @Override public UnaryCallable getAzureOpenIdConfigCallable() { return getAzureOpenIdConfigCallable; } @Override public UnaryCallable getAzureJsonWebKeysCallable() { return getAzureJsonWebKeysCallable; } @Override public UnaryCallable getAzureServerConfigCallable() { return getAzureServerConfigCallable; } @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