class Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

A worker pool resource in the Remote Build Execution API.

Attributes

autoscale[RW]

Autoscale defines the autoscaling policy of a worker pool. Corresponds to the JSON property `autoscale` @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale]

channel[RW]

Channel specifies the release channel of the pool. Corresponds to the JSON property `channel` @return [String]

name[RW]

WorkerPool resource name formatted as: `projects//instances/[ INSTANCE_ID]/workerpools/`. name should not be populated when creating a worker pool since it is provided in the `poolId` field. Corresponds to the JSON property `name` @return [String]

state[RW]

Output only. State of the worker pool. Corresponds to the JSON property `state` @return [String]

worker_config[RW]

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

worker_count[RW]

The desired number of workers in the worker pool. Must be a value between 0 and 15000. Corresponds to the JSON property `workerCount` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/remotebuildexecution_v2/classes.rb, line 3117
def update!(**args)
  @autoscale = args[:autoscale] if args.key?(:autoscale)
  @channel = args[:channel] if args.key?(:channel)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @worker_config = args[:worker_config] if args.key?(:worker_config)
  @worker_count = args[:worker_count] if args.key?(:worker_count)
end