Copyright | (c) 2015 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 |
Pauses a transfer operation.
See: Google Storage Transfer API Reference for storagetransfer.transferOperations.pause
.
- type TransferOperationsPauseResource = "v1" :> (CaptureMode "name" "pause" 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 :> (ReqBody `[JSON]` PauseTransferOperationRequest :> Post `[JSON]` Empty))))))))))
- transferOperationsPause :: PauseTransferOperationRequest -> Text -> TransferOperationsPause
- data TransferOperationsPause
- topXgafv :: Lens' TransferOperationsPause (Maybe Text)
- topUploadProtocol :: Lens' TransferOperationsPause (Maybe Text)
- topPp :: Lens' TransferOperationsPause Bool
- topAccessToken :: Lens' TransferOperationsPause (Maybe Text)
- topUploadType :: Lens' TransferOperationsPause (Maybe Text)
- topPayload :: Lens' TransferOperationsPause PauseTransferOperationRequest
- topBearerToken :: Lens' TransferOperationsPause (Maybe Text)
- topName :: Lens' TransferOperationsPause Text
- topCallback :: Lens' TransferOperationsPause (Maybe Text)
REST Resource
type TransferOperationsPauseResource = "v1" :> (CaptureMode "name" "pause" 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 :> (ReqBody `[JSON]` PauseTransferOperationRequest :> Post `[JSON]` Empty)))))))))) Source
A resource alias for storagetransfer.transferOperations.pause
method which the
TransferOperationsPause
request conforms to.
Creating a Request
transferOperationsPause Source
Creates a value of TransferOperationsPause
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TransferOperationsPause Source
Pauses a transfer operation.
See: transferOperationsPause
smart constructor.
Request Lenses
topUploadProtocol :: Lens' TransferOperationsPause (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
topPp :: Lens' TransferOperationsPause Bool Source
Pretty-print response.
topAccessToken :: Lens' TransferOperationsPause (Maybe Text) Source
OAuth access token.
topUploadType :: Lens' TransferOperationsPause (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
topPayload :: Lens' TransferOperationsPause PauseTransferOperationRequest Source
Multipart request metadata.
topBearerToken :: Lens' TransferOperationsPause (Maybe Text) Source
OAuth bearer token.
topName :: Lens' TransferOperationsPause Text Source
The name of the transfer operation. Required.
topCallback :: Lens' TransferOperationsPause (Maybe Text) Source
JSONP