Service Client: Google::Devtools::Cloudbuild::V1::Cloudbuild::CloudBuildClient

Client stub representing the remote CloudBuild gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to devtools.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Devtools::Cloudbuild::V1::Cloudbuild - Compiled Protocol Buffers messages for google/devtools/cloudbuild/v1/cloudbuild.proto

SYNOPSIS

use Google::Devtools::Cloudbuild::V1::Cloudbuild;

my $msg = Google::Devtools::Cloudbuild::V1::Cloudbuild::GetDefaultServiceAccountRequest->new({
    name => $name,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Cloudbuild::V1::Cloudbuild::GetDefaultServiceAccountRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/cloudbuild/v1/cloudbuild.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Cloudbuild::V1::Cloudbuild::GetDefaultServiceAccountRequest

Returns the default service account that will be used for `Builds`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `DefaultServiceAccount` to retrieve. Format: `projects/{project}/locations/{location}/defaultServiceAccount`

Google::Devtools::Cloudbuild::V1::Cloudbuild::DefaultServiceAccount

The default service account used for `Builds`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. Format: `projects/{project}/locations/{location}/defaultServiceAccount`

  • $msg->service_account_email() / $msg->service_account_email($value)

    Type: String

    Output only. The email address of the service account identity that will be used for a build by default.

    This is returned in the format `projects/{project}/serviceAccounts/{service_account}` where `{service_account}` could be the legacy Cloud Build SA, in the format [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.

    If no service account will be used by default, this will be empty.

Google::Devtools::Cloudbuild::V1::Cloudbuild::RetryBuildRequest

Specifies a build to retry.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Build` to retry. Format: `projects/{project}/locations/{location}/builds/{build}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->id() / $msg->id($value)

    Type: String

    Required. Build ID of the original build.

Google::Devtools::Cloudbuild::V1::Cloudbuild::RunBuildTriggerRequest

Specifies a build trigger to run and the source to use.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Trigger` to run. Format: `projects/{project}/locations/{location}/triggers/{trigger}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->trigger_id() / $msg->trigger_id($value)

    Type: String

    Required. ID of the trigger.

  • $msg->source() / $msg->source($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::RepoSource)

    Source to build against this trigger. Branch and tag names cannot consist of regular expressions.

Google::Devtools::Cloudbuild::V1::Cloudbuild::StorageSource

Location of the source in an archive file in Cloud Storage.

Inherits from Protobuf::Message.

Accessors

  • $msg->bucket() / $msg->bucket($value)

    Type: String

    Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

  • $msg->object() / $msg->object($value)

    Type: String

    Required. Cloud Storage object containing the source.

    This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) containing source to build.

  • $msg->generation() / $msg->generation($value)

    Type: Int64

    Optional. Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

  • $msg->source_fetcher() / $msg->source_fetcher($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::StorageSource::SourceFetcher)

    Optional. Option to specify the tool to fetch the source file for the build.

Enum: StorageSource::SourceFetcher

  • SOURCE_FETCHER_UNSPECIFIED => 0

  • GSUTIL => 1

  • GCS_FETCHER => 2

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitSource

Location of the source in any accessible Git repository.

Inherits from Protobuf::Message.

Accessors

  • $msg->url() / $msg->url($value)

    Type: String

    Required. Location of the Git repo to build.

    This will be used as a `git remote`, see https://git-scm.com/docs/git-remote.

  • $msg->dir() / $msg->dir($value)

    Type: String

    Optional. Directory, relative to the source root, in which to run the build.

    This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution.

  • $msg->revision() / $msg->revision($value)

    Type: String

    Optional. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.

    Cloud Build uses `git fetch` to fetch the revision from the Git repository; therefore make sure that the string you provide for `revision` is parsable by the command. For information on string values accepted by `git fetch`, see https://git-scm.com/docs/gitrevisions#_specifying_revisions. For information on `git fetch`, see https://git-scm.com/docs/git-fetch.

Google::Devtools::Cloudbuild::V1::Cloudbuild::RepoSource

Location of the source in a Google Cloud Source Repository.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Optional. ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.

  • $msg->repo_name() / $msg->repo_name($value)

    Type: String

    Required. Name of the Cloud Source Repository.

  • $msg->branch_name() / $msg->branch_name($value)

    Type: String

    Regex matching branches to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->tag_name() / $msg->tag_name($value)

    Type: String

    Regex matching tags to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->commit_sha() / $msg->commit_sha($value)

    Type: String

    Explicit commit SHA to build.

  • $msg->dir() / $msg->dir($value)

    Type: String

    Optional. Directory, relative to the source root, in which to run the build.

    This must be a relative path. If a step's `dir` is specified and is an absolute path, this value is ignored for that step's execution.

  • $msg->invert_regex() / $msg->invert_regex($value)

    Type: Bool

    Optional. Only trigger a build if the revision regex does NOT match the revision regex.

  • $msg->substitutions() / $msg->substitutions($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::RepoSource::SubstitutionsEntry)

    Optional. Substitutions to use in a triggered build. Should only be used with RunBuildTrigger

Google::Devtools::Cloudbuild::V1::Cloudbuild::StorageSourceManifest

Location of the source manifest in Cloud Storage. This feature is in Preview; see description [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).

Inherits from Protobuf::Message.

Accessors

  • $msg->bucket() / $msg->bucket($value)

    Type: String

    Required. Cloud Storage bucket containing the source manifest (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).

  • $msg->object() / $msg->object($value)

    Type: String

    Required. Cloud Storage object containing the source manifest.

    This object must be a JSON file.

  • $msg->generation() / $msg->generation($value)

    Type: Int64

    Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ConnectedRepository

Location of the source in a 2nd-gen Google Cloud Build repository resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->repository() / $msg->repository($value)

    Type: String

    Required. Name of the Google Cloud Build repository, formatted as `projects/*/locations/*/connections/*/repositories/*`.

  • $msg->dir() / $msg->dir($value)

    Type: String

    Optional. Directory, relative to the source root, in which to run the build.

  • $msg->revision() / $msg->revision($value)

    Type: String

    Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.

Google::Devtools::Cloudbuild::V1::Cloudbuild::Source

Location of the source in a supported storage service.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuiltImage

An image built by the pipeline.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Name used to push the container image to Google Container Registry, as presented to `docker push`.

  • $msg->digest() / $msg->digest($value)

    Type: String

    Docker Registry 2.0 digest.

  • $msg->push_timing() / $msg->push_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pushing the specified image.

  • $msg->artifact_registry_package() / $msg->artifact_registry_package($value)

    Type: String

    Output only. Path to the artifact in Artifact Registry.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedPythonPackage

Artifact uploaded using the PythonPackage directive.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI of the uploaded artifact.

  • $msg->file_hashes() / $msg->file_hashes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes)

    Hash types and values of the Python Artifact.

  • $msg->push_timing() / $msg->push_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pushing the specified artifact.

  • $msg->artifact_registry_package() / $msg->artifact_registry_package($value)

    Type: String

    Output only. Path to the artifact in Artifact Registry.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedMavenArtifact

A Maven artifact uploaded using the MavenArtifact directive.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI of the uploaded artifact.

  • $msg->file_hashes() / $msg->file_hashes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes)

    Hash types and values of the Maven Artifact.

  • $msg->push_timing() / $msg->push_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pushing the specified artifact.

  • $msg->artifact_registry_package() / $msg->artifact_registry_package($value)

    Type: String

    Output only. Path to the artifact in Artifact Registry.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedGoModule

