As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Types for Google Cloud Devtools Cloudbuild v1 API

class google.cloud.devtools.cloudbuild_v1.types.ApprovalConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

ApprovalConfig describes configuration for manual approval of a build.

approval_required

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.

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.ApprovalResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

approver_account

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.

Type

str

approval_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

decision

Required. The decision of this manual approval.

Type

google.cloud.devtools.cloudbuild_v1.types.ApprovalResult.Decision

comment

Optional. An optional comment for this manual approval result.

Type

str

url

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.

Type

str

class Decision(value)[source]

Bases: proto.enums.Enum

Specifies whether or not this manual approval result is to approve or reject a build.

Values:
DECISION_UNSPECIFIED (0):

Default enum type. This should not be used.

APPROVED (1):

Build is approved.

REJECTED (2):

Build is rejected.

class google.cloud.devtools.cloudbuild_v1.types.ApproveBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to approve or reject a pending build.

name

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

Type

str

approval_result

Approval decision and metadata.

Type

google.cloud.devtools.cloudbuild_v1.types.ApprovalResult

class google.cloud.devtools.cloudbuild_v1.types.ArtifactResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

location

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

Type

str

file_hash

The file hash of the artifact.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.FileHashes]

class google.cloud.devtools.cloudbuild_v1.types.Artifacts(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

images

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.

Type

MutableSequence[str]

objects

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.

Type

google.cloud.devtools.cloudbuild_v1.types.Artifacts.ArtifactObjects

maven_artifacts

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.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Artifacts.MavenArtifact]

python_packages

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.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Artifacts.PythonPackage]

npm_packages

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.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Artifacts.NpmPackage]

class ArtifactObjects(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Files in the workspace to upload to Cloud Storage upon successful completion of all build steps.

location

Cloud Storage bucket and optional object path, in the form “gs://bucket/path/to/somewhere/”. (see Bucket Name Requirements).

Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.

Type

str

paths

Path globs used to match files in the build’s workspace.

Type

MutableSequence[str]

timing

Output only. Stores timing information for pushing all artifact objects.

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

class MavenArtifact(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A Maven artifact to upload to Artifact Registry upon successful completion of all build steps.

repository

Artifact Registry repository, in the form “https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY

Artifact in the workspace specified by path will be uploaded to Artifact Registry with this location as a prefix.

Type

str

path

Path to an artifact in the build’s workspace to be uploaded to Artifact Registry. This can be either an absolute path, e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.

Type

str

artifact_id

Maven artifactId value used when uploading the artifact to Artifact Registry.

Type

str

group_id

Maven groupId value used when uploading the artifact to Artifact Registry.

Type

str

version

Maven version value used when uploading the artifact to Artifact Registry.

Type

str

class NpmPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Npm package to upload to Artifact Registry upon successful completion of all build steps.

repository

Artifact Registry repository, in the form “https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY

Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.

Type

str

package_path

Path to the package.json. e.g. workspace/path/to/package

Type

str

class PythonPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Python package to upload to Artifact Registry upon successful completion of all build steps. A package can encapsulate multiple objects to be uploaded to a single repository.

repository

Artifact Registry repository, in the form “https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY

Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.

Type

str

paths

Path globs used to match files in the build’s workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.

Type

MutableSequence[str]

class google.cloud.devtools.cloudbuild_v1.types.Build(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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.

name

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

Type

str

id

Output only. Unique identifier of the build.

Type

str

project_id

Output only. ID of the project.

Type

str

status

Output only. Status of the build.

Type

google.cloud.devtools.cloudbuild_v1.types.Build.Status

status_detail

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

Type

str

source

The location of the source files to build.

Type

google.cloud.devtools.cloudbuild_v1.types.Source

steps

Required. The operations to be performed on the workspace.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.BuildStep]

results

Output only. Results of the build.

Type

google.cloud.devtools.cloudbuild_v1.types.Results

create_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

start_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

finish_time

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.

Type

google.protobuf.timestamp_pb2.Timestamp

timeout

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.

Type

google.protobuf.duration_pb2.Duration

images

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.

Type

MutableSequence[str]

queue_ttl

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.

Type

google.protobuf.duration_pb2.Duration

artifacts

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

Type

google.cloud.devtools.cloudbuild_v1.types.Artifacts

logs_bucket

Cloud Storage bucket where logs should be written (see Bucket Name Requirements). Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt.

Type

str

source_provenance

Output only. A permanent fixed identifier for source.

Type

google.cloud.devtools.cloudbuild_v1.types.SourceProvenance

build_trigger_id

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

Type

str

options

Special options for this build.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions

log_url

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

Type

str

substitutions

Substitutions data for Build resource.

Type

MutableMapping[str, str]

tags

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

Type

MutableSequence[str]

secrets

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Secret]

timing

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.

Type

MutableMapping[str, google.cloud.devtools.cloudbuild_v1.types.TimeSpan]

approval

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

Type

google.cloud.devtools.cloudbuild_v1.types.BuildApproval

service_account

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.

Type

str

available_secrets

Secrets and secret environment variables.

Type

google.cloud.devtools.cloudbuild_v1.types.Secrets

warnings

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Build.Warning]

