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 |
Updates a specific model resource. Currently the only supported fields to update are `description` and `default_version.name`.
See: Cloud Machine Learning Engine Reference for ml.projects.models.patch
.
Synopsis
- type ProjectsModelsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Model :> Patch '[JSON] GoogleLongrunning__Operation)))))))))
- projectsModelsPatch :: GoogleCloudMlV1__Model -> Text -> ProjectsModelsPatch
- data ProjectsModelsPatch
- pmpXgafv :: Lens' ProjectsModelsPatch (Maybe Xgafv)
- pmpUploadProtocol :: Lens' ProjectsModelsPatch (Maybe Text)
- pmpUpdateMask :: Lens' ProjectsModelsPatch (Maybe GFieldMask)
- pmpAccessToken :: Lens' ProjectsModelsPatch (Maybe Text)
- pmpUploadType :: Lens' ProjectsModelsPatch (Maybe Text)
- pmpPayload :: Lens' ProjectsModelsPatch GoogleCloudMlV1__Model
- pmpName :: Lens' ProjectsModelsPatch Text
- pmpCallback :: Lens' ProjectsModelsPatch (Maybe Text)
REST Resource
type ProjectsModelsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleCloudMlV1__Model :> Patch '[JSON] GoogleLongrunning__Operation))))))))) Source #
A resource alias for ml.projects.models.patch
method which the
ProjectsModelsPatch
request conforms to.
Creating a Request
Creates a value of ProjectsModelsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsModelsPatch Source #
Updates a specific model resource. Currently the only supported fields to update are `description` and `default_version.name`.
See: projectsModelsPatch
smart constructor.
Instances
Request Lenses
pmpUploadProtocol :: Lens' ProjectsModelsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pmpUpdateMask :: Lens' ProjectsModelsPatch (Maybe GFieldMask) Source #
Required. Specifies the path, relative to `Model`, of the field to update. For example, to change the description of a model to "foo" and set its default version to "version_1", the `update_mask` parameter would be specified as `description`, `default_version.name`, and the `PATCH` request body would specify the new value, as follows: { "description": "foo", "defaultVersion": { "name":"version_1" } } Currently the supported update masks are `description` and `default_version.name`.
pmpAccessToken :: Lens' ProjectsModelsPatch (Maybe Text) Source #
OAuth access token.
pmpUploadType :: Lens' ProjectsModelsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pmpPayload :: Lens' ProjectsModelsPatch GoogleCloudMlV1__Model Source #
Multipart request metadata.
pmpCallback :: Lens' ProjectsModelsPatch (Maybe Text) Source #
JSONP