gogol-firebaseremoteconfig-0.4.0: Google Firebase Remote Config SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.FirebaseRemoteConfig

Contents

Description

Firebase Remote Config API allows the 3P clients to manage Remote Config conditions and parameters for Firebase applications.

See: Firebase Remote Config API Reference

Synopsis

Service Configuration

firebaseRemoteConfigService :: ServiceConfig Source #

Default request referring to version v1 of the Firebase Remote Config API. This contains the host and root path used as a starting point for constructing service requests.

API Declaration

type FirebaseRemoteConfigAPI = ProjectsUpdateRemoteConfigResource :<|> ProjectsGetRemoteConfigResource Source #

Represents the entirety of the methods and resources available for the Firebase Remote Config API service.

Resources

firebaseremoteconfig.projects.getRemoteConfig

firebaseremoteconfig.projects.updateRemoteConfig

Types

RemoteConfigParameterValue

data RemoteConfigParameterValue Source #

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). We represent the "use_in_app_default" as a bool, but (when using the boolean instead of the string) it should always be true.

See: remoteConfigParameterValue smart constructor.

Instances
Eq RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigParameterValue -> c RemoteConfigParameterValue #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigParameterValue #

toConstr :: RemoteConfigParameterValue -> Constr #

dataTypeOf :: RemoteConfigParameterValue -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigParameterValue) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigParameterValue) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigParameterValue -> RemoteConfigParameterValue #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameterValue -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameterValue -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigParameterValue -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigParameterValue -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigParameterValue -> m RemoteConfigParameterValue #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameterValue -> m RemoteConfigParameterValue #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameterValue -> m RemoteConfigParameterValue #

Show RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Associated Types

type Rep RemoteConfigParameterValue :: Type -> Type #

ToJSON RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameterValue Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameterValue = D1 (MetaData "RemoteConfigParameterValue" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (C1 (MetaCons "RemoteConfigParameterValue'" PrefixI True) (S1 (MetaSel (Just "_rcpvValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rcpvUseInAppDefault") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))

remoteConfigParameterValue :: RemoteConfigParameterValue Source #

Creates a value of RemoteConfigParameterValue with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rcpvValue :: Lens' RemoteConfigParameterValue (Maybe Text) Source #

the string to set the parameter to

rcpvUseInAppDefault :: Lens' RemoteConfigParameterValue (Maybe Bool) Source #

if true, omit the parameter from the map of fetched parameter values

RemoteConfigParameterConditionalValues

data RemoteConfigParameterConditionalValues Source #

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.

See: remoteConfigParameterConditionalValues smart constructor.

Instances
Eq RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigParameterConditionalValues -> c RemoteConfigParameterConditionalValues #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigParameterConditionalValues #

toConstr :: RemoteConfigParameterConditionalValues -> Constr #

dataTypeOf :: RemoteConfigParameterConditionalValues -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigParameterConditionalValues) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigParameterConditionalValues) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigParameterConditionalValues -> RemoteConfigParameterConditionalValues #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameterConditionalValues -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameterConditionalValues -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigParameterConditionalValues -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigParameterConditionalValues -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigParameterConditionalValues -> m RemoteConfigParameterConditionalValues #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameterConditionalValues -> m RemoteConfigParameterConditionalValues #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameterConditionalValues -> m RemoteConfigParameterConditionalValues #

Show RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

ToJSON RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameterConditionalValues Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameterConditionalValues = D1 (MetaData "RemoteConfigParameterConditionalValues" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" True) (C1 (MetaCons "RemoteConfigParameterConditionalValues'" PrefixI True) (S1 (MetaSel (Just "_rcpcvAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text RemoteConfigParameterValue))))

remoteConfigParameterConditionalValues Source #

Creates a value of RemoteConfigParameterConditionalValues with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

RemoteConfigParameters

data RemoteConfigParameters Source #

Map of parameter keys to their optional default values and optional submap of (condition name : value). Order doesn't affect semantics, and so is sorted by the server. The 'key' values of the params must be unique.

See: remoteConfigParameters smart constructor.

Instances
Eq RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigParameters -> c RemoteConfigParameters #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigParameters #

toConstr :: RemoteConfigParameters -> Constr #

dataTypeOf :: RemoteConfigParameters -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigParameters) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigParameters) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigParameters -> RemoteConfigParameters #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameters -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameters -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigParameters -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigParameters -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigParameters -> m RemoteConfigParameters #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameters -> m RemoteConfigParameters #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameters -> m RemoteConfigParameters #

Show RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Associated Types

type Rep RemoteConfigParameters :: Type -> Type #

ToJSON RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameters Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameters = D1 (MetaData "RemoteConfigParameters" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" True) (C1 (MetaCons "RemoteConfigParameters'" PrefixI True) (S1 (MetaSel (Just "_rcpAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text RemoteConfigParameter))))

remoteConfigParameters Source #

Creates a value of RemoteConfigParameters with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

RemoteConfigParameter

data RemoteConfigParameter Source #

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).

