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 |
Rolls back a transaction.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.rollback
.
Synopsis
- type ProjectsDatabasesDocumentsRollbackResource = "v1" :> (Capture "database" Text :> ("documents:rollback" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty)))))))))
- projectsDatabasesDocumentsRollback :: Text -> RollbackRequest -> ProjectsDatabasesDocumentsRollback
- data ProjectsDatabasesDocumentsRollback
- pddrXgafv :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Xgafv)
- pddrUploadProtocol :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)
- pddrDatabase :: Lens' ProjectsDatabasesDocumentsRollback Text
- pddrAccessToken :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)
- pddrUploadType :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)
- pddrPayload :: Lens' ProjectsDatabasesDocumentsRollback RollbackRequest
- pddrCallback :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsRollbackResource = "v1" :> (Capture "database" Text :> ("documents:rollback" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty))))))))) Source #
A resource alias for firestore.projects.databases.documents.rollback
method which the
ProjectsDatabasesDocumentsRollback
request conforms to.
Creating a Request
projectsDatabasesDocumentsRollback Source #
Creates a value of ProjectsDatabasesDocumentsRollback
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsRollback Source #
Rolls back a transaction.
See: projectsDatabasesDocumentsRollback
smart constructor.
Instances
Request Lenses
pddrUploadProtocol :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddrDatabase :: Lens' ProjectsDatabasesDocumentsRollback Text Source #
The database name. In the format: `projects/{project_id}/databases/{database_id}`.
pddrAccessToken :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text) Source #
OAuth access token.
pddrUploadType :: Lens' ProjectsDatabasesDocumentsRollback (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddrPayload :: Lens' ProjectsDatabasesDocumentsRollback RollbackRequest Source #
Multipart request metadata.