Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v1/classes.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb
Overview
A worker pool resource in the Remote Build Execution API.
Instance Attribute Summary collapse
-
#autoscale ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
Autoscale defines the autoscaling policy of a worker pool.
-
#channel ⇒ String
Channel specifies the release channel of the pool.
-
#name ⇒ String
WorkerPool resource name formatted as:
projects/[PROJECT_ID]/instances/[ INSTANCE_ID]/workerpools/[POOL_ID]. -
#state ⇒ String
Output only.
-
#worker_config ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Defines the configuration to be used for creating workers in the worker pool.
-
#worker_count ⇒ Fixnum
The desired number of workers in the worker pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
constructor
A new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.
2447 2448 2449 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2447 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscale ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale
Autoscale defines the autoscaling policy of a worker pool.
Corresponds to the JSON property autoscale
2417 2418 2419 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2417 def autoscale @autoscale end |
#channel ⇒ String
Channel specifies the release channel of the pool.
Corresponds to the JSON property channel
2422 2423 2424 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2422 def channel @channel end |
#name ⇒ String
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
2429 2430 2431 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2429 def name @name end |
#state ⇒ String
Output only. State of the worker pool.
Corresponds to the JSON property state
2434 2435 2436 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2434 def state @state end |
#worker_config ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Defines the configuration to be used for creating workers in the worker pool.
Corresponds to the JSON property workerConfig
2439 2440 2441 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2439 def worker_config @worker_config end |
#worker_count ⇒ Fixnum
The desired number of workers in the worker pool. Must be a value between 0
and 15000.
Corresponds to the JSON property workerCount
2445 2446 2447 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2445 def worker_count @worker_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2452 2453 2454 2455 2456 2457 2458 2459 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2452 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 |