A Go module artifact uploaded to Artifact Registry using the GoModule directive.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI of the uploaded artifact.

  • $msg->file_hashes() / $msg->file_hashes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes)

    Hash types and values of the Go Module Artifact.

  • $msg->push_timing() / $msg->push_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pushing the specified artifact.

  • $msg->artifact_registry_package() / $msg->artifact_registry_package($value)

    Type: String

    Output only. Path to the artifact in Artifact Registry.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedNpmPackage

An npm package uploaded to Artifact Registry using the NpmPackage directive.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI of the uploaded npm package.

  • $msg->file_hashes() / $msg->file_hashes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes)

    Hash types and values of the npm package.

  • $msg->push_timing() / $msg->push_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pushing the specified artifact.

  • $msg->artifact_registry_package() / $msg->artifact_registry_package($value)

    Type: String

    Output only. Path to the artifact in Artifact Registry.

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildStep

A step in the build pipeline.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the container image that will run this particular build step.

    If the image is available in the host's Docker daemon's cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account's credentials if necessary.

    The Docker daemon's cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like "ubuntu", "debian", but they will be refreshed at the time you attempt to use them.

    If you built an image in a previous build step, it will be stored in the host's Docker daemon's cache and is available to use as the name for a later build step.

  • $msg->env() / $msg->env($value)

    Type: String

    A list of environment variable definitions to be used when running a step.

    The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".

  • $msg->args() / $msg->args($value)

    Type: String

    A list of arguments that will be presented to the step when it is started.

    If the image used to run the step's container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.

  • $msg->dir() / $msg->dir($value)

    Type: String

    Working directory to use when running this step's container.

    If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified.

    If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.

  • $msg->id() / $msg->id($value)

    Type: String

    Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.

  • $msg->wait_for() / $msg->wait_for($value)

    Type: String

    The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.

  • $msg->entrypoint() / $msg->entrypoint($value)

    Type: String

    Entrypoint to be used instead of the build step image's default entrypoint. If unset, the image's default entrypoint is used.

  • $msg->secret_env() / $msg->secret_env($value)

    Type: String

    A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`.

  • $msg->volumes() / $msg->volumes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Volume)

    List of volumes to mount into the build step.

    Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded.

    Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.

  • $msg->timing() / $msg->timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for executing this build step.

  • $msg->pull_timing() / $msg->pull_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Output only. Stores timing information for pulling this build step's builder image only.

  • $msg->timeout() / $msg->timeout($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.

  • $msg->status() / $msg->status($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::Build::Status)

    Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.

  • $msg->allow_failure() / $msg->allow_failure($value)

    Type: Bool

    Allow this build step to fail without failing the entire build.

    If false, the entire build will fail if this step fails. Otherwise, the build will succeed, but this step will still have a failure status. Error information will be reported in the failure_detail field.

  • $msg->exit_code() / $msg->exit_code($value)

    Type: Int32

    Output only. Return code from running the step.

  • $msg->allow_exit_codes() / $msg->allow_exit_codes($value)

    Type: Int32

    Allow this build step to fail without failing the entire build if and only if the exit code is one of the specified codes. If allow_failure is also specified, this field will take precedence.

  • $msg->script() / $msg->script($value)

    Type: String

    A shell script to be executed in the step.

    When script is provided, the user cannot specify the entrypoint or args.

  • $msg->automap_substitutions() / $msg->automap_substitutions($value)

    Type: Bool

    Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.

Google::Devtools::Cloudbuild::V1::Cloudbuild::Volume

Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Name of the volume to mount.

    Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.

  • $msg->path() / $msg->path($value)

    Type: String

    Path at which to mount the volume.

    Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.

Google::Devtools::Cloudbuild::V1::Cloudbuild::Results

Artifacts created by the build pipeline.

Inherits from Protobuf::Message.

Accessors

  • $msg->images() / $msg->images($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuiltImage)

    Container images that were built as a part of the build.

  • $msg->build_step_images() / $msg->build_step_images($value)

    Type: String

    List of build step digests, in the order corresponding to build step indices.

  • $msg->artifact_manifest() / $msg->artifact_manifest($value)

    Type: String

    Path to the artifact manifest for non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

  • $msg->num_artifacts() / $msg->num_artifacts($value)

    Type: Int64

    Number of non-container artifacts uploaded to Cloud Storage. Only populated when artifacts are uploaded to Cloud Storage.

  • $msg->build_step_outputs() / $msg->build_step_outputs($value)

    Type: Bytes

    List of build step outputs, produced by builder images, in the order corresponding to build step indices.

    [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted.

  • $msg->artifact_timing() / $msg->artifact_timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan)

    Time to push all non-container artifacts to Cloud Storage.

  • $msg->python_packages() / $msg->python_packages($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedPythonPackage)

    Python artifacts uploaded to Artifact Registry at the end of the build.

  • $msg->maven_artifacts() / $msg->maven_artifacts($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedMavenArtifact)

    Maven artifacts uploaded to Artifact Registry at the end of the build.

  • $msg->go_modules() / $msg->go_modules($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedGoModule)

    Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.

  • $msg->npm_packages() / $msg->npm_packages($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::UploadedNpmPackage)

    Npm packages uploaded to Artifact Registry at the end of the build.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ArtifactResult

An artifact that was uploaded during a build. This is a single record in the artifact manifest JSON file.

Inherits from Protobuf::Message.

Accessors

  • $msg->location() / $msg->location($value)

    Type: String

    The path of an artifact in a Cloud Storage bucket, with the generation number. For example, `gs://mybucket/path/to/output.jar#generation`.

  • $msg->file_hash() / $msg->file_hash($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes)

    The file hash of the artifact.

