Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value
- Inherits:
-
Object
- Object
- Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value
- 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
The data in a setting value.
Instance Attribute Summary collapse
-
#boolean_value ⇒ Boolean
(also: #boolean_value?)
Defines this value as being a boolean value.
-
#duration_value ⇒ String
Defines this value as being a Duration.
-
#enum_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueEnumValue
A enum value that can hold any enum type setting values.
-
#string_map_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueStringMap
A string->string map value that can hold a map of string keys to string values.
-
#string_set_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueStringSet
A string set value that can hold a set of strings.
-
#string_value ⇒ String
Defines this value as being a string value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudResourcesettingsV1Value
constructor
A new instance of GoogleCloudResourcesettingsV1Value.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudResourcesettingsV1Value
Returns a new instance of GoogleCloudResourcesettingsV1Value.
182 183 184 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boolean_value ⇒ Boolean Also known as: boolean_value?
Defines this value as being a boolean value.
Corresponds to the JSON property booleanValue
149 150 151 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 149 def boolean_value @boolean_value end |
#duration_value ⇒ String
Defines this value as being a Duration.
Corresponds to the JSON property durationValue
155 156 157 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 155 def duration_value @duration_value end |
#enum_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueEnumValue
A enum value that can hold any enum type setting values. Each enum type is
represented by a number, this representation is stored in the definitions.
Corresponds to the JSON property enumValue
161 162 163 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 161 def enum_value @enum_value end |
#string_map_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueStringMap
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.
Corresponds to the JSON property stringMapValue
168 169 170 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 168 def string_map_value @string_map_value end |
#string_set_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1ValueStringSet
A string set value that can hold a set of strings. The maximum length of each
string is 200 characters and there can be a maximum of 50 strings in the
string set.
Corresponds to the JSON property stringSetValue
175 176 177 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 175 def string_set_value @string_set_value end |
#string_value ⇒ String
Defines this value as being a string value.
Corresponds to the JSON property stringValue
180 181 182 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 180 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
187 188 189 190 191 192 193 194 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 187 def update!(**args) @boolean_value = args[:boolean_value] if args.key?(:boolean_value) @duration_value = args[:duration_value] if args.key?(:duration_value) @enum_value = args[:enum_value] if args.key?(:enum_value) @string_map_value = args[:string_map_value] if args.key?(:string_map_value) @string_set_value = args[:string_set_value] if args.key?(:string_set_value) @string_value = args[:string_value] if args.key?(:string_value) end |