{-# 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.Get
(
ProjectsLocationsNodesGetResource
, projectsLocationsNodesGet
, ProjectsLocationsNodesGet
, plngXgafv
, plngUploadProtocol
, plngAccessToken
, plngUploadType
, plngName
, plngCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsNodesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Node
data ProjectsLocationsNodesGet = ProjectsLocationsNodesGet'
{ _plngXgafv :: !(Maybe Xgafv)
, _plngUploadProtocol :: !(Maybe Text)
, _plngAccessToken :: !(Maybe Text)
, _plngUploadType :: !(Maybe Text)
, _plngName :: !Text
, _plngCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsNodesGet
:: Text
-> ProjectsLocationsNodesGet
projectsLocationsNodesGet pPlngName_ =
ProjectsLocationsNodesGet'
{ _plngXgafv = Nothing
, _plngUploadProtocol = Nothing
, _plngAccessToken = Nothing
, _plngUploadType = Nothing
, _plngName = pPlngName_
, _plngCallback = Nothing
}
plngXgafv :: Lens' ProjectsLocationsNodesGet (Maybe Xgafv)
plngXgafv
= lens _plngXgafv (\ s a -> s{_plngXgafv = a})
plngUploadProtocol :: Lens' ProjectsLocationsNodesGet (Maybe Text)
plngUploadProtocol
= lens _plngUploadProtocol
(\ s a -> s{_plngUploadProtocol = a})
plngAccessToken :: Lens' ProjectsLocationsNodesGet (Maybe Text)
plngAccessToken
= lens _plngAccessToken
(\ s a -> s{_plngAccessToken = a})
plngUploadType :: Lens' ProjectsLocationsNodesGet (Maybe Text)
plngUploadType
= lens _plngUploadType
(\ s a -> s{_plngUploadType = a})
plngName :: Lens' ProjectsLocationsNodesGet Text
plngName = lens _plngName (\ s a -> s{_plngName = a})
plngCallback :: Lens' ProjectsLocationsNodesGet (Maybe Text)
plngCallback
= lens _plngCallback (\ s a -> s{_plngCallback = a})
instance GoogleRequest ProjectsLocationsNodesGet
where
type Rs ProjectsLocationsNodesGet = Node
type Scopes ProjectsLocationsNodesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsNodesGet'{..}
= go _plngName _plngXgafv _plngUploadProtocol
_plngAccessToken
_plngUploadType
_plngCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsNodesGetResource)
mempty