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 |
Submit input and request an output against a hosted model.
See: Prediction API Reference for prediction.hostedmodels.predict
.
Synopsis
- type HostedModelsPredictResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("hostedmodels" :> (Capture "hostedModelName" Text :> ("predict" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Input :> Post '[JSON] Output))))))))
- hostedModelsPredict :: Text -> Input -> Text -> HostedModelsPredict
- data HostedModelsPredict
- hmpProject :: Lens' HostedModelsPredict Text
- hmpPayload :: Lens' HostedModelsPredict Input
- hmpHostedModelName :: Lens' HostedModelsPredict Text
REST Resource
type HostedModelsPredictResource = "prediction" :> ("v1.6" :> ("projects" :> (Capture "project" Text :> ("hostedmodels" :> (Capture "hostedModelName" Text :> ("predict" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Input :> Post '[JSON] Output)))))))) Source #
A resource alias for prediction.hostedmodels.predict
method which the
HostedModelsPredict
request conforms to.
Creating a Request
Creates a value of HostedModelsPredict
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data HostedModelsPredict Source #
Submit input and request an output against a hosted model.
See: hostedModelsPredict
smart constructor.
Instances
Request Lenses
hmpProject :: Lens' HostedModelsPredict Text Source #
The project associated with the model.
hmpPayload :: Lens' HostedModelsPredict Input Source #
Multipart request metadata.
hmpHostedModelName :: Lens' HostedModelsPredict Text Source #
The name of a hosted model.