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 |
Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.
See: Cloud Scheduler API Reference for cloudscheduler.projects.locations.jobs.resume
.
Synopsis
- type ProjectsLocationsJobsResumeResource = "v1beta1" :> (CaptureMode "name" "resume" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ResumeJobRequest :> Post '[JSON] Job))))))))
- projectsLocationsJobsResume :: ResumeJobRequest -> Text -> ProjectsLocationsJobsResume
- data ProjectsLocationsJobsResume
- pljrXgafv :: Lens' ProjectsLocationsJobsResume (Maybe Xgafv)
- pljrUploadProtocol :: Lens' ProjectsLocationsJobsResume (Maybe Text)
- pljrAccessToken :: Lens' ProjectsLocationsJobsResume (Maybe Text)
- pljrUploadType :: Lens' ProjectsLocationsJobsResume (Maybe Text)
- pljrPayload :: Lens' ProjectsLocationsJobsResume ResumeJobRequest
- pljrName :: Lens' ProjectsLocationsJobsResume Text
- pljrCallback :: Lens' ProjectsLocationsJobsResume (Maybe Text)
REST Resource
type ProjectsLocationsJobsResumeResource = "v1beta1" :> (CaptureMode "name" "resume" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ResumeJobRequest :> Post '[JSON] Job)))))))) Source #
A resource alias for cloudscheduler.projects.locations.jobs.resume
method which the
ProjectsLocationsJobsResume
request conforms to.
Creating a Request
projectsLocationsJobsResume Source #
Creates a value of ProjectsLocationsJobsResume
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsJobsResume Source #
Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.
See: projectsLocationsJobsResume
smart constructor.
Instances
Request Lenses
pljrUploadProtocol :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pljrAccessToken :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #
OAuth access token.
pljrUploadType :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pljrPayload :: Lens' ProjectsLocationsJobsResume ResumeJobRequest Source #
Multipart request metadata.
pljrName :: Lens' ProjectsLocationsJobsResume Text Source #
Required. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
pljrCallback :: Lens' ProjectsLocationsJobsResume (Maybe Text) Source #
JSONP