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 |
Listens to changes.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.listen
.
Synopsis
- type ProjectsDatabasesDocumentsListenResource = "v1" :> (Capture "database" Text :> ("documents:listen" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ListenRequest :> Post '[JSON] ListenResponse)))))))))
- projectsDatabasesDocumentsListen :: Text -> ListenRequest -> ProjectsDatabasesDocumentsListen
- data ProjectsDatabasesDocumentsListen
- pddlXgafv :: Lens' ProjectsDatabasesDocumentsListen (Maybe Xgafv)
- pddlUploadProtocol :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)
- pddlDatabase :: Lens' ProjectsDatabasesDocumentsListen Text
- pddlAccessToken :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)
- pddlUploadType :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)
- pddlPayload :: Lens' ProjectsDatabasesDocumentsListen ListenRequest
- pddlCallback :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsListenResource = "v1" :> (Capture "database" Text :> ("documents:listen" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ListenRequest :> Post '[JSON] ListenResponse))))))))) Source #
A resource alias for firestore.projects.databases.documents.listen
method which the
ProjectsDatabasesDocumentsListen
request conforms to.
Creating a Request
projectsDatabasesDocumentsListen Source #
Creates a value of ProjectsDatabasesDocumentsListen
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsListen Source #
Listens to changes.
See: projectsDatabasesDocumentsListen
smart constructor.
Instances
Request Lenses
pddlUploadProtocol :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddlDatabase :: Lens' ProjectsDatabasesDocumentsListen Text Source #
The database name. In the format: `projects/{project_id}/databases/{database_id}`.
pddlAccessToken :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text) Source #
OAuth access token.
pddlUploadType :: Lens' ProjectsDatabasesDocumentsListen (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddlPayload :: Lens' ProjectsDatabasesDocumentsListen ListenRequest Source #
Multipart request metadata.