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. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following Google IAM permission: * `genomics.operations.cancel`
See: Genomics API Reference for genomics.projects.operations.cancel
.
Synopsis
- type ProjectsOperationsCancelResource = "v2alpha1" :> (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))))))))
- projectsOperationsCancel :: CancelOperationRequest -> Text -> ProjectsOperationsCancel
- data ProjectsOperationsCancel
- pocXgafv :: Lens' ProjectsOperationsCancel (Maybe Xgafv)
- pocUploadProtocol :: Lens' ProjectsOperationsCancel (Maybe Text)
- pocAccessToken :: Lens' ProjectsOperationsCancel (Maybe Text)
- pocUploadType :: Lens' ProjectsOperationsCancel (Maybe Text)
- pocPayload :: Lens' ProjectsOperationsCancel CancelOperationRequest
- pocName :: Lens' ProjectsOperationsCancel Text
- pocCallback :: Lens' ProjectsOperationsCancel (Maybe Text)
REST Resource
type ProjectsOperationsCancelResource = "v2alpha1" :> (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 genomics.projects.operations.cancel
method which the
ProjectsOperationsCancel
request conforms to.
Creating a Request
projectsOperationsCancel Source #
Creates a value of ProjectsOperationsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsOperationsCancel Source #
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation. Authorization requires the following Google IAM permission: * `genomics.operations.cancel`
See: projectsOperationsCancel
smart constructor.
Instances
Request Lenses
pocUploadProtocol :: Lens' ProjectsOperationsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pocAccessToken :: Lens' ProjectsOperationsCancel (Maybe Text) Source #
OAuth access token.
pocUploadType :: Lens' ProjectsOperationsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pocPayload :: Lens' ProjectsOperationsCancel CancelOperationRequest Source #
Multipart request metadata.
pocName :: Lens' ProjectsOperationsCancel Text Source #
The name of the operation resource to be cancelled.
pocCallback :: Lens' ProjectsOperationsCancel (Maybe Text) Source #
JSONP