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.
3170 3171 3172 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3170 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
3147 3148 3149 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3147 def bool_value @bool_value end |
#double_value ⇒ Float
Optional. Double flag value.
Corresponds to the JSON property doubleValue
3153 3154 3155 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3153 def double_value @double_value end |
#int_value ⇒ Fixnum
Optional. Integer flag value.
Corresponds to the JSON property intValue
3158 3159 3160 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3158 def int_value @int_value end |
#name ⇒ String
Required. Name of the variant. Max length: 128 bytes.
Corresponds to the JSON property name
3163 3164 3165 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3163 def name @name end |
#string_value ⇒ String
Optional. String flag value.
Corresponds to the JSON property stringValue
3168 3169 3170 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3168 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3175 3176 3177 3178 3179 3180 3181 |
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3175 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 |