failure_info

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

Type

google.cloud.devtools.cloudbuild_v1.types.Build.FailureInfo

class FailureInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A fatal problem encountered during the execution of the build.

type_

The name of the failure.

Type

google.cloud.devtools.cloudbuild_v1.types.Build.FailureInfo.FailureType

detail

Explains the failure issue in more detail using hard-coded text.

Type

str

class FailureType(value)[source]

Bases: proto.enums.Enum

The name of a fatal problem encountered during the execution of the build.

Values:
FAILURE_TYPE_UNSPECIFIED (0):

Type unspecified

PUSH_FAILED (1):

Unable to push the image to the repository.

PUSH_IMAGE_NOT_FOUND (2):

Final image not found.

PUSH_NOT_AUTHORIZED (3):

Unauthorized push of the final image.

LOGGING_FAILURE (4):

Backend logging failures. Should retry.

USER_BUILD_STEP (5):

A build step has failed.

FETCH_SOURCE_FAILED (6):

The source fetching has failed.

class Status(value)[source]

Bases: proto.enums.Enum

Possible status of a build or build step.

Values:
STATUS_UNKNOWN (0):

Status of the build is unknown.

PENDING (10):

Build has been created and is pending execution and queuing. It has not been queued.

QUEUED (1):

Build or step is queued; work has not yet begun.

WORKING (2):

Build or step is being executed.

SUCCESS (3):

Build or step finished successfully.

FAILURE (4):

Build or step failed to complete successfully.

INTERNAL_ERROR (5):

Build or step failed due to an internal cause.

TIMEOUT (6):

Build or step took longer than was allowed.

CANCELLED (7):

Build or step was canceled by a user.

EXPIRED (9):

Build was enqueued for longer than the value of queue_ttl.

class SubstitutionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class TimingEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class Warning(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A non-fatal problem encountered during the execution of the build.

text

Explanation of the warning generated.

Type

str

priority

The priority for this warning.

Type

google.cloud.devtools.cloudbuild_v1.types.Build.Warning.Priority

class Priority(value)[source]

Bases: proto.enums.Enum

The relative importance of this warning.

Values:
PRIORITY_UNSPECIFIED (0):

Should not be used.

INFO (1):

e.g. deprecation warnings and alternative feature highlights.

WARNING (2):

e.g. automated detection of possible issues with the build.

ALERT (3):

e.g. alerts that a feature used in the build is pending removal

class google.cloud.devtools.cloudbuild_v1.types.BuildApproval(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

state

Output only. The state of this build’s approval.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildApproval.State

config

Output only. Configuration for manual approval of this build.

Type

google.cloud.devtools.cloudbuild_v1.types.ApprovalConfig

result

Output only. Result of manual approval for this Build.

Type

google.cloud.devtools.cloudbuild_v1.types.ApprovalResult

class State(value)[source]

Bases: proto.enums.Enum

Specifies the current state of a build’s approval.

Values:
STATE_UNSPECIFIED (0):

Default enum type. This should not be used.

PENDING (1):

Build approval is pending.

APPROVED (2):

Build approval has been approved.

REJECTED (3):

Build approval has been rejected.

CANCELLED (5):

Build was cancelled while it was still pending approval.

class google.cloud.devtools.cloudbuild_v1.types.BuildOperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Metadata for build operations.

build

The build that the operation is tracking.

Type

google.cloud.devtools.cloudbuild_v1.types.Build

class google.cloud.devtools.cloudbuild_v1.types.BuildOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Optional arguments to enable specific features of builds.

source_provenance_hash

Requested hash for SourceProvenance.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Hash.HashType]

requested_verify_option

Requested verifiability options.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.VerifyOption

machine_type

Compute Engine machine type on which to run the build.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.MachineType

disk_size_gb

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 2000GB; builds that request more than the maximum are rejected with an error.

Type

int

substitution_option

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.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.SubstitutionOption

dynamic_substitutions

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.

Type

bool

automap_substitutions

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

Type

bool

log_streaming_option

Option to define build log streaming behavior to Cloud Storage.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.LogStreamingOption

worker_pool

This field deprecated; please use pool.name instead.

Type

str

pool

Optional. Specification for execution on a WorkerPool.

See running builds in a private pool for more information.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.PoolOption

logging

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

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.LoggingMode

env

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”.

Type

MutableSequence[str]

secret_env

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.

Type

MutableSequence[str]

volumes

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.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Volume]

