Class: Google::Apis::TpuV2alpha1::GuestAttributes

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

A guest attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GuestAttributes

Returns a new instance of GuestAttributes.



401
402
403
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 401

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

Instance Attribute Details

#query_pathString

The path to be queried. This can be the default namespace ('/') or a nested namespace ('/\/') or a specified key ('/\/\') Corresponds to the JSON property queryPath

Returns:

  • (String)


394
395
396
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 394

def query_path
  @query_path
end

#query_valueGoogle::Apis::TpuV2alpha1::GuestAttributesValue

Array of guest attribute namespace/key/value tuples. Corresponds to the JSON property queryValue



399
400
401
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 399

def query_value
  @query_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 406

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