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 job resource. Currently the only supported fields to update are `labels`.
See: Cloud Machine Learning Engine Reference for ml.projects.jobs.patch
.
Synopsis
- type ProjectsJobsPatchResource = "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__Job :> Patch '[JSON] GoogleCloudMlV1__Job)))))))))
- projectsJobsPatch :: GoogleCloudMlV1__Job -> Text -> ProjectsJobsPatch
- data ProjectsJobsPatch
- pjpXgafv :: Lens' ProjectsJobsPatch (Maybe Xgafv)
- pjpUploadProtocol :: Lens' ProjectsJobsPatch (Maybe Text)
- pjpUpdateMask :: Lens' ProjectsJobsPatch (Maybe GFieldMask)
- pjpAccessToken :: Lens' ProjectsJobsPatch (Maybe Text)
- pjpUploadType :: Lens' ProjectsJobsPatch (Maybe Text)
- pjpPayload :: Lens' ProjectsJobsPatch GoogleCloudMlV1__Job
- pjpName :: Lens' ProjectsJobsPatch Text
- pjpCallback :: Lens' ProjectsJobsPatch (Maybe Text)
REST Resource
type ProjectsJobsPatchResource = "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__Job :> Patch '[JSON] GoogleCloudMlV1__Job))))))))) Source #
A resource alias for ml.projects.jobs.patch
method which the
ProjectsJobsPatch
request conforms to.
Creating a Request
Creates a value of ProjectsJobsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsJobsPatch Source #
Updates a specific job resource. Currently the only supported fields to update are `labels`.
See: projectsJobsPatch
smart constructor.
Instances
Request Lenses
pjpUploadProtocol :: Lens' ProjectsJobsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pjpUpdateMask :: Lens' ProjectsJobsPatch (Maybe GFieldMask) Source #
Required. Specifies the path, relative to `Job`, of the field to update. To adopt etag mechanism, include `etag` field in the mask, and include the `etag` value in your job resource. For example, to change the labels of a job, the `update_mask` parameter would be specified as `labels`, `etag`, and the `PATCH` request body would specify the new value, as follows: { "labels": { "owner": "Google", "color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If `etag` matches the one on the server, the labels of the job will be replaced with the given ones, and the server end `etag` will be recalculated. Currently the only supported update masks are `labels` and `etag`.
pjpAccessToken :: Lens' ProjectsJobsPatch (Maybe Text) Source #
OAuth access token.
pjpUploadType :: Lens' ProjectsJobsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pjpPayload :: Lens' ProjectsJobsPatch GoogleCloudMlV1__Job Source #
Multipart request metadata.
pjpCallback :: Lens' ProjectsJobsPatch (Maybe Text) Source #
JSONP