default_logs_bucket_behavior

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

Type

google.cloud.devtools.cloudbuild_v1.types.BuildOptions.DefaultLogsBucketBehavior

class DefaultLogsBucketBehavior(value)[source]

Bases: proto.enums.Enum

Default Cloud Storage log bucket behavior options.

Values:
DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED (0):

Unspecified.

REGIONAL_USER_OWNED_BUCKET (1):

Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project.

LEGACY_BUCKET (2):

Bucket is located in a Google-owned project and is not regionalized.

class LogStreamingOption(value)[source]

Bases: proto.enums.Enum

Specifies the behavior when writing build logs to Cloud Storage.

Values:
STREAM_DEFAULT (0):

Service may automatically determine build log streaming behavior.

STREAM_ON (1):

Build logs should be streamed to Cloud Storage.

STREAM_OFF (2):

Build logs should not be streamed to Cloud Storage; they will be written when the build is completed.

class LoggingMode(value)[source]

Bases: proto.enums.Enum

Specifies the logging mode.

Values:
LOGGING_UNSPECIFIED (0):

The service determines the logging mode. The default is LEGACY. Do not rely on the default logging behavior as it may change in the future.

LEGACY (1):

Build logs are stored in Cloud Logging and Cloud Storage.

GCS_ONLY (2):

Build logs are stored in Cloud Storage.

STACKDRIVER_ONLY (3):

This option is the same as CLOUD_LOGGING_ONLY.

CLOUD_LOGGING_ONLY (5):

Build logs are stored in Cloud Logging. Selecting this option will not allow logs streaming.

NONE (4):

Turn off all logging. No build logs will be captured.

class MachineType(value)[source]

Bases: proto.enums.Enum

Supported Compute Engine machine types. For more information, see Machine types.

Values:
UNSPECIFIED (0):

Standard machine type.

N1_HIGHCPU_8 (1):

Highcpu machine with 8 CPUs.

N1_HIGHCPU_32 (2):

Highcpu machine with 32 CPUs.

E2_HIGHCPU_8 (5):

Highcpu e2 machine with 8 CPUs.

E2_HIGHCPU_32 (6):

Highcpu e2 machine with 32 CPUs.

E2_MEDIUM (7):

E2 machine with 1 CPU.

class PoolOption(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Details about how a build should be executed on a WorkerPool.

See running builds in a private pool for more information.

name

The WorkerPool resource to execute the build on. You must have cloudbuild.workerpools.use on the project hosting the WorkerPool.

Format projects/{project}/locations/{location}/workerPools/{workerPoolId}

Type

str

class SubstitutionOption(value)[source]

Bases: proto.enums.Enum

Specifies the behavior when there is an error in the substitution checks.

Values:
MUST_MATCH (0):

Fails the build if error in substitutions checks, like missing a substitution in the template or in the map.

ALLOW_LOOSE (1):

Do not fail the build if error in substitutions checks.

class VerifyOption(value)[source]

Bases: proto.enums.Enum

Specifies the manner in which the build should be verified, if at all.

If a verified build is requested, and any part of the process to generate and upload provenance fails, the build will also fail.

If the build does not request verification then that process may occur, but is not guaranteed to. If it does occur and fails, the build will not fail.

For more information, see Viewing Build Provenance.

Values:
NOT_VERIFIED (0):

Not a verifiable build (the default).

VERIFIED (1):

Build must be verified.

class google.cloud.devtools.cloudbuild_v1.types.BuildStep(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A step in the build pipeline.

name

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). 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.

Type

str

env

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”.

Type

MutableSequence[str]

args

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.

Type

MutableSequence[str]

dir_

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.

Type

str

id

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

Type

str

wait_for

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.

Type

MutableSequence[str]

entrypoint

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

Type

str

secret_env

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.

Type

MutableSequence[str]

volumes

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.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Volume]

timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

pull_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

timeout

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.

Type

google.protobuf.duration_pb2.Duration

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.

Type

google.cloud.devtools.cloudbuild_v1.types.Build.Status

allow_failure

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.

Type

bool

exit_code

Output only. Return code from running the step.

Type

int

allow_exit_codes

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.

Type

MutableSequence[int]

script

A shell script to be executed in the step.

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

Type

str

automap_substitutions

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

