Reference documentation and code samples for the Google Cloud Run V2 Client class BuildConfig.
Describes the Build step of the function that builds a container from the given source.
Generated from protobuf message google.cloud.run.v2.BuildConfig
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The Cloud Build name of the latest successful deployment of the function.
↳ source_location
string
The Cloud Storage bucket URI where the function source code is located.
↳ function_target
string
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
string
Optional. Artifact Registry URI to store the built image.
↳ base_image
string
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
string
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
array| Google\Protobuf\Internal\MapField
Optional. User-provided build-time environment variables for the function
↳ service_account
string
Optional. Service account to be used for building the container. The format of this field is projects/{projectId}/serviceAccounts/{serviceAccountEmail}
.
getName
Output only. The Cloud Build name of the latest successful deployment of the function.
string
setName
Output only. The Cloud Build name of the latest successful deployment of the function.
var
string
$this
getSourceLocation
The Cloud Storage bucket URI where the function source code is located.
string
setSourceLocation
The Cloud Storage bucket URI where the function source code is located.
var
string
$this
getFunctionTarget
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".
string
setFunctionTarget
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".
var
string
$this
getImageUri
Optional. Artifact Registry URI to store the built image.
string
setImageUri
Optional. Artifact Registry URI to store the built image.
var
string
$this
getBaseImage
Optional. The base image used to build the function.
string
setBaseImage
Optional. The base image used to build the function.
var
string
$this
getEnableAutomaticUpdates
Optional. Sets whether the function will receive automatic base image updates.
bool
setEnableAutomaticUpdates
Optional. Sets whether the function will receive automatic base image updates.
var
bool
$this
getWorkerPool
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.
string
setWorkerPool
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.
var
string
$this
getEnvironmentVariables
Optional. User-provided build-time environment variables for the function
setEnvironmentVariables
Optional. User-provided build-time environment variables for the function
$this
getServiceAccount
Optional. Service account to be used for building the container. The format
of this field is projects/{projectId}/serviceAccounts/{serviceAccountEmail}
.
string
setServiceAccount
Optional. Service account to be used for building the container. The format
of this field is projects/{projectId}/serviceAccounts/{serviceAccountEmail}
.
var
string
$this