{-# 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.List
(
ProjectsLocationsClustersListResource
, projectsLocationsClustersList
, ProjectsLocationsClustersList
, plclParent
, plclXgafv
, plclUploadProtocol
, plclAccessToken
, plclUploadType
, plclZone
, plclProjectId
, plclCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersListResource =
"v1" :>
Capture "parent" Text :>
"clusters" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListClustersResponse
data ProjectsLocationsClustersList = ProjectsLocationsClustersList'
{ _plclParent :: !Text
, _plclXgafv :: !(Maybe Xgafv)
, _plclUploadProtocol :: !(Maybe Text)
, _plclAccessToken :: !(Maybe Text)
, _plclUploadType :: !(Maybe Text)
, _plclZone :: !(Maybe Text)
, _plclProjectId :: !(Maybe Text)
, _plclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersList
:: Text
-> ProjectsLocationsClustersList
projectsLocationsClustersList pPlclParent_ =
ProjectsLocationsClustersList'
{ _plclParent = pPlclParent_
, _plclXgafv = Nothing
, _plclUploadProtocol = Nothing
, _plclAccessToken = Nothing
, _plclUploadType = Nothing
, _plclZone = Nothing
, _plclProjectId = Nothing
, _plclCallback = Nothing
}
plclParent :: Lens' ProjectsLocationsClustersList Text
plclParent
= lens _plclParent (\ s a -> s{_plclParent = a})
plclXgafv :: Lens' ProjectsLocationsClustersList (Maybe Xgafv)
plclXgafv
= lens _plclXgafv (\ s a -> s{_plclXgafv = a})
plclUploadProtocol :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclUploadProtocol
= lens _plclUploadProtocol
(\ s a -> s{_plclUploadProtocol = a})
plclAccessToken :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclAccessToken
= lens _plclAccessToken
(\ s a -> s{_plclAccessToken = a})
plclUploadType :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclUploadType
= lens _plclUploadType
(\ s a -> s{_plclUploadType = a})
plclZone :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclZone = lens _plclZone (\ s a -> s{_plclZone = a})
plclProjectId :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclProjectId
= lens _plclProjectId
(\ s a -> s{_plclProjectId = a})
plclCallback :: Lens' ProjectsLocationsClustersList (Maybe Text)
plclCallback
= lens _plclCallback (\ s a -> s{_plclCallback = a})
instance GoogleRequest ProjectsLocationsClustersList
where
type Rs ProjectsLocationsClustersList =
ListClustersResponse
type Scopes ProjectsLocationsClustersList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsClustersList'{..}
= go _plclParent _plclXgafv _plclUploadProtocol
_plclAccessToken
_plclUploadType
_plclZone
_plclProjectId
_plclCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersListResource)
mempty