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: Google Storage Transfer API Reference for storagetransfer.transferOperations.cancel
.
- type TransferOperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty)))))))))
- transferOperationsCancel :: Text -> TransferOperationsCancel
- data TransferOperationsCancel
- tocXgafv :: Lens' TransferOperationsCancel (Maybe Text)
- tocUploadProtocol :: Lens' TransferOperationsCancel (Maybe Text)
- tocPp :: Lens' TransferOperationsCancel Bool
- tocAccessToken :: Lens' TransferOperationsCancel (Maybe Text)
- tocUploadType :: Lens' TransferOperationsCancel (Maybe Text)
- tocBearerToken :: Lens' TransferOperationsCancel (Maybe Text)
- tocName :: Lens' TransferOperationsCancel Text
- tocCallback :: Lens' TransferOperationsCancel (Maybe Text)
REST Resource
type TransferOperationsCancelResource = "v1" :> (CaptureMode "name" "cancel" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
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").
tocBearerToken :: Lens' TransferOperationsCancel (Maybe Text) Source #
OAuth bearer token.
tocName :: Lens' TransferOperationsCancel Text Source #
The name of the operation resource to be cancelled.
tocCallback :: Lens' TransferOperationsCancel (Maybe Text) Source #
JSONP