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. If successful, the updated Job is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.
See: Cloud Scheduler API Reference for cloudscheduler.projects.locations.jobs.patch
.
Synopsis
- type ProjectsLocationsJobsPatchResource = "v1beta1" :> (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] Job :> Patch '[JSON] Job)))))))))
- projectsLocationsJobsPatch :: Job -> Text -> ProjectsLocationsJobsPatch
- data ProjectsLocationsJobsPatch
- pljpXgafv :: Lens' ProjectsLocationsJobsPatch (Maybe Xgafv)
- pljpUploadProtocol :: Lens' ProjectsLocationsJobsPatch (Maybe Text)
- pljpUpdateMask :: Lens' ProjectsLocationsJobsPatch (Maybe GFieldMask)
- pljpAccessToken :: Lens' ProjectsLocationsJobsPatch (Maybe Text)
- pljpUploadType :: Lens' ProjectsLocationsJobsPatch (Maybe Text)
- pljpPayload :: Lens' ProjectsLocationsJobsPatch Job
- pljpName :: Lens' ProjectsLocationsJobsPatch Text
- pljpCallback :: Lens' ProjectsLocationsJobsPatch (Maybe Text)
REST Resource
type ProjectsLocationsJobsPatchResource = "v1beta1" :> (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] Job :> Patch '[JSON] Job))))))))) Source #
A resource alias for cloudscheduler.projects.locations.jobs.patch
method which the
ProjectsLocationsJobsPatch
request conforms to.
Creating a Request
projectsLocationsJobsPatch Source #
Creates a value of ProjectsLocationsJobsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsJobsPatch Source #
Updates a job. If successful, the updated Job is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.
See: projectsLocationsJobsPatch
smart constructor.
Instances
Request Lenses
pljpUploadProtocol :: Lens' ProjectsLocationsJobsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pljpUpdateMask :: Lens' ProjectsLocationsJobsPatch (Maybe GFieldMask) Source #
A mask used to specify which fields of the job are being updated.
pljpAccessToken :: Lens' ProjectsLocationsJobsPatch (Maybe Text) Source #
OAuth access token.
pljpUploadType :: Lens' ProjectsLocationsJobsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pljpPayload :: Lens' ProjectsLocationsJobsPatch Job Source #
Multipart request metadata.
pljpName :: Lens' ProjectsLocationsJobsPatch Text Source #
The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.
pljpCallback :: Lens' ProjectsLocationsJobsPatch (Maybe Text) Source #
JSONP