Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueStringMap

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

Overview

A string->string map value that can hold a map of string keys to string values. The maximum length of each string is 200 characters and there can be a maximum of 50 key-value pairs in the map.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudResourcesettingsV1ValueStringMap

Returns a new instance of GoogleCloudResourcesettingsV1ValueStringMap.



228
229
230
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 228

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

Instance Attribute Details

#mappingsHash<String,String>

The key-value pairs in the map Corresponds to the JSON property mappings

Returns:

  • (Hash<String,String>)


226
227
228
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 226

def mappings
  @mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



233
234
235
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 233

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