gogol-storage-transfer-0.0.1: Google Storage Transfer SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.StorageTransfer.TransferOperations.Cancel

Contents

Description

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.

Synopsis

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").

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.