{-# 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.NodePools.List
(
ProjectsZonesClustersNodePoolsListResource
, projectsZonesClustersNodePoolsList
, ProjectsZonesClustersNodePoolsList
, pzcnplParent
, pzcnplXgafv
, pzcnplUploadProtocol
, pzcnplAccessToken
, pzcnplUploadType
, pzcnplZone
, pzcnplClusterId
, pzcnplProjectId
, pzcnplCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesClustersNodePoolsListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"clusters" :>
Capture "clusterId" Text :>
"nodePools" :>
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] ListNodePoolsResponse
data ProjectsZonesClustersNodePoolsList = ProjectsZonesClustersNodePoolsList'
{ _pzcnplParent :: !(Maybe Text)
, _pzcnplXgafv :: !(Maybe Xgafv)
, _pzcnplUploadProtocol :: !(Maybe Text)
, _pzcnplAccessToken :: !(Maybe Text)
, _pzcnplUploadType :: !(Maybe Text)
, _pzcnplZone :: !Text
, _pzcnplClusterId :: !Text
, _pzcnplProjectId :: !Text
, _pzcnplCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesClustersNodePoolsList
:: Text
-> Text
-> Text
-> ProjectsZonesClustersNodePoolsList
projectsZonesClustersNodePoolsList pPzcnplZone_ pPzcnplClusterId_ pPzcnplProjectId_ =
ProjectsZonesClustersNodePoolsList'
{ _pzcnplParent = Nothing
, _pzcnplXgafv = Nothing
, _pzcnplUploadProtocol = Nothing
, _pzcnplAccessToken = Nothing
, _pzcnplUploadType = Nothing
, _pzcnplZone = pPzcnplZone_
, _pzcnplClusterId = pPzcnplClusterId_
, _pzcnplProjectId = pPzcnplProjectId_
, _pzcnplCallback = Nothing
}
pzcnplParent :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Text)
pzcnplParent
= lens _pzcnplParent (\ s a -> s{_pzcnplParent = a})
pzcnplXgafv :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Xgafv)
pzcnplXgafv
= lens _pzcnplXgafv (\ s a -> s{_pzcnplXgafv = a})
pzcnplUploadProtocol :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Text)
pzcnplUploadProtocol
= lens _pzcnplUploadProtocol
(\ s a -> s{_pzcnplUploadProtocol = a})
pzcnplAccessToken :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Text)
pzcnplAccessToken
= lens _pzcnplAccessToken
(\ s a -> s{_pzcnplAccessToken = a})
pzcnplUploadType :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Text)
pzcnplUploadType
= lens _pzcnplUploadType
(\ s a -> s{_pzcnplUploadType = a})
pzcnplZone :: Lens' ProjectsZonesClustersNodePoolsList Text
pzcnplZone
= lens _pzcnplZone (\ s a -> s{_pzcnplZone = a})
pzcnplClusterId :: Lens' ProjectsZonesClustersNodePoolsList Text
pzcnplClusterId
= lens _pzcnplClusterId
(\ s a -> s{_pzcnplClusterId = a})
pzcnplProjectId :: Lens' ProjectsZonesClustersNodePoolsList Text
pzcnplProjectId
= lens _pzcnplProjectId
(\ s a -> s{_pzcnplProjectId = a})
pzcnplCallback :: Lens' ProjectsZonesClustersNodePoolsList (Maybe Text)
pzcnplCallback
= lens _pzcnplCallback
(\ s a -> s{_pzcnplCallback = a})
instance GoogleRequest
ProjectsZonesClustersNodePoolsList where
type Rs ProjectsZonesClustersNodePoolsList =
ListNodePoolsResponse
type Scopes ProjectsZonesClustersNodePoolsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesClustersNodePoolsList'{..}
= go _pzcnplProjectId _pzcnplZone _pzcnplClusterId
_pzcnplParent
_pzcnplXgafv
_pzcnplUploadProtocol
_pzcnplAccessToken
_pzcnplUploadType
_pzcnplCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesClustersNodePoolsListResource)
mempty