{-# 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.Prediction.TrainedModels.Get
(
TrainedModelsGetResource
, trainedModelsGet
, TrainedModelsGet
, tmgProject
, tmgId
) where
import Network.Google.Prediction.Types
import Network.Google.Prelude
type TrainedModelsGetResource =
"prediction" :>
"v1.6" :>
"projects" :>
Capture "project" Text :>
"trainedmodels" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Insert2
data TrainedModelsGet = TrainedModelsGet'
{ _tmgProject :: !Text
, _tmgId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
trainedModelsGet
:: Text
-> Text
-> TrainedModelsGet
trainedModelsGet pTmgProject_ pTmgId_ =
TrainedModelsGet'
{ _tmgProject = pTmgProject_
, _tmgId = pTmgId_
}
tmgProject :: Lens' TrainedModelsGet Text
tmgProject
= lens _tmgProject (\ s a -> s{_tmgProject = a})
tmgId :: Lens' TrainedModelsGet Text
tmgId = lens _tmgId (\ s a -> s{_tmgId = a})
instance GoogleRequest TrainedModelsGet where
type Rs TrainedModelsGet = Insert2
type Scopes TrainedModelsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/prediction"]
requestClient TrainedModelsGet'{..}
= go _tmgProject _tmgId (Just AltJSON)
predictionService
where go
= buildClient
(Proxy :: Proxy TrainedModelsGetResource)
mempty