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 |
Performs prediction on the data in the request. Cloud ML Engine implements a custom `predict` verb on top of an HTTP POST method.
For details of the request and response format, see the **guide to the predict request format**.
See: Cloud Machine Learning Engine Reference for ml.projects.predict
.
Synopsis
- type ProjectsPredictResource = "v1" :> (CaptureMode "name" "predict" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__PredictRequest :> Post '[JSON] GoogleAPI__HTTPBody))))))))
- projectsPredict :: GoogleCloudMlV1__PredictRequest -> Text -> ProjectsPredict
- data ProjectsPredict
- ppXgafv :: Lens' ProjectsPredict (Maybe Xgafv)
- ppUploadProtocol :: Lens' ProjectsPredict (Maybe Text)
- ppAccessToken :: Lens' ProjectsPredict (Maybe Text)
- ppUploadType :: Lens' ProjectsPredict (Maybe Text)
- ppPayload :: Lens' ProjectsPredict GoogleCloudMlV1__PredictRequest
- ppName :: Lens' ProjectsPredict Text
- ppCallback :: Lens' ProjectsPredict (Maybe Text)
REST Resource
type ProjectsPredictResource = "v1" :> (CaptureMode "name" "predict" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__PredictRequest :> Post '[JSON] GoogleAPI__HTTPBody)))))))) Source #
A resource alias for ml.projects.predict
method which the
ProjectsPredict
request conforms to.
Creating a Request
Creates a value of ProjectsPredict
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsPredict Source #
Performs prediction on the data in the request. Cloud ML Engine implements a custom `predict` verb on top of an HTTP POST method.
For details of the request and response format, see the **guide to the predict request format**.
See: projectsPredict
smart constructor.
Instances
Request Lenses
ppUploadProtocol :: Lens' ProjectsPredict (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppAccessToken :: Lens' ProjectsPredict (Maybe Text) Source #
OAuth access token.
ppUploadType :: Lens' ProjectsPredict (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppPayload :: Lens' ProjectsPredict GoogleCloudMlV1__PredictRequest Source #
Multipart request metadata.
ppName :: Lens' ProjectsPredict Text Source #
Required. The resource name of a model or a version. Authorization: requires the `predict` permission on the specified resource.
ppCallback :: Lens' ProjectsPredict (Maybe Text) Source #
JSONP