@google-cloud/functions
Version:
Functions client for Node.js
860 lines (764 loc) • 3.79 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_functions_protos || ($protobuf.roots._google_cloud_functions_protos = {});
$root.google = (function() {
/**
* Namespace google.
* @exports google
* @namespace
*/
var google = {};
google.cloud = (function() {
/**
* Namespace cloud.
* @memberof google
* @namespace
*/
var cloud = {};
cloud.functions = (function() {
/**
* Namespace functions.
* @memberof google.cloud
* @namespace
*/
var functions = {};
functions.v1 = (function() {
/**
* Namespace v1.
* @memberof google.cloud.functions
* @namespace
*/
var v1 = {};
v1.CloudFunctionsService = (function() {
/**
* Constructs a new CloudFunctionsService service.
* @memberof google.cloud.functions.v1
* @classdesc Represents a CloudFunctionsService
* @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 CloudFunctionsService(rpcImpl, requestDelimited, responseDelimited) {
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
}
(CloudFunctionsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = CloudFunctionsService;
/**
* Creates new CloudFunctionsService service using the specified rpc implementation.
* @function create
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @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 {CloudFunctionsService} RPC service. Useful where requests and/or responses are streamed.
*/
CloudFunctionsService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
return new this(rpcImpl, requestDelimited, responseDelimited);
};
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|listFunctions}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef ListFunctionsCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.cloud.functions.v1.ListFunctionsResponse} [response] ListFunctionsResponse
*/
/**
* Calls ListFunctions.
* @function listFunctions
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IListFunctionsRequest} request ListFunctionsRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.ListFunctionsCallback} callback Node-style callback called with the error, if any, and ListFunctionsResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.listFunctions = function listFunctions(request, callback) {
return this.rpcCall(listFunctions, $root.google.cloud.functions.v1.ListFunctionsRequest, $root.google.cloud.functions.v1.ListFunctionsResponse, request, callback);
}, "name", { value: "ListFunctions" });
/**
* Calls ListFunctions.
* @function listFunctions
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IListFunctionsRequest} request ListFunctionsRequest message or plain object
* @returns {Promise<google.cloud.functions.v1.ListFunctionsResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getFunction}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef GetFunctionCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.cloud.functions.v1.CloudFunction} [response] CloudFunction
*/
/**
* Calls GetFunction.
* @function getFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGetFunctionRequest} request GetFunctionRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.GetFunctionCallback} callback Node-style callback called with the error, if any, and CloudFunction
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.getFunction = function getFunction(request, callback) {
return this.rpcCall(getFunction, $root.google.cloud.functions.v1.GetFunctionRequest, $root.google.cloud.functions.v1.CloudFunction, request, callback);
}, "name", { value: "GetFunction" });
/**
* Calls GetFunction.
* @function getFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGetFunctionRequest} request GetFunctionRequest message or plain object
* @returns {Promise<google.cloud.functions.v1.CloudFunction>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|createFunction}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef CreateFunctionCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.longrunning.Operation} [response] Operation
*/
/**
* Calls CreateFunction.
* @function createFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.CreateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.createFunction = function createFunction(request, callback) {
return this.rpcCall(createFunction, $root.google.cloud.functions.v1.CreateFunctionRequest, $root.google.longrunning.Operation, request, callback);
}, "name", { value: "CreateFunction" });
/**
* Calls CreateFunction.
* @function createFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.ICreateFunctionRequest} request CreateFunctionRequest message or plain object
* @returns {Promise<google.longrunning.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|updateFunction}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef UpdateFunctionCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.longrunning.Operation} [response] Operation
*/
/**
* Calls UpdateFunction.
* @function updateFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.UpdateFunctionCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.updateFunction = function updateFunction(request, callback) {
return this.rpcCall(updateFunction, $root.google.cloud.functions.v1.UpdateFunctionRequest, $root.google.longrunning.Operation, request, callback);
}, "name", { value: "UpdateFunction" });
/**
* Calls UpdateFunction.
* @function updateFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IUpdateFunctionRequest} request UpdateFunctionRequest message or plain object
* @returns {Promise<google.longrunning.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|deleteFunction}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef DeleteFunctionCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.longrunning.Operation} [response] Operation
*/
/**
* Calls DeleteFunction.
* @function deleteFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.DeleteFunctionCallback} callback Node-style callback called with the error, if any, and Operation
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.deleteFunction = function deleteFunction(request, callback) {
return this.rpcCall(deleteFunction, $root.google.cloud.functions.v1.DeleteFunctionRequest, $root.google.longrunning.Operation, request, callback);
}, "name", { value: "DeleteFunction" });
/**
* Calls DeleteFunction.
* @function deleteFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IDeleteFunctionRequest} request DeleteFunctionRequest message or plain object
* @returns {Promise<google.longrunning.Operation>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|callFunction}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef CallFunctionCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.cloud.functions.v1.CallFunctionResponse} [response] CallFunctionResponse
*/
/**
* Calls CallFunction.
* @function callFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.ICallFunctionRequest} request CallFunctionRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.CallFunctionCallback} callback Node-style callback called with the error, if any, and CallFunctionResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.callFunction = function callFunction(request, callback) {
return this.rpcCall(callFunction, $root.google.cloud.functions.v1.CallFunctionRequest, $root.google.cloud.functions.v1.CallFunctionResponse, request, callback);
}, "name", { value: "CallFunction" });
/**
* Calls CallFunction.
* @function callFunction
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.ICallFunctionRequest} request CallFunctionRequest message or plain object
* @returns {Promise<google.cloud.functions.v1.CallFunctionResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateUploadUrl}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef GenerateUploadUrlCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.cloud.functions.v1.GenerateUploadUrlResponse} [response] GenerateUploadUrlResponse
*/
/**
* Calls GenerateUploadUrl.
* @function generateUploadUrl
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrlCallback} callback Node-style callback called with the error, if any, and GenerateUploadUrlResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.generateUploadUrl = function generateUploadUrl(request, callback) {
return this.rpcCall(generateUploadUrl, $root.google.cloud.functions.v1.GenerateUploadUrlRequest, $root.google.cloud.functions.v1.GenerateUploadUrlResponse, request, callback);
}, "name", { value: "GenerateUploadUrl" });
/**
* Calls GenerateUploadUrl.
* @function generateUploadUrl
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGenerateUploadUrlRequest} request GenerateUploadUrlRequest message or plain object
* @returns {Promise<google.cloud.functions.v1.GenerateUploadUrlResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|generateDownloadUrl}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef GenerateDownloadUrlCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.cloud.functions.v1.GenerateDownloadUrlResponse} [response] GenerateDownloadUrlResponse
*/
/**
* Calls GenerateDownloadUrl.
* @function generateDownloadUrl
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrlCallback} callback Node-style callback called with the error, if any, and GenerateDownloadUrlResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.generateDownloadUrl = function generateDownloadUrl(request, callback) {
return this.rpcCall(generateDownloadUrl, $root.google.cloud.functions.v1.GenerateDownloadUrlRequest, $root.google.cloud.functions.v1.GenerateDownloadUrlResponse, request, callback);
}, "name", { value: "GenerateDownloadUrl" });
/**
* Calls GenerateDownloadUrl.
* @function generateDownloadUrl
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.cloud.functions.v1.IGenerateDownloadUrlRequest} request GenerateDownloadUrlRequest message or plain object
* @returns {Promise<google.cloud.functions.v1.GenerateDownloadUrlResponse>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|setIamPolicy}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef SetIamPolicyCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.iam.v1.Policy} [response] Policy
*/
/**
* Calls SetIamPolicy.
* @function setIamPolicy
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.setIamPolicy = function setIamPolicy(request, callback) {
return this.rpcCall(setIamPolicy, $root.google.iam.v1.SetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
}, "name", { value: "SetIamPolicy" });
/**
* Calls SetIamPolicy.
* @function setIamPolicy
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.ISetIamPolicyRequest} request SetIamPolicyRequest message or plain object
* @returns {Promise<google.iam.v1.Policy>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|getIamPolicy}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef GetIamPolicyCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.iam.v1.Policy} [response] Policy
*/
/**
* Calls GetIamPolicy.
* @function getIamPolicy
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.getIamPolicy = function getIamPolicy(request, callback) {
return this.rpcCall(getIamPolicy, $root.google.iam.v1.GetIamPolicyRequest, $root.google.iam.v1.Policy, request, callback);
}, "name", { value: "GetIamPolicy" });
/**
* Calls GetIamPolicy.
* @function getIamPolicy
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.IGetIamPolicyRequest} request GetIamPolicyRequest message or plain object
* @returns {Promise<google.iam.v1.Policy>} Promise
* @variation 2
*/
/**
* Callback as used by {@link google.cloud.functions.v1.CloudFunctionsService|testIamPermissions}.
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @typedef TestIamPermissionsCallback
* @type {function}
* @param {Error|null} error Error, if any
* @param {google.iam.v1.TestIamPermissionsResponse} [response] TestIamPermissionsResponse
*/
/**
* Calls TestIamPermissions.
* @function testIamPermissions
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
* @param {google.cloud.functions.v1.CloudFunctionsService.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestIamPermissionsResponse
* @returns {undefined}
* @variation 1
*/
Object.defineProperty(CloudFunctionsService.prototype.testIamPermissions = function testIamPermissions(request, callback) {
return this.rpcCall(testIamPermissions, $root.google.iam.v1.TestIamPermissionsRequest, $root.google.iam.v1.TestIamPermissionsResponse, request, callback);
}, "name", { value: "TestIamPermissions" });
/**
* Calls TestIamPermissions.
* @function testIamPermissions
* @memberof google.cloud.functions.v1.CloudFunctionsService
* @instance
* @param {google.iam.v1.ITestIamPermissionsRequest} request TestIamPermissionsRequest message or plain object
* @returns {Promise<google.iam.v1.TestIamPermissionsResponse>} Promise
* @variation 2
*/
return CloudFunctionsService;
})();
v1.CloudFunction = (function() {
/**
* Properties of a CloudFunction.
* @memberof google.cloud.functions.v1
* @interface ICloudFunction
* @property {string|null} [name] CloudFunction name
* @property {string|null} [description] CloudFunction description
* @property {string|null} [sourceArchiveUrl] CloudFunction sourceArchiveUrl
* @property {google.cloud.functions.v1.ISourceRepository|null} [sourceRepository] CloudFunction sourceRepository
* @property {string|null} [sourceUploadUrl] CloudFunction sourceUploadUrl
* @property {google.cloud.functions.v1.IHttpsTrigger|null} [httpsTrigger] CloudFunction httpsTrigger
* @property {google.cloud.functions.v1.IEventTrigger|null} [eventTrigger] CloudFunction eventTrigger
* @property {google.cloud.functions.v1.CloudFunctionStatus|null} [status] CloudFunction status
* @property {string|null} [entryPoint] CloudFunction entryPoint
* @property {string|null} [runtime] CloudFunction runtime
* @property {google.protobuf.IDuration|null} [timeout] CloudFunction timeout
* @property {number|null} [availableMemoryMb] CloudFunction availableMemoryMb
* @property {string|null} [serviceAccountEmail] CloudFunction serviceAccountEmail
* @property {google.protobuf.ITimestamp|null} [updateTime] CloudFunction updateTime
* @property {number|Long|null} [versionId] CloudFunction versionId
* @property {Object.<string,string>|null} [labels] CloudFunction labels
* @property {Object.<string,string>|null} [environmentVariables] CloudFunction environmentVariables
* @property {Object.<string,string>|null} [buildEnvironmentVariables] CloudFunction buildEnvironmentVariables
* @property {string|null} [network] CloudFunction network
* @property {number|null} [maxInstances] CloudFunction maxInstances
* @property {number|null} [minInstances] CloudFunction minInstances
* @property {string|null} [vpcConnector] CloudFunction vpcConnector
* @property {google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|null} [vpcConnectorEgressSettings] CloudFunction vpcConnectorEgressSettings
* @property {google.cloud.functions.v1.CloudFunction.IngressSettings|null} [ingressSettings] CloudFunction ingressSettings
* @property {string|null} [kmsKeyName] CloudFunction kmsKeyName
* @property {string|null} [buildWorkerPool] CloudFunction buildWorkerPool
* @property {string|null} [buildId] CloudFunction buildId
* @property {string|null} [buildName] CloudFunction buildName
* @property {Array.<google.cloud.functions.v1.ISecretEnvVar>|null} [secretEnvironmentVariables] CloudFunction secretEnvironmentVariables
* @property {Array.<google.cloud.functions.v1.ISecretVolume>|null} [secretVolumes] CloudFunction secretVolumes
* @property {string|null} [sourceToken] CloudFunction sourceToken
* @property {string|null} [dockerRepository] CloudFunction dockerRepository
* @property {google.cloud.functions.v1.CloudFunction.DockerRegistry|null} [dockerRegistry] CloudFunction dockerRegistry
* @property {google.cloud.functions.v1.CloudFunction.IAutomaticUpdatePolicy|null} [automaticUpdatePolicy] CloudFunction automaticUpdatePolicy
* @property {google.cloud.functions.v1.CloudFunction.IOnDeployUpdatePolicy|null} [onDeployUpdatePolicy] CloudFunction onDeployUpdatePolicy
* @property {string|null} [buildServiceAccount] CloudFunction buildServiceAccount
*/
/**
* Constructs a new CloudFunction.
* @memberof google.cloud.functions.v1
* @classdesc Represents a CloudFunction.
* @implements ICloudFunction
* @constructor
* @param {google.cloud.functions.v1.ICloudFunction=} [properties] Properties to set
*/
function CloudFunction(properties) {
this.labels = {};
this.environmentVariables = {};
this.buildEnvironmentVariables = {};
this.secretEnvironmentVariables = [];
this.secretVolumes = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
this[keys[i]] = properties[keys[i]];
}
/**
* CloudFunction name.
* @member {string} name
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.name = "";
/**
* CloudFunction description.
* @member {string} description
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.description = "";
/**
* CloudFunction sourceArchiveUrl.
* @member {string|null|undefined} sourceArchiveUrl
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.sourceArchiveUrl = null;
/**
* CloudFunction sourceRepository.
* @member {google.cloud.functions.v1.ISourceRepository|null|undefined} sourceRepository
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.sourceRepository = null;
/**
* CloudFunction sourceUploadUrl.
* @member {string|null|undefined} sourceUploadUrl
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.sourceUploadUrl = null;
/**
* CloudFunction httpsTrigger.
* @member {google.cloud.functions.v1.IHttpsTrigger|null|undefined} httpsTrigger
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.httpsTrigger = null;
/**
* CloudFunction eventTrigger.
* @member {google.cloud.functions.v1.IEventTrigger|null|undefined} eventTrigger
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.eventTrigger = null;
/**
* CloudFunction status.
* @member {google.cloud.functions.v1.CloudFunctionStatus} status
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.status = 0;
/**
* CloudFunction entryPoint.
* @member {string} entryPoint
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.entryPoint = "";
/**
* CloudFunction runtime.
* @member {string} runtime
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.runtime = "";
/**
* CloudFunction timeout.
* @member {google.protobuf.IDuration|null|undefined} timeout
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.timeout = null;
/**
* CloudFunction availableMemoryMb.
* @member {number} availableMemoryMb
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.availableMemoryMb = 0;
/**
* CloudFunction serviceAccountEmail.
* @member {string} serviceAccountEmail
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.serviceAccountEmail = "";
/**
* CloudFunction updateTime.
* @member {google.protobuf.ITimestamp|null|undefined} updateTime
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.updateTime = null;
/**
* CloudFunction versionId.
* @member {number|Long} versionId
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.versionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
/**
* CloudFunction labels.
* @member {Object.<string,string>} labels
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.labels = $util.emptyObject;
/**
* CloudFunction environmentVariables.
* @member {Object.<string,string>} environmentVariables
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.environmentVariables = $util.emptyObject;
/**
* CloudFunction buildEnvironmentVariables.
* @member {Object.<string,string>} buildEnvironmentVariables
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.buildEnvironmentVariables = $util.emptyObject;
/**
* CloudFunction network.
* @member {string} network
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.network = "";
/**
* CloudFunction maxInstances.
* @member {number} maxInstances
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.maxInstances = 0;
/**
* CloudFunction minInstances.
* @member {number} minInstances
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.minInstances = 0;
/**
* CloudFunction vpcConnector.
* @member {string} vpcConnector
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.vpcConnector = "";
/**
* CloudFunction vpcConnectorEgressSettings.
* @member {google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings} vpcConnectorEgressSettings
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.vpcConnectorEgressSettings = 0;
/**
* CloudFunction ingressSettings.
* @member {google.cloud.functions.v1.CloudFunction.IngressSettings} ingressSettings
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.ingressSettings = 0;
/**
* CloudFunction kmsKeyName.
* @member {string} kmsKeyName
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.kmsKeyName = "";
/**
* CloudFunction buildWorkerPool.
* @member {string} buildWorkerPool
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.buildWorkerPool = "";
/**
* CloudFunction buildId.
* @member {string} buildId
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.buildId = "";
/**
* CloudFunction buildName.
* @member {string} buildName
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.buildName = "";
/**
* CloudFunction secretEnvironmentVariables.
* @member {Array.<google.cloud.functions.v1.ISecretEnvVar>} secretEnvironmentVariables
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.secretEnvironmentVariables = $util.emptyArray;
/**
* CloudFunction secretVolumes.
* @member {Array.<google.cloud.functions.v1.ISecretVolume>} secretVolumes
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.secretVolumes = $util.emptyArray;
/**
* CloudFunction sourceToken.
* @member {string} sourceToken
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.sourceToken = "";
/**
* CloudFunction dockerRepository.
* @member {string} dockerRepository
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.dockerRepository = "";
/**
* CloudFunction dockerRegistry.
* @member {google.cloud.functions.v1.CloudFunction.DockerRegistry} dockerRegistry
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.dockerRegistry = 0;
/**
* CloudFunction automaticUpdatePolicy.
* @member {google.cloud.functions.v1.CloudFunction.IAutomaticUpdatePolicy|null|undefined} automaticUpdatePolicy
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.automaticUpdatePolicy = null;
/**
* CloudFunction onDeployUpdatePolicy.
* @member {google.cloud.functions.v1.CloudFunction.IOnDeployUpdatePolicy|null|undefined} onDeployUpdatePolicy
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.onDeployUpdatePolicy = null;
/**
* CloudFunction buildServiceAccount.
* @member {string} buildServiceAccount
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
CloudFunction.prototype.buildServiceAccount = "";
// OneOf field names bound to virtual getters and setters
var $oneOfFields;
/**
* CloudFunction sourceCode.
* @member {"sourceArchiveUrl"|"sourceRepository"|"sourceUploadUrl"|undefined} sourceCode
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
Object.defineProperty(CloudFunction.prototype, "sourceCode", {
get: $util.oneOfGetter($oneOfFields = ["sourceArchiveUrl", "sourceRepository", "sourceUploadUrl"]),
set: $util.oneOfSetter($oneOfFields)
});
/**
* CloudFunction trigger.
* @member {"httpsTrigger"|"eventTrigger"|undefined} trigger
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
Object.defineProperty(CloudFunction.prototype, "trigger", {
get: $util.oneOfGetter($oneOfFields = ["httpsTrigger", "eventTrigger"]),
set: $util.oneOfSetter($oneOfFields)
});
/**
* CloudFunction runtimeUpdatePolicy.
* @member {"automaticUpdatePolicy"|"onDeployUpdatePolicy"|undefined} runtimeUpdatePolicy
* @memberof google.cloud.functions.v1.CloudFunction
* @instance
*/
Object.defineProperty(CloudFunction.prototype, "runtimeUpdatePolicy", {
get: $util.oneOfGetter($oneOfFields = ["automaticUpdatePolicy", "onDeployUpdatePolicy"]),
set: $util.oneOfSetter($oneOfFields)
});
/**
* Creates a new CloudFunction instance using the specified properties.
* @function create
* @memberof google.cloud.functions.v1.CloudFunction
* @static
* @param {google.cloud.functions.v1.ICloudFunction=} [