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.



3598
3599
3600
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3598

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)


3575
3576
3577
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3575

def bool_value
  @bool_value
end

#double_valueFloat

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

Returns:

  • (Float)


3581
3582
3583
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3581

def double_value
  @double_value
end

#int_valueFixnum

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

Returns:

  • (Fixnum)


3586
3587
3588
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3586

def int_value
  @int_value
end

#nameString

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

Returns:

  • (String)


3591
3592
3593
# File 'lib/google/apis/saasservicemgmt_v1beta1/classes.rb', line 3591

def name
  @name
end

#string_valueString

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

Returns:

  • (String)


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