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 |
Submits a job to a cluster.
See: Cloud Dataproc API Reference for dataproc.projects.regions.jobs.submit
.
Synopsis
- type ProjectsRegionsJobsSubmitResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs:submit" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubmitJobRequest :> Post '[JSON] Job))))))))))))
- projectsRegionsJobsSubmit :: SubmitJobRequest -> Text -> Text -> ProjectsRegionsJobsSubmit
- data ProjectsRegionsJobsSubmit
- prjsXgafv :: Lens' ProjectsRegionsJobsSubmit (Maybe Xgafv)
- prjsUploadProtocol :: Lens' ProjectsRegionsJobsSubmit (Maybe Text)
- prjsAccessToken :: Lens' ProjectsRegionsJobsSubmit (Maybe Text)
- prjsUploadType :: Lens' ProjectsRegionsJobsSubmit (Maybe Text)
- prjsPayload :: Lens' ProjectsRegionsJobsSubmit SubmitJobRequest
- prjsRegion :: Lens' ProjectsRegionsJobsSubmit Text
- prjsProjectId :: Lens' ProjectsRegionsJobsSubmit Text
- prjsCallback :: Lens' ProjectsRegionsJobsSubmit (Maybe Text)
REST Resource
type ProjectsRegionsJobsSubmitResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs:submit" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubmitJobRequest :> Post '[JSON] Job)))))))))))) Source #
A resource alias for dataproc.projects.regions.jobs.submit
method which the
ProjectsRegionsJobsSubmit
request conforms to.
Creating a Request
projectsRegionsJobsSubmit Source #
Creates a value of ProjectsRegionsJobsSubmit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsJobsSubmit Source #
Submits a job to a cluster.
See: projectsRegionsJobsSubmit
smart constructor.
Instances
Request Lenses
prjsUploadProtocol :: Lens' ProjectsRegionsJobsSubmit (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prjsAccessToken :: Lens' ProjectsRegionsJobsSubmit (Maybe Text) Source #
OAuth access token.
prjsUploadType :: Lens' ProjectsRegionsJobsSubmit (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prjsPayload :: Lens' ProjectsRegionsJobsSubmit SubmitJobRequest Source #
Multipart request metadata.
prjsRegion :: Lens' ProjectsRegionsJobsSubmit Text Source #
Required. The Cloud Dataproc region in which to handle the request.
prjsProjectId :: Lens' ProjectsRegionsJobsSubmit Text Source #
Required. The ID of the Google Cloud Platform project that the job belongs to.
prjsCallback :: Lens' ProjectsRegionsJobsSubmit (Maybe Text) Source #
JSONP