class Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
A worker pool resource in the Remote Build Execution API.
Attributes
Autoscale defines the autoscaling policy of a worker pool. Corresponds to the JSON property `autoscale` @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale]
Channel specifies the release channel of the pool. Corresponds to the JSON property `channel` @return [String]
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]
Output only. State of the worker pool. Corresponds to the JSON property `state` @return [String]
Defines the configuration to be used for creating workers in the worker pool. Corresponds to the JSON property `workerConfig` @return [Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig]
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
# File lib/google/apis/remotebuildexecution_v2/classes.rb, line 3112 def initialize(**args) update!(**args) end
Public Instance Methods
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