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: Service Consumer Management API Reference for serviceconsumermanagement.operations.cancel
.
Synopsis
- type OperationsCancelResource = "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] CancelOperationRequest :> Post '[JSON] Empty))))))))
- operationsCancel :: CancelOperationRequest -> Text -> OperationsCancel
- data OperationsCancel
- ocXgafv :: Lens' OperationsCancel (Maybe Xgafv)
- ocUploadProtocol :: Lens' OperationsCancel (Maybe Text)
- ocAccessToken :: Lens' OperationsCancel (Maybe Text)
- ocUploadType :: Lens' OperationsCancel (Maybe Text)
- ocPayload :: Lens' OperationsCancel CancelOperationRequest
- ocName :: Lens' OperationsCancel Text
- ocCallback :: Lens' OperationsCancel (Maybe Text)
REST Resource
type OperationsCancelResource = "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] CancelOperationRequest :> Post '[JSON] Empty)))))))) Source #
A resource alias for serviceconsumermanagement.operations.cancel
method which the
OperationsCancel
request conforms to.
Creating a Request
Creates a value of OperationsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OperationsCancel 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: operationsCancel
smart constructor.
Instances
Request Lenses
ocUploadProtocol :: Lens' OperationsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ocAccessToken :: Lens' OperationsCancel (Maybe Text) Source #
OAuth access token.
ocUploadType :: Lens' OperationsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ocPayload :: Lens' OperationsCancel CancelOperationRequest Source #
Multipart request metadata.
ocCallback :: Lens' OperationsCancel (Maybe Text) Source #
JSONP