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

Job

import type { Job } from "https://googleapis.deno.dev/v1/transcoder:v1.ts";

Transcoding job resource.

interface Job {
batchModePriority?: number;
config?: JobConfig;
readonly createTime?: Date;
readonly endTime?: Date;
readonly error?: Status;
inputUri?: string;
labels?: {
[key: string]: string;
}
;
mode?: "PROCESSING_MODE_UNSPECIFIED" | "PROCESSING_MODE_INTERACTIVE" | "PROCESSING_MODE_BATCH";
name?: string;
optimization?: "OPTIMIZATION_STRATEGY_UNSPECIFIED" | "AUTODETECT" | "DISABLED";
outputUri?: string;
readonly startTime?: Date;
readonly state?:
| "PROCESSING_STATE_UNSPECIFIED"
| "PENDING"
| "RUNNING"
| "SUCCEEDED"
| "FAILED";
templateId?: string;
ttlAfterCompletionDays?: number;
}

§Properties

§
batchModePriority?: number
[src]

The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.

§

The configuration for this job.

§
readonly createTime?: Date
[src]

Output only. The time the job was created.

§
readonly endTime?: Date
[src]

Output only. The time the transcoding finished.

§
readonly error?: Status
[src]

Output only. An error object that describes the reason for the failure. This property is always present when ProcessingState is FAILED.

§
inputUri?: string
[src]

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.config.inputs when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, gs://bucket/inputs/file.mp4). See Supported input and output formats.

§
labels?: {
[key: string]: string;
}
[src]

The labels associated with this job. You can use these to organize and group your jobs.

§
mode?: "PROCESSING_MODE_UNSPECIFIED" | "PROCESSING_MODE_INTERACTIVE" | "PROCESSING_MODE_BATCH"
[src]

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

§
name?: string
[src]

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

§
optimization?: "OPTIMIZATION_STRATEGY_UNSPECIFIED" | "AUTODETECT" | "DISABLED"
[src]

Optional. The optimization strategy of the job. The default is AUTODETECT.

§
outputUri?: string
[src]

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.config.output.uri when using template. URI for the output file(s). For example, gs://my-bucket/outputs/. See Supported input and output formats.

§
readonly startTime?: Date
[src]

Output only. The time the transcoding started.

§
readonly state?: "PROCESSING_STATE_UNSPECIFIED" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED"
[src]

Output only. The current state of the job.

§
templateId?: string
[src]

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset. User defined JobTemplate: {job_template_id}

§
ttlAfterCompletionDays?: number
[src]

Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.