Class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaseremoteconfig_v1/classes.rb,
generated/google/apis/firebaseremoteconfig_v1/representations.rb,
generated/google/apis/firebaseremoteconfig_v1/representations.rb

Overview

A single RemoteConfig Condition. A list of these (because order matters) are part of a single RemoteConfig template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RemoteConfigCondition

Returns a new instance of RemoteConfigCondition



102
103
104
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 102

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#expressionString

Required. Corresponds to the JSON property expression

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 80

def expression
  @expression
end

#nameString

Required. A non empty and unique name of this condition. Corresponds to the JSON property name

Returns:

  • (String)


86
87
88
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 86

def name
  @name
end

#tag_colorString

Optional. The display (tag) color of this condition. This serves as part of a tag (in the future, we may add tag text as well as tag color, but that is not yet implemented in the UI). This value has no affect on the semantics of the delivered config and it is ignored by the backend, except for passing it through write/read requests. Not having this value or having the "CONDITION_DISPLAY_COLOR_UNSPECIFIED" value (0) have the same meaning: Let the UI choose any valid color when displaying the condition. Corresponds to the JSON property tagColor

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 100

def tag_color
  @tag_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



107
108
109
110
111
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 107

def update!(**args)
  @expression = args[:expression] if args.key?(:expression)
  @name = args[:name] if args.key?(:name)
  @tag_color = args[:tag_color] if args.key?(:tag_color)
end