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



111
112
113
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 111

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


84
85
86
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 84

def description
  @description
end

#expressionString

Required. Corresponds to the JSON property expression

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 89

def expression
  @expression
end

#nameString

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

Returns:

  • (String)


95
96
97
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 95

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)


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