BuildConfig class
Describes the Build step of the function that builds a container from the given source.
Constructors
-
BuildConfig({Input<
BuildConfigDockerRegistry> ? dockerRegistry, Input<String> ? dockerRepository, Input<String> ? entryPoint, Input<Map< ? environmentVariables, Input<String, String> >String> ? runtime, Input<Source> ? source, Input<String> ? sourceToken, Input<String> ? workerPool}) -
Creates a new BuildConfig.
dockerRegistryDocker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Ifdocker_repositoryfield is specified, this field will be automatically set asARTIFACT_REGISTRY. If unspecified, it currently defaults toCONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.dockerRepositoryUser managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the patternprojects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.entryPointThe 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". For Node.js this is name of a function exported by the module specified insource_location.environmentVariablesUser-provided build-time environment variables for the functionruntimeThe runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see thegcloudcommand reference.sourceThe location of the function source code.sourceTokenAn identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.workerPoolName of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field isprojects/{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. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.const -
BuildConfig.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
dockerRegistry
→ Input<
BuildConfigDockerRegistry> ? -
Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. If
docker_repositoryfield is specified, this field will be automatically set asARTIFACT_REGISTRY. If unspecified, it currently defaults toCONTAINER_REGISTRY. This field may be overridden by the backend for eligible deployments.final -
dockerRepository
→ Input<
String> ? -
User managed repository created in Artifact Registry optionally with a customer managed encryption key. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, GCF will create and use a repository named 'gcf-artifacts' for every deployed region. It must match the pattern
projects/{project}/locations/{location}/repositories/{repository}. Cross-project repositories are not supported. Cross-location repositories are not supported. Repository format must be 'DOCKER'.final -
entryPoint
→ Input<
String> ? -
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". For Node.js this is name of a function exported by the module specified in
source_location.final -
environmentVariables
→ Input<
Map< ?String, String> > -
User-provided build-time environment variables for the function
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
runtime
→ Input<
String> ? -
The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the
gcloudcommand reference.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Input<
Source> ? -
The location of the function source code.
final
-
sourceToken
→ Input<
String> ? -
An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
final
-
workerPool
→ Input<
String> ? -
Name of the Cloud Build Custom Worker Pool that should be used to build the 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. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles/cloudbuild.customworkers.builder) in the project.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited