CloudFunction class Null safety

Describes a Cloud Function that contains user computation executed in response to an event.

It encapsulate function and triggers configurations. Next tag: 35

Constructors

CloudFunction({int? availableMemoryMb, Map<String, String>? buildEnvironmentVariables, String? buildId, String? buildName, String? buildWorkerPool, String? description, String? entryPoint, Map<String, String>? environmentVariables, EventTrigger? eventTrigger, HttpsTrigger? httpsTrigger, String? ingressSettings, Map<String, String>? labels, int? maxInstances, int? minInstances, String? name, String? network, String? runtime, List<SecretEnvVar>? secretEnvironmentVariables, List<SecretVolume>? secretVolumes, String? serviceAccountEmail, String? sourceArchiveUrl, SourceRepository? sourceRepository, String? sourceToken, String? sourceUploadUrl, String? status, String? timeout, String? updateTime, String? versionId, String? vpcConnector, String? vpcConnectorEgressSettings})
CloudFunction.fromJson(Map _json)

Properties

availableMemoryMb int?
The amount of memory in MB available for a function. [...]
read / write
buildEnvironmentVariables Map<String, String>?
Build environment variables that shall be available during build time.
read / write
buildId String?
The Cloud Build ID of the latest successful deployment of the function. [...]
read / write
buildName String?
The Cloud Build Name of the function deployment. [...]
read / write
buildWorkerPool String?
Name of the Cloud Build Custom Worker Pool that should be used to build the function. [...]
read / write
description String?
User-provided description of a function.
read / write
entryPoint String?
The name of the function (as defined in source code) that will be executed. [...]
read / write
environmentVariables Map<String, String>?
Environment variables that shall be available during function execution.
read / write
eventTrigger EventTrigger?
A source that fires events in response to a condition in another service.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
httpsTrigger HttpsTrigger?
An HTTPS endpoint type of source that can be triggered via URL.
read / write
ingressSettings String?
The ingress settings for the function, controlling what traffic can reach it. Possible string values are: [...]
read / write
labels Map<String, String>?
Labels associated with this Cloud Function.
read / write
maxInstances int?
The limit on the maximum number of function instances that may coexist at a given time. [...]
read / write
minInstances int?
A lower bound for the number function instances that may coexist at a given time.
read / write
name String?
A user-defined name of the function. [...]
read / write
network String?
The VPC Network that this cloud function can connect to. [...]
read / write
runtime String?
The runtime in which to run the function. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secretEnvironmentVariables List<SecretEnvVar>?
Secret environment variables configuration.
read / write
secretVolumes List<SecretVolume>?
Secret volumes configuration.
read / write
serviceAccountEmail String?
The email of the function's service account. [...]
read / write
sourceArchiveUrl String?
The Google Cloud Storage URL, starting with gs://, pointing to the zip archive which contains the function.
read / write
sourceRepository SourceRepository?
Beta Feature The source repository where a function is hosted.
read / write
sourceToken String?
Input only. [...]
read / write
sourceUploadUrl String?
The Google Cloud Storage signed URL used for source uploading, generated by calling [google.cloud.functions.v1.GenerateUploadUrl]. [...]
read / write
status String?
Status of the function deployment. [...]
read / write
timeout String?
The function execution timeout. [...]
read / write
updateTime String?
The last update timestamp of a Cloud Function. [...]
read / write
versionId String?
The version identifier of the Cloud Function. [...]
read / write
vpcConnector String?
The VPC Network Connector that this cloud function can connect to. [...]
read / write
vpcConnectorEgressSettings String?
The egress settings for the connector, controlling what traffic is diverted through it. Possible string values are: [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited