{-# 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.Clusters.Get
(
ProjectsRegionsClustersGetResource
, projectsRegionsClustersGet
, ProjectsRegionsClustersGet
, prcgXgafv
, prcgUploadProtocol
, prcgAccessToken
, prcgUploadType
, prcgClusterName
, prcgRegion
, prcgProjectId
, prcgCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsClustersGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"clusters" :>
Capture "clusterName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Cluster
data ProjectsRegionsClustersGet = ProjectsRegionsClustersGet'
{ _prcgXgafv :: !(Maybe Xgafv)
, _prcgUploadProtocol :: !(Maybe Text)
, _prcgAccessToken :: !(Maybe Text)
, _prcgUploadType :: !(Maybe Text)
, _prcgClusterName :: !Text
, _prcgRegion :: !Text
, _prcgProjectId :: !Text
, _prcgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsClustersGet
:: Text
-> Text
-> Text
-> ProjectsRegionsClustersGet
projectsRegionsClustersGet pPrcgClusterName_ pPrcgRegion_ pPrcgProjectId_ =
ProjectsRegionsClustersGet'
{ _prcgXgafv = Nothing
, _prcgUploadProtocol = Nothing
, _prcgAccessToken = Nothing
, _prcgUploadType = Nothing
, _prcgClusterName = pPrcgClusterName_
, _prcgRegion = pPrcgRegion_
, _prcgProjectId = pPrcgProjectId_
, _prcgCallback = Nothing
}
prcgXgafv :: Lens' ProjectsRegionsClustersGet (Maybe Xgafv)
prcgXgafv
= lens _prcgXgafv (\ s a -> s{_prcgXgafv = a})
prcgUploadProtocol :: Lens' ProjectsRegionsClustersGet (Maybe Text)
prcgUploadProtocol
= lens _prcgUploadProtocol
(\ s a -> s{_prcgUploadProtocol = a})
prcgAccessToken :: Lens' ProjectsRegionsClustersGet (Maybe Text)
prcgAccessToken
= lens _prcgAccessToken
(\ s a -> s{_prcgAccessToken = a})
prcgUploadType :: Lens' ProjectsRegionsClustersGet (Maybe Text)
prcgUploadType
= lens _prcgUploadType
(\ s a -> s{_prcgUploadType = a})
prcgClusterName :: Lens' ProjectsRegionsClustersGet Text
prcgClusterName
= lens _prcgClusterName
(\ s a -> s{_prcgClusterName = a})
prcgRegion :: Lens' ProjectsRegionsClustersGet Text
prcgRegion
= lens _prcgRegion (\ s a -> s{_prcgRegion = a})
prcgProjectId :: Lens' ProjectsRegionsClustersGet Text
prcgProjectId
= lens _prcgProjectId
(\ s a -> s{_prcgProjectId = a})
prcgCallback :: Lens' ProjectsRegionsClustersGet (Maybe Text)
prcgCallback
= lens _prcgCallback (\ s a -> s{_prcgCallback = a})
instance GoogleRequest ProjectsRegionsClustersGet
where
type Rs ProjectsRegionsClustersGet = Cluster
type Scopes ProjectsRegionsClustersGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsClustersGet'{..}
= go _prcgProjectId _prcgRegion _prcgClusterName
_prcgXgafv
_prcgUploadProtocol
_prcgAccessToken
_prcgUploadType
_prcgCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsClustersGetResource)
mempty