| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Prediction.TrainedModels.Insert
Description
Train a Prediction API model.
See: Prediction API Reference for prediction.trainedmodels.insert.
Synopsis
- type TrainedModelsInsertResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("trainedmodels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Insert :> Post '[JSON] Insert2))))))
- trainedModelsInsert :: Text -> Insert -> TrainedModelsInsert
- data TrainedModelsInsert
- tmiProject :: Lens' TrainedModelsInsert Text
- tmiPayload :: Lens' TrainedModelsInsert Insert
REST Resource
type TrainedModelsInsertResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("trainedmodels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Insert :> Post '[JSON] Insert2)))))) Source #
A resource alias for prediction.trainedmodels.insert method which the
TrainedModelsInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Insert | |
| -> TrainedModelsInsert |
Creates a value of TrainedModelsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TrainedModelsInsert Source #
Train a Prediction API model.
See: trainedModelsInsert smart constructor.
Instances
Request Lenses
tmiProject :: Lens' TrainedModelsInsert Text Source #
The project associated with the model.
tmiPayload :: Lens' TrainedModelsInsert Insert Source #
Multipart request metadata.