Class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter
- 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
While default_value and conditional_values are each optional, at least one of the two is required - otherwise, the parameter is meaningless (and an exception will be thrown by the validation logic).
Instance Attribute Summary collapse
-
#conditional_values ⇒ Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue>
Optional - a map of (condition_name, value).
-
#default_value ⇒ Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue
A RemoteConfigParameter's "value" (either the default value, or the value associated with a condition name) is either a string, or the "use_in_app_default" indicator (which means to leave out the parameter from the returned
map that is the output of the parameter fetch). -
#description ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RemoteConfigParameter
constructor
A new instance of RemoteConfigParameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RemoteConfigParameter
Returns a new instance of RemoteConfigParameter
156 157 158 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conditional_values ⇒ Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue>
Optional - a map of (condition_name, value). The condition_name of the
highest priority (the one listed first in the conditions array) determines
the value of this parameter.
Corresponds to the JSON property conditionalValues
135 136 137 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 135 def conditional_values @conditional_values end |
#default_value ⇒ Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue
A RemoteConfigParameter's "value" (either the default value, or the value
associated with a condition name) is either a string, or the
"use_in_app_default" indicator (which means to leave out the parameter from
the returned true
.
Corresponds to the JSON property defaultValue
145 146 147 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 145 def default_value @default_value end |
#description ⇒ String
Optional.
A description for this Parameter. 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
154 155 156 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 154 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
161 162 163 164 165 |
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 161 def update!(**args) @conditional_values = args[:conditional_values] if args.key?(:conditional_values) @default_value = args[:default_value] if args.key?(:default_value) @description = args[:description] if args.key?(:description) end |