{-# 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.Delete
(
TrainedModelsDeleteResource
, trainedModelsDelete
, TrainedModelsDelete
, tmdProject
, tmdId
) where
import Network.Google.Prediction.Types
import Network.Google.Prelude
type TrainedModelsDeleteResource =
"prediction" :>
"v1.6" :>
"projects" :>
Capture "project" Text :>
"trainedmodels" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data TrainedModelsDelete = TrainedModelsDelete'
{ _tmdProject :: !Text
, _tmdId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
trainedModelsDelete
:: Text
-> Text
-> TrainedModelsDelete
trainedModelsDelete pTmdProject_ pTmdId_ =
TrainedModelsDelete'
{ _tmdProject = pTmdProject_
, _tmdId = pTmdId_
}
tmdProject :: Lens' TrainedModelsDelete Text
tmdProject
= lens _tmdProject (\ s a -> s{_tmdProject = a})
tmdId :: Lens' TrainedModelsDelete Text
tmdId = lens _tmdId (\ s a -> s{_tmdId = a})
instance GoogleRequest TrainedModelsDelete where
type Rs TrainedModelsDelete = ()
type Scopes TrainedModelsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/prediction"]
requestClient TrainedModelsDelete'{..}
= go _tmdProject _tmdId (Just AltJSON)
predictionService
where go
= buildClient
(Proxy :: Proxy TrainedModelsDeleteResource)
mempty