gogol-firebase-rules-0.4.0: Google Firebase Rules 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.Resource.FirebaseRules.Projects.Rulesets.Create

Contents

Description

Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.

See: Firebase Rules API Reference for firebaserules.projects.rulesets.create.

Synopsis

REST Resource

type ProjectsRulesetsCreateResource = "v1" :> (Capture "name" Text :> ("rulesets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Ruleset :> Post '[JSON] Ruleset))))))))) Source #

A resource alias for firebaserules.projects.rulesets.create method which the ProjectsRulesetsCreate request conforms to.

Creating a Request

projectsRulesetsCreate Source #

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

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

data ProjectsRulesetsCreate Source #

Create a `Ruleset` from `Source`. The `Ruleset` is given a unique generated name which is returned to the caller. `Source` containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of `Source` issues, use TestRuleset.

See: projectsRulesetsCreate smart constructor.

Instances
Eq ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

Data ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

Methods

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

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

toConstr :: ProjectsRulesetsCreate -> Constr #

dataTypeOf :: ProjectsRulesetsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

Generic ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

Associated Types

type Rep ProjectsRulesetsCreate :: Type -> Type #

GoogleRequest ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

type Rep ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

type Rep ProjectsRulesetsCreate = D1 (MetaData "ProjectsRulesetsCreate" "Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create" "gogol-firebase-rules-0.4.0-8f71BRcY6VI3IDZJSGi4Go" False) (C1 (MetaCons "ProjectsRulesetsCreate'" PrefixI True) ((S1 (MetaSel (Just "_prcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Ruleset)) :*: (S1 (MetaSel (Just "_prcName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

type Scopes ProjectsRulesetsCreate = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/firebase" ': ([] :: [Symbol]))
type Rs ProjectsRulesetsCreate Source # 
Instance details

Defined in Network.Google.Resource.FirebaseRules.Projects.Rulesets.Create

Request Lenses

prcUploadProtocol :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

prcUploadType :: Lens' ProjectsRulesetsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

prcPayload :: Lens' ProjectsRulesetsCreate Ruleset Source #

Multipart request metadata.

prcName :: Lens' ProjectsRulesetsCreate Text Source #

Resource name for Project which owns this `Ruleset`. Format: `projects/{project_id}`