Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v1/classes.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb

Overview

A worker pool resource in the Remote Build Execution API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.



2382
2383
2384
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2382

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#autoscaleGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale

Autoscale defines the autoscaling policy of a worker pool. Corresponds to the JSON property autoscale



2350
2351
2352
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2350

def autoscale
  @autoscale
end

#channelString

Channel specifies the release channel of the pool. Corresponds to the JSON property channel

Returns:

  • (String)


2355
2356
2357
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2355

def channel
  @channel
end

#nameString

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

Returns:

  • (String)


2363
2364
2365
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2363

def name
  @name
end

#stateString

Output only. State of the worker pool. Corresponds to the JSON property state

Returns:

  • (String)


2368
2369
2370
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2368

def state
  @state
end

#worker_configGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Defines the configuration to be used for a creating workers in the worker pool. Corresponds to the JSON property workerConfig



2374
2375
2376
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2374

def worker_config
  @worker_config
end

#worker_countFixnum

The desired number of workers in the worker pool. Must be a value between 0 and 15000. Corresponds to the JSON property workerCount

Returns:

  • (Fixnum)


2380
2381
2382
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2380

def worker_count
  @worker_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2387
2388
2389
2390
2391
2392
2393
2394
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2387

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