class Google::Apis::CloudbuildV1alpha1::WorkerPool

Configuration for a WorkerPool to run the builds. Workers are machines that Cloud Build uses to run your builds. By default, all workers run in a project owned by Cloud Build. To have full control over the workers that execute your builds – such as enabling them to access private resources on your private network – you can request Cloud Build to run the workers in your own project by creating a custom workers pool.

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]

User-defined name of the `WorkerPool`. Corresponds to the JSON property `name` @return [String]

project_id[RW]

The project ID of the GCP project for which the `WorkerPool` is created. Corresponds to the JSON property `projectId` @return [String]

regions[RW]

List of regions to create the `WorkerPool`. Regions can't be empty. If Cloud Build adds a new GCP region in the future, the existing `WorkerPool` will not be enabled in the new region automatically; you must add the new region to the `regions` field to enable the `WorkerPool` in that region. Corresponds to the JSON property `regions` @return [Array<String>]

service_account_email[RW]

Output only. The service account used to manage the `WorkerPool`. The service account must have the Compute Instance Admin (Beta) permission at the project level. Corresponds to the JSON property `serviceAccountEmail` @return [String]

status[RW]

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

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

worker_count[RW]

Total number of workers to be created across all requested regions. Corresponds to the JSON property `workerCount` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1alpha1/classes.rb, line 2247
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_v1alpha1/classes.rb, line 2252
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)
  @project_id = args[:project_id] if args.key?(:project_id)
  @regions = args[:regions] if args.key?(:regions)
  @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
  @status = args[:status] if args.key?(:status)
  @update_time = args[:update_time] if args.key?(:update_time)
  @worker_config = args[:worker_config] if args.key?(:worker_config)
  @worker_count = args[:worker_count] if args.key?(:worker_count)
end