Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest

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

The request used for CreateWorkerPool.

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) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateWorkerPoolRequest.



1768
1769
1770
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1768

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

Instance Attribute Details

#parentString

Resource name of the instance in which to create the new worker pool. Format: projects/[PROJECT_ID]/instances/[INSTANCE_ID]. Corresponds to the JSON property parent

Returns:

  • (String)


1751
1752
1753
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1751

def parent
  @parent
end

#pool_idString

ID of the created worker pool. A valid pool ID must: be 6-50 characters long, contain only lowercase letters, digits, hyphens and underscores, start with a lowercase letter, and end with a lowercase letter or a digit. Corresponds to the JSON property poolId

Returns:

  • (String)


1761
1762
1763
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1761

def pool_id
  @pool_id
end

#worker_poolGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

A worker pool resource in the Remote Build Execution API. Corresponds to the JSON property workerPool



1766
1767
1768
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1766

def worker_pool
  @worker_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1773
1774
1775
1776
1777
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1773

def update!(**args)
  @parent = args[:parent] if args.key?(:parent)
  @pool_id = args[:pool_id] if args.key?(:pool_id)
  @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
end