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

Contents

Description

Deletes a document.

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

Synopsis

REST Resource

type ProjectsDatabasesDocumentsDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))) Source #

A resource alias for firestore.projects.databases.documents.delete method which the ProjectsDatabasesDocumentsDelete request conforms to.

Creating a Request

data ProjectsDatabasesDocumentsDelete Source #

Deletes a document.

See: projectsDatabasesDocumentsDelete smart constructor.

Instances
Eq ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

Data ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsDatabasesDocumentsDelete -> Constr #

dataTypeOf :: ProjectsDatabasesDocumentsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

Generic ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

Associated Types

type Rep ProjectsDatabasesDocumentsDelete :: Type -> Type #

GoogleRequest ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

type Rep ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

type Rep ProjectsDatabasesDocumentsDelete = D1 (MetaData "ProjectsDatabasesDocumentsDelete" "Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete" "gogol-firestore-0.4.0-GW3AvKXkpND5rISC8pKhKY" False) (C1 (MetaCons "ProjectsDatabasesDocumentsDelete'" PrefixI True) (((S1 (MetaSel (Just "_pdddXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pdddUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pdddCurrentDocumentExists") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_pdddAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pdddUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pdddCurrentDocumentUpdateTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) :*: (S1 (MetaSel (Just "_pdddName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pdddCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsDatabasesDocumentsDelete Source # 
Instance details

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

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

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

Request Lenses

pdddUploadProtocol :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text) Source #

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

pdddCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Bool) Source #

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

pdddUploadType :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text) Source #

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

pdddCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsDelete (Maybe UTCTime) Source #

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

pdddName :: Lens' ProjectsDatabasesDocumentsDelete Text Source #

The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.