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.
3598 3599 3600 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3598 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
3575 3576 3577 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3575 def bool_value @bool_value end |
#double_value ⇒ Float
Optional. Double flag value.
Corresponds to the JSON property doubleValue
3581 3582 3583 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3581 def double_value @double_value end |
#int_value ⇒ Fixnum
Optional. Integer flag value.
Corresponds to the JSON property intValue
3586 3587 3588 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3586 def int_value @int_value end |
#name ⇒ String
Required. Name of the variant. Max length: 128 bytes.
Corresponds to the JSON property name
3591 3592 3593 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3591 def name @name end |
#string_value ⇒ String
Optional. String flag value.
Corresponds to the JSON property stringValue
3596 3597 3598 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3596 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3603 3604 3605 3606 3607 3608 3609 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3603 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 |