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 |
Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.
See: Cloud Machine Learning Engine Reference for ml.projects.models.versions.setDefault
.
Synopsis
- type ProjectsModelsVersionsSetDefaultResource = "v1" :> (CaptureMode "name" "setDefault" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__SetDefaultVersionRequest :> Post '[JSON] GoogleCloudMlV1__Version))))))))
- projectsModelsVersionsSetDefault :: GoogleCloudMlV1__SetDefaultVersionRequest -> Text -> ProjectsModelsVersionsSetDefault
- data ProjectsModelsVersionsSetDefault
- pmvsdXgafv :: Lens' ProjectsModelsVersionsSetDefault (Maybe Xgafv)
- pmvsdUploadProtocol :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdAccessToken :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdUploadType :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdPayload :: Lens' ProjectsModelsVersionsSetDefault GoogleCloudMlV1__SetDefaultVersionRequest
- pmvsdName :: Lens' ProjectsModelsVersionsSetDefault Text
- pmvsdCallback :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
REST Resource
type ProjectsModelsVersionsSetDefaultResource = "v1" :> (CaptureMode "name" "setDefault" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__SetDefaultVersionRequest :> Post '[JSON] GoogleCloudMlV1__Version)))))))) Source #
A resource alias for ml.projects.models.versions.setDefault
method which the
ProjectsModelsVersionsSetDefault
request conforms to.
Creating a Request
projectsModelsVersionsSetDefault Source #
Creates a value of ProjectsModelsVersionsSetDefault
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsModelsVersionsSetDefault Source #
Designates a version to be the default for the model. The default version is used for prediction requests made against the model that don't specify a version. The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.
See: projectsModelsVersionsSetDefault
smart constructor.
Instances
Request Lenses
pmvsdXgafv :: Lens' ProjectsModelsVersionsSetDefault (Maybe Xgafv) Source #
V1 error format.
pmvsdUploadProtocol :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmvsdAccessToken :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #
OAuth access token.
pmvsdUploadType :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmvsdPayload :: Lens' ProjectsModelsVersionsSetDefault GoogleCloudMlV1__SetDefaultVersionRequest Source #
Multipart request metadata.
pmvsdName :: Lens' ProjectsModelsVersionsSetDefault Text Source #
Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list.