Represents a CloudFunction.
Package
@google-cloud/functions!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.functions.v1.ICloudFunction);
Constructs a new CloudFunction.
Name | Description |
properties |
ICloudFunction
Properties to set |
Properties
availableMemoryMb
public availableMemoryMb: number;
CloudFunction availableMemoryMb.
Type | Description |
number |
buildId
public buildId: string;
CloudFunction buildId.
Type | Description |
string |
description
public description: string;
CloudFunction description.
Type | Description |
string |
entryPoint
public entryPoint: string;
CloudFunction entryPoint.
Type | Description |
string |
environmentVariables
public environmentVariables: { [k: string]: string };
CloudFunction environmentVariables.
Type | Description |
{ [k: string]: string } |
eventTrigger
public eventTrigger?: (google.cloud.functions.v1.IEventTrigger|null);
CloudFunction eventTrigger.
Type | Description |
(google.cloud.functions.v1.IEventTrigger|null) |
httpsTrigger
public httpsTrigger?: (google.cloud.functions.v1.IHttpsTrigger|null);
CloudFunction httpsTrigger.
Type | Description |
(google.cloud.functions.v1.IHttpsTrigger|null) |
ingressSettings
public ingressSettings: (google.cloud.functions.v1.CloudFunction.IngressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.IngressSettings);
CloudFunction ingressSettings.
Type | Description |
(google.cloud.functions.v1.CloudFunction.IngressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.IngressSettings) |
labels
public labels: { [k: string]: string };
CloudFunction labels.
Type | Description |
{ [k: string]: string } |
maxInstances
public maxInstances: number;
CloudFunction maxInstances.
Type | Description |
number |
name
public name: string;
CloudFunction name.
Type | Description |
string |
network
public network: string;
CloudFunction network.
Type | Description |
string |
runtime
public runtime: string;
CloudFunction runtime.
Type | Description |
string |
serviceAccountEmail
public serviceAccountEmail: string;
CloudFunction serviceAccountEmail.
Type | Description |
string |
sourceArchiveUrl
public sourceArchiveUrl?: (string|null);
CloudFunction sourceArchiveUrl.
Type | Description |
(string|null) |
sourceCode
public sourceCode?: ("sourceArchiveUrl"|"sourceRepository"|"sourceUploadUrl");
CloudFunction sourceCode.
Type | Description |
("sourceArchiveUrl"|"sourceRepository"|"sourceUploadUrl") |
sourceRepository
public sourceRepository?: (google.cloud.functions.v1.ISourceRepository|null);
CloudFunction sourceRepository.
Type | Description |
(google.cloud.functions.v1.ISourceRepository|null) |
sourceUploadUrl
public sourceUploadUrl?: (string|null);
CloudFunction sourceUploadUrl.
Type | Description |
(string|null) |
status
public status: (google.cloud.functions.v1.CloudFunctionStatus|keyof typeof google.cloud.functions.v1.CloudFunctionStatus);
CloudFunction status.
Type | Description |
(google.cloud.functions.v1.CloudFunctionStatus|keyof typeof google.cloud.functions.v1.CloudFunctionStatus) |
timeout
public timeout?: (google.protobuf.IDuration|null);
CloudFunction timeout.
Type | Description |
(google.protobuf.IDuration|null) |
trigger
public trigger?: ("httpsTrigger"|"eventTrigger");
CloudFunction trigger.
Type | Description |
("httpsTrigger"|"eventTrigger") |
updateTime
public updateTime?: (google.protobuf.ITimestamp|null);
CloudFunction updateTime.
Type | Description |
(google.protobuf.ITimestamp|null) |
versionId
public versionId: (number|Long|string);
CloudFunction versionId.
Type | Description |
(number|Long|string) |
vpcConnector
public vpcConnector: string;
CloudFunction vpcConnector.
Type | Description |
string |
vpcConnectorEgressSettings
public vpcConnectorEgressSettings: (google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings);
CloudFunction vpcConnectorEgressSettings.
Type | Description |
(google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings|keyof typeof google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings) |
Methods
create(properties)
public static create(properties?: google.cloud.functions.v1.ICloudFunction): google.cloud.functions.v1.CloudFunction;
Creates a new CloudFunction instance using the specified properties.
Name | Description |
properties |
ICloudFunction
Properties to set |
Type | Description |
google.cloud.functions.v1.CloudFunction | CloudFunction instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.functions.v1.CloudFunction;
Decodes a CloudFunction message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.functions.v1.CloudFunction | CloudFunction |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.functions.v1.CloudFunction;
Decodes a CloudFunction message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.functions.v1.CloudFunction | CloudFunction |
encode(message, writer)
public static encode(message: google.cloud.functions.v1.ICloudFunction, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified CloudFunction message. Does not implicitly messages.
Name | Description |
message |
ICloudFunction
CloudFunction message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.functions.v1.ICloudFunction, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified CloudFunction message, length delimited. Does not implicitly messages.
Name | Description |
message |
ICloudFunction
CloudFunction message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.functions.v1.CloudFunction;
Creates a CloudFunction message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.functions.v1.CloudFunction | CloudFunction |
toJSON()
public toJSON(): { [k: string]: any };
Converts this CloudFunction to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.functions.v1.CloudFunction, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a CloudFunction message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.functions.v1.CloudFunction
CloudFunction |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a CloudFunction message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|