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
Returns
- (::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
#buildpack_build=
def buildpack_build=(value) -> ::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild
Parameter
- value (::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
Returns
- (::Google::Cloud::Run::V2::SubmitBuildRequest::BuildpacksBuild) — Build the source using Buildpacks.
#docker_build
def docker_build() -> ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild
Returns
- (::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
#docker_build=
def docker_build=(value) -> ::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild
Parameter
- value (::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
Returns
- (::Google::Cloud::Run::V2::SubmitBuildRequest::DockerBuild) — Build the source using Docker. This means the source has a Dockerfile.
#image_uri
def image_uri() -> ::String
Returns
- (::String) — Required. Artifact Registry URI to store the built image.
#image_uri=
def image_uri=(value) -> ::String
Parameter
- value (::String) — Required. Artifact Registry URI to store the built image.
Returns
- (::String) — Required. Artifact Registry URI to store the built image.
#parent
def parent() -> ::String
Returns
-
(::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
Parameter
-
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}
Returns
-
(::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
Returns
- (::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
Parameter
- 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.
Returns
- (::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
Returns
- (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
#storage_source=
def storage_source=(value) -> ::Google::Cloud::Run::V2::StorageSource
Parameter
- value (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
Returns
- (::Google::Cloud::Run::V2::StorageSource) — Required. Source for the build.
#tags
def tags() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Additional tags to annotate the build.
#tags=
def tags=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Additional tags to annotate the build.
Returns
- (::Array<::String>) — Optional. Additional tags to annotate the build.
#worker_pool
def worker_pool() -> ::String
Returns
-
(::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
Parameter
-
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.
Returns
-
(::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.