gogol-firestore-0.4.0: Google Cloud Firestore 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.FireStore.Projects.Databases.Documents.Patch

Contents

Description

Updates or inserts a document.

See: Cloud Firestore API Reference for firestore.projects.databases.documents.patch.

Synopsis

REST Resource

type ProjectsDatabasesDocumentsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParams "updateMask.fieldPaths" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Patch '[JSON] Document)))))))))))) Source #

A resource alias for firestore.projects.databases.documents.patch method which the ProjectsDatabasesDocumentsPatch request conforms to.

Creating a Request

data ProjectsDatabasesDocumentsPatch Source #

Updates or inserts a document.

See: projectsDatabasesDocumentsPatch smart constructor.

Instances
Eq ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

Data ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

Methods

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

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

toConstr :: ProjectsDatabasesDocumentsPatch -> Constr #

dataTypeOf :: ProjectsDatabasesDocumentsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

Generic ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

Associated Types

type Rep ProjectsDatabasesDocumentsPatch :: Type -> Type #

GoogleRequest ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

type Rep ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

type Rep ProjectsDatabasesDocumentsPatch = D1 (MetaData "ProjectsDatabasesDocumentsPatch" "Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch" "gogol-firestore-0.4.0-GW3AvKXkpND5rISC8pKhKY" False) (C1 (MetaCons "ProjectsDatabasesDocumentsPatch'" PrefixI True) (((S1 (MetaSel (Just "_pddpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pddpUpdateMaskFieldPaths") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_pddpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pddpCurrentDocumentExists") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pddpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_pddpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pddpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Document) :*: S1 (MetaSel (Just "_pddpCurrentDocumentUpdateTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')))) :*: (S1 (MetaSel (Just "_pddpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pddpMaskFieldPaths") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_pddpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsDatabasesDocumentsPatch Source # 
Instance details

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

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

Defined in Network.Google.Resource.FireStore.Projects.Databases.Documents.Patch

Request Lenses

pddpUpdateMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text] Source #

The list of field paths in the mask. See Document.fields for a field path syntax reference.

pddpUploadProtocol :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #

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

pddpCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Bool) Source #

When set to `true`, the target document must exist. When set to `false`, the target document must not exist.

pddpUploadType :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #

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

pddpCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsPatch (Maybe UTCTime) Source #

When set, the target document must exist and have been last updated at that time.

pddpName :: Lens' ProjectsDatabasesDocumentsPatch Text Source #

The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.

pddpMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text] Source #

The list of field paths in the mask. See Document.fields for a field path syntax reference.