Class: Google::Apis::SaasservicemgmtV1beta1::Variant

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_valueBoolean Also known as: bool_value?

Optional. Boolean flag value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


3147
3148
3149
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3147

def bool_value
  @bool_value
end

#double_valueFloat

Optional. Double flag value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


3153
3154
3155
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3153

def double_value
  @double_value
end

#int_valueFixnum

Optional. Integer flag value. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


3158
3159
3160
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3158

def int_value
  @int_value
end

#nameString

Required. Name of the variant. Max length: 128 bytes. Corresponds to the JSON property name

Returns:

  • (String)


3163
3164
3165
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3163

def name
  @name
end

#string_valueString

Optional. String flag value. Corresponds to the JSON property stringValue

Returns:

  • (String)


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