Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb
Overview
A worker pool resource in the Remote Build Execution API.
Instance Attribute Summary collapse
-
#name ⇒ String
WorkerPool resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]
. -
#state ⇒ String
Output only.
-
#worker_config ⇒ Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Defines the configuration to be used for a 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool.
2872 2873 2874 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2872 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
2853 2854 2855 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2853 def name @name end |
#state ⇒ String
Output only. State of the worker pool.
Corresponds to the JSON property state
2858 2859 2860 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2858 def state @state end |
#worker_config ⇒ Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Defines the configuration to be used for a creating workers in
the worker pool.
Corresponds to the JSON property workerConfig
2864 2865 2866 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2864 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 1000.
Corresponds to the JSON property workerCount
2870 2871 2872 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2870 def worker_count @worker_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2877 2878 2879 2880 2881 2882 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2877 def update!(**args) @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 |