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: Google Cloud Machine Learning Reference for ml.projects.models.versions.create
.
- type ProjectsModelsVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1beta1__Version :> Post '[JSON] GoogleLongrunning__Operation)))))))))))
- projectsModelsVersionsCreate :: Text -> GoogleCloudMlV1beta1__Version -> ProjectsModelsVersionsCreate
- data ProjectsModelsVersionsCreate
- pmvcParent :: Lens' ProjectsModelsVersionsCreate Text
- pmvcXgafv :: Lens' ProjectsModelsVersionsCreate (Maybe Xgafv)
- pmvcUploadProtocol :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcPp :: Lens' ProjectsModelsVersionsCreate Bool
- pmvcAccessToken :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcUploadType :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcPayload :: Lens' ProjectsModelsVersionsCreate GoogleCloudMlV1beta1__Version
- pmvcBearerToken :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
- pmvcCallback :: Lens' ProjectsModelsVersionsCreate (Maybe Text)
REST Resource
type ProjectsModelsVersionsCreateResource = "v1beta1" :> (Capture "parent" Text :> ("versions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1beta1__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.
Request Lenses
pmvcParent :: Lens' ProjectsModelsVersionsCreate Text Source #
Required. The name of the model. Authorization: requires `Editor` role on the parent project.
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 GoogleCloudMlV1beta1__Version Source #
Multipart request metadata.
pmvcBearerToken :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
OAuth bearer token.
pmvcCallback :: Lens' ProjectsModelsVersionsCreate (Maybe Text) Source #
JSONP