{-# 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.Locations.Clusters.Get
(
ProjectsLocationsClustersGetResource
, projectsLocationsClustersGet
, ProjectsLocationsClustersGet
, plcgXgafv
, plcgUploadProtocol
, plcgAccessToken
, plcgUploadType
, plcgZone
, plcgName
, plcgClusterId
, plcgProjectId
, plcgCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "clusterId" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Cluster
data ProjectsLocationsClustersGet = ProjectsLocationsClustersGet'
{ _plcgXgafv :: !(Maybe Xgafv)
, _plcgUploadProtocol :: !(Maybe Text)
, _plcgAccessToken :: !(Maybe Text)
, _plcgUploadType :: !(Maybe Text)
, _plcgZone :: !(Maybe Text)
, _plcgName :: !Text
, _plcgClusterId :: !(Maybe Text)
, _plcgProjectId :: !(Maybe Text)
, _plcgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersGet
:: Text
-> ProjectsLocationsClustersGet
projectsLocationsClustersGet pPlcgName_ =
ProjectsLocationsClustersGet'
{ _plcgXgafv = Nothing
, _plcgUploadProtocol = Nothing
, _plcgAccessToken = Nothing
, _plcgUploadType = Nothing
, _plcgZone = Nothing
, _plcgName = pPlcgName_
, _plcgClusterId = Nothing
, _plcgProjectId = Nothing
, _plcgCallback = Nothing
}
plcgXgafv :: Lens' ProjectsLocationsClustersGet (Maybe Xgafv)
plcgXgafv
= lens _plcgXgafv (\ s a -> s{_plcgXgafv = a})
plcgUploadProtocol :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgUploadProtocol
= lens _plcgUploadProtocol
(\ s a -> s{_plcgUploadProtocol = a})
plcgAccessToken :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgAccessToken
= lens _plcgAccessToken
(\ s a -> s{_plcgAccessToken = a})
plcgUploadType :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgUploadType
= lens _plcgUploadType
(\ s a -> s{_plcgUploadType = a})
plcgZone :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgZone = lens _plcgZone (\ s a -> s{_plcgZone = a})
plcgName :: Lens' ProjectsLocationsClustersGet Text
plcgName = lens _plcgName (\ s a -> s{_plcgName = a})
plcgClusterId :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgClusterId
= lens _plcgClusterId
(\ s a -> s{_plcgClusterId = a})
plcgProjectId :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgProjectId
= lens _plcgProjectId
(\ s a -> s{_plcgProjectId = a})
plcgCallback :: Lens' ProjectsLocationsClustersGet (Maybe Text)
plcgCallback
= lens _plcgCallback (\ s a -> s{_plcgCallback = a})
instance GoogleRequest ProjectsLocationsClustersGet
where
type Rs ProjectsLocationsClustersGet = Cluster
type Scopes ProjectsLocationsClustersGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsClustersGet'{..}
= go _plcgName _plcgXgafv _plcgUploadProtocol
_plcgAccessToken
_plcgUploadType
_plcgZone
_plcgClusterId
_plcgProjectId
_plcgCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsClustersGetResource)
mempty