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 |
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
See: Google Storage Transfer API Reference for storagetransfer.transferOperations.get
.
- type TransferOperationsGetResource = "v1" :> (Capture "name" 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 :> Get `[JSON]` Operation)))))))))
- transferOperationsGet :: Text -> TransferOperationsGet
- data TransferOperationsGet
- togXgafv :: Lens' TransferOperationsGet (Maybe Text)
- togUploadProtocol :: Lens' TransferOperationsGet (Maybe Text)
- togPp :: Lens' TransferOperationsGet Bool
- togAccessToken :: Lens' TransferOperationsGet (Maybe Text)
- togUploadType :: Lens' TransferOperationsGet (Maybe Text)
- togBearerToken :: Lens' TransferOperationsGet (Maybe Text)
- togName :: Lens' TransferOperationsGet Text
- togCallback :: Lens' TransferOperationsGet (Maybe Text)
REST Resource
type TransferOperationsGetResource = "v1" :> (Capture "name" 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 :> Get `[JSON]` Operation))))))))) Source
A resource alias for storagetransfer.transferOperations.get
method which the
TransferOperationsGet
request conforms to.
Creating a Request
Creates a value of TransferOperationsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TransferOperationsGet Source
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
See: transferOperationsGet
smart constructor.
Request Lenses
togUploadProtocol :: Lens' TransferOperationsGet (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
togPp :: Lens' TransferOperationsGet Bool Source
Pretty-print response.
togAccessToken :: Lens' TransferOperationsGet (Maybe Text) Source
OAuth access token.
togUploadType :: Lens' TransferOperationsGet (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
togBearerToken :: Lens' TransferOperationsGet (Maybe Text) Source
OAuth bearer token.
togName :: Lens' TransferOperationsGet Text Source
The name of the operation resource.
togCallback :: Lens' TransferOperationsGet (Maybe Text) Source
JSONP