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 job in a project.
See: Cloud Dataproc API Reference for dataproc.projects.regions.jobs.patch
.
Synopsis
- type ProjectsRegionsJobsPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs" :> (Capture "jobId" 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] Job :> Patch '[JSON] Job))))))))))))))
- projectsRegionsJobsPatch :: Text -> Job -> Text -> Text -> ProjectsRegionsJobsPatch
- data ProjectsRegionsJobsPatch
- prjpXgafv :: Lens' ProjectsRegionsJobsPatch (Maybe Xgafv)
- prjpJobId :: Lens' ProjectsRegionsJobsPatch Text
- prjpUploadProtocol :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
- prjpUpdateMask :: Lens' ProjectsRegionsJobsPatch (Maybe GFieldMask)
- prjpAccessToken :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
- prjpUploadType :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
- prjpPayload :: Lens' ProjectsRegionsJobsPatch Job
- prjpRegion :: Lens' ProjectsRegionsJobsPatch Text
- prjpProjectId :: Lens' ProjectsRegionsJobsPatch Text
- prjpCallback :: Lens' ProjectsRegionsJobsPatch (Maybe Text)
REST Resource
type ProjectsRegionsJobsPatchResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs" :> (Capture "jobId" 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] Job :> Patch '[JSON] Job)))))))))))))) Source #
A resource alias for dataproc.projects.regions.jobs.patch
method which the
ProjectsRegionsJobsPatch
request conforms to.
Creating a Request
projectsRegionsJobsPatch Source #
Creates a value of ProjectsRegionsJobsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsJobsPatch Source #
Updates a job in a project.
See: projectsRegionsJobsPatch
smart constructor.
Instances
Request Lenses
prjpUploadProtocol :: Lens' ProjectsRegionsJobsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prjpUpdateMask :: Lens' ProjectsRegionsJobsPatch (Maybe GFieldMask) Source #
Required. Specifies the path, relative to Job
, of the field to update.
For example, to update the labels of a Job the update_mask
parameter
would be specified as labels
, and the PATCH request body would specify
the new value. Note: Currently, labels
is the only field that can
be updated.
prjpAccessToken :: Lens' ProjectsRegionsJobsPatch (Maybe Text) Source #
OAuth access token.
prjpUploadType :: Lens' ProjectsRegionsJobsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prjpPayload :: Lens' ProjectsRegionsJobsPatch Job Source #
Multipart request metadata.
prjpRegion :: Lens' ProjectsRegionsJobsPatch Text Source #
Required. The Cloud Dataproc region in which to handle the request.
prjpProjectId :: Lens' ProjectsRegionsJobsPatch Text Source #
Required. The ID of the Google Cloud Platform project that the job belongs to.
prjpCallback :: Lens' ProjectsRegionsJobsPatch (Maybe Text) Source #
JSONP