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 |
Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.
See: Cloud Dataproc API Reference for dataproc.projects.regions.jobs.cancel
.
Synopsis
- type ProjectsRegionsJobsCancelResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs" :> (CaptureMode "jobId" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CancelJobRequest :> Post '[JSON] Job)))))))))))))
- projectsRegionsJobsCancel :: Text -> CancelJobRequest -> Text -> Text -> ProjectsRegionsJobsCancel
- data ProjectsRegionsJobsCancel
- prjcXgafv :: Lens' ProjectsRegionsJobsCancel (Maybe Xgafv)
- prjcJobId :: Lens' ProjectsRegionsJobsCancel Text
- prjcUploadProtocol :: Lens' ProjectsRegionsJobsCancel (Maybe Text)
- prjcAccessToken :: Lens' ProjectsRegionsJobsCancel (Maybe Text)
- prjcUploadType :: Lens' ProjectsRegionsJobsCancel (Maybe Text)
- prjcPayload :: Lens' ProjectsRegionsJobsCancel CancelJobRequest
- prjcRegion :: Lens' ProjectsRegionsJobsCancel Text
- prjcProjectId :: Lens' ProjectsRegionsJobsCancel Text
- prjcCallback :: Lens' ProjectsRegionsJobsCancel (Maybe Text)
REST Resource
type ProjectsRegionsJobsCancelResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("regions" :> (Capture "region" Text :> ("jobs" :> (CaptureMode "jobId" "cancel" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CancelJobRequest :> Post '[JSON] Job))))))))))))) Source #
A resource alias for dataproc.projects.regions.jobs.cancel
method which the
ProjectsRegionsJobsCancel
request conforms to.
Creating a Request
projectsRegionsJobsCancel Source #
:: Text | |
-> CancelJobRequest | |
-> Text | |
-> Text | |
-> ProjectsRegionsJobsCancel |
Creates a value of ProjectsRegionsJobsCancel
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsJobsCancel Source #
Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.
See: projectsRegionsJobsCancel
smart constructor.
Instances
Request Lenses
prjcUploadProtocol :: Lens' ProjectsRegionsJobsCancel (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prjcAccessToken :: Lens' ProjectsRegionsJobsCancel (Maybe Text) Source #
OAuth access token.
prjcUploadType :: Lens' ProjectsRegionsJobsCancel (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prjcPayload :: Lens' ProjectsRegionsJobsCancel CancelJobRequest Source #
Multipart request metadata.
prjcRegion :: Lens' ProjectsRegionsJobsCancel Text Source #
Required. The Cloud Dataproc region in which to handle the request.
prjcProjectId :: Lens' ProjectsRegionsJobsCancel Text Source #
Required. The ID of the Google Cloud Platform project that the job belongs to.
prjcCallback :: Lens' ProjectsRegionsJobsCancel (Maybe Text) Source #
JSONP