CloudScheduler
import { CloudScheduler } from "https://googleapis.deno.dev/v1/cloudscheduler:v1.ts";
Creates and manages jobs run on a regular recurring schedule.
§Methods
Lists jobs.
Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID
.
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.
Optionally caller-specified in CreateJob, after which it becomes output only. 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.
Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via ResumeJob. The state of the job is stored in state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.
Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID
.
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.
Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID
.
Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.
Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID
.
Lists information about the supported locations for this service.
The resource that owns the locations collection, if applicable.