Google::Devtools::Cloudbuild::V1::Cloudbuild::Build

A build resource in the Cloud Build API.

At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts.

Fields can include the following variables, which will be expanded when the build is created:

- $PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The 'Build' name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.

  • $msg->id() / $msg->id($value)

    Type: String

    Output only. Unique identifier of the build.

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Output only. ID of the project.

  • $msg->status() / $msg->status($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::Build::Status)

    Output only. Status of the build.

  • $msg->status_detail() / $msg->status_detail($value)

    Type: String

    Output only. Customer-readable message about the current status.

  • $msg->source() / $msg->source($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Source)

    Optional. The location of the source files to build.

  • $msg->steps() / $msg->steps($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildStep)

    Required. The operations to be performed on the workspace.

  • $msg->results() / $msg->results($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Results)

    Output only. Results of the build.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which the request to create the build was received.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which execution of the build was started.

  • $msg->finish_time() / $msg->finish_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which execution of the build was finished.

    The difference between finish_time and start_time is the duration of the build's execution.

  • $msg->timeout() / $msg->timeout($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`.

    `timeout` starts ticking from `startTime`.

    Default time is 60 minutes.

  • $msg->images() / $msg->images($value)

    Type: String

    A list of images to be pushed upon the successful completion of all build steps.

    The images are pushed using the builder service account's credentials.

    The digests of the pushed images will be stored in the `Build` resource's results field.

    If any of the images fail to be pushed, the build status is marked `FAILURE`.

  • $msg->queue_ttl() / $msg->queue_ttl($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`.

    The TTL starts ticking from create_time.

  • $msg->artifacts() / $msg->artifacts($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts)

    Artifacts produced by the build that should be uploaded upon successful completion of all build steps.

  • $msg->logs_bucket() / $msg->logs_bucket($value)

    Type: String

    Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.

  • $msg->source_provenance() / $msg->source_provenance($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::SourceProvenance)

    Output only. A permanent fixed identifier for source.

  • $msg->build_trigger_id() / $msg->build_trigger_id($value)

    Type: String

    Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.

  • $msg->options() / $msg->options($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildOptions)

    Special options for this build.

  • $msg->log_url() / $msg->log_url($value)

    Type: String

    Output only. URL to logs for this build in Google Cloud Console.

  • $msg->substitutions() / $msg->substitutions($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build::SubstitutionsEntry)

    Substitutions data for `Build` resource.

  • $msg->tags() / $msg->tags($value)

    Type: String

    Tags for annotation of a `Build`. These are not docker tags.

  • $msg->secrets() / $msg->secrets($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Secret)

    Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is the recommended technique for managing sensitive data with Cloud Build. Use `available_secrets` to configure builds to access secrets from Secret Manager. For instructions, see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets

  • $msg->timing() / $msg->timing($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build::TimingEntry)

    Output only. Stores timing information for phases of the build. Valid keys are:

    * BUILD: time to execute all build steps. * PUSH: time to push all artifacts including docker images and non docker artifacts. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up build.

    If the build does not specify source or images, these keys will not be included.

  • $msg->approval() / $msg->approval($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildApproval)

    Output only. Describes this build's approval configuration, status, and result.

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account.

  • $msg->available_secrets() / $msg->available_secrets($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Secrets)

    Secrets and secret environment variables.

  • $msg->warnings() / $msg->warnings($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build::Warning)

    Output only. Non-fatal problems encountered during the execution of the build.

  • $msg->git_config() / $msg->git_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::GitConfig)

    Optional. Configuration for git operations.

  • $msg->failure_info() / $msg->failure_info($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build::FailureInfo)

    Output only. Contains information about the build when status=FAILURE.

  • $msg->dependencies() / $msg->dependencies($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Dependency)

    Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.

Enum: Build::Status

  • STATUS_UNKNOWN => 0

  • PENDING => 10

  • QUEUED => 1

  • WORKING => 2

  • SUCCESS => 3

  • FAILURE => 4

  • INTERNAL_ERROR => 5

  • TIMEOUT => 6

  • CANCELLED => 7

  • EXPIRED => 9

