@google-cloud/container
Version:
Google Container Engine API client for Node.js
870 lines (783 loc) • 10.2 MB
JavaScript
// Copyright 2025 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
//
// http://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.
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
(function(global, factory) { /* global define, require, module */
/* AMD */ if (typeof define === 'function' && define.amd)
define(["protobufjs/minimal"], factory);
/* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
})(this, function($protobuf) {
"use strict";
// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
// Exported root namespace
var $root = $protobuf.roots._google_cloud_container_protos || ($protobuf.roots._google_cloud_container_protos = {});
$root.google = (function() {
/**
* Namespace google.
* @exports google
* @namespace
*/
var google = {};
google.container = (function() {
/**
* Namespace container.
* @memberof google
* @namespace
*/
var container = {};
container.v1 = (function() {
/**
* Namespace v1.
* @memberof google.container
* @namespace
*/
var v1 = {};
v1.ClusterManager = (function() {
/**
* Constructs a new ClusterManager service.
* @memberof google.container.v1
* @classdesc Represents a ClusterManager
* @extends $protobuf.rpc.Service
* @constructor
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
*/
function ClusterManager(rpcImpl, requestDelimited, responseDelimited) {
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
}
(ClusterManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ClusterManager;
/**
* Creates new ClusterManager service using the specified rpc implementation.
* @function create
* @memberof google.container.v1.ClusterManager
* @static
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
* @returns {ClusterManager} RPC service. Useful where requests and/or responses are streamed.
*/
ClusterManager.create = function create(rpcImpl, requestDelimited, responseDelimited) {
return new this(rpcImpl, requestDelimited, responseDelimited);
};
/**
* Callback as used by {@link google.container.v1.ClusterManager|listClusters}.
* @memberof google.container.v1.ClusterManager
* @typedef ListClustersCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.ListClustersResponse} [response] ListClustersResponse
*/
/**
* Calls ListClusters.
* @function listClusters
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListClustersRequest} request ListClustersRequest message or plain object
* @param {google.container.v1.ClusterManager.ListClustersCallback} callback Node-style callback called with the error, if any, and ListClustersResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.listClusters = function listClusters(request, callback) {
return this.rpcCall(listClusters, $root.google.container.v1.ListClustersRequest, $root.google.container.v1.ListClustersResponse, request, callback);
}, "name", { value: "ListClusters" });
/**
* Calls ListClusters.
* @function listClusters
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListClustersRequest} request ListClustersRequest message or plain object
* @returns {Promise<google.container.v1.ListClustersResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|getCluster}.
* @memberof google.container.v1.ClusterManager
* @typedef GetClusterCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Cluster} [response] Cluster
*/
/**
* Calls GetCluster.
* @function getCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetClusterRequest} request GetClusterRequest message or plain object
* @param {google.container.v1.ClusterManager.GetClusterCallback} callback Node-style callback called with the error, if any, and Cluster
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.getCluster = function getCluster(request, callback) {
return this.rpcCall(getCluster, $root.google.container.v1.GetClusterRequest, $root.google.container.v1.Cluster, request, callback);
}, "name", { value: "GetCluster" });
/**
* Calls GetCluster.
* @function getCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetClusterRequest} request GetClusterRequest message or plain object
* @returns {Promise<google.container.v1.Cluster>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|createCluster}.
* @memberof google.container.v1.ClusterManager
* @typedef CreateClusterCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls CreateCluster.
* @function createCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
* @param {google.container.v1.ClusterManager.CreateClusterCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.createCluster = function createCluster(request, callback) {
return this.rpcCall(createCluster, $root.google.container.v1.CreateClusterRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "CreateCluster" });
/**
* Calls CreateCluster.
* @function createCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|updateCluster}.
* @memberof google.container.v1.ClusterManager
* @typedef UpdateClusterCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls UpdateCluster.
* @function updateCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
* @param {google.container.v1.ClusterManager.UpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.updateCluster = function updateCluster(request, callback) {
return this.rpcCall(updateCluster, $root.google.container.v1.UpdateClusterRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "UpdateCluster" });
/**
* Calls UpdateCluster.
* @function updateCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|updateNodePool}.
* @memberof google.container.v1.ClusterManager
* @typedef UpdateNodePoolCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls UpdateNodePool.
* @function updateNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateNodePoolRequest} request UpdateNodePoolRequest message or plain object
* @param {google.container.v1.ClusterManager.UpdateNodePoolCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.updateNodePool = function updateNodePool(request, callback) {
return this.rpcCall(updateNodePool, $root.google.container.v1.UpdateNodePoolRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "UpdateNodePool" });
/**
* Calls UpdateNodePool.
* @function updateNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateNodePoolRequest} request UpdateNodePoolRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setNodePoolAutoscaling}.
* @memberof google.container.v1.ClusterManager
* @typedef SetNodePoolAutoscalingCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetNodePoolAutoscaling.
* @function setNodePoolAutoscaling
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetNodePoolAutoscalingRequest} request SetNodePoolAutoscalingRequest message or plain object
* @param {google.container.v1.ClusterManager.SetNodePoolAutoscalingCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setNodePoolAutoscaling = function setNodePoolAutoscaling(request, callback) {
return this.rpcCall(setNodePoolAutoscaling, $root.google.container.v1.SetNodePoolAutoscalingRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetNodePoolAutoscaling" });
/**
* Calls SetNodePoolAutoscaling.
* @function setNodePoolAutoscaling
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetNodePoolAutoscalingRequest} request SetNodePoolAutoscalingRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setLoggingService}.
* @memberof google.container.v1.ClusterManager
* @typedef SetLoggingServiceCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetLoggingService.
* @function setLoggingService
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetLoggingServiceRequest} request SetLoggingServiceRequest message or plain object
* @param {google.container.v1.ClusterManager.SetLoggingServiceCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setLoggingService = function setLoggingService(request, callback) {
return this.rpcCall(setLoggingService, $root.google.container.v1.SetLoggingServiceRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetLoggingService" });
/**
* Calls SetLoggingService.
* @function setLoggingService
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetLoggingServiceRequest} request SetLoggingServiceRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setMonitoringService}.
* @memberof google.container.v1.ClusterManager
* @typedef SetMonitoringServiceCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetMonitoringService.
* @function setMonitoringService
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetMonitoringServiceRequest} request SetMonitoringServiceRequest message or plain object
* @param {google.container.v1.ClusterManager.SetMonitoringServiceCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setMonitoringService = function setMonitoringService(request, callback) {
return this.rpcCall(setMonitoringService, $root.google.container.v1.SetMonitoringServiceRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetMonitoringService" });
/**
* Calls SetMonitoringService.
* @function setMonitoringService
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetMonitoringServiceRequest} request SetMonitoringServiceRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setAddonsConfig}.
* @memberof google.container.v1.ClusterManager
* @typedef SetAddonsConfigCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetAddonsConfig.
* @function setAddonsConfig
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetAddonsConfigRequest} request SetAddonsConfigRequest message or plain object
* @param {google.container.v1.ClusterManager.SetAddonsConfigCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setAddonsConfig = function setAddonsConfig(request, callback) {
return this.rpcCall(setAddonsConfig, $root.google.container.v1.SetAddonsConfigRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetAddonsConfig" });
/**
* Calls SetAddonsConfig.
* @function setAddonsConfig
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetAddonsConfigRequest} request SetAddonsConfigRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setLocations}.
* @memberof google.container.v1.ClusterManager
* @typedef SetLocationsCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetLocations.
* @function setLocations
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetLocationsRequest} request SetLocationsRequest message or plain object
* @param {google.container.v1.ClusterManager.SetLocationsCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setLocations = function setLocations(request, callback) {
return this.rpcCall(setLocations, $root.google.container.v1.SetLocationsRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetLocations" });
/**
* Calls SetLocations.
* @function setLocations
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetLocationsRequest} request SetLocationsRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|updateMaster}.
* @memberof google.container.v1.ClusterManager
* @typedef UpdateMasterCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls UpdateMaster.
* @function updateMaster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateMasterRequest} request UpdateMasterRequest message or plain object
* @param {google.container.v1.ClusterManager.UpdateMasterCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.updateMaster = function updateMaster(request, callback) {
return this.rpcCall(updateMaster, $root.google.container.v1.UpdateMasterRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "UpdateMaster" });
/**
* Calls UpdateMaster.
* @function updateMaster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IUpdateMasterRequest} request UpdateMasterRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|setMasterAuth}.
* @memberof google.container.v1.ClusterManager
* @typedef SetMasterAuthCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls SetMasterAuth.
* @function setMasterAuth
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetMasterAuthRequest} request SetMasterAuthRequest message or plain object
* @param {google.container.v1.ClusterManager.SetMasterAuthCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.setMasterAuth = function setMasterAuth(request, callback) {
return this.rpcCall(setMasterAuth, $root.google.container.v1.SetMasterAuthRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "SetMasterAuth" });
/**
* Calls SetMasterAuth.
* @function setMasterAuth
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ISetMasterAuthRequest} request SetMasterAuthRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|deleteCluster}.
* @memberof google.container.v1.ClusterManager
* @typedef DeleteClusterCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls DeleteCluster.
* @function deleteCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
* @param {google.container.v1.ClusterManager.DeleteClusterCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.deleteCluster = function deleteCluster(request, callback) {
return this.rpcCall(deleteCluster, $root.google.container.v1.DeleteClusterRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "DeleteCluster" });
/**
* Calls DeleteCluster.
* @function deleteCluster
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|listOperations}.
* @memberof google.container.v1.ClusterManager
* @typedef ListOperationsCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.ListOperationsResponse} [response] ListOperationsResponse
*/
/**
* Calls ListOperations.
* @function listOperations
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListOperationsRequest} request ListOperationsRequest message or plain object
* @param {google.container.v1.ClusterManager.ListOperationsCallback} callback Node-style callback called with the error, if any, and ListOperationsResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.listOperations = function listOperations(request, callback) {
return this.rpcCall(listOperations, $root.google.container.v1.ListOperationsRequest, $root.google.container.v1.ListOperationsResponse, request, callback);
}, "name", { value: "ListOperations" });
/**
* Calls ListOperations.
* @function listOperations
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListOperationsRequest} request ListOperationsRequest message or plain object
* @returns {Promise<google.container.v1.ListOperationsResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|getOperation}.
* @memberof google.container.v1.ClusterManager
* @typedef GetOperationCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls GetOperation.
* @function getOperation
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetOperationRequest} request GetOperationRequest message or plain object
* @param {google.container.v1.ClusterManager.GetOperationCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.getOperation = function getOperation(request, callback) {
return this.rpcCall(getOperation, $root.google.container.v1.GetOperationRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "GetOperation" });
/**
* Calls GetOperation.
* @function getOperation
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetOperationRequest} request GetOperationRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|cancelOperation}.
* @memberof google.container.v1.ClusterManager
* @typedef CancelOperationCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.protobuf.Empty} [response] Empty
*/
/**
* Calls CancelOperation.
* @function cancelOperation
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICancelOperationRequest} request CancelOperationRequest message or plain object
* @param {google.container.v1.ClusterManager.CancelOperationCallback} callback Node-style callback called with the error, if any, and Empty
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.cancelOperation = function cancelOperation(request, callback) {
return this.rpcCall(cancelOperation, $root.google.container.v1.CancelOperationRequest, $root.google.protobuf.Empty, request, callback);
}, "name", { value: "CancelOperation" });
/**
* Calls CancelOperation.
* @function cancelOperation
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICancelOperationRequest} request CancelOperationRequest message or plain object
* @returns {Promise<google.protobuf.Empty>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|getServerConfig}.
* @memberof google.container.v1.ClusterManager
* @typedef GetServerConfigCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.ServerConfig} [response] ServerConfig
*/
/**
* Calls GetServerConfig.
* @function getServerConfig
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetServerConfigRequest} request GetServerConfigRequest message or plain object
* @param {google.container.v1.ClusterManager.GetServerConfigCallback} callback Node-style callback called with the error, if any, and ServerConfig
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.getServerConfig = function getServerConfig(request, callback) {
return this.rpcCall(getServerConfig, $root.google.container.v1.GetServerConfigRequest, $root.google.container.v1.ServerConfig, request, callback);
}, "name", { value: "GetServerConfig" });
/**
* Calls GetServerConfig.
* @function getServerConfig
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetServerConfigRequest} request GetServerConfigRequest message or plain object
* @returns {Promise<google.container.v1.ServerConfig>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|getJSONWebKeys}.
* @memberof google.container.v1.ClusterManager
* @typedef GetJSONWebKeysCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.GetJSONWebKeysResponse} [response] GetJSONWebKeysResponse
*/
/**
* Calls GetJSONWebKeys.
* @function getJSONWebKeys
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object
* @param {google.container.v1.ClusterManager.GetJSONWebKeysCallback} callback Node-style callback called with the error, if any, and GetJSONWebKeysResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.getJSONWebKeys = function getJSONWebKeys(request, callback) {
return this.rpcCall(getJSONWebKeys, $root.google.container.v1.GetJSONWebKeysRequest, $root.google.container.v1.GetJSONWebKeysResponse, request, callback);
}, "name", { value: "GetJSONWebKeys" });
/**
* Calls GetJSONWebKeys.
* @function getJSONWebKeys
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetJSONWebKeysRequest} request GetJSONWebKeysRequest message or plain object
* @returns {Promise<google.container.v1.GetJSONWebKeysResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|listNodePools}.
* @memberof google.container.v1.ClusterManager
* @typedef ListNodePoolsCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.ListNodePoolsResponse} [response] ListNodePoolsResponse
*/
/**
* Calls ListNodePools.
* @function listNodePools
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListNodePoolsRequest} request ListNodePoolsRequest message or plain object
* @param {google.container.v1.ClusterManager.ListNodePoolsCallback} callback Node-style callback called with the error, if any, and ListNodePoolsResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.listNodePools = function listNodePools(request, callback) {
return this.rpcCall(listNodePools, $root.google.container.v1.ListNodePoolsRequest, $root.google.container.v1.ListNodePoolsResponse, request, callback);
}, "name", { value: "ListNodePools" });
/**
* Calls ListNodePools.
* @function listNodePools
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IListNodePoolsRequest} request ListNodePoolsRequest message or plain object
* @returns {Promise<google.container.v1.ListNodePoolsResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|getNodePool}.
* @memberof google.container.v1.ClusterManager
* @typedef GetNodePoolCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.NodePool} [response] NodePool
*/
/**
* Calls GetNodePool.
* @function getNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetNodePoolRequest} request GetNodePoolRequest message or plain object
* @param {google.container.v1.ClusterManager.GetNodePoolCallback} callback Node-style callback called with the error, if any, and NodePool
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.getNodePool = function getNodePool(request, callback) {
return this.rpcCall(getNodePool, $root.google.container.v1.GetNodePoolRequest, $root.google.container.v1.NodePool, request, callback);
}, "name", { value: "GetNodePool" });
/**
* Calls GetNodePool.
* @function getNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IGetNodePoolRequest} request GetNodePoolRequest message or plain object
* @returns {Promise<google.container.v1.NodePool>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|createNodePool}.
* @memberof google.container.v1.ClusterManager
* @typedef CreateNodePoolCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls CreateNodePool.
* @function createNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICreateNodePoolRequest} request CreateNodePoolRequest message or plain object
* @param {google.container.v1.ClusterManager.CreateNodePoolCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.createNodePool = function createNodePool(request, callback) {
return this.rpcCall(createNodePool, $root.google.container.v1.CreateNodePoolRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "CreateNodePool" });
/**
* Calls CreateNodePool.
* @function createNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICreateNodePoolRequest} request CreateNodePoolRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|deleteNodePool}.
* @memberof google.container.v1.ClusterManager
* @typedef DeleteNodePoolCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls DeleteNodePool.
* @function deleteNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IDeleteNodePoolRequest} request DeleteNodePoolRequest message or plain object
* @param {google.container.v1.ClusterManager.DeleteNodePoolCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.deleteNodePool = function deleteNodePool(request, callback) {
return this.rpcCall(deleteNodePool, $root.google.container.v1.DeleteNodePoolRequest, $root.google.container.v1.Operation, request, callback);
}, "name", { value: "DeleteNodePool" });
/**
* Calls DeleteNodePool.
* @function deleteNodePool
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IDeleteNodePoolRequest} request DeleteNodePoolRequest message or plain object
* @returns {Promise<google.container.v1.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|completeNodePoolUpgrade}.
* @memberof google.container.v1.ClusterManager
* @typedef CompleteNodePoolUpgradeCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.protobuf.Empty} [response] Empty
*/
/**
* Calls CompleteNodePoolUpgrade.
* @function completeNodePoolUpgrade
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICompleteNodePoolUpgradeRequest} request CompleteNodePoolUpgradeRequest message or plain object
* @param {google.container.v1.ClusterManager.CompleteNodePoolUpgradeCallback} callback Node-style callback called with the error, if any, and Empty
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.completeNodePoolUpgrade = function completeNodePoolUpgrade(request, callback) {
return this.rpcCall(completeNodePoolUpgrade, $root.google.container.v1.CompleteNodePoolUpgradeRequest, $root.google.protobuf.Empty, request, callback);
}, "name", { value: "CompleteNodePoolUpgrade" });
/**
* Calls CompleteNodePoolUpgrade.
* @function completeNodePoolUpgrade
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.ICompleteNodePoolUpgradeRequest} request CompleteNodePoolUpgradeRequest message or plain object
* @returns {Promise<google.protobuf.Empty>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.container.v1.ClusterManager|rollbackNodePoolUpgrade}.
* @memberof google.container.v1.ClusterManager
* @typedef RollbackNodePoolUpgradeCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.container.v1.Operation} [response] Operation
*/
/**
* Calls RollbackNodePoolUpgrade.
* @function rollbackNodePoolUpgrade
* @memberof google.container.v1.ClusterManager
* @instance
* @param {google.container.v1.IRollbackNodePoolUpgradeRequest} request RollbackNodePoolUpgradeRequest message or plain object
* @param {google.container.v1.ClusterManager.RollbackNodePoolUpgradeCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(ClusterManager.prototype.rollbackNodePoolUpgrade = funct