{-# 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.Get
(
ProjectsRegionsOperationsGetResource
, projectsRegionsOperationsGet
, ProjectsRegionsOperationsGet
, progXgafv
, progUploadProtocol
, progAccessToken
, progUploadType
, progName
, progCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsOperationsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data ProjectsRegionsOperationsGet = ProjectsRegionsOperationsGet'
{ _progXgafv :: !(Maybe Xgafv)
, _progUploadProtocol :: !(Maybe Text)
, _progAccessToken :: !(Maybe Text)
, _progUploadType :: !(Maybe Text)
, _progName :: !Text
, _progCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsOperationsGet
:: Text
-> ProjectsRegionsOperationsGet
projectsRegionsOperationsGet pProgName_ =
ProjectsRegionsOperationsGet'
{ _progXgafv = Nothing
, _progUploadProtocol = Nothing
, _progAccessToken = Nothing
, _progUploadType = Nothing
, _progName = pProgName_
, _progCallback = Nothing
}
progXgafv :: Lens' ProjectsRegionsOperationsGet (Maybe Xgafv)
progXgafv
= lens _progXgafv (\ s a -> s{_progXgafv = a})
progUploadProtocol :: Lens' ProjectsRegionsOperationsGet (Maybe Text)
progUploadProtocol
= lens _progUploadProtocol
(\ s a -> s{_progUploadProtocol = a})
progAccessToken :: Lens' ProjectsRegionsOperationsGet (Maybe Text)
progAccessToken
= lens _progAccessToken
(\ s a -> s{_progAccessToken = a})
progUploadType :: Lens' ProjectsRegionsOperationsGet (Maybe Text)
progUploadType
= lens _progUploadType
(\ s a -> s{_progUploadType = a})
progName :: Lens' ProjectsRegionsOperationsGet Text
progName = lens _progName (\ s a -> s{_progName = a})
progCallback :: Lens' ProjectsRegionsOperationsGet (Maybe Text)
progCallback
= lens _progCallback (\ s a -> s{_progCallback = a})
instance GoogleRequest ProjectsRegionsOperationsGet
where
type Rs ProjectsRegionsOperationsGet = Operation
type Scopes ProjectsRegionsOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsOperationsGet'{..}
= go _progName _progXgafv _progUploadProtocol
_progAccessToken
_progUploadType
_progCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsOperationsGetResource)
mempty