See: remoteConfigParameter smart constructor.

Instances
Eq RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigParameter -> c RemoteConfigParameter #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigParameter #

toConstr :: RemoteConfigParameter -> Constr #

dataTypeOf :: RemoteConfigParameter -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigParameter) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigParameter) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigParameter -> RemoteConfigParameter #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameter -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigParameter -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigParameter -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigParameter -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigParameter -> m RemoteConfigParameter #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameter -> m RemoteConfigParameter #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigParameter -> m RemoteConfigParameter #

Show RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Associated Types

type Rep RemoteConfigParameter :: Type -> Type #

ToJSON RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameter Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigParameter = D1 (MetaData "RemoteConfigParameter" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (C1 (MetaCons "RemoteConfigParameter'" PrefixI True) (S1 (MetaSel (Just "_rcpDefaultValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RemoteConfigParameterValue)) :*: (S1 (MetaSel (Just "_rcpDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rcpConditionalValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RemoteConfigParameterConditionalValues)))))

remoteConfigParameter :: RemoteConfigParameter Source #

Creates a value of RemoteConfigParameter with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rcpDefaultValue :: Lens' RemoteConfigParameter (Maybe RemoteConfigParameterValue) Source #

Optional - value to set the parameter to, when none of the named conditions evaluate to true.

rcpDescription :: Lens' RemoteConfigParameter (Maybe Text) Source #

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

rcpConditionalValues :: Lens' RemoteConfigParameter (Maybe RemoteConfigParameterConditionalValues) Source #

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.

Xgafv

data Xgafv Source #

V1 error format.

Constructors

X1

1 v1 error format

X2

2 v2 error format

Instances
Enum Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Eq Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

(==) :: Xgafv -> Xgafv -> Bool #

(/=) :: Xgafv -> Xgafv -> Bool #

Data Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Xgafv -> c Xgafv #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Xgafv #

toConstr :: Xgafv -> Constr #

dataTypeOf :: Xgafv -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Xgafv) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Xgafv) #

gmapT :: (forall b. Data b => b -> b) -> Xgafv -> Xgafv #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r #

gmapQ :: (forall d. Data d => d -> u) -> Xgafv -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Xgafv -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv #

Ord Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

compare :: Xgafv -> Xgafv -> Ordering #

(<) :: Xgafv -> Xgafv -> Bool #

(<=) :: Xgafv -> Xgafv -> Bool #

(>) :: Xgafv -> Xgafv -> Bool #

(>=) :: Xgafv -> Xgafv -> Bool #

max :: Xgafv -> Xgafv -> Xgafv #

min :: Xgafv -> Xgafv -> Xgafv #

Read Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Show Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

showsPrec :: Int -> Xgafv -> ShowS #

show :: Xgafv -> String #

showList :: [Xgafv] -> ShowS #

Generic Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Associated Types

type Rep Xgafv :: Type -> Type #

Methods

from :: Xgafv -> Rep Xgafv x #

to :: Rep Xgafv x -> Xgafv #

Hashable Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

hashWithSalt :: Int -> Xgafv -> Int #

hash :: Xgafv -> Int #

ToJSON Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

FromJSON Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

FromHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

ToHttpApiData Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

type Rep Xgafv Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

type Rep Xgafv = D1 (MetaData "Xgafv" "Network.Google.FirebaseRemoteConfig.Types.Sum" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (C1 (MetaCons "X1" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "X2" PrefixI False) (U1 :: Type -> Type))

RemoteConfigConditionTagColor

data RemoteConfigConditionTagColor Source #

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.

Constructors

ConditionDisplayColorUnspecified
CONDITION_DISPLAY_COLOR_UNSPECIFIED
Blue

BLUE Blue

Brown

BROWN Brown

Cyan

CYAN Cyan

DeepOrange

DEEP_ORANGE aka "Red Orange"

Green

GREEN Green

Indigo

INDIGO Indigo *

Lime

LIME Lime - Approved deviation from Material color palette

Orange

ORANGE Orange

Pink

PINK Pink

Purple

PURPLE Purple

Teal

TEAL Teal

Instances
Enum RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Eq RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Data RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigConditionTagColor -> c RemoteConfigConditionTagColor #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigConditionTagColor #

toConstr :: RemoteConfigConditionTagColor -> Constr #

dataTypeOf :: RemoteConfigConditionTagColor -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigConditionTagColor) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigConditionTagColor) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigConditionTagColor -> RemoteConfigConditionTagColor #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigConditionTagColor -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigConditionTagColor -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigConditionTagColor -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigConditionTagColor -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigConditionTagColor -> m RemoteConfigConditionTagColor #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigConditionTagColor -> m RemoteConfigConditionTagColor #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigConditionTagColor -> m RemoteConfigConditionTagColor #

Ord RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Read RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Show RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Generic RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

Associated Types

type Rep RemoteConfigConditionTagColor :: Type -> Type #

Hashable RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

ToJSON RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

FromJSON RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

