Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::SubmitBuildRequest.
Request message for submitting a Build.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#buildpack_build
def buildpack_build() -> ::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild
-
(::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
Note: The following fields are mutually exclusive:
buildpack_build
,docker_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#buildpack_build=
def buildpack_build=(value) -> ::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild
-
value (::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
Note: The following fields are mutually exclusive:
buildpack_build
,docker_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
Note: The following fields are mutually exclusive:
buildpack_build
,docker_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#docker_build
def docker_build() -> ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild
-
(::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
Note: The following fields are mutually exclusive:
docker_build
,buildpack_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#docker_build=
def docker_build=(value) -> ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild
-
value (::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
Note: The following fields are mutually exclusive:
docker_build
,buildpack_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
Note: The following fields are mutually exclusive:
docker_build
,buildpack_build
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image_uri
def image_uri() -> ::String
- (::String) — Required. Artifact Registry URI to store the built image.
#image_uri=
def image_uri=(value) -> ::String
- value (::String) — Required. Artifact Registry URI to store the built image.
- (::String) — Required. Artifact Registry URI to store the built image.
#parent
def parent() -> ::String
-
(::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}
#parent=
def parent=(value) -> ::String
-
value (::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}
-
(::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}
#service_account
def service_account() -> ::String
- (::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.
#service_account=
def service_account=(value) -> ::String
- value (::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.
- (::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.
#storage_source
def storage_source() -> ::Google::Cloud::Run::V2::StorageSource
- (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
#storage_source=
def storage_source=(value) -> ::Google::Cloud::Run::V2::StorageSource
- value (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
- (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
#tags
def tags() -> ::Array<::String>
- (::Array<::String>) — Optional. Additional tags to annotate the build.
#tags=
def tags=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional. Additional tags to annotate the build.
- (::Array<::String>) — Optional. Additional tags to annotate the build.
#worker_pool
def worker_pool() -> ::String
-
(::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.
#worker_pool=
def worker_pool=(value) -> ::String
-
value (::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.
-
(::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.