class Google::Apis::CloudbuildV1::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](cloud.google.com/build/docs/private-pools/private- pools-overview).

Attributes

annotations[RW]

User specified annotations. See google.aip.dev/128#annotations for more details such as format and size limitations. Corresponds to the JSON property `annotations` @return [Hash<String,String>]

create_time[RW]

Output only. Time at which the request to create the `WorkerPool` was received. Corresponds to the JSON property `createTime` @return [String]

delete_time[RW]

Output only. Time at which the request to delete the `WorkerPool` was received. Corresponds to the JSON property `deleteTime` @return [String]

display_name[RW]

A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters. Corresponds to the JSON property `displayName` @return [String]

etag[RW]

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. Corresponds to the JSON property `etag` @return [String]

name[RW]

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. Corresponds to the JSON property `name` @return [String]

private_pool_v1_config[RW]

Configuration for a V1 `PrivatePool`. Corresponds to the JSON property `privatePoolV1Config` @return [Google::Apis::CloudbuildV1::PrivatePoolV1Config]

state[RW]

Output only. `WorkerPool` state. Corresponds to the JSON property `state` @return [String]

uid[RW]

Output only. A unique identifier for the `WorkerPool`. Corresponds to the JSON property `uid` @return [String]

update_time[RW]

Output only. Time at which the request to update the `WorkerPool` was received. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 3095
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 3100
def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @private_pool_v1_config = args[:private_pool_v1_config] if args.key?(:private_pool_v1_config)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end