This field is a member of oneof _automap_substitutions.

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.BuildTrigger(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

resource_name

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

Type

str

id

Output only. Unique identifier of the trigger.

Type

str

description

Human-readable description of this trigger.

Type

str

name

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.

Type

str

tags

Tags for annotation of a BuildTrigger

Type

MutableSequence[str]

trigger_template

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.

Type

google.cloud.devtools.cloudbuild_v1.types.RepoSource

github

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

Mutually exclusive with trigger_template.

Type

google.cloud.devtools.cloudbuild_v1.types.GitHubEventsConfig

pubsub_config

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

Type

google.cloud.devtools.cloudbuild_v1.types.PubsubConfig

webhook_config

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

Type

google.cloud.devtools.cloudbuild_v1.types.WebhookConfig

autodetect

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.

This field is a member of oneof build_template.

Type

bool

build

Contents of the build template.

This field is a member of oneof build_template.

Type

google.cloud.devtools.cloudbuild_v1.types.Build

filename

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

This field is a member of oneof build_template.

Type

str

git_file_source

The file source describing the local or remote Build template.

This field is a member of oneof build_template.

Type

google.cloud.devtools.cloudbuild_v1.types.GitFileSource

create_time

Output only. Time when the trigger was created.

Type

google.protobuf.timestamp_pb2.Timestamp

disabled

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

Type

bool

substitutions

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

Type

MutableMapping[str, str]

ignored_files

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.

Type

MutableSequence[str]

included_files

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.

Type

MutableSequence[str]

filter

Optional. A Common Expression Language string.

Type

str

source_to_build

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.

Type

google.cloud.devtools.cloudbuild_v1.types.GitRepoSource

service_account

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

Type

str

repository_event_config

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

Type

google.cloud.devtools.cloudbuild_v1.types.RepositoryEventConfig

class SubstitutionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.devtools.cloudbuild_v1.types.BuiltImage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

An image built by the pipeline.

name

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

Type

str

digest

Docker Registry 2.0 digest.

Type

str

push_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

class google.cloud.devtools.cloudbuild_v1.types.CancelBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to cancel an ongoing build.

name

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

Type

str

project_id

Required. ID of the project.

Type

str

id

Required. ID of the build.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.CreateBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to create a new build.

parent

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

Type

str

project_id

Required. ID of the project.

Type

str

build

Required. Build resource to create.

Type

google.cloud.devtools.cloudbuild_v1.types.Build

class google.cloud.devtools.cloudbuild_v1.types.CreateBuildTriggerRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to create a new BuildTrigger.

parent

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

Type

str

project_id

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

Type

str

trigger

Required. BuildTrigger to create.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildTrigger

class google.cloud.devtools.cloudbuild_v1.types.CreateWorkerPoolOperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Metadata for the CreateWorkerPool operation.

worker_pool

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

Type

str

create_time

Time the operation was created.

Type

google.protobuf.timestamp_pb2.Timestamp

complete_time

Time the operation was completed.

Type

google.protobuf.timestamp_pb2.Timestamp

class google.cloud.devtools.cloudbuild_v1.types.CreateWorkerPoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to create a new WorkerPool.

parent

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

Type

str

worker_pool

Required. WorkerPool resource to create.

Type

google.cloud.devtools.cloudbuild_v1.types.WorkerPool

worker_pool_id

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]-/.

Type

str

validate_only

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

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.DeleteBuildTriggerRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to delete a BuildTrigger.

name

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

Type

str

project_id

Required. ID of the project that owns the trigger.

Type

str

trigger_id

Required. ID of the BuildTrigger to delete.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.DeleteWorkerPoolOperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Metadata for the DeleteWorkerPool operation.

worker_pool

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

Type

str

create_time

Time the operation was created.

Type

google.protobuf.timestamp_pb2.Timestamp

complete_time

Time the operation was completed.

Type

google.protobuf.timestamp_pb2.Timestamp

class google.cloud.devtools.cloudbuild_v1.types.DeleteWorkerPoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to delete a WorkerPool.

name

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

Type

str

etag

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

Type

str

allow_missing

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

Type

bool

validate_only

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

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.FileHashes(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

file_hash

Collection of file hashes.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Hash]

class google.cloud.devtools.cloudbuild_v1.types.GetBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to get a build.

name

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

Type

str

project_id

Required. ID of the project.

Type

str

id

Required. ID of the build.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GetBuildTriggerRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Returns the BuildTrigger with the specified ID.

name

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

Type

str

project_id

Required. ID of the project that owns the trigger.

Type

str

trigger_id

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GetWorkerPoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to get a WorkerPool with the specified name.

name

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GitFileSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

path

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

Type

str

uri

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.

Type

str

repository

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.

This field is a member of oneof source.

Type

str

repo_type

See RepoType above.

Type

google.cloud.devtools.cloudbuild_v1.types.GitFileSource.RepoType

revision

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.

Type

str

github_enterprise_config

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

This field is a member of oneof enterprise_config.

Type

str

class RepoType(value)[source]

Bases: proto.enums.Enum

