class Google::Apis::TranscoderV1::Job
Transcoding job resource.
Attributes
Job
configuration Corresponds to the JSON property ‘config` @return [Google::Apis::TranscoderV1::JobConfig]
Output
only. The time the job was created. Corresponds to the JSON property ‘createTime` @return [String]
Output
only. The time the transcoding finished. Corresponds to the JSON property ‘endTime` @return [String]
The ‘Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [ gRPC](github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::TranscoderV1::Status]
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](cloud.google.com/transcoder/docs/ concepts/supported-input-and-output-formats). Corresponds to the JSON property `inputUri` @return [String]
The resource name of the job. Format: ‘projects/`project_number`/locations/` location`/jobs/`job“ Corresponds to the JSON property `name` @return [String]
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](cloud.google.com/transcoder/docs/concepts/ supported-input-and-output-formats). Corresponds to the JSON property `outputUri` @return [String]
Output
only. The time the transcoding started. Corresponds to the JSON property ‘startTime` @return [String]
Output
only. The current state of the job. Corresponds to the JSON property ‘state` @return [String]
Input
only. Specify the ‘template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/`preset_id“
-
User defined JobTemplate: “job_template_id“
Corresponds to the JSON property ‘templateId` @return [String]
Public Class Methods
# File lib/google/apis/transcoder_v1/classes.rb, line 1030 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/transcoder_v1/classes.rb, line 1035 def update!(**args) @config = args[:config] if args.key?(:config) @create_time = args[:create_time] if args.key?(:create_time) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @input_uri = args[:input_uri] if args.key?(:input_uri) @name = args[:name] if args.key?(:name) @output_uri = args[:output_uri] if args.key?(:output_uri) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) @template_id = args[:template_id] if args.key?(:template_id) @ttl_after_completion_days = args[:ttl_after_completion_days] if args.key?(:ttl_after_completion_days) end