Class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition
- 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
-
#expression ⇒ String
Required.
-
#name ⇒ String
Required.
-
#tag_color ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RemoteConfigCondition
constructor
A new instance of RemoteConfigCondition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#expression ⇒ String
Required.
Corresponds to the JSON property expression
80 81 82 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 80 def expression @expression end |
#name ⇒ String
Required.
A non empty and unique name of this condition.
Corresponds to the JSON property name
86 87 88 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 86 def name @name end |
#tag_color ⇒ String
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
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 |