{-# 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.TensorflowVersions.Get
(
ProjectsLocationsTensorflowVersionsGetResource
, projectsLocationsTensorflowVersionsGet
, ProjectsLocationsTensorflowVersionsGet
, pltvgXgafv
, pltvgUploadProtocol
, pltvgAccessToken
, pltvgUploadType
, pltvgName
, pltvgCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsTensorflowVersionsGetResource =
"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] TensorFlowVersion
data ProjectsLocationsTensorflowVersionsGet = ProjectsLocationsTensorflowVersionsGet'
{ _pltvgXgafv :: !(Maybe Xgafv)
, _pltvgUploadProtocol :: !(Maybe Text)
, _pltvgAccessToken :: !(Maybe Text)
, _pltvgUploadType :: !(Maybe Text)
, _pltvgName :: !Text
, _pltvgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsTensorflowVersionsGet
:: Text
-> ProjectsLocationsTensorflowVersionsGet
projectsLocationsTensorflowVersionsGet pPltvgName_ =
ProjectsLocationsTensorflowVersionsGet'
{ _pltvgXgafv = Nothing
, _pltvgUploadProtocol = Nothing
, _pltvgAccessToken = Nothing
, _pltvgUploadType = Nothing
, _pltvgName = pPltvgName_
, _pltvgCallback = Nothing
}
pltvgXgafv :: Lens' ProjectsLocationsTensorflowVersionsGet (Maybe Xgafv)
pltvgXgafv
= lens _pltvgXgafv (\ s a -> s{_pltvgXgafv = a})
pltvgUploadProtocol :: Lens' ProjectsLocationsTensorflowVersionsGet (Maybe Text)
pltvgUploadProtocol
= lens _pltvgUploadProtocol
(\ s a -> s{_pltvgUploadProtocol = a})
pltvgAccessToken :: Lens' ProjectsLocationsTensorflowVersionsGet (Maybe Text)
pltvgAccessToken
= lens _pltvgAccessToken
(\ s a -> s{_pltvgAccessToken = a})
pltvgUploadType :: Lens' ProjectsLocationsTensorflowVersionsGet (Maybe Text)
pltvgUploadType
= lens _pltvgUploadType
(\ s a -> s{_pltvgUploadType = a})
pltvgName :: Lens' ProjectsLocationsTensorflowVersionsGet Text
pltvgName
= lens _pltvgName (\ s a -> s{_pltvgName = a})
pltvgCallback :: Lens' ProjectsLocationsTensorflowVersionsGet (Maybe Text)
pltvgCallback
= lens _pltvgCallback
(\ s a -> s{_pltvgCallback = a})
instance GoogleRequest
ProjectsLocationsTensorflowVersionsGet where
type Rs ProjectsLocationsTensorflowVersionsGet =
TensorFlowVersion
type Scopes ProjectsLocationsTensorflowVersionsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsTensorflowVersionsGet'{..}
= go _pltvgName _pltvgXgafv _pltvgUploadProtocol
_pltvgAccessToken
_pltvgUploadType
_pltvgCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsTensorflowVersionsGetResource)
mempty