{-# 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.Analyze
(
TrainedModelsAnalyzeResource
, trainedModelsAnalyze
, TrainedModelsAnalyze
, tmaProject
, tmaId
) where
import Network.Google.Prediction.Types
import Network.Google.Prelude
type TrainedModelsAnalyzeResource =
"prediction" :>
"v1.6" :>
"projects" :>
Capture "project" Text :>
"trainedmodels" :>
Capture "id" Text :>
"analyze" :>
QueryParam "alt" AltJSON :> Get '[JSON] Analyze
data TrainedModelsAnalyze = TrainedModelsAnalyze'
{ _tmaProject :: !Text
, _tmaId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
trainedModelsAnalyze
:: Text
-> Text
-> TrainedModelsAnalyze
trainedModelsAnalyze pTmaProject_ pTmaId_ =
TrainedModelsAnalyze'
{ _tmaProject = pTmaProject_
, _tmaId = pTmaId_
}
tmaProject :: Lens' TrainedModelsAnalyze Text
tmaProject
= lens _tmaProject (\ s a -> s{_tmaProject = a})
tmaId :: Lens' TrainedModelsAnalyze Text
tmaId = lens _tmaId (\ s a -> s{_tmaId = a})
instance GoogleRequest TrainedModelsAnalyze where
type Rs TrainedModelsAnalyze = Analyze
type Scopes TrainedModelsAnalyze =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/prediction"]
requestClient TrainedModelsAnalyze'{..}
= go _tmaProject _tmaId (Just AltJSON)
predictionService
where go
= buildClient
(Proxy :: Proxy TrainedModelsAnalyzeResource)
mempty