Class: Google::Apis::SaasservicemgmtV1beta1::Variant
- Inherits:
-
Object
- Object
- Google::Apis::SaasservicemgmtV1beta1::Variant
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/saasservicemgmt_v1beta1/classes.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb,
lib/google/apis/saasservicemgmt_v1beta1/representations.rb
Overview
Variant is an identifier for a value (name assigned to a value). DEPRECATED: Use Flag.Variants instead.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
Optional.
-
#double_value ⇒ Float
Optional.
-
#int_value ⇒ Fixnum
Optional.
-
#name ⇒ String
Required.
-
#string_value ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Variant
constructor
A new instance of Variant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Variant
Returns a new instance of Variant.
3196 3197 3198 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
Optional. Boolean flag value.
Corresponds to the JSON property boolValue
3173 3174 3175 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3173 def bool_value @bool_value end |
#double_value ⇒ Float
Optional. Double flag value.
Corresponds to the JSON property doubleValue
3179 3180 3181 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3179 def double_value @double_value end |
#int_value ⇒ Fixnum
Optional. Integer flag value.
Corresponds to the JSON property intValue
3184 3185 3186 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3184 def int_value @int_value end |
#name ⇒ String
Required. Name of the variant. Max length: 128 bytes.
Corresponds to the JSON property name
3189 3190 3191 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3189 def name @name end |
#string_value ⇒ String
Optional. String flag value.
Corresponds to the JSON property stringValue
3194 3195 3196 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3194 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3201 3202 3203 3204 3205 3206 3207 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3201 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @double_value = args[:double_value] if args.key?(:double_value) @int_value = args[:int_value] if args.key?(:int_value) @name = args[:name] if args.key?(:name) @string_value = args[:string_value] if args.key?(:string_value) end |