Google::Devtools::Cloudbuild::V1::Cloudbuild::Dependency

A dependency that the Cloud Build worker will fetch before executing user steps.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitConfig

GitConfig is a configuration for git operations.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts

Artifacts produced by a build that should be uploaded upon successful completion of all build steps.

Inherits from Protobuf::Message.

Accessors

  • $msg->images() / $msg->images($value)

    Type: String

    A list of images to be pushed upon the successful completion of all build steps.

    The images will be pushed using the builder service account's credentials.

    The digests of the pushed images will be stored in the Build resource's results field.

    If any of the images fail to be pushed, the build is marked FAILURE.

  • $msg->objects() / $msg->objects($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts::ArtifactObjects)

    A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.

    Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account's credentials.

    The location and generation of the uploaded objects will be stored in the Build resource's results field.

    If any objects fail to be pushed, the build is marked FAILURE.

  • $msg->maven_artifacts() / $msg->maven_artifacts($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts::MavenArtifact)

    A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps.

    Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

    If any artifacts fail to be pushed, the build is marked FAILURE.

  • $msg->go_modules() / $msg->go_modules($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts::GoModule)

    Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps.

    If any objects fail to be pushed, the build is marked FAILURE.

  • $msg->python_packages() / $msg->python_packages($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts::PythonPackage)

    A list of Python packages to be uploaded to Artifact Registry upon successful completion of all build steps.

    The build service account credentials will be used to perform the upload.

    If any objects fail to be pushed, the build is marked FAILURE.

  • $msg->npm_packages() / $msg->npm_packages($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Artifacts::NpmPackage)

    A list of npm packages to be uploaded to Artifact Registry upon successful completion of all build steps.

    Npm packages in the specified paths will be uploaded to the specified Artifact Registry repository using the builder service account's credentials.

    If any packages fail to be pushed, the build is marked FAILURE.

Google::Devtools::Cloudbuild::V1::Cloudbuild::TimeSpan

Start and end times for a build execution phase.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildOperationMetadata

Metadata for build operations.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::SourceProvenance

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::FileHashes

Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::Hash

Container message for hash values.

Inherits from Protobuf::Message.

Accessors

Enum: Hash::HashType

  • NONE => 0

  • SHA256 => 1

  • MD5 => 2

  • GO_MODULE_H1 => 3

  • SHA512 => 4

Google::Devtools::Cloudbuild::V1::Cloudbuild::Secrets

Secrets and secret environment variables.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::InlineSecret

Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.

Inherits from Protobuf::Message.

Accessors

  • $msg->kms_key_name() / $msg->kms_key_name($value)

    Type: String

    Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*

  • $msg->env_map() / $msg->env_map($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::InlineSecret::EnvMapEntry)

    Map of environment variable name to its encrypted value.

    Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

Google::Devtools::Cloudbuild::V1::Cloudbuild::SecretManagerSecret

Pairs a secret environment variable with a SecretVersion in Secret Manager.

Inherits from Protobuf::Message.

Accessors

  • $msg->version_name() / $msg->version_name($value)

    Type: String

    Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*

  • $msg->env() / $msg->env($value)

    Type: String

    Environment variable name to associate with the secret. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step.

Google::Devtools::Cloudbuild::V1::Cloudbuild::Secret

Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `available_secrets` instead of using `kmsKeyName` with `secret`. For instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.

Inherits from Protobuf::Message.

Accessors

  • $msg->kms_key_name() / $msg->kms_key_name($value)

    Type: String

    Cloud KMS key name to use to decrypt these envs.

  • $msg->secret_env() / $msg->secret_env($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Secret::SecretEnvEntry)

    Map of environment variable name to its encrypted value.

    Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

Google::Devtools::Cloudbuild::V1::Cloudbuild::CreateBuildRequest