The type of the repo, since it may not be explicit from the repo field (e.g from a URL).

Values:
UNKNOWN (0):

The default, unknown repo type. Don’t use it, instead use one of the other repo types.

CLOUD_SOURCE_REPOSITORIES (1):

A Google Cloud Source Repositories-hosted repo.

GITHUB (2):

A GitHub-hosted repo not necessarily on “github.com” (i.e. GitHub Enterprise).

BITBUCKET_SERVER (3):

A Bitbucket Server-hosted repo.

GITLAB (4):

A GitLab-hosted repo.

class google.cloud.devtools.cloudbuild_v1.types.GitHubEnterpriseConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

name

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

Type

str

host_url

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

Type

str

app_id

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

Type

int

create_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

webhook_key

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

Type

str

peered_network

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.

Type

str

secrets

Names of secrets in Secret Manager.

Type

google.cloud.devtools.cloudbuild_v1.types.GitHubEnterpriseSecrets

display_name

Name to display for this config.

Type

str

ssl_ca

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GitHubEnterpriseSecrets(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

private_key_version_name

The resource name for the private key secret version.

Type

str

webhook_secret_version_name

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

Type

str

oauth_secret_version_name

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

Type

str

oauth_client_id_version_name

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GitHubEventsConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

installation_id

The installationID that emits the GitHub event.

Type

int

owner

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

Type

str

name

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

Type

str

pull_request

filter to match changes in pull requests.

This field is a member of oneof event.

Type

google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter

push

filter to match changes in refs like branches, tags.

This field is a member of oneof event.

Type

google.cloud.devtools.cloudbuild_v1.types.PushFilter

class google.cloud.devtools.cloudbuild_v1.types.GitRepoSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

GitRepoSource describes a repo and ref of a code repository.

uri

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

Type

str

repository

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

This field is a member of oneof source.

Type

str

ref

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

Type

str

repo_type

See RepoType below.

Type

google.cloud.devtools.cloudbuild_v1.types.GitFileSource.RepoType

github_enterprise_config

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

This field is a member of oneof enterprise_config.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.GitSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Location of the source in any accessible Git repository.

url

Location of the Git repo to build.

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

Type

str

dir_

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.

Type

str

revision

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.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.Hash(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Container message for hash values.

type_

The type of hash that was performed.

Type

google.cloud.devtools.cloudbuild_v1.types.Hash.HashType

value

The hash value.

Type

bytes

class HashType(value)[source]

Bases: proto.enums.Enum

Specifies the hash algorithm, if any.

Values:
NONE (0):

No hash requested.

SHA256 (1):

Use a sha256 hash.

MD5 (2):

Use a md5 hash.

SHA512 (4):

Use a sha512 hash.

class google.cloud.devtools.cloudbuild_v1.types.InlineSecret(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

kms_key_name

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

Type

str

env_map

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.

Type

MutableMapping[str, bytes]

class EnvMapEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.devtools.cloudbuild_v1.types.ListBuildTriggersRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to list existing BuildTriggers.

parent

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

Type

str

project_id

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

Type

str

page_size

Number of results to return in the list.

Type

int

page_token

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ListBuildTriggersResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response containing existing BuildTriggers.

triggers

BuildTriggers for the project, sorted by create_time descending.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.BuildTrigger]

next_page_token

Token to receive the next page of results.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ListBuildsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to list builds.

parent

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

Type

str

project_id

Required. ID of the project.

Type

str

page_size

Number of results to return in the list.

Type

int

page_token

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.

Type

str

filter

The raw filter text to constrain the results.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ListBuildsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response including listed builds.

builds

Builds will be sorted by create_time, descending.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.Build]

next_page_token

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ListWorkerPoolsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to list WorkerPools.

parent

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

Type

str

page_size

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

Type

int

page_token

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ListWorkerPoolsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Response containing existing WorkerPools.

worker_pools

WorkerPools for the specified project.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.WorkerPool]

next_page_token

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Configuration for a V1 PrivatePool.

worker_config

Machine configuration for the workers in the pool.

Type

google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config.WorkerConfig

network_config

Network configuration for the pool.

Type

google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config.NetworkConfig

private_service_connect

Immutable. Private Service Connect(PSC) Network configuration for the pool.

Type

google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config.PrivateServiceConnect

class NetworkConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Defines the network configuration for the pool.

peered_network

Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the service producer network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project. See Understanding network configuration options

Type

str

egress_option

Option to configure network egress for the workers.

Type

google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config.NetworkConfig.EgressOption

peered_network_ip_range

Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g. 192.168.0.0/29 would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits. /16 would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of /24 will be used.

Type

str

class EgressOption(value)[source]

Bases: proto.enums.Enum

Defines the egress option for the pool.

