Class: Google::Apis::ComputeBeta::GuestAttributes

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb

Overview

A guest attributes entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GuestAttributes

Returns a new instance of GuestAttributes



7544
7545
7546
# File 'generated/google/apis/compute_beta/classes.rb', line 7544

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

Instance Attribute Details

#kindString

[Output Only] Type of the resource. Always compute#guestAttributes for guest attributes entry. Corresponds to the JSON property kind

Returns:

  • (String)


7516
7517
7518
# File 'generated/google/apis/compute_beta/classes.rb', line 7516

def kind
  @kind
end

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


7522
7523
7524
# File 'generated/google/apis/compute_beta/classes.rb', line 7522

def query_path
  @query_path
end

#query_valueGoogle::Apis::ComputeBeta::GuestAttributesValue

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



7527
7528
7529
# File 'generated/google/apis/compute_beta/classes.rb', line 7527

def query_value
  @query_value
end

[Output Only] Server-defined URL for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


7532
7533
7534
# File 'generated/google/apis/compute_beta/classes.rb', line 7532

def self_link
  @self_link
end

#variable_keyString

The key to search for. Corresponds to the JSON property variableKey

Returns:

  • (String)


7537
7538
7539
# File 'generated/google/apis/compute_beta/classes.rb', line 7537

def variable_key
  @variable_key
end

#variable_valueString

[Output Only] The value found for the requested key. Corresponds to the JSON property variableValue

Returns:

  • (String)


7542
7543
7544
# File 'generated/google/apis/compute_beta/classes.rb', line 7542

def variable_value
  @variable_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7549
7550
7551
7552
7553
7554
7555
7556
# File 'generated/google/apis/compute_beta/classes.rb', line 7549

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