{-# 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.NodePools.List
(
ProjectsLocationsClustersNodePoolsListResource
, projectsLocationsClustersNodePoolsList
, ProjectsLocationsClustersNodePoolsList
, plcnplParent
, plcnplXgafv
, plcnplUploadProtocol
, plcnplAccessToken
, plcnplUploadType
, plcnplZone
, plcnplClusterId
, plcnplProjectId
, plcnplCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersNodePoolsListResource =
"v1" :>
Capture "parent" Text :>
"nodePools" :>
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] ListNodePoolsResponse
data ProjectsLocationsClustersNodePoolsList = ProjectsLocationsClustersNodePoolsList'
{ _plcnplParent :: !Text
, _plcnplXgafv :: !(Maybe Xgafv)
, _plcnplUploadProtocol :: !(Maybe Text)
, _plcnplAccessToken :: !(Maybe Text)
, _plcnplUploadType :: !(Maybe Text)
, _plcnplZone :: !(Maybe Text)
, _plcnplClusterId :: !(Maybe Text)
, _plcnplProjectId :: !(Maybe Text)
, _plcnplCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersNodePoolsList
:: Text
-> ProjectsLocationsClustersNodePoolsList
projectsLocationsClustersNodePoolsList pPlcnplParent_ =
ProjectsLocationsClustersNodePoolsList'
{ _plcnplParent = pPlcnplParent_
, _plcnplXgafv = Nothing
, _plcnplUploadProtocol = Nothing
, _plcnplAccessToken = Nothing
, _plcnplUploadType = Nothing
, _plcnplZone = Nothing
, _plcnplClusterId = Nothing
, _plcnplProjectId = Nothing
, _plcnplCallback = Nothing
}
plcnplParent :: Lens' ProjectsLocationsClustersNodePoolsList Text
plcnplParent
= lens _plcnplParent (\ s a -> s{_plcnplParent = a})
plcnplXgafv :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Xgafv)
plcnplXgafv
= lens _plcnplXgafv (\ s a -> s{_plcnplXgafv = a})
plcnplUploadProtocol :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplUploadProtocol
= lens _plcnplUploadProtocol
(\ s a -> s{_plcnplUploadProtocol = a})
plcnplAccessToken :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplAccessToken
= lens _plcnplAccessToken
(\ s a -> s{_plcnplAccessToken = a})
plcnplUploadType :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplUploadType
= lens _plcnplUploadType
(\ s a -> s{_plcnplUploadType = a})
plcnplZone :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplZone
= lens _plcnplZone (\ s a -> s{_plcnplZone = a})
plcnplClusterId :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplClusterId
= lens _plcnplClusterId
(\ s a -> s{_plcnplClusterId = a})
plcnplProjectId :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplProjectId
= lens _plcnplProjectId
(\ s a -> s{_plcnplProjectId = a})
plcnplCallback :: Lens' ProjectsLocationsClustersNodePoolsList (Maybe Text)
plcnplCallback
= lens _plcnplCallback
(\ s a -> s{_plcnplCallback = a})
instance GoogleRequest
ProjectsLocationsClustersNodePoolsList where
type Rs ProjectsLocationsClustersNodePoolsList =
ListNodePoolsResponse
type Scopes ProjectsLocationsClustersNodePoolsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersNodePoolsList'{..}
= go _plcnplParent _plcnplXgafv _plcnplUploadProtocol
_plcnplAccessToken
_plcnplUploadType
_plcnplZone
_plcnplClusterId
_plcnplProjectId
_plcnplCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsClustersNodePoolsListResource)
mempty