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 new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.
See: Cloud Machine Learning Engine Reference for ml.projects.models.versions.create
.
Synopsis
- type ProjectsModelsVersionsCreateResource = "v1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Version :> Post '[JSON] GoogleLongrunning__Operation)))))))))
- projectsModelsVersionsCreate :: Text -> GoogleCloudMlV1__Version -> ProjectsModelsVersionsCreate
- data ProjectsModelsVersionsCreate
- pmvcParent :: Lens' ProjectsModelsVersionsCreate Text
- pmvcXgafv :: Lens' ProjectsModelsVersionsCreate (Maybe Xgafv)
- pmvcUploadProtocol :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcAccessToken :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcUploadType :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcPayload :: Lens' ProjectsModelsVersionsCreate GoogleCloudMlV1__Version
- pmvcCallback :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
REST Resource
type ProjectsModelsVersionsCreateResource = "v1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Version :> Post '[JSON] GoogleLongrunning__Operation))))))))) Source #
A resource alias for ml.projects.models.versions.create
method which the
ProjectsModelsVersionsCreate
request conforms to.
Creating a Request
projectsModelsVersionsCreate Source #
Creates a value of ProjectsModelsVersionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsModelsVersionsCreate Source #
Creates a new version of a model from a trained TensorFlow model. If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.
See: projectsModelsVersionsCreate
smart constructor.
Instances
Request Lenses
pmvcParent :: Lens' ProjectsModelsVersionsCreate Text Source #
Required. The name of the model.
pmvcUploadProtocol :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmvcAccessToken :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
OAuth access token.
pmvcUploadType :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmvcPayload :: Lens' ProjectsModelsVersionsCreate GoogleCloudMlV1__Version Source #
Multipart request metadata.
pmvcCallback :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
JSONP