{-# 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.AcceleratorTypes.Get
(
ProjectsLocationsAcceleratorTypesGetResource
, projectsLocationsAcceleratorTypesGet
, ProjectsLocationsAcceleratorTypesGet
, platgXgafv
, platgUploadProtocol
, platgAccessToken
, platgUploadType
, platgName
, platgCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsAcceleratorTypesGetResource =
"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] AcceleratorType
data ProjectsLocationsAcceleratorTypesGet = ProjectsLocationsAcceleratorTypesGet'
{ _platgXgafv :: !(Maybe Xgafv)
, _platgUploadProtocol :: !(Maybe Text)
, _platgAccessToken :: !(Maybe Text)
, _platgUploadType :: !(Maybe Text)
, _platgName :: !Text
, _platgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsAcceleratorTypesGet
:: Text
-> ProjectsLocationsAcceleratorTypesGet
projectsLocationsAcceleratorTypesGet pPlatgName_ =
ProjectsLocationsAcceleratorTypesGet'
{ _platgXgafv = Nothing
, _platgUploadProtocol = Nothing
, _platgAccessToken = Nothing
, _platgUploadType = Nothing
, _platgName = pPlatgName_
, _platgCallback = Nothing
}
platgXgafv :: Lens' ProjectsLocationsAcceleratorTypesGet (Maybe Xgafv)
platgXgafv
= lens _platgXgafv (\ s a -> s{_platgXgafv = a})
platgUploadProtocol :: Lens' ProjectsLocationsAcceleratorTypesGet (Maybe Text)
platgUploadProtocol
= lens _platgUploadProtocol
(\ s a -> s{_platgUploadProtocol = a})
platgAccessToken :: Lens' ProjectsLocationsAcceleratorTypesGet (Maybe Text)
platgAccessToken
= lens _platgAccessToken
(\ s a -> s{_platgAccessToken = a})
platgUploadType :: Lens' ProjectsLocationsAcceleratorTypesGet (Maybe Text)
platgUploadType
= lens _platgUploadType
(\ s a -> s{_platgUploadType = a})
platgName :: Lens' ProjectsLocationsAcceleratorTypesGet Text
platgName
= lens _platgName (\ s a -> s{_platgName = a})
platgCallback :: Lens' ProjectsLocationsAcceleratorTypesGet (Maybe Text)
platgCallback
= lens _platgCallback
(\ s a -> s{_platgCallback = a})
instance GoogleRequest
ProjectsLocationsAcceleratorTypesGet where
type Rs ProjectsLocationsAcceleratorTypesGet =
AcceleratorType
type Scopes ProjectsLocationsAcceleratorTypesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsAcceleratorTypesGet'{..}
= go _platgName _platgXgafv _platgUploadProtocol
_platgAccessToken
_platgUploadType
_platgCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsAcceleratorTypesGetResource)
mempty