{-# 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.List
(
ProjectsZonesClustersListResource
, projectsZonesClustersList
, ProjectsZonesClustersList
, proParent
, proXgafv
, proUploadProtocol
, proAccessToken
, proUploadType
, proZone
, proProjectId
, proCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
QueryParam "parent" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListClustersResponse
data ProjectsZonesClustersList = ProjectsZonesClustersList'
{ _proParent :: !(Maybe Text)
, _proXgafv :: !(Maybe Xgafv)
, _proUploadProtocol :: !(Maybe Text)
, _proAccessToken :: !(Maybe Text)
, _proUploadType :: !(Maybe Text)
, _proZone :: !Text
, _proProjectId :: !Text
, _proCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersList
:: Text
-> Text
-> ProjectsZonesClustersList
projectsZonesClustersList pProZone_ pProProjectId_ =
ProjectsZonesClustersList'
{ _proParent = Nothing
, _proXgafv = Nothing
, _proUploadProtocol = Nothing
, _proAccessToken = Nothing
, _proUploadType = Nothing
, _proZone = pProZone_
, _proProjectId = pProProjectId_
, _proCallback = Nothing
}
proParent :: Lens' ProjectsZonesClustersList (Maybe Text)
proParent
= lens _proParent (\ s a -> s{_proParent = a})
proXgafv :: Lens' ProjectsZonesClustersList (Maybe Xgafv)
proXgafv = lens _proXgafv (\ s a -> s{_proXgafv = a})
proUploadProtocol :: Lens' ProjectsZonesClustersList (Maybe Text)
proUploadProtocol
= lens _proUploadProtocol
(\ s a -> s{_proUploadProtocol = a})
proAccessToken :: Lens' ProjectsZonesClustersList (Maybe Text)
proAccessToken
= lens _proAccessToken
(\ s a -> s{_proAccessToken = a})
proUploadType :: Lens' ProjectsZonesClustersList (Maybe Text)
proUploadType
= lens _proUploadType
(\ s a -> s{_proUploadType = a})
proZone :: Lens' ProjectsZonesClustersList Text
proZone = lens _proZone (\ s a -> s{_proZone = a})
proProjectId :: Lens' ProjectsZonesClustersList Text
proProjectId
= lens _proProjectId (\ s a -> s{_proProjectId = a})
proCallback :: Lens' ProjectsZonesClustersList (Maybe Text)
proCallback
= lens _proCallback (\ s a -> s{_proCallback = a})
instance GoogleRequest ProjectsZonesClustersList
where
type Rs ProjectsZonesClustersList =
ListClustersResponse
type Scopes ProjectsZonesClustersList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersList'{..}
= go _proProjectId _proZone _proParent _proXgafv
_proUploadProtocol
_proAccessToken
_proUploadType
_proCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy :: Proxy ProjectsZonesClustersListResource)
mempty