Class: Google::Apis::ComputeV1::InstanceSettingsMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceSettingsMetadata

Returns a new instance of InstanceSettingsMetadata.



17688
17689
17690
# File 'lib/google/apis/compute_v1/classes.rb', line 17688

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


17681
17682
17683
# File 'lib/google/apis/compute_v1/classes.rb', line 17681

def items
  @items
end

#kindString

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

Returns:

  • (String)


17686
17687
17688
# File 'lib/google/apis/compute_v1/classes.rb', line 17686

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17693
17694
17695
17696
# File 'lib/google/apis/compute_v1/classes.rb', line 17693

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