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 |
Cancels a transfer. Use the get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.
See: Storage Transfer API Reference for storagetransfer.transferOperations.cancel
.
Synopsis
- type TransferOperationsCancelResource = "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 :> Post '[JSON] Empty)))))))
- transferOperationsCancel :: Text -> TransferOperationsCancel
- data TransferOperationsCancel
- tocXgafv :: Lens' TransferOperationsCancel (Maybe Xgafv)
- tocUploadProtocol :: Lens' TransferOperationsCancel (Maybe Text)
- tocAccessToken :: Lens' TransferOperationsCancel (Maybe Text)
- tocUploadType :: Lens' TransferOperationsCancel (Maybe Text)
- tocName :: Lens' TransferOperationsCancel Text
- tocCallback :: Lens' TransferOperationsCancel (Maybe Text)
REST Resource
type TransferOperationsCancelResource = "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 :> Post '[JSON] Empty))))))) Source #
A resource alias for storagetransfer.transferOperations.cancel
method which the
TransferOperationsCancel
request conforms to.
Creating a Request
transferOperationsCancel Source #
Creates a value of TransferOperationsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TransferOperationsCancel Source #
Cancels a transfer. Use the get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.
See: transferOperationsCancel
smart constructor.
Instances
Request Lenses
tocUploadProtocol :: Lens' TransferOperationsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
tocAccessToken :: Lens' TransferOperationsCancel (Maybe Text) Source #
OAuth access token.
tocUploadType :: Lens' TransferOperationsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
tocName :: Lens' TransferOperationsCancel Text Source #
The name of the operation resource to be cancelled.
tocCallback :: Lens' TransferOperationsCancel (Maybe Text) Source #
JSONP