From 40f207e3e1ae02f63b9b34c9e957c0caae89c7fb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Nov 2020 13:33:08 -0800 Subject: [PATCH] fix(browser): check for fetch on window (#403) --- src/v1/cluster_manager_client.ts | 340 ++++++++++++++++--------------- synth.metadata | 8 +- 2 files changed, 178 insertions(+), 170 deletions(-) diff --git a/src/v1/cluster_manager_client.ts b/src/v1/cluster_manager_client.ts index cb64682..18a32d2 100644 --- a/src/v1/cluster_manager_client.ts +++ b/src/v1/cluster_manager_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,6 +31,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1/cluster_manager_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './cluster_manager_client_config.json'; const version = require('../../../package.json').version; @@ -82,9 +88,9 @@ export class ClusterManagerClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -97,7 +103,9 @@ export class ClusterManagerClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -325,7 +333,7 @@ export class ClusterManagerClient { // ------------------- listClusters( request: protos.google.container.v1.IListClustersRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListClustersResponse, @@ -335,7 +343,7 @@ export class ClusterManagerClient { >; listClusters( request: protos.google.container.v1.IListClustersRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListClustersResponse, protos.google.container.v1.IListClustersRequest | null | undefined, @@ -382,7 +390,7 @@ export class ClusterManagerClient { listClusters( request: protos.google.container.v1.IListClustersRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListClustersResponse, protos.google.container.v1.IListClustersRequest | null | undefined, @@ -401,12 +409,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -422,7 +430,7 @@ export class ClusterManagerClient { } getCluster( request: protos.google.container.v1.IGetClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.ICluster, @@ -432,7 +440,7 @@ export class ClusterManagerClient { >; getCluster( request: protos.google.container.v1.IGetClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.ICluster, protos.google.container.v1.IGetClusterRequest | null | undefined, @@ -480,7 +488,7 @@ export class ClusterManagerClient { getCluster( request: protos.google.container.v1.IGetClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.ICluster, protos.google.container.v1.IGetClusterRequest | null | undefined, @@ -499,12 +507,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -520,7 +528,7 @@ export class ClusterManagerClient { } createCluster( request: protos.google.container.v1.ICreateClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -530,7 +538,7 @@ export class ClusterManagerClient { >; createCluster( request: protos.google.container.v1.ICreateClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateClusterRequest | null | undefined, @@ -591,7 +599,7 @@ export class ClusterManagerClient { createCluster( request: protos.google.container.v1.ICreateClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateClusterRequest | null | undefined, @@ -610,12 +618,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -631,7 +639,7 @@ export class ClusterManagerClient { } updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -641,7 +649,7 @@ export class ClusterManagerClient { >; updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateClusterRequest | null | undefined, @@ -691,7 +699,7 @@ export class ClusterManagerClient { updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateClusterRequest | null | undefined, @@ -710,12 +718,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -731,7 +739,7 @@ export class ClusterManagerClient { } updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -741,7 +749,7 @@ export class ClusterManagerClient { >; updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, @@ -817,7 +825,7 @@ export class ClusterManagerClient { updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, @@ -836,12 +844,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -857,7 +865,7 @@ export class ClusterManagerClient { } setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -867,7 +875,7 @@ export class ClusterManagerClient { >; setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolAutoscalingRequest @@ -925,7 +933,7 @@ export class ClusterManagerClient { setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolAutoscalingRequest @@ -948,12 +956,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -973,7 +981,7 @@ export class ClusterManagerClient { } setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -983,7 +991,7 @@ export class ClusterManagerClient { >; setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, @@ -1043,7 +1051,7 @@ export class ClusterManagerClient { setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetLoggingServiceRequest @@ -1064,12 +1072,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1085,7 +1093,7 @@ export class ClusterManagerClient { } setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1095,7 +1103,7 @@ export class ClusterManagerClient { >; setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMonitoringServiceRequest @@ -1159,7 +1167,7 @@ export class ClusterManagerClient { setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMonitoringServiceRequest @@ -1182,12 +1190,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1203,7 +1211,7 @@ export class ClusterManagerClient { } setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1213,7 +1221,7 @@ export class ClusterManagerClient { >; setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, @@ -1264,7 +1272,7 @@ export class ClusterManagerClient { setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, @@ -1283,12 +1291,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1304,7 +1312,7 @@ export class ClusterManagerClient { } setLocations( request: protos.google.container.v1.ISetLocationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1314,7 +1322,7 @@ export class ClusterManagerClient { >; setLocations( request: protos.google.container.v1.ISetLocationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLocationsRequest | null | undefined, @@ -1373,7 +1381,7 @@ export class ClusterManagerClient { setLocations( request: protos.google.container.v1.ISetLocationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLocationsRequest | null | undefined, @@ -1392,12 +1400,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1413,7 +1421,7 @@ export class ClusterManagerClient { } updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1423,7 +1431,7 @@ export class ClusterManagerClient { >; updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateMasterRequest | null | undefined, @@ -1482,7 +1490,7 @@ export class ClusterManagerClient { updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateMasterRequest | null | undefined, @@ -1501,12 +1509,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1522,7 +1530,7 @@ export class ClusterManagerClient { } setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1532,7 +1540,7 @@ export class ClusterManagerClient { >; setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetMasterAuthRequest | null | undefined, @@ -1586,7 +1594,7 @@ export class ClusterManagerClient { setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetMasterAuthRequest | null | undefined, @@ -1605,12 +1613,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1626,7 +1634,7 @@ export class ClusterManagerClient { } deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1636,7 +1644,7 @@ export class ClusterManagerClient { >; deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteClusterRequest | null | undefined, @@ -1692,7 +1700,7 @@ export class ClusterManagerClient { deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteClusterRequest | null | undefined, @@ -1711,12 +1719,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1732,7 +1740,7 @@ export class ClusterManagerClient { } listOperations( request: protos.google.container.v1.IListOperationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListOperationsResponse, @@ -1742,7 +1750,7 @@ export class ClusterManagerClient { >; listOperations( request: protos.google.container.v1.IListOperationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListOperationsResponse, protos.google.container.v1.IListOperationsRequest | null | undefined, @@ -1788,7 +1796,7 @@ export class ClusterManagerClient { listOperations( request: protos.google.container.v1.IListOperationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListOperationsResponse, protos.google.container.v1.IListOperationsRequest | null | undefined, @@ -1807,12 +1815,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1828,7 +1836,7 @@ export class ClusterManagerClient { } getOperation( request: protos.google.container.v1.IGetOperationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1838,7 +1846,7 @@ export class ClusterManagerClient { >; getOperation( request: protos.google.container.v1.IGetOperationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IGetOperationRequest | null | undefined, @@ -1886,7 +1894,7 @@ export class ClusterManagerClient { getOperation( request: protos.google.container.v1.IGetOperationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IGetOperationRequest | null | undefined, @@ -1905,12 +1913,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1926,7 +1934,7 @@ export class ClusterManagerClient { } cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1936,7 +1944,7 @@ export class ClusterManagerClient { >; cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.container.v1.ICancelOperationRequest | null | undefined, @@ -1984,7 +1992,7 @@ export class ClusterManagerClient { cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, protos.google.container.v1.ICancelOperationRequest | null | undefined, @@ -2003,12 +2011,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2024,7 +2032,7 @@ export class ClusterManagerClient { } getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IServerConfig, @@ -2034,7 +2042,7 @@ export class ClusterManagerClient { >; getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IServerConfig, protos.google.container.v1.IGetServerConfigRequest | null | undefined, @@ -2079,7 +2087,7 @@ export class ClusterManagerClient { getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IServerConfig, protos.google.container.v1.IGetServerConfigRequest | null | undefined, @@ -2098,12 +2106,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2119,7 +2127,7 @@ export class ClusterManagerClient { } getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IGetJSONWebKeysResponse, @@ -2129,7 +2137,7 @@ export class ClusterManagerClient { >; getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IGetJSONWebKeysResponse, protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, @@ -2168,7 +2176,7 @@ export class ClusterManagerClient { getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IGetJSONWebKeysResponse, protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, @@ -2187,12 +2195,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2207,7 +2215,7 @@ export class ClusterManagerClient { } listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListNodePoolsResponse, @@ -2217,7 +2225,7 @@ export class ClusterManagerClient { >; listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListNodePoolsResponse, protos.google.container.v1.IListNodePoolsRequest | null | undefined, @@ -2265,7 +2273,7 @@ export class ClusterManagerClient { listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListNodePoolsResponse, protos.google.container.v1.IListNodePoolsRequest | null | undefined, @@ -2284,12 +2292,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2305,7 +2313,7 @@ export class ClusterManagerClient { } getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.INodePool, @@ -2315,7 +2323,7 @@ export class ClusterManagerClient { >; getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.INodePool, protos.google.container.v1.IGetNodePoolRequest | null | undefined, @@ -2367,7 +2375,7 @@ export class ClusterManagerClient { getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.INodePool, protos.google.container.v1.IGetNodePoolRequest | null | undefined, @@ -2386,12 +2394,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2407,7 +2415,7 @@ export class ClusterManagerClient { } createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2417,7 +2425,7 @@ export class ClusterManagerClient { >; createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateNodePoolRequest | null | undefined, @@ -2468,7 +2476,7 @@ export class ClusterManagerClient { createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateNodePoolRequest | null | undefined, @@ -2487,12 +2495,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2508,7 +2516,7 @@ export class ClusterManagerClient { } deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2518,7 +2526,7 @@ export class ClusterManagerClient { >; deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, @@ -2570,7 +2578,7 @@ export class ClusterManagerClient { deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, @@ -2589,12 +2597,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2610,7 +2618,7 @@ export class ClusterManagerClient { } rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2620,7 +2628,7 @@ export class ClusterManagerClient { >; rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.IRollbackNodePoolUpgradeRequest @@ -2677,7 +2685,7 @@ export class ClusterManagerClient { rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.IRollbackNodePoolUpgradeRequest @@ -2700,12 +2708,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2725,7 +2733,7 @@ export class ClusterManagerClient { } setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2735,7 +2743,7 @@ export class ClusterManagerClient { >; setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolManagementRequest @@ -2793,7 +2801,7 @@ export class ClusterManagerClient { setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolManagementRequest @@ -2816,12 +2824,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2837,7 +2845,7 @@ export class ClusterManagerClient { } setLabels( request: protos.google.container.v1.ISetLabelsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2847,7 +2855,7 @@ export class ClusterManagerClient { >; setLabels( request: protos.google.container.v1.ISetLabelsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLabelsRequest | null | undefined, @@ -2904,7 +2912,7 @@ export class ClusterManagerClient { setLabels( request: protos.google.container.v1.ISetLabelsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLabelsRequest | null | undefined, @@ -2923,12 +2931,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2944,7 +2952,7 @@ export class ClusterManagerClient { } setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2954,7 +2962,7 @@ export class ClusterManagerClient { >; setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, @@ -3004,7 +3012,7 @@ export class ClusterManagerClient { setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, @@ -3023,12 +3031,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3044,7 +3052,7 @@ export class ClusterManagerClient { } startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3054,7 +3062,7 @@ export class ClusterManagerClient { >; startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IStartIPRotationRequest | null | undefined, @@ -3104,7 +3112,7 @@ export class ClusterManagerClient { startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IStartIPRotationRequest | null | undefined, @@ -3123,12 +3131,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3144,7 +3152,7 @@ export class ClusterManagerClient { } completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3154,7 +3162,7 @@ export class ClusterManagerClient { >; completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, @@ -3202,7 +3210,7 @@ export class ClusterManagerClient { completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ICompleteIPRotationRequest @@ -3223,12 +3231,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3244,7 +3252,7 @@ export class ClusterManagerClient { } setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3254,7 +3262,7 @@ export class ClusterManagerClient { >; setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, @@ -3308,7 +3316,7 @@ export class ClusterManagerClient { setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, @@ -3327,12 +3335,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3348,7 +3356,7 @@ export class ClusterManagerClient { } setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3358,7 +3366,7 @@ export class ClusterManagerClient { >; setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, @@ -3408,7 +3416,7 @@ export class ClusterManagerClient { setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNetworkPolicyRequest @@ -3429,12 +3437,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3450,7 +3458,7 @@ export class ClusterManagerClient { } setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3460,7 +3468,7 @@ export class ClusterManagerClient { >; setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMaintenancePolicyRequest @@ -3513,7 +3521,7 @@ export class ClusterManagerClient { setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMaintenancePolicyRequest @@ -3536,12 +3544,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3558,7 +3566,7 @@ export class ClusterManagerClient { listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IUsableSubnetwork[], @@ -3568,7 +3576,7 @@ export class ClusterManagerClient { >; listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.container.v1.IListUsableSubnetworksRequest, | protos.google.container.v1.IListUsableSubnetworksResponse @@ -3624,7 +3632,7 @@ export class ClusterManagerClient { listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.container.v1.IListUsableSubnetworksRequest, | protos.google.container.v1.IListUsableSubnetworksResponse @@ -3647,12 +3655,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3700,7 +3708,7 @@ export class ClusterManagerClient { */ listUsableSubnetworksStream( request?: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -3760,7 +3768,7 @@ export class ClusterManagerClient { */ listUsableSubnetworksAsync( request?: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/synth.metadata b/synth.metadata index 070d12b..b864940 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,16 +3,16 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "99ab34786dfd05c667f70f363c58cc7f46ae6be4" + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "f72f1210f63e1fd9b3dd02e0791b1d024d1cbe07" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1f8a5144b52f7677dc43c55b21ccaf9e1b425ceb", - "internalRef": "342689216" + "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", + "internalRef": "343187793" } }, {