Class: Google::Apis::TranscoderV1beta1::Job
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
Transcoding job resource.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::TranscoderV1beta1::JobConfig
Job configuration Corresponds to the JSON property
config
. -
#create_time ⇒ String
Output only.
-
#end_time ⇒ String
Output only.
-
#failure_details ⇒ Array<Google::Apis::TranscoderV1beta1::FailureDetail>
Output only.
-
#failure_reason ⇒ String
Output only.
-
#input_uri ⇒ String
Input only.
-
#name ⇒ String
The resource name of the job.
-
#origin_uri ⇒ Google::Apis::TranscoderV1beta1::OriginUri
The origin URI.
-
#output_uri ⇒ String
Input only.
-
#priority ⇒ Fixnum
Specify the priority of the job.
-
#progress ⇒ Google::Apis::TranscoderV1beta1::Progress
Estimated fractional progress for each step, from
0
to1
. -
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#template_id ⇒ String
Input only.
-
#ttl_after_completion_days ⇒ Fixnum
Job time to live value in days, which will be effective after job completion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Job
constructor
A new instance of Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Job
Returns a new instance of Job.
806 807 808 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 806 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::TranscoderV1beta1::JobConfig
Job configuration
Corresponds to the JSON property config
720 721 722 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 720 def config @config end |
#create_time ⇒ String
Output only. The time the job was created.
Corresponds to the JSON property createTime
725 726 727 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 725 def create_time @create_time end |
#end_time ⇒ String
Output only. The time the transcoding finished.
Corresponds to the JSON property endTime
730 731 732 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 730 def end_time @end_time end |
#failure_details ⇒ Array<Google::Apis::TranscoderV1beta1::FailureDetail>
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
737 738 739 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 737 def failure_details @failure_details end |
#failure_reason ⇒ String
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
743 744 745 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 743 def failure_reason @failure_reason end |
#input_uri ⇒ 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. It must be stored in Cloud Storage. For example,
gs://bucket/inputs/file.mp4
.
Corresponds to the JSON property inputUri
751 752 753 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 751 def input_uri @input_uri end |
#name ⇒ String
The resource name of the job. Format: projects/
project/locations/
location/
jobs/
job`
Corresponds to the JSON property
name`
757 758 759 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 757 def name @name end |
#origin_uri ⇒ Google::Apis::TranscoderV1beta1::OriginUri
The origin URI.
Corresponds to the JSON property originUri
762 763 764 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 762 def origin_uri @origin_uri end |
#output_uri ⇒ 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/
.
Corresponds to the JSON property outputUri
769 770 771 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 769 def output_uri @output_uri end |
#priority ⇒ Fixnum
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
775 776 777 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 775 def priority @priority end |
#progress ⇒ Google::Apis::TranscoderV1beta1::Progress
Estimated fractional progress for each step, from 0
to 1
.
Corresponds to the JSON property progress
780 781 782 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 780 def progress @progress end |
#start_time ⇒ String
Output only. The time the transcoding started.
Corresponds to the JSON property startTime
785 786 787 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 785 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the job.
Corresponds to the JSON property state
790 791 792 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 790 def state @state end |
#template_id ⇒ 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 propertytemplateId
797 798 799 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 797 def template_id @template_id end |
#ttl_after_completion_days ⇒ Fixnum
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.
Corresponds to the JSON property ttlAfterCompletionDays
804 805 806 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 804 def ttl_after_completion_days @ttl_after_completion_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 811 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 |