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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v1alpha/classes.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb,
generated/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

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



1944
1945
1946
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1944

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

Instance Attribute Details

#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)


1925
1926
1927
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1925

def name
  @name
end

#stateString

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

Returns:

  • (String)


1930
1931
1932
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1930

def state
  @state
end

#worker_configGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

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



1936
1937
1938
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1936

def worker_config
  @worker_config
end

#worker_countFixnum

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

Returns:

  • (Fixnum)


1942
1943
1944
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1942

def worker_count
  @worker_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1949
1950
1951
1952
1953
1954
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1949

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