Class: Google::Apis::TpuV2alpha1::GetGuestAttributesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb

Overview

Request for GetGuestAttributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetGuestAttributesRequest

Returns a new instance of GetGuestAttributesRequest.



328
329
330
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 328

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

Instance Attribute Details

#query_pathString

The guest attributes path to be queried. Corresponds to the JSON property queryPath

Returns:

  • (String)


320
321
322
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 320

def query_path
  @query_path
end

#worker_idsArray<String>

The 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned. Corresponds to the JSON property workerIds

Returns:

  • (Array<String>)


326
327
328
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 326

def worker_ids
  @worker_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



333
334
335
336
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 333

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