class Google::Apis::CloudbuildV1beta1::WorkerPool

Configuration for a `WorkerPool` to run the builds. Workers provide a build environment where Cloud Build runs your builds. Cloud Build owns and maintains a pool of workers for general use. By default, when you submit a build, Cloud Build uses one of the workers from this pool. Builds that run in the default worker pool have access to the public internet. If your build needs access to resources on a private network, create and use a `WorkerPool` to run your builds. Custom `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 custom worker pools, see [Custom workers overview]( cloud.google.com/cloud-build/docs/custom-workers/custom-workers- overview).

Attributes

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]

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]

network_config[RW]

Network describes the network configuration for a `WorkerPool`. Corresponds to the JSON property `networkConfig` @return [Google::Apis::CloudbuildV1beta1::NetworkConfig]

state[RW]

Output only. `WorkerPool` state. Corresponds to the JSON property `state` @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]

worker_config[RW]

Defines the configuration to be used for creating workers in the pool. Corresponds to the JSON property `workerConfig` @return [Google::Apis::CloudbuildV1beta1::WorkerConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1beta1/classes.rb, line 2210
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_v1beta1/classes.rb, line 2215
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @name = args[:name] if args.key?(:name)
  @network_config = args[:network_config] if args.key?(:network_config)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
  @worker_config = args[:worker_config] if args.key?(:worker_config)
end