FromHttpApiData RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

ToHttpApiData RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

type Rep RemoteConfigConditionTagColor Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Sum

type Rep RemoteConfigConditionTagColor = D1 (MetaData "RemoteConfigConditionTagColor" "Network.Google.FirebaseRemoteConfig.Types.Sum" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (((C1 (MetaCons "ConditionDisplayColorUnspecified" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Blue" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Brown" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "Cyan" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "DeepOrange" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Green" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "Indigo" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Lime" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Orange" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "Pink" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Purple" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Teal" PrefixI False) (U1 :: Type -> Type)))))

RemoteConfigCondition

data RemoteConfigCondition Source #

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

See: remoteConfigCondition smart constructor.

Instances
Eq RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfigCondition -> c RemoteConfigCondition #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfigCondition #

toConstr :: RemoteConfigCondition -> Constr #

dataTypeOf :: RemoteConfigCondition -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfigCondition) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfigCondition) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfigCondition -> RemoteConfigCondition #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigCondition -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfigCondition -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfigCondition -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfigCondition -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfigCondition -> m RemoteConfigCondition #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigCondition -> m RemoteConfigCondition #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfigCondition -> m RemoteConfigCondition #

Show RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Associated Types

type Rep RemoteConfigCondition :: Type -> Type #

ToJSON RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigCondition Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfigCondition = D1 (MetaData "RemoteConfigCondition" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (C1 (MetaCons "RemoteConfigCondition'" PrefixI True) ((S1 (MetaSel (Just "_rccTagColor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RemoteConfigConditionTagColor)) :*: S1 (MetaSel (Just "_rccName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rccExpression") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rccDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

remoteConfigCondition :: RemoteConfigCondition Source #

Creates a value of RemoteConfigCondition with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rccTagColor :: Lens' RemoteConfigCondition (Maybe RemoteConfigConditionTagColor) Source #

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.

rccName :: Lens' RemoteConfigCondition (Maybe Text) Source #

Required. A non empty and unique name of this condition.

rccDescription :: Lens' RemoteConfigCondition (Maybe Text) Source #

DO NOT USE. Implementation removed and will not be added unless requested. 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

RemoteConfig

data RemoteConfig Source #

  • The RemoteConfig consists of a list of conditions (which can be thought of as named "if" statements) and a map of parameters (parameter key to a structure containing an optional default value, as well as a optional submap of (condition name to value when that condition is true).

See: remoteConfig smart constructor.

Instances
Eq RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Data RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RemoteConfig -> c RemoteConfig #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RemoteConfig #

toConstr :: RemoteConfig -> Constr #

dataTypeOf :: RemoteConfig -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RemoteConfig) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RemoteConfig) #

gmapT :: (forall b. Data b => b -> b) -> RemoteConfig -> RemoteConfig #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfig -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RemoteConfig -> r #

gmapQ :: (forall d. Data d => d -> u) -> RemoteConfig -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RemoteConfig -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RemoteConfig -> m RemoteConfig #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfig -> m RemoteConfig #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RemoteConfig -> m RemoteConfig #

Show RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Generic RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

Associated Types

type Rep RemoteConfig :: Type -> Type #

ToJSON RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

FromJSON RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfig Source # 
Instance details

Defined in Network.Google.FirebaseRemoteConfig.Types.Product

type Rep RemoteConfig = D1 (MetaData "RemoteConfig" "Network.Google.FirebaseRemoteConfig.Types.Product" "gogol-firebaseremoteconfig-0.4.0-2lmPeOQx2oOKMaSe815MP3" False) (C1 (MetaCons "RemoteConfig'" PrefixI True) (S1 (MetaSel (Just "_rcParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RemoteConfigParameters)) :*: S1 (MetaSel (Just "_rcConditions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RemoteConfigCondition]))))

remoteConfig :: RemoteConfig Source #

Creates a value of RemoteConfig with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rcParameters :: Lens' RemoteConfig (Maybe RemoteConfigParameters) Source #

Map of parameter keys to their optional default values and optional submap of (condition name : value). Order doesn't affect semantics, and so is sorted by the server. The 'key' values of the params must be unique.

rcConditions :: Lens' RemoteConfig [RemoteConfigCondition] Source #

The list of named conditions. The order *does* affect the semantics. The condition_name values of these entries must be unique. The resolved value of a config parameter P is determined as follow: * Let Y be the set of values from the submap of P that refer to conditions that evaluate to true. * If Y is non empty, the value is taken from the specific submap in Y whose condition_name is the earliest in this condition list. * Else, if P has a default value option (condition_name is empty) then the value is taken from that option. * Else, parameter P has no value and is omitted from the config result. Example: parameter key "p1", default value "v1", submap specified as {"c1": v2, "c2": v3} where "c1" and "c2" are names of conditions in the condition list (where "c1" in this example appears before "c2"). The value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is true, p1 would evaluate to v3, and if c1 and c2 are both false, p1 would evaluate to v1. If no default value was specified, and c1 and c2 were both false, no value for p1 would be generated.