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 |
Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create.
See: Cloud Machine Learning Engine Reference for ml.projects.models.create
.
Synopsis
- type ProjectsModelsCreateResource = "v1" :> (Capture "parent" Text :> ("models" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Model :> Post '[JSON] GoogleCloudMlV1__Model)))))))))
- projectsModelsCreate :: Text -> GoogleCloudMlV1__Model -> ProjectsModelsCreate
- data ProjectsModelsCreate
- pmcParent :: Lens' ProjectsModelsCreate Text
- pmcXgafv :: Lens' ProjectsModelsCreate (Maybe Xgafv)
- pmcUploadProtocol :: Lens' ProjectsModelsCreate (Maybe Text)
- pmcAccessToken :: Lens' ProjectsModelsCreate (Maybe Text)
- pmcUploadType :: Lens' ProjectsModelsCreate (Maybe Text)
- pmcPayload :: Lens' ProjectsModelsCreate GoogleCloudMlV1__Model
- pmcCallback :: Lens' ProjectsModelsCreate (Maybe Text)
REST Resource
type ProjectsModelsCreateResource = "v1" :> (Capture "parent" Text :> ("models" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Model :> Post '[JSON] GoogleCloudMlV1__Model))))))))) Source #
A resource alias for ml.projects.models.create
method which the
ProjectsModelsCreate
request conforms to.
Creating a Request
Creates a value of ProjectsModelsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsModelsCreate Source #
Creates a model which will later contain one or more versions. You must add at least one version before you can request predictions from the model. Add versions by calling projects.models.versions.create.
See: projectsModelsCreate
smart constructor.
Instances
Request Lenses
pmcUploadProtocol :: Lens' ProjectsModelsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmcAccessToken :: Lens' ProjectsModelsCreate (Maybe Text) Source #
OAuth access token.
pmcUploadType :: Lens' ProjectsModelsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmcPayload :: Lens' ProjectsModelsCreate GoogleCloudMlV1__Model Source #
Multipart request metadata.
pmcCallback :: Lens' ProjectsModelsCreate (Maybe Text) Source #
JSONP