{-# 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.Dataproc.Projects.Regions.Operations.Cancel
(
ProjectsRegionsOperationsCancelResource
, projectsRegionsOperationsCancel
, ProjectsRegionsOperationsCancel
, procXgafv
, procUploadProtocol
, procAccessToken
, procUploadType
, procName
, procCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsOperationsCancelResource =
"v1" :>
CaptureMode "name" "cancel" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Empty
data ProjectsRegionsOperationsCancel = ProjectsRegionsOperationsCancel'
{ _procXgafv :: !(Maybe Xgafv)
, _procUploadProtocol :: !(Maybe Text)
, _procAccessToken :: !(Maybe Text)
, _procUploadType :: !(Maybe Text)
, _procName :: !Text
, _procCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsOperationsCancel
:: Text
-> ProjectsRegionsOperationsCancel
projectsRegionsOperationsCancel pProcName_ =
ProjectsRegionsOperationsCancel'
{ _procXgafv = Nothing
, _procUploadProtocol = Nothing
, _procAccessToken = Nothing
, _procUploadType = Nothing
, _procName = pProcName_
, _procCallback = Nothing
}
procXgafv :: Lens' ProjectsRegionsOperationsCancel (Maybe Xgafv)
procXgafv
= lens _procXgafv (\ s a -> s{_procXgafv = a})
procUploadProtocol :: Lens' ProjectsRegionsOperationsCancel (Maybe Text)
procUploadProtocol
= lens _procUploadProtocol
(\ s a -> s{_procUploadProtocol = a})
procAccessToken :: Lens' ProjectsRegionsOperationsCancel (Maybe Text)
procAccessToken
= lens _procAccessToken
(\ s a -> s{_procAccessToken = a})
procUploadType :: Lens' ProjectsRegionsOperationsCancel (Maybe Text)
procUploadType
= lens _procUploadType
(\ s a -> s{_procUploadType = a})
procName :: Lens' ProjectsRegionsOperationsCancel Text
procName = lens _procName (\ s a -> s{_procName = a})
procCallback :: Lens' ProjectsRegionsOperationsCancel (Maybe Text)
procCallback
= lens _procCallback (\ s a -> s{_procCallback = a})
instance GoogleRequest
ProjectsRegionsOperationsCancel where
type Rs ProjectsRegionsOperationsCancel = Empty
type Scopes ProjectsRegionsOperationsCancel =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsOperationsCancel'{..}
= go _procName _procXgafv _procUploadProtocol
_procAccessToken
_procUploadType
_procCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsOperationsCancelResource)
mempty