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: Google Cloud Machine Learning Reference for ml.projects.models.versions.setDefault
.
- type ProjectsModelsVersionsSetDefaultResource = "v1beta1" :> (CaptureMode "name" "setDefault" Text :> (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__SetDefaultVersionRequest :> Post '[JSON] GoogleCloudMlV1beta1__Version))))))))))
- projectsModelsVersionsSetDefault :: GoogleCloudMlV1beta1__SetDefaultVersionRequest -> Text -> ProjectsModelsVersionsSetDefault
- data ProjectsModelsVersionsSetDefault
- pmvsdXgafv :: Lens' ProjectsModelsVersionsSetDefault (Maybe Xgafv)
- pmvsdUploadProtocol :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdPp :: Lens' ProjectsModelsVersionsSetDefault Bool
- pmvsdAccessToken :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdUploadType :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdPayload :: Lens' ProjectsModelsVersionsSetDefault GoogleCloudMlV1beta1__SetDefaultVersionRequest
- pmvsdBearerToken :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
- pmvsdName :: Lens' ProjectsModelsVersionsSetDefault Text
- pmvsdCallback :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text)
REST Resource
type ProjectsModelsVersionsSetDefaultResource = "v1beta1" :> (CaptureMode "name" "setDefault" Text :> (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__SetDefaultVersionRequest :> Post '[JSON] GoogleCloudMlV1beta1__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.
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 GoogleCloudMlV1beta1__SetDefaultVersionRequest Source #
Multipart request metadata.
pmvsdBearerToken :: Lens' ProjectsModelsVersionsSetDefault (Maybe Text) Source #
OAuth bearer token.
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. Authorization: requires `Editor` role on the parent project.