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
-
#description ⇒ String
Optional.
-
#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
111 112 113 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 111 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional.
A description for this Condition. Length must be less than or equal to
100 characters (or more precisely, unicode code points, which is defined in
java/com/google/wireless/android/config/ConstsExporter.java).
A description may contain any Unicode characters
Corresponds to the JSON property description
84 85 86 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 84 def description @description end |
#expression ⇒ String
Required.
Corresponds to the JSON property expression
89 90 91 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 89 def expression @expression end |
#name ⇒ String
Required.
A non empty and unique name of this condition.
Corresponds to the JSON property name
95 96 97 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 95 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
109 110 111 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 109 def tag_color @tag_color end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
116 117 118 119 120 121 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 116 def update!(**args) @description = args[:description] if args.key?(:description) @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 |