Class: Google::Apis::ComputeAlpha::InstanceSettingsMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceSettingsMetadata

Returns a new instance of InstanceSettingsMetadata.



20027
20028
20029
# File 'lib/google/apis/compute_alpha/classes.rb', line 20027

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

Instance Attribute Details

#itemsHash<String,String>

A metadata key/value items map. The total size of all keys and values must be less than 512KB. Corresponds to the JSON property items

Returns:

  • (Hash<String,String>)


20020
20021
20022
# File 'lib/google/apis/compute_alpha/classes.rb', line 20020

def items
  @items
end

#kindString

[Output Only] Type of the resource. Always compute#metadata for metadata. Corresponds to the JSON property kind

Returns:

  • (String)


20025
20026
20027
# File 'lib/google/apis/compute_alpha/classes.rb', line 20025

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20032
20033
20034
20035
# File 'lib/google/apis/compute_alpha/classes.rb', line 20032

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