ServiceBuildConfig constructor
Creates a new ServiceBuildConfig.
baseImage The base image used to build the function.
enableAutomaticUpdates Sets whether the function will receive automatic base image updates.
environmentVariables User-provided build-time environment variables for the function.
functionTarget The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function".
imageUri Artifact Registry URI to store the built image.
name (Output)
serviceAccount Service account to be used for building the container. The format of this field is projects/{projectId}/serviceAccounts/{serviceAccountEmail}.
sourceLocation The Cloud Storage bucket URI where the function source code is located.
workerPool Name of the Cloud Build Custom Worker Pool that should be used to build the Cloud Run function. The format of this field is projects/{project}/locations/{region}/workerPools/{workerPool} where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.
Implementation
const ServiceBuildConfig({
this.baseImage,
this.enableAutomaticUpdates,
this.environmentVariables,
this.functionTarget,
this.imageUri,
this.name,
this.serviceAccount,
this.sourceLocation,
this.workerPool,
});