Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CloudScheduler

import { CloudScheduler } from "https://googleapis.deno.dev/v1/cloudscheduler:v1.ts";

Creates and manages jobs run on a regular recurring schedule.

class CloudScheduler {
constructor(client?: CredentialsClient, baseUrl?: string);
async operationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>;
async operationsDelete(name: string): Promise<Empty>;
async operationsGet(name: string): Promise<Operation>;
async operationsList(name: string, opts?: OperationsListOptions): Promise<ListOperationsResponse>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsJobsCreate(parent: string, req: Job): Promise<Job>;
async projectsLocationsJobsDelete(name: string): Promise<Empty>;
async projectsLocationsJobsGet(name: string): Promise<Job>;
async projectsLocationsJobsList(parent: string, opts?: ProjectsLocationsJobsListOptions): Promise<ListJobsResponse>;
async projectsLocationsJobsPatch(
name: string,
req: Job,
): Promise<Job>;
async projectsLocationsJobsPause(name: string, req: PauseJobRequest): Promise<Job>;
async projectsLocationsJobsResume(name: string, req: ResumeJobRequest): Promise<Job>;
async projectsLocationsJobsRun(name: string, req: RunJobRequest): Promise<Job>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
}

§Constructors

§
new CloudScheduler(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
operationsCancel(name: string, req: CancelOperationRequest): Promise<Empty>
[src]

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

@param name

The name of the operation resource to be cancelled.

§
operationsDelete(name: string): Promise<Empty>
[src]

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

@param name

The name of the operation resource to be deleted.

§
operationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
operationsList(name: string, opts?: OperationsListOptions): Promise<ListOperationsResponse>
[src]

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

@param name

The name of the operation's parent resource.

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsJobsCreate(parent: string, req: Job): Promise<Job>
[src]

Creates a job.

@param parent

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

§
projectsLocationsJobsDelete(name: string): Promise<Empty>
[src]

Deletes a job.

@param name

Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

§
projectsLocationsJobsGet(name: string): Promise<Job>
[src]

Gets a job.

@param name

Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

§
projectsLocationsJobsList(parent: string, opts?: ProjectsLocationsJobsListOptions): Promise<ListJobsResponse>
[src]

Lists jobs.

@param parent

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID.

§
projectsLocationsJobsPatch(name: string, req: Job, opts?: ProjectsLocationsJobsPatchOptions): Promise<Job>
[src]

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.

@param name

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.

§
projectsLocationsJobsPause(name: string, req: PauseJobRequest): Promise<Job>
[src]

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.

@param name

Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

§
projectsLocationsJobsResume(name: string, req: ResumeJobRequest): Promise<Job>
[src]

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.

@param name

Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

§
projectsLocationsJobsRun(name: string, req: RunJobRequest): Promise<Job>
[src]

Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.

@param name

Required. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service.

@param name

The resource that owns the locations collection, if applicable.