Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

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

Overview

A worker pool resource in the Remote Build Execution API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.



2428
2429
2430
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2428

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

Instance Attribute Details

#autoscaleGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale

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



2398
2399
2400
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2398

def autoscale
  @autoscale
end

#channelString

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

Returns:

  • (String)


2403
2404
2405
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2403

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)


2410
2411
2412
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2410

def name
  @name
end

#stateString

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

Returns:

  • (String)


2415
2416
2417
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2415

def state
  @state
end

#worker_configGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

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



2420
2421
2422
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2420

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)


2426
2427
2428
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2426

def worker_count
  @worker_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2433
2434
2435
2436
2437
2438
2439
2440
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2433

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