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 |
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
See: Cloud Firestore API Reference for firestore.projects.databases.operations.cancel
.
Synopsis
- type ProjectsDatabasesOperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleLongrunningCancelOperationRequest :> Post '[JSON] Empty))))))))
- projectsDatabasesOperationsCancel :: GoogleLongrunningCancelOperationRequest -> Text -> ProjectsDatabasesOperationsCancel
- data ProjectsDatabasesOperationsCancel
- pdocXgafv :: Lens' ProjectsDatabasesOperationsCancel (Maybe Xgafv)
- pdocUploadProtocol :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
- pdocAccessToken :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
- pdocUploadType :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
- pdocPayload :: Lens' ProjectsDatabasesOperationsCancel GoogleLongrunningCancelOperationRequest
- pdocName :: Lens' ProjectsDatabasesOperationsCancel Text
- pdocCallback :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
REST Resource
type ProjectsDatabasesOperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleLongrunningCancelOperationRequest :> Post '[JSON] Empty)))))))) Source #
A resource alias for firestore.projects.databases.operations.cancel
method which the
ProjectsDatabasesOperationsCancel
request conforms to.
Creating a Request
projectsDatabasesOperationsCancel Source #
Creates a value of ProjectsDatabasesOperationsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesOperationsCancel Source #
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
See: projectsDatabasesOperationsCancel
smart constructor.
Instances
Request Lenses
pdocUploadProtocol :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdocAccessToken :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text) Source #
OAuth access token.
pdocUploadType :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdocPayload :: Lens' ProjectsDatabasesOperationsCancel GoogleLongrunningCancelOperationRequest Source #
Multipart request metadata.