{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Genomics.Projects.Operations.Cancel
(
ProjectsOperationsCancelResource
, projectsOperationsCancel
, ProjectsOperationsCancel
, pocXgafv
, pocUploadProtocol
, pocAccessToken
, pocUploadType
, pocPayload
, pocName
, pocCallback
) where
import Network.Google.Genomics.Types
import Network.Google.Prelude
type ProjectsOperationsCancelResource =
"v2alpha1" :>
CaptureMode "name" "cancel" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CancelOperationRequest :>
Post '[JSON] Empty
data ProjectsOperationsCancel = ProjectsOperationsCancel'
{ _pocXgafv :: !(Maybe Xgafv)
, _pocUploadProtocol :: !(Maybe Text)
, _pocAccessToken :: !(Maybe Text)
, _pocUploadType :: !(Maybe Text)
, _pocPayload :: !CancelOperationRequest
, _pocName :: !Text
, _pocCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOperationsCancel
:: CancelOperationRequest
-> Text
-> ProjectsOperationsCancel
projectsOperationsCancel pPocPayload_ pPocName_ =
ProjectsOperationsCancel'
{ _pocXgafv = Nothing
, _pocUploadProtocol = Nothing
, _pocAccessToken = Nothing
, _pocUploadType = Nothing
, _pocPayload = pPocPayload_
, _pocName = pPocName_
, _pocCallback = Nothing
}
pocXgafv :: Lens' ProjectsOperationsCancel (Maybe Xgafv)
pocXgafv = lens _pocXgafv (\ s a -> s{_pocXgafv = a})
pocUploadProtocol :: Lens' ProjectsOperationsCancel (Maybe Text)
pocUploadProtocol
= lens _pocUploadProtocol
(\ s a -> s{_pocUploadProtocol = a})
pocAccessToken :: Lens' ProjectsOperationsCancel (Maybe Text)
pocAccessToken
= lens _pocAccessToken
(\ s a -> s{_pocAccessToken = a})
pocUploadType :: Lens' ProjectsOperationsCancel (Maybe Text)
pocUploadType
= lens _pocUploadType
(\ s a -> s{_pocUploadType = a})
pocPayload :: Lens' ProjectsOperationsCancel CancelOperationRequest
pocPayload
= lens _pocPayload (\ s a -> s{_pocPayload = a})
pocName :: Lens' ProjectsOperationsCancel Text
pocName = lens _pocName (\ s a -> s{_pocName = a})
pocCallback :: Lens' ProjectsOperationsCancel (Maybe Text)
pocCallback
= lens _pocCallback (\ s a -> s{_pocCallback = a})
instance GoogleRequest ProjectsOperationsCancel where
type Rs ProjectsOperationsCancel = Empty
type Scopes ProjectsOperationsCancel =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/genomics"]
requestClient ProjectsOperationsCancel'{..}
= go _pocName _pocXgafv _pocUploadProtocol
_pocAccessToken
_pocUploadType
_pocCallback
(Just AltJSON)
_pocPayload
genomicsService
where go
= buildClient
(Proxy :: Proxy ProjectsOperationsCancelResource)
mempty