Reference documentation and code samples for the Google Cloud Run V2 Client class BuildpacksBuild.
Build the source using Buildpacks.
Generated from protobuf message google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild
Namespace
Google \ Cloud \ Run \ V2 \ SubmitBuildRequestMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ runtime
string
The runtime name, e.g. 'go113'. Leave blank for generic builds.
↳ function_target
string
Optional. Name of the function target if the source is a function source. Required for function builds.
↳ cache_image_uri
string
Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.
↳ base_image
string
Optional. The base image to use for the build.
↳ environment_variables
↳ enable_automatic_updates
bool
Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.
↳ project_descriptor
string
Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.
getRuntime
The runtime name, e.g. 'go113'. Leave blank for generic builds.
string
setRuntime
The runtime name, e.g. 'go113'. Leave blank for generic builds.
var
string
$this
getFunctionTarget
Optional. Name of the function target if the source is a function source.
Required for function builds.
string
setFunctionTarget
Optional. Name of the function target if the source is a function source.
Required for function builds.
var
string
$this
getCacheImageUri
Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching.
This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.
string
setCacheImageUri
Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching.
This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.
var
string
$this
getBaseImage
Optional. The base image to use for the build.
string
setBaseImage
Optional. The base image to use for the build.
var
string
$this
getEnvironmentVariables
Optional. User-provided build-time environment variables.
setEnvironmentVariables
Optional. User-provided build-time environment variables.
$this
getEnableAutomaticUpdates
Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.
bool
setEnableAutomaticUpdates
Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.
var
bool
$this
getProjectDescriptor
Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.
string
setProjectDescriptor
Optional. project_descriptor stores the path to the project descriptor file. When empty, it means that there is no project descriptor file in the source.
var
string
$this