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.Releases.Create

Contents

Description

Create a `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated using the UpdateRelease method.

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

Synopsis

REST Resource

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

A resource alias for firebaserules.projects.releases.create method which the ProjectsReleasesCreate request conforms to.

Creating a Request

projectsReleasesCreate Source #

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

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

data ProjectsReleasesCreate Source #

Create a `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated using the UpdateRelease method.

See: projectsReleasesCreate smart constructor.

Instances
Eq ProjectsReleasesCreate Source # 
Instance details

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

Data ProjectsReleasesCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsReleasesCreate -> Constr #

dataTypeOf :: ProjectsReleasesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsReleasesCreate Source # 
Instance details

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

Generic ProjectsReleasesCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsReleasesCreate :: Type -> Type #

GoogleRequest ProjectsReleasesCreate Source # 
Instance details

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

type Rep ProjectsReleasesCreate Source # 
Instance details

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

type Rep ProjectsReleasesCreate = D1 (MetaData "ProjectsReleasesCreate" "Network.Google.Resource.FirebaseRules.Projects.Releases.Create" "gogol-firebase-rules-0.4.0-8f71BRcY6VI3IDZJSGi4Go" False) (C1 (MetaCons "ProjectsReleasesCreate'" PrefixI True) ((S1 (MetaSel (Just "_prcrXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_prcrUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcrAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_prcrUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_prcrPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Release)) :*: (S1 (MetaSel (Just "_prcrName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prcrCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsReleasesCreate Source # 
Instance details

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

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

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

Request Lenses

prcrUploadProtocol :: Lens' ProjectsReleasesCreate (Maybe Text) Source #

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

prcrUploadType :: Lens' ProjectsReleasesCreate (Maybe Text) Source #

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

prcrPayload :: Lens' ProjectsReleasesCreate Release Source #

Multipart request metadata.

prcrName :: Lens' ProjectsReleasesCreate Text Source #

Resource name for the project which owns this `Release`. Format: `projects/{project_id}`