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

Copyright(c) 2015-2016 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.

Instances

Eq TransferOperationsCancel Source # 
Data TransferOperationsCancel Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TransferOperationsCancel -> c TransferOperationsCancel #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TransferOperationsCancel #

toConstr :: TransferOperationsCancel -> Constr #

dataTypeOf :: TransferOperationsCancel -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TransferOperationsCancel) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TransferOperationsCancel) #

gmapT :: (forall b. Data b => b -> b) -> TransferOperationsCancel -> TransferOperationsCancel #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TransferOperationsCancel -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TransferOperationsCancel -> r #

gmapQ :: (forall d. Data d => d -> u) -> TransferOperationsCancel -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TransferOperationsCancel -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TransferOperationsCancel -> m TransferOperationsCancel #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TransferOperationsCancel -> m TransferOperationsCancel #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TransferOperationsCancel -> m TransferOperationsCancel #

Show TransferOperationsCancel Source # 
Generic TransferOperationsCancel Source # 
GoogleRequest TransferOperationsCancel Source # 
type Rep TransferOperationsCancel Source # 
type Rep TransferOperationsCancel = D1 (MetaData "TransferOperationsCancel" "Network.Google.Resource.StorageTransfer.TransferOperations.Cancel" "gogol-storage-transfer-0.3.0-DdvgDN2DYSs8eCRR6oXdxh" False) (C1 (MetaCons "TransferOperationsCancel'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tocXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tocUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_tocPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_tocAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tocUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tocBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_tocName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tocCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes TransferOperationsCancel Source # 
type Scopes TransferOperationsCancel = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs TransferOperationsCancel Source # 

Request Lenses

tocUploadProtocol :: Lens' TransferOperationsCancel (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

tocPp :: Lens' TransferOperationsCancel Bool Source #

Pretty-print response.

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.