{-# 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.TPU.Projects.Locations.Nodes.List
(
ProjectsLocationsNodesListResource
, projectsLocationsNodesList
, ProjectsLocationsNodesList
, plnlParent
, plnlXgafv
, plnlUploadProtocol
, plnlAccessToken
, plnlUploadType
, plnlPageToken
, plnlPageSize
, plnlCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsNodesListResource =
"v1" :>
Capture "parent" Text :>
"nodes" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListNodesResponse
data ProjectsLocationsNodesList = ProjectsLocationsNodesList'
{ _plnlParent :: !Text
, _plnlXgafv :: !(Maybe Xgafv)
, _plnlUploadProtocol :: !(Maybe Text)
, _plnlAccessToken :: !(Maybe Text)
, _plnlUploadType :: !(Maybe Text)
, _plnlPageToken :: !(Maybe Text)
, _plnlPageSize :: !(Maybe (Textual Int32))
, _plnlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsNodesList
:: Text
-> ProjectsLocationsNodesList
projectsLocationsNodesList pPlnlParent_ =
ProjectsLocationsNodesList'
{ _plnlParent = pPlnlParent_
, _plnlXgafv = Nothing
, _plnlUploadProtocol = Nothing
, _plnlAccessToken = Nothing
, _plnlUploadType = Nothing
, _plnlPageToken = Nothing
, _plnlPageSize = Nothing
, _plnlCallback = Nothing
}
plnlParent :: Lens' ProjectsLocationsNodesList Text
plnlParent
= lens _plnlParent (\ s a -> s{_plnlParent = a})
plnlXgafv :: Lens' ProjectsLocationsNodesList (Maybe Xgafv)
plnlXgafv
= lens _plnlXgafv (\ s a -> s{_plnlXgafv = a})
plnlUploadProtocol :: Lens' ProjectsLocationsNodesList (Maybe Text)
plnlUploadProtocol
= lens _plnlUploadProtocol
(\ s a -> s{_plnlUploadProtocol = a})
plnlAccessToken :: Lens' ProjectsLocationsNodesList (Maybe Text)
plnlAccessToken
= lens _plnlAccessToken
(\ s a -> s{_plnlAccessToken = a})
plnlUploadType :: Lens' ProjectsLocationsNodesList (Maybe Text)
plnlUploadType
= lens _plnlUploadType
(\ s a -> s{_plnlUploadType = a})
plnlPageToken :: Lens' ProjectsLocationsNodesList (Maybe Text)
plnlPageToken
= lens _plnlPageToken
(\ s a -> s{_plnlPageToken = a})
plnlPageSize :: Lens' ProjectsLocationsNodesList (Maybe Int32)
plnlPageSize
= lens _plnlPageSize (\ s a -> s{_plnlPageSize = a})
. mapping _Coerce
plnlCallback :: Lens' ProjectsLocationsNodesList (Maybe Text)
plnlCallback
= lens _plnlCallback (\ s a -> s{_plnlCallback = a})
instance GoogleRequest ProjectsLocationsNodesList
where
type Rs ProjectsLocationsNodesList =
ListNodesResponse
type Scopes ProjectsLocationsNodesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsNodesList'{..}
= go _plnlParent _plnlXgafv _plnlUploadProtocol
_plnlAccessToken
_plnlUploadType
_plnlPageToken
_plnlPageSize
_plnlCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsNodesListResource)
mempty