Class BuildConfig (0.10.15)

BuildConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describes the Build step of the function that builds a container from the given source.

Attributes

Name Description
name str
Output only. The Cloud Build name of the latest successful deployment of the function.
source_location str
The Cloud Storage bucket URI where the function source code is located.
function_target str
Optional. 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".
image_uri str
Optional. Artifact Registry URI to store the built image.
base_image str
Optional. The base image used to build the function.
enable_automatic_updates bool
Optional. Sets whether the function will receive automatic base image updates.
worker_pool str
Optional. 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.
environment_variables MutableMapping[str, str]
Optional. User-provided build-time environment variables for the function
service_account str
Optional. Service account to be used for building the container. The format of this field is projects/{projectId}/serviceAccounts/{serviceAccountEmail}.

Classes

EnvironmentVariablesEntry

EnvironmentVariablesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.