class Google::Apis::TranscoderV1beta1::Job
Transcoding job resource.
Attributes
Job
configuration Corresponds to the JSON property `config` @return [Google::Apis::TranscoderV1beta1::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]
Output
only. List of failure details. This property may contain additional information about the failure when `failure_reason` is present. Note: This feature is not yet available. Corresponds to the JSON property `failureDetails` @return [Array<Google::Apis::TranscoderV1beta1::FailureDetail>]
Output
only. A description of the reason for the failure. This property is always present when `state` is `FAILED`. Corresponds to the JSON property `failureReason` @return [String]
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`). Corresponds to the JSON property `inputUri` @return [String]
The resource name of the job. Format: `projects/`project`/locations/`location`/ jobs/`job“ Corresponds to the JSON property `name` @return [String]
The origin URI. Corresponds to the JSON property `originUri` @return [Google::Apis::TranscoderV1beta1::OriginUri]
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/`. Corresponds to the JSON property `outputUri` @return [String]
Specify the priority of the job. Enter a value between 0 and 100, where 0 is the lowest priority and 100 is the highest priority. The default is 0. Corresponds to the JSON property `priority` @return [Fixnum]
Estimated fractional progress for each step, from `0` to `1`. Corresponds to the JSON property `progress` @return [Google::Apis::TranscoderV1beta1::Progress]
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_v1beta1/classes.rb, line 808 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/transcoder_v1beta1/classes.rb, line 813 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) @failure_details = args[:failure_details] if args.key?(:failure_details) @failure_reason = args[:failure_reason] if args.key?(:failure_reason) @input_uri = args[:input_uri] if args.key?(:input_uri) @name = args[:name] if args.key?(:name) @origin_uri = args[:origin_uri] if args.key?(:origin_uri) @output_uri = args[:output_uri] if args.key?(:output_uri) @priority = args[:priority] if args.key?(:priority) @progress = args[:progress] if args.key?(:progress) @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