{-# 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.Container.Projects.Zones.Clusters.Get
(
ProjectsZonesClustersGetResource
, projectsZonesClustersGet
, ProjectsZonesClustersGet
, pzcgXgafv
, pzcgUploadProtocol
, pzcgAccessToken
, pzcgUploadType
, pzcgZone
, pzcgName
, pzcgClusterId
, pzcgProjectId
, pzcgCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "name" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Cluster
data ProjectsZonesClustersGet = ProjectsZonesClustersGet'
{ _pzcgXgafv :: !(Maybe Xgafv)
, _pzcgUploadProtocol :: !(Maybe Text)
, _pzcgAccessToken :: !(Maybe Text)
, _pzcgUploadType :: !(Maybe Text)
, _pzcgZone :: !Text
, _pzcgName :: !(Maybe Text)
, _pzcgClusterId :: !Text
, _pzcgProjectId :: !Text
, _pzcgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersGet
:: Text
-> Text
-> Text
-> ProjectsZonesClustersGet
projectsZonesClustersGet pPzcgZone_ pPzcgClusterId_ pPzcgProjectId_ =
ProjectsZonesClustersGet'
{ _pzcgXgafv = Nothing
, _pzcgUploadProtocol = Nothing
, _pzcgAccessToken = Nothing
, _pzcgUploadType = Nothing
, _pzcgZone = pPzcgZone_
, _pzcgName = Nothing
, _pzcgClusterId = pPzcgClusterId_
, _pzcgProjectId = pPzcgProjectId_
, _pzcgCallback = Nothing
}
pzcgXgafv :: Lens' ProjectsZonesClustersGet (Maybe Xgafv)
pzcgXgafv
= lens _pzcgXgafv (\ s a -> s{_pzcgXgafv = a})
pzcgUploadProtocol :: Lens' ProjectsZonesClustersGet (Maybe Text)
pzcgUploadProtocol
= lens _pzcgUploadProtocol
(\ s a -> s{_pzcgUploadProtocol = a})
pzcgAccessToken :: Lens' ProjectsZonesClustersGet (Maybe Text)
pzcgAccessToken
= lens _pzcgAccessToken
(\ s a -> s{_pzcgAccessToken = a})
pzcgUploadType :: Lens' ProjectsZonesClustersGet (Maybe Text)
pzcgUploadType
= lens _pzcgUploadType
(\ s a -> s{_pzcgUploadType = a})
pzcgZone :: Lens' ProjectsZonesClustersGet Text
pzcgZone = lens _pzcgZone (\ s a -> s{_pzcgZone = a})
pzcgName :: Lens' ProjectsZonesClustersGet (Maybe Text)
pzcgName = lens _pzcgName (\ s a -> s{_pzcgName = a})
pzcgClusterId :: Lens' ProjectsZonesClustersGet Text
pzcgClusterId
= lens _pzcgClusterId
(\ s a -> s{_pzcgClusterId = a})
pzcgProjectId :: Lens' ProjectsZonesClustersGet Text
pzcgProjectId
= lens _pzcgProjectId
(\ s a -> s{_pzcgProjectId = a})
pzcgCallback :: Lens' ProjectsZonesClustersGet (Maybe Text)
pzcgCallback
= lens _pzcgCallback (\ s a -> s{_pzcgCallback = a})
instance GoogleRequest ProjectsZonesClustersGet where
type Rs ProjectsZonesClustersGet = Cluster
type Scopes ProjectsZonesClustersGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersGet'{..}
= go _pzcgProjectId _pzcgZone _pzcgClusterId
_pzcgXgafv
_pzcgUploadProtocol
_pzcgAccessToken
_pzcgUploadType
_pzcgName
_pzcgCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesClustersGetResource)
mempty