Reference documentation and code samples for the Google Cloud Run V2 Client class SubmitBuildRequest.
Request message for submitting a Build.
Generated from protobuf message google.cloud.run.v2.SubmitBuildRequest
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used. Format: projects/{project}/locations/{location}
↳ storage_source
↳ image_uri
string
Required. Artifact Registry URI to store the built image.
↳ buildpack_build
↳ docker_build
SubmitBuildRequest\DockerBuild
Build the source using Docker. This means the source has a Dockerfile.
↳ service_account
string
Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
↳ worker_pool
string
Optional. 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.
↳ tags
array
Optional. Additional tags to annotate the build.
getParent
Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used.
Format: projects/{project}/locations/{location}
string
setParent
Required. The project and location to build in. Location must be a region, e.g., 'us-central1' or 'global' if the global builder is to be used.
Format: projects/{project}/locations/{location}
var
string
$this
getStorageSource
Required. Source for the build.
hasStorageSource
setStorageSource
Required. Source for the build.
$this
getImageUri
Required. Artifact Registry URI to store the built image.
string
setImageUri
Required. Artifact Registry URI to store the built image.
var
string
$this
getBuildpackBuild
Build the source using Buildpacks.
hasBuildpackBuild
setBuildpackBuild
Build the source using Buildpacks.
$this
getDockerBuild
Build the source using Docker. This means the source has a Dockerfile.
hasDockerBuild
setDockerBuild
Build the source using Docker. This means the source has a Dockerfile.
$this
getServiceAccount
Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
string
setServiceAccount
Optional. The service account to use for the build. If not set, the default Cloud Build service account for the project will be used.
var
string
$this
getWorkerPool
Optional. 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.
string
setWorkerPool
Optional. 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.
var
string
$this
getTags
Optional. Additional tags to annotate the build.
setTags
Optional. Additional tags to annotate the build.
var
string[]
$this
getSource
string
getBuildType
string