Request to create a new build.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The parent resource where this build will be created. Format: `projects/{project}/locations/{location}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->build() / $msg->build($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build)

    Required. Build resource to create.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GetBuildRequest

Request to get a build.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Build` to retrieve. Format: `projects/{project}/locations/{location}/builds/{build}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->id() / $msg->id($value)

    Type: String

    Required. ID of the build.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListBuildsRequest

Request to list builds.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of results to return in the list.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The page token for the next page of Builds.

    If unspecified, the first page of results is returned.

    If the token is rejected for any reason, INVALID_ARGUMENT will be thrown. In this case, the token should be discarded, and pagination should be restarted from the first page of results.

    See https://google.aip.dev/158 for more.

  • $msg->filter() / $msg->filter($value)

    Type: String

    The raw filter text to constrain the results.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListBuildsResponse

Response including listed builds.

Inherits from Protobuf::Message.

Accessors

  • $msg->builds() / $msg->builds($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build)

    Builds will be sorted by `create_time`, descending.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to receive the next page of results. This will be absent if the end of the response list has been reached.

Google::Devtools::Cloudbuild::V1::Cloudbuild::CancelBuildRequest

Request to cancel an ongoing build.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Build` to cancel. Format: `projects/{project}/locations/{location}/builds/{build}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project.

  • $msg->id() / $msg->id($value)

    Type: String

    Required. ID of the build.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ApproveBuildRequest

Request to approve or reject a pending build.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Name of the target build. For example: "projects/{$project_id}/builds/{$build_id}"

  • $msg->approval_result() / $msg->approval_result($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::ApprovalResult)

    Approval decision and metadata.

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildApproval

BuildApproval describes a build's approval configuration, state, and result.

Inherits from Protobuf::Message.

Accessors

Enum: BuildApproval::State

  • STATE_UNSPECIFIED => 0

  • PENDING => 1

  • APPROVED => 2

  • REJECTED => 3

  • CANCELLED => 5

Google::Devtools::Cloudbuild::V1::Cloudbuild::ApprovalConfig

ApprovalConfig describes configuration for manual approval of a build.

Inherits from Protobuf::Message.

Accessors

  • $msg->approval_required() / $msg->approval_required($value)

    Type: Bool

    Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ApprovalResult

ApprovalResult describes the decision and associated metadata of a manual approval of a build.

Inherits from Protobuf::Message.

Accessors

  • $msg->approver_account() / $msg->approver_account($value)

    Type: String

    Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.

  • $msg->approval_time() / $msg->approval_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the approval decision was made.

  • $msg->decision() / $msg->decision($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::ApprovalResult::Decision)

    Required. The decision of this manual approval.

  • $msg->comment() / $msg->comment($value)

    Type: String

    Optional. An optional comment for this manual approval result.

  • $msg->url() / $msg->url($value)

    Type: String

    Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.

Enum: ApprovalResult::Decision

  • DECISION_UNSPECIFIED => 0

  • APPROVED => 1

  • REJECTED => 2

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitRepoSource

GitRepoSource describes a repo and ref of a code repository.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    The URI of the repo (e.g. https://github.com/user/repo.git). Either `uri` or `repository` can be specified and is required.

  • $msg->repository() / $msg->repository($value)

    Type: String

    The connected repository resource name, in the format `projects/*/locations/*/connections/*/repositories/*`. Either `uri` or `repository` can be specified and is required.

  • $msg->ref() / $msg->ref($value)

    Type: String

    The branch or tag to use. Must start with "refs/" (required).

  • $msg->repo_type() / $msg->repo_type($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::GitFileSource::RepoType)

    See RepoType below.

  • $msg->github_enterprise_config() / $msg->github_enterprise_config($value)

    Type: String

    The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitFileSource

GitFileSource describes a file within a (possibly remote) code repository.

Inherits from Protobuf::Message.

Accessors

  • $msg->path() / $msg->path($value)

    Type: String

    The path of the file, with the repo root as the root of the path.

  • $msg->uri() / $msg->uri($value)

    Type: String

    The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

  • $msg->repository() / $msg->repository($value)

    Type: String

    The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

  • $msg->repo_type() / $msg->repo_type($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::GitFileSource::RepoType)

    See RepoType above.

  • $msg->revision() / $msg->revision($value)

    Type: String

    The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.

  • $msg->github_enterprise_config() / $msg->github_enterprise_config($value)

    Type: String

    The full resource name of the github enterprise config. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. `projects/{project}/githubEnterpriseConfigs/{id}`.

Enum: GitFileSource::RepoType

  • UNKNOWN => 0

  • CLOUD_SOURCE_REPOSITORIES => 1

  • GITHUB => 2

  • BITBUCKET_SERVER => 3

  • GITLAB => 4

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildTrigger

Configuration for an automated build in response to source repository changes.

Inherits from Protobuf::Message.

Accessors

  • $msg->resource_name() / $msg->resource_name($value)

    Type: String

    The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.

  • $msg->id() / $msg->id($value)

    Type: String

    Output only. Unique identifier of the trigger.

  • $msg->description() / $msg->description($value)

    Type: String

    Human-readable description of this trigger.

  • $msg->name() / $msg->name($value)

    Type: String

    User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements:

    + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.

  • $msg->tags() / $msg->tags($value)

    Type: String

    Tags for annotation of a `BuildTrigger`

  • $msg->trigger_template() / $msg->trigger_template($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::RepoSource)

    Template describing the types of source changes to trigger a build.

    Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build.

    Mutually exclusive with `github`.

  • $msg->github() / $msg->github($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::GitHubEventsConfig)

    GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.

    Mutually exclusive with `trigger_template`.

  • $msg->pubsub_config() / $msg->pubsub_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::PubsubConfig)

    PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

  • $msg->webhook_config() / $msg->webhook_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::WebhookConfig)

    WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.

  • $msg->autodetect() / $msg->autodetect($value)

    Type: Bool

    Autodetect build configuration. The following precedence is used (case insensitive):

    1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile

    Currently only available for GitHub App Triggers.

  • $msg->build() / $msg->build($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Build)

    Contents of the build template.

  • $msg->filename() / $msg->filename($value)

    Type: String

    Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).

  • $msg->git_file_source() / $msg->git_file_source($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::GitFileSource)

    The file source describing the local or remote Build template.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the trigger was created.

  • $msg->disabled() / $msg->disabled($value)

    Type: Bool

    If true, the trigger will never automatically execute a build.

  • $msg->substitutions() / $msg->substitutions($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildTrigger::SubstitutionsEntry)

    Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.

  • $msg->ignored_files() / $msg->ignored_files($value)

    Type: String

    ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**".

    If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build.

    If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.

  • $msg->included_files() / $msg->included_files($value)

    Type: String

    If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build.

    If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. A Common Expression Language string.

  • $msg->source_to_build() / $msg->source_to_build($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::GitRepoSource)

    The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.

  • $msg->approval_config() / $msg->approval_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::ApprovalConfig)

    Configuration for manual approval to start a build invocation of this BuildTrigger.

  • $msg->service_account() / $msg->service_account($value)

    Type: String

    The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set and the legacy Cloud Build service account (`[PROJECT_NUM]@cloudbuild.gserviceaccount.com`) is the default for the project then it will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`

  • $msg->repository_event_config() / $msg->repository_event_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::RepositoryEventConfig)

    The configuration of a trigger that creates a build whenever an event from Repo API is received.

Google::Devtools::Cloudbuild::V1::Cloudbuild::RepositoryEventConfig

The configuration of a trigger that creates a build whenever an event from Repo API is received.

Inherits from Protobuf::Message.

Accessors

Enum: RepositoryEventConfig::RepositoryType

  • REPOSITORY_TYPE_UNSPECIFIED => 0

  • GITHUB => 1

  • GITHUB_ENTERPRISE => 2

  • GITLAB_ENTERPRISE => 3

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitHubEventsConfig

GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received.

Inherits from Protobuf::Message.

Accessors

  • $msg->installation_id() / $msg->installation_id($value)

    Type: Int64

    The installationID that emits the GitHub event.

  • $msg->owner() / $msg->owner($value)

    Type: String

    Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".

  • $msg->name() / $msg->name($value)

    Type: String

    Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".

  • $msg->pull_request() / $msg->pull_request($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::PullRequestFilter)

    filter to match changes in pull requests.

  • $msg->push() / $msg->push($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::PushFilter)

    filter to match changes in refs like branches, tags.

Google::Devtools::Cloudbuild::V1::Cloudbuild::PubsubConfig

PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Inherits from Protobuf::Message.

Accessors

  • $msg->subscription() / $msg->subscription($value)

    Type: String

    Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.

  • $msg->topic() / $msg->topic($value)

    Type: String

    Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.

  • $msg->service_account_email() / $msg->service_account_email($value)

    Type: String

    Service account that will make the push request.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::PubsubConfig::State)

    Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

Enum: PubsubConfig::State

  • STATE_UNSPECIFIED => 0

  • OK => 1

  • SUBSCRIPTION_DELETED => 2

  • TOPIC_DELETED => 3

  • SUBSCRIPTION_MISCONFIGURED => 4

Google::Devtools::Cloudbuild::V1::Cloudbuild::WebhookConfig

WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.

Inherits from Protobuf::Message.

Accessors

  • $msg->secret() / $msg->secret($value)

    Type: String

    Required. Resource name for the secret required as a URL parameter.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::WebhookConfig::State)

    Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

Enum: WebhookConfig::State

  • STATE_UNSPECIFIED => 0

  • OK => 1

  • SECRET_DELETED => 2

Google::Devtools::Cloudbuild::V1::Cloudbuild::PullRequestFilter

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

Inherits from Protobuf::Message.

Accessors

  • $msg->branch() / $msg->branch($value)

    Type: String

    Regex of branches to match.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->comment_control() / $msg->comment_control($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::PullRequestFilter::CommentControl)

    If CommentControl is enabled, depending on the setting, builds may not fire until a repository writer comments `/gcbrun` on a pull request or `/gcbrun` is in the pull request description. Only PR comments that contain `/gcbrun` will trigger builds.

    If CommentControl is set to disabled, comments with `/gcbrun` from a user with repository write permission or above will still trigger builds to run.

  • $msg->invert_regex() / $msg->invert_regex($value)

    Type: Bool

    If true, branches that do NOT match the git_ref will trigger a build.

Enum: PullRequestFilter::CommentControl

  • COMMENTS_DISABLED => 0

  • COMMENTS_ENABLED => 1

  • COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY => 2

Google::Devtools::Cloudbuild::V1::Cloudbuild::PushFilter

Push contains filter properties for matching GitHub git pushes.

Inherits from Protobuf::Message.

Accessors

  • $msg->branch() / $msg->branch($value)

    Type: String

    Regexes matching branches to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->tag() / $msg->tag($value)

    Type: String

    Regexes matching tags to build.

    The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax

  • $msg->invert_regex() / $msg->invert_regex($value)

    Type: Bool

    When true, only trigger a build if the revision regex does NOT match the git_ref regex.

Google::Devtools::Cloudbuild::V1::Cloudbuild::CreateBuildTriggerRequest

Request to create a new `BuildTrigger`.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The parent resource where this trigger will be created. Format: `projects/{project}/locations/{location}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project for which to configure automatic builds.

  • $msg->trigger() / $msg->trigger($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildTrigger)

    Required. `BuildTrigger` to create.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GetBuildTriggerRequest

Returns the `BuildTrigger` with the specified ID.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Trigger` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project that owns the trigger.

  • $msg->trigger_id() / $msg->trigger_id($value)

    Type: String

    Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListBuildTriggersRequest

Request to list existing `BuildTriggers`.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    The parent of the collection of `Triggers`. Format: `projects/{project}/locations/{location}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project for which to list BuildTriggers.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Number of results to return in the list.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Token to provide to skip to a particular spot in the list.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListBuildTriggersResponse

Response containing existing `BuildTriggers`.

Inherits from Protobuf::Message.

Accessors

  • $msg->triggers() / $msg->triggers($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildTrigger)

    `BuildTriggers` for the project, sorted by `create_time` descending.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to receive the next page of results.

Google::Devtools::Cloudbuild::V1::Cloudbuild::DeleteBuildTriggerRequest

Request to delete a `BuildTrigger`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `Trigger` to delete. Format: `projects/{project}/locations/{location}/triggers/{trigger}`

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project that owns the trigger.

  • $msg->trigger_id() / $msg->trigger_id($value)

    Type: String

    Required. ID of the `BuildTrigger` to delete.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UpdateBuildTriggerRequest

Request to update an existing `BuildTrigger`.

Inherits from Protobuf::Message.

Accessors

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Required. ID of the project that owns the trigger.

  • $msg->trigger_id() / $msg->trigger_id($value)

    Type: String

    Required. ID of the `BuildTrigger` to update.

  • $msg->trigger() / $msg->trigger($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildTrigger)

    Required. `BuildTrigger` to update.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildOptions

Optional arguments to enable specific features of builds.

Inherits from Protobuf::Message.

Accessors

  • $msg->source_provenance_hash() / $msg->source_provenance_hash($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::Hash::HashType)

    Requested hash for SourceProvenance.

  • $msg->requested_verify_option() / $msg->requested_verify_option($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::VerifyOption)

    Requested verifiability options.

  • $msg->machine_type() / $msg->machine_type($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::MachineType)

    Compute Engine machine type on which to run the build.

  • $msg->disk_size_gb() / $msg->disk_size_gb($value)

    Type: Int64

    Requested disk size for the VM that runs the build. Note that this is *NOT* "disk free"; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 4000GB; builds that request more than the maximum are rejected with an error.

  • $msg->substitution_option() / $msg->substitution_option($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::SubstitutionOption)

    Option to specify behavior when there is an error in the substitution checks.

    NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.

  • $msg->dynamic_substitutions() / $msg->dynamic_substitutions($value)

    Type: Bool

    Option to specify whether or not to apply bash style string operations to the substitutions.

    NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.

  • $msg->automap_substitutions() / $msg->automap_substitutions($value)

    Type: Bool

    Option to include built-in and custom substitutions as env variables for all build steps.

  • $msg->log_streaming_option() / $msg->log_streaming_option($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::LogStreamingOption)

    Option to define build log streaming behavior to Cloud Storage.

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: String

    This field deprecated; please use `pool.name` instead.

  • $msg->pool() / $msg->pool($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::BuildOptions::PoolOption)

    Optional. Specification for execution on a `WorkerPool`.

    See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.

  • $msg->logging() / $msg->logging($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::LoggingMode)

    Option to specify the logging mode, which determines if and where build logs are stored.

  • $msg->env() / $msg->env($value)

    Type: String

    A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value.

    The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".

  • $msg->secret_env() / $msg->secret_env($value)

    Type: String

    A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build.

  • $msg->volumes() / $msg->volumes($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::Volume)

    Global list of volumes to mount for ALL build steps

    Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step.

    Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.

  • $msg->default_logs_bucket_behavior() / $msg->default_logs_bucket_behavior($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::BuildOptions::DefaultLogsBucketBehavior)

    Optional. Option to specify how default logs buckets are setup.

  • $msg->enable_structured_logging() / $msg->enable_structured_logging($value)

    Type: Bool

    Optional. Option to specify whether structured logging is enabled.

    If true, JSON-formatted logs are parsed as structured logs.

  • $msg->worker_release() / $msg->worker_release($value)

    Type: String

    Optional. Option to specify which release or release channel (rapid|regular|stable) to use to run this build.

  • $msg->resolved_worker_release() / $msg->resolved_worker_release($value)

    Type: String

    Output only. Worker release resolved from the release channel.

Enum: BuildOptions::VerifyOption

  • NOT_VERIFIED => 0

  • VERIFIED => 1

  • BEST_EFFORT => 3

Enum: BuildOptions::MachineType

  • UNSPECIFIED => 0

  • N1_HIGHCPU_8 => 1

  • N1_HIGHCPU_32 => 2

  • E2_HIGHCPU_8 => 5

  • E2_HIGHCPU_32 => 6

  • E2_MEDIUM => 7

  • E2_STANDARD_2 => 11

Enum: BuildOptions::SubstitutionOption

  • MUST_MATCH => 0

  • ALLOW_LOOSE => 1

Enum: BuildOptions::LogStreamingOption

  • STREAM_DEFAULT => 0

  • STREAM_ON => 1

  • STREAM_OFF => 2

Enum: BuildOptions::LoggingMode

  • LOGGING_UNSPECIFIED => 0

  • LEGACY => 1

  • GCS_ONLY => 2

  • STACKDRIVER_ONLY => 3

  • CLOUD_LOGGING_ONLY => 5

  • NONE => 4

Enum: BuildOptions::DefaultLogsBucketBehavior

  • DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED => 0

  • REGIONAL_USER_OWNED_BUCKET => 1

  • LEGACY_BUCKET => 2

Google::Devtools::Cloudbuild::V1::Cloudbuild::ReceiveTriggerWebhookRequest

ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by the ReceiveTriggerWebhook method.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/{project}/locations/{location}/triggers/{trigger}`

  • $msg->body() / $msg->body($value)

    Type: Message (Google::Api::Httpbody::HttpBody)

    HTTP request body.

  • $msg->project_id() / $msg->project_id($value)

    Type: String

    Project in which the specified trigger lives

  • $msg->trigger() / $msg->trigger($value)

    Type: String

    Name of the trigger to run the payload against

  • $msg->secret() / $msg->secret($value)

    Type: String

    Secret token used for authorization if an OAuth token isn't provided.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ReceiveTriggerWebhookResponse

ReceiveTriggerWebhookResponse [Experimental] is the response object for the ReceiveTriggerWebhook method.

Inherits from Protobuf::Message.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitHubEnterpriseConfig

GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise server.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"

  • $msg->host_url() / $msg->host_url($value)

    Type: String

    The URL of the github enterprise host the configuration is for.

  • $msg->app_id() / $msg->app_id($value)

    Type: Int64

    Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise server.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time when the installation was associated with the project.

  • $msg->webhook_key() / $msg->webhook_key($value)

    Type: String

    The key that should be attached to webhook calls to the ReceiveWebhook endpoint.

  • $msg->peered_network() / $msg->peered_network($value)

    Type: String

    Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the GitHub Enterprise server will be made over the public internet. Must be in the format `projects/{project}/global/networks/{network}`, where {project} is a project number or id and {network} is the name of a VPC network in the project.

  • $msg->secrets() / $msg->secrets($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::GitHubEnterpriseSecrets)

    Optional. Names of secrets in Secret Manager.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Optional. Name to display for this config.

  • $msg->ssl_ca() / $msg->ssl_ca($value)

    Type: String

    Optional. SSL certificate to use for requests to GitHub Enterprise.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GitHubEnterpriseSecrets

GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects/<project number>/secrets/<secret name>.

Inherits from Protobuf::Message.

Accessors

  • $msg->private_key_version_name() / $msg->private_key_version_name($value)

    Type: String

    The resource name for the private key secret version.

  • $msg->webhook_secret_version_name() / $msg->webhook_secret_version_name($value)

    Type: String

    The resource name for the webhook secret secret version in Secret Manager.

  • $msg->oauth_secret_version_name() / $msg->oauth_secret_version_name($value)

    Type: String

    The resource name for the OAuth secret secret version in Secret Manager.

  • $msg->oauth_client_id_version_name() / $msg->oauth_client_id_version_name($value)

    Type: String

    The resource name for the OAuth client ID secret version in Secret Manager.

Google::Devtools::Cloudbuild::V1::Cloudbuild::WorkerPool

Configuration for a `WorkerPool`.

Cloud Build owns and maintains a pool of workers for general use and have no access to a project's private network. By default, builds submitted to Cloud Build will use a worker from this pool.

If your build needs access to resources on a private network, create and use a `WorkerPool` to run your builds. Private `WorkerPool`s give your builds access to any single VPC network that you administer, including any on-prem resources connected to that VPC network. For an overview of private pools, see [Private pools overview](https://cloud.google.com/build/docs/private-pools/private-pools-overview).

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The resource name of the `WorkerPool`, with format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. The value of `{worker_pool}` is provided by `worker_pool_id` in `CreateWorkerPool` request and the value of `{location}` is determined by the endpoint accessed.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.

  • $msg->uid() / $msg->uid($value)

    Type: String

    Output only. A unique identifier for the `WorkerPool`.

  • $msg->annotations() / $msg->annotations($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::WorkerPool::AnnotationsEntry)

    User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which the request to create the `WorkerPool` was received.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which the request to update the `WorkerPool` was received.

  • $msg->delete_time() / $msg->delete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Time at which the request to delete the `WorkerPool` was received.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Devtools::Cloudbuild::V1::WorkerPool::State)

    Output only. `WorkerPool` state.

  • $msg->private_pool_v1_config() / $msg->private_pool_v1_config($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::PrivatePoolV1Config)

    Private Pool configuration.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

Enum: WorkerPool::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • RUNNING => 2

  • DELETING => 3

  • DELETED => 4

  • UPDATING => 5

Google::Devtools::Cloudbuild::V1::Cloudbuild::PrivatePoolV1Config

Configuration for a V1 `PrivatePool`.

Inherits from Protobuf::Message.

Accessors

Google::Devtools::Cloudbuild::V1::Cloudbuild::CreateWorkerPoolRequest

Request to create a new `WorkerPool`.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource where this worker pool will be created. Format: `projects/{project}/locations/{location}`.

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::WorkerPool)

    Required. `WorkerPool` resource to create.

  • $msg->worker_pool_id() / $msg->worker_pool_id($value)

    Type: String

    Required. Immutable. The ID to use for the `WorkerPool`, which will become the final component of the resource name.

    This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    If set, validate the request and preview the response, but do not actually post it.

Google::Devtools::Cloudbuild::V1::Cloudbuild::GetWorkerPoolRequest

Request to get a `WorkerPool` with the specified name.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `WorkerPool` to retrieve. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.

Google::Devtools::Cloudbuild::V1::Cloudbuild::DeleteWorkerPoolRequest

Request to delete a `WorkerPool`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the `WorkerPool` to delete. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

  • $msg->allow_missing() / $msg->allow_missing($value)

    Type: Bool

    If set to true, and the `WorkerPool` is not found, the request will succeed but no action will be taken on the server.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    If set, validate the request and preview the response, but do not actually post it.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UpdateWorkerPoolRequest

Request to update a `WorkerPool`.

Inherits from Protobuf::Message.

Accessors

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::WorkerPool)

    Required. The `WorkerPool` to update.

    The `name` field is used to identify the `WorkerPool` to update. Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. A mask specifying which fields in `worker_pool` to update.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    If set, validate the request and preview the response, but do not actually post it.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListWorkerPoolsRequest

Request to list `WorkerPool`s.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent of the collection of `WorkerPools`. Format: `projects/{project}/locations/{location}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of `WorkerPool`s to return. The service may return fewer than this value. If omitted, the server will use a sensible default.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A page token, received from a previous `ListWorkerPools` call. Provide this to retrieve the subsequent page.

Google::Devtools::Cloudbuild::V1::Cloudbuild::ListWorkerPoolsResponse

Response containing existing `WorkerPools`.

Inherits from Protobuf::Message.

Accessors

  • $msg->worker_pools() / $msg->worker_pools($value)

    Type: Message (Google::Devtools::Cloudbuild::V1::Cloudbuild::WorkerPool)

    `WorkerPools` for the specified project.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

Google::Devtools::Cloudbuild::V1::Cloudbuild::CreateWorkerPoolOperationMetadata

Metadata for the `CreateWorkerPool` operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: String

    The resource name of the `WorkerPool` to create. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was created.

  • $msg->complete_time() / $msg->complete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was completed.

Google::Devtools::Cloudbuild::V1::Cloudbuild::UpdateWorkerPoolOperationMetadata

Metadata for the `UpdateWorkerPool` operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: String

    The resource name of the `WorkerPool` being updated. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was created.

  • $msg->complete_time() / $msg->complete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was completed.

Google::Devtools::Cloudbuild::V1::Cloudbuild::DeleteWorkerPoolOperationMetadata

Metadata for the `DeleteWorkerPool` operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->worker_pool() / $msg->worker_pool($value)

    Type: String

    The resource name of the `WorkerPool` being deleted. Format: `projects/{project}/locations/{location}/workerPools/{worker_pool}`.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was created.

  • $msg->complete_time() / $msg->complete_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time the operation was completed.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Cloudbuild::V1::Cloudbuild::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.