Values:
EGRESS_OPTION_UNSPECIFIED (0):

If set, defaults to PUBLIC_EGRESS.

NO_PUBLIC_EGRESS (1):

If set, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured.

PUBLIC_EGRESS (2):

If set, workers are created with a public address which allows for public internet egress.

class PrivateServiceConnect(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Defines the Private Service Connect network configuration for the pool.

network_attachment

Required. Immutable. The network attachment that the worker network interface is peered to. Must be in the format projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments

Type

str

public_ip_address_disabled

Required. Immutable. Disable public IP on the primary network interface.

If true, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. If false, workers are created with a public address which allows for public internet egress. The public address only applies to traffic through the primary network interface. If route_all_traffic is set to true, all traffic will go through the non-primary network interface, this boolean has no effect.

Type

bool

route_all_traffic

Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet.

If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.

Type

bool

class WorkerConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Defines the configuration to be used for creating workers in the pool.

machine_type

Machine type of a worker, such as e2-medium. See Worker pool config file. If left blank, Cloud Build will use a sensible default.

Type

str

disk_size_gb

Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 2000. If 0 is specified, Cloud Build will use a standard disk size.

Type

int

class google.cloud.devtools.cloudbuild_v1.types.PubsubConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

subscription

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

Type

str

topic

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

Type

str

service_account_email

Service account that will make the push request.

Type

str

state

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

Type

google.cloud.devtools.cloudbuild_v1.types.PubsubConfig.State

class State(value)[source]

Bases: proto.enums.Enum

Enumerates potential issues with the underlying Pub/Sub subscription configuration.

Values:
STATE_UNSPECIFIED (0):

The subscription configuration has not been checked.

OK (1):

The Pub/Sub subscription is properly configured.

SUBSCRIPTION_DELETED (2):

The subscription has been deleted.

TOPIC_DELETED (3):

The topic has been deleted.

SUBSCRIPTION_MISCONFIGURED (4):

Some of the subscription’s field are misconfigured.

class google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

PullRequestFilter contains filter properties for matching GitHub Pull Requests.

branch

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

This field is a member of oneof git_ref.

Type

str

comment_control

Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.

Type

google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter.CommentControl

invert_regex

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

Type

bool

class CommentControl(value)[source]

Bases: proto.enums.Enum

Controls behavior of Pull Request comments.

Values:
COMMENTS_DISABLED (0):

Do not require comments on Pull Requests before builds are triggered.

COMMENTS_ENABLED (1):

Enforce that repository owners or collaborators must comment on Pull Requests before builds are triggered.

COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY (2):

Enforce that repository owners or collaborators must comment on external contributors’ Pull Requests before builds are triggered.

class google.cloud.devtools.cloudbuild_v1.types.PushFilter(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Push contains filter properties for matching GitHub git pushes.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

branch

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

This field is a member of oneof git_ref.

Type

str

tag

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

This field is a member of oneof git_ref.

Type

str

invert_regex

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

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.ReceiveTriggerWebhookRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

name

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

Type

str

body

HTTP request body.

Type

google.api.httpbody_pb2.HttpBody

project_id

Project in which the specified trigger lives

Type

str

trigger

Name of the trigger to run the payload against

Type

str

secret

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

Type

str

class google.cloud.devtools.cloudbuild_v1.types.ReceiveTriggerWebhookResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

class google.cloud.devtools.cloudbuild_v1.types.RepoSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Location of the source in a Google Cloud Source Repository.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

project_id

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

Type

str

repo_name

Name of the Cloud Source Repository.

Type

str

branch_name

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

This field is a member of oneof revision.

Type

str

tag_name

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

This field is a member of oneof revision.

Type

str

commit_sha

Explicit commit SHA to build.

This field is a member of oneof revision.

Type

str

dir_

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.

Type

str

invert_regex

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

Type

bool

substitutions

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

Type

MutableMapping[str, str]

class SubstitutionsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.devtools.cloudbuild_v1.types.RepositoryEventConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

repository

The resource name of the Repo API resource.

Type

str

repository_type

Output only. The type of the SCM vendor the repository points to.

Type

google.cloud.devtools.cloudbuild_v1.types.RepositoryEventConfig.RepositoryType

pull_request

Filter to match changes in pull requests.

This field is a member of oneof filter.

Type

google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter

push

Filter to match changes in refs like branches, tags.

This field is a member of oneof filter.

Type

google.cloud.devtools.cloudbuild_v1.types.PushFilter

class RepositoryType(value)[source]

Bases: proto.enums.Enum

All possible SCM repo types from Repo API.

Values:
REPOSITORY_TYPE_UNSPECIFIED (0):

If unspecified, RepositoryType defaults to GITHUB.

GITHUB (1):

The SCM repo is GITHUB.

GITHUB_ENTERPRISE (2):

The SCM repo is GITHUB Enterprise.

GITLAB_ENTERPRISE (3):

The SCM repo is GITLAB Enterprise.

class google.cloud.devtools.cloudbuild_v1.types.Results(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Artifacts created by the build pipeline.

images

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.BuiltImage]

build_step_images

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

Type

MutableSequence[str]

artifact_manifest

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

Type

str

num_artifacts

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

Type

int

build_step_outputs

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

Cloud Builders can produce this output by writing to $BUILDER_OUTPUT/output. Only the first 4KB of data is stored.

Type

MutableSequence[bytes]

artifact_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

python_packages

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.UploadedPythonPackage]

maven_artifacts

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.UploadedMavenArtifact]

