Class: Google::Apis::TranscoderV1::Job
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
Transcoding job resource.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::TranscoderV1::JobConfig
Job configuration Corresponds to the JSON property
config. -
#create_time ⇒ String
Output only.
-
#end_time ⇒ String
Output only.
-
#error ⇒ Google::Apis::TranscoderV1::Status
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#input_uri ⇒ String
Input only.
-
#labels ⇒ Hash<String,String>
The labels associated with this job.
-
#name ⇒ String
The resource name of the job.
-
#output_uri ⇒ String
Input only.
-
#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.
1115 1116 1117 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1115 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::TranscoderV1::JobConfig
Job configuration
Corresponds to the JSON property config
1038 1039 1040 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1038 def config @config end |
#create_time ⇒ String
Output only. The time the job was created.
Corresponds to the JSON property createTime
1043 1044 1045 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1043 def create_time @create_time end |
#end_time ⇒ String
Output only. The time the transcoding finished.
Corresponds to the JSON property endTime
1048 1049 1050 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1048 def end_time @end_time end |
#error ⇒ Google::Apis::TranscoderV1::Status
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. 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.
Corresponds to the JSON property error
1058 1059 1060 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1058 def error @error 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. 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.
Corresponds to the JSON property inputUri
1068 1069 1070 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1068 def input_uri @input_uri end |
#labels ⇒ Hash<String,String>
The labels associated with this job. You can use these to organize and group
your jobs.
Corresponds to the JSON property labels
1074 1075 1076 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1074 def labels @labels end |
#name ⇒ String
The resource name of the job. Format: projects/project_number/locations/
location/jobs/job`
Corresponds to the JSON propertyname`
1080 1081 1082 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1080 def name @name 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/. See Supported input
and output formats.
Corresponds to the JSON property outputUri
1089 1090 1091 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1089 def output_uri @output_uri end |
#start_time ⇒ String
Output only. The time the transcoding started.
Corresponds to the JSON property startTime
1094 1095 1096 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1094 def start_time @start_time end |
#state ⇒ String
Output only. The current state of the job.
Corresponds to the JSON property state
1099 1100 1101 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1099 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_idCorresponds to the JSON propertytemplateId
1106 1107 1108 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1106 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
1113 1114 1115 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1113 def ttl_after_completion_days @ttl_after_completion_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1120 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) @labels = args[:labels] if args.key?(:labels) @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 |