Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest

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

The request used for UpdateWorkerPool.

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

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest



1848
1849
1850
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1848

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

Instance Attribute Details

#update_maskString

The update mask applies to worker_pool. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google. protobuf#fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided. Corresponds to the JSON property updateMask

Returns:

  • (String)


1841
1842
1843
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1841

def update_mask
  @update_mask
end

#worker_poolGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool

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



1846
1847
1848
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1846

def worker_pool
  @worker_pool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1853
1854
1855
1856
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1853

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