npm_packages

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

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.UploadedNpmPackage]

class google.cloud.devtools.cloudbuild_v1.types.RetryBuildRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Specifies a build to retry.

name

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

Type

str

project_id

Required. ID of the project.

Type

str

id

Required. Build ID of the original build.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.RunBuildTriggerRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

name

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

Type

str

project_id

Required. ID of the project.

Type

str

trigger_id

Required. ID of the trigger.

Type

str

source

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

Type

google.cloud.devtools.cloudbuild_v1.types.RepoSource

class google.cloud.devtools.cloudbuild_v1.types.Secret(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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.

kms_key_name

Cloud KMS key name to use to decrypt these envs.

Type

str

secret_env

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.

Type

MutableMapping[str, bytes]

class SecretEnvEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.devtools.cloudbuild_v1.types.SecretManagerSecret(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

version_name

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

Type

str

env

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.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.Secrets(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Secrets and secret environment variables.

secret_manager

Secrets in Secret Manager and associated secret environment variable.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.SecretManagerSecret]

inline

Secrets encrypted with KMS key and the associated secret environment variable.

Type

MutableSequence[google.cloud.devtools.cloudbuild_v1.types.InlineSecret]

class google.cloud.devtools.cloudbuild_v1.types.Source(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Location of the source in a supported storage service.

This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

storage_source

If provided, get the source from this location in Cloud Storage.

This field is a member of oneof source.

Type

google.cloud.devtools.cloudbuild_v1.types.StorageSource

repo_source

If provided, get the source from this location in a Cloud Source Repository.

This field is a member of oneof source.

Type

google.cloud.devtools.cloudbuild_v1.types.RepoSource

git_source

If provided, get the source from this Git repository.

This field is a member of oneof source.

Type

google.cloud.devtools.cloudbuild_v1.types.GitSource

storage_source_manifest

If provided, get the source from this manifest in Cloud Storage. This feature is in Preview; see description here.

This field is a member of oneof source.

Type

google.cloud.devtools.cloudbuild_v1.types.StorageSourceManifest

class google.cloud.devtools.cloudbuild_v1.types.SourceProvenance(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

resolved_storage_source

A copy of the build’s source.storage_source, if exists, with any generations resolved.

Type

google.cloud.devtools.cloudbuild_v1.types.StorageSource

resolved_repo_source

A copy of the build’s source.repo_source, if exists, with any revisions resolved.

Type

google.cloud.devtools.cloudbuild_v1.types.RepoSource

resolved_storage_source_manifest

A copy of the build’s source.storage_source_manifest, if exists, with any revisions resolved. This feature is in Preview.

Type

google.cloud.devtools.cloudbuild_v1.types.StorageSourceManifest

file_hashes

Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that FileHashes will only be populated if BuildOptions has requested a SourceProvenanceHash.

The keys to this map are file paths used as build source and the values contain the hash values for those files.

If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.

Type

MutableMapping[str, google.cloud.devtools.cloudbuild_v1.types.FileHashes]

class FileHashesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class google.cloud.devtools.cloudbuild_v1.types.StorageSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

bucket

Cloud Storage bucket containing the source (see Bucket Name Requirements).

Type

str

object_

Cloud Storage object containing the source.

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

Type

str

generation

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

Type

int

source_fetcher

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

Type

google.cloud.devtools.cloudbuild_v1.types.StorageSource.SourceFetcher

class SourceFetcher(value)[source]

Bases: proto.enums.Enum

Specifies the tool to fetch the source file for the build.

Values:
SOURCE_FETCHER_UNSPECIFIED (0):

Unspecified. Defaults to GSUTIL.

GSUTIL (1):

Use the “gsutil” tool to download the source file.

GCS_FETCHER (2):

Use the Cloud Storage Fetcher tool to download the source file.

class google.cloud.devtools.cloudbuild_v1.types.StorageSourceManifest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Location of the source manifest in Cloud Storage. This feature is in Preview; see description here.

bucket

Cloud Storage bucket containing the source manifest (see Bucket Name Requirements).

Type

str

object_

Cloud Storage object containing the source manifest. This object must be a JSON file.

Type

str

generation

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

Type

int

class google.cloud.devtools.cloudbuild_v1.types.TimeSpan(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Start and end times for a build execution phase.

start_time

Start of time span.

Type

google.protobuf.timestamp_pb2.Timestamp

end_time

End of time span.

Type

google.protobuf.timestamp_pb2.Timestamp

class google.cloud.devtools.cloudbuild_v1.types.UpdateBuildTriggerRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to update an existing BuildTrigger.

project_id

Required. ID of the project that owns the trigger.

Type

str

trigger_id

Required. ID of the BuildTrigger to update.

Type

str

trigger

Required. BuildTrigger to update.

Type

google.cloud.devtools.cloudbuild_v1.types.BuildTrigger

update_mask

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.

Type

google.protobuf.field_mask_pb2.FieldMask

class google.cloud.devtools.cloudbuild_v1.types.UpdateWorkerPoolOperationMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Metadata for the UpdateWorkerPool operation.

worker_pool

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

Type

str

create_time

Time the operation was created.

Type

google.protobuf.timestamp_pb2.Timestamp

complete_time

Time the operation was completed.

Type

google.protobuf.timestamp_pb2.Timestamp

class google.cloud.devtools.cloudbuild_v1.types.UpdateWorkerPoolRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Request to update a WorkerPool.

worker_pool

Required. The WorkerPool to update.

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

Type

google.cloud.devtools.cloudbuild_v1.types.WorkerPool

update_mask

A mask specifying which fields in worker_pool to update.

Type

google.protobuf.field_mask_pb2.FieldMask

validate_only

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

Type

bool

class google.cloud.devtools.cloudbuild_v1.types.UploadedMavenArtifact(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

A Maven artifact uploaded using the MavenArtifact directive.

uri

URI of the uploaded artifact.

Type

str

file_hashes

Hash types and values of the Maven Artifact.

Type

google.cloud.devtools.cloudbuild_v1.types.FileHashes

push_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

class google.cloud.devtools.cloudbuild_v1.types.UploadedNpmPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

uri

URI of the uploaded npm package.

Type

str

file_hashes

Hash types and values of the npm package.

Type

google.cloud.devtools.cloudbuild_v1.types.FileHashes

push_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

class google.cloud.devtools.cloudbuild_v1.types.UploadedPythonPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

Artifact uploaded using the PythonPackage directive.

uri

URI of the uploaded artifact.

Type

str

file_hashes

Hash types and values of the Python Artifact.

Type

google.cloud.devtools.cloudbuild_v1.types.FileHashes

push_timing

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

Type

google.cloud.devtools.cloudbuild_v1.types.TimeSpan

class google.cloud.devtools.cloudbuild_v1.types.Volume(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

name

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.

Type

str

path

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.

Type

str

class google.cloud.devtools.cloudbuild_v1.types.WebhookConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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

secret

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

This field is a member of oneof auth_method.

Type

str

state

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

Type

google.cloud.devtools.cloudbuild_v1.types.WebhookConfig.State

class State(value)[source]

Bases: proto.enums.Enum

Enumerates potential issues with the Secret Manager secret provided by the user.

Values:
STATE_UNSPECIFIED (0):

The webhook auth configuration not been checked.

OK (1):

The auth configuration is properly setup.

SECRET_DELETED (2):

The secret provided in auth_method has been deleted.

class google.cloud.devtools.cloudbuild_v1.types.WorkerPool(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]

Bases: proto.message.Message

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 WorkerPools 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.

name

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.

Type

str

display_name

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

Type

str

uid

Output only. A unique identifier for the WorkerPool.

Type

str

annotations

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

Type

MutableMapping[str, str]

create_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

update_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

delete_time

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

Type

google.protobuf.timestamp_pb2.Timestamp

state

Output only. WorkerPool state.

Type

google.cloud.devtools.cloudbuild_v1.types.WorkerPool.State

private_pool_v1_config

Legacy Private Pool configuration.

This field is a member of oneof config.

Type

google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config

etag

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.

Type

str

class AnnotationsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Bases: proto.message.Message

class State(value)[source]

Bases: proto.enums.Enum

State of the WorkerPool.

Values:
STATE_UNSPECIFIED (0):

State of the WorkerPool is unknown.

CREATING (1):

WorkerPool is being created.

RUNNING (2):

WorkerPool is running.

DELETING (3):

WorkerPool is being deleted: cancelling builds and draining workers.

DELETED (4):

WorkerPool is deleted.

UPDATING (5):

WorkerPool is being updated; new builds cannot be run.