Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets a single document.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.get
.
Synopsis
- type ProjectsDatabasesDocumentsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "readTime" DateTime' :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "transaction" Bytes :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Document))))))))))
- projectsDatabasesDocumentsGet :: Text -> ProjectsDatabasesDocumentsGet
- data ProjectsDatabasesDocumentsGet
- pddgXgafv :: Lens' ProjectsDatabasesDocumentsGet (Maybe Xgafv)
- pddgReadTime :: Lens' ProjectsDatabasesDocumentsGet (Maybe UTCTime)
- pddgUploadProtocol :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)
- pddgAccessToken :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)
- pddgUploadType :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)
- pddgTransaction :: Lens' ProjectsDatabasesDocumentsGet (Maybe ByteString)
- pddgName :: Lens' ProjectsDatabasesDocumentsGet Text
- pddgMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsGet [Text]
- pddgCallback :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "readTime" DateTime' :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "transaction" Bytes :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Document)))))))))) Source #
A resource alias for firestore.projects.databases.documents.get
method which the
ProjectsDatabasesDocumentsGet
request conforms to.
Creating a Request
projectsDatabasesDocumentsGet Source #
Creates a value of ProjectsDatabasesDocumentsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsGet Source #
Gets a single document.
See: projectsDatabasesDocumentsGet
smart constructor.
Instances
Request Lenses
pddgReadTime :: Lens' ProjectsDatabasesDocumentsGet (Maybe UTCTime) Source #
Reads the version of the document at the given time. This may not be older than 60 seconds.
pddgUploadProtocol :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddgAccessToken :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text) Source #
OAuth access token.
pddgUploadType :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddgTransaction :: Lens' ProjectsDatabasesDocumentsGet (Maybe ByteString) Source #
Reads the document in a transaction.
pddgName :: Lens' ProjectsDatabasesDocumentsGet Text Source #
The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
pddgMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsGet [Text] Source #
The list of field paths in the mask. See Document.fields for a field path syntax reference.
pddgCallback :: Lens' ProjectsDatabasesDocumentsGet (Maybe Text) Source #
JSONP