Class: Google::Apis::TranscoderV1::Job

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Job

Returns a new instance of Job.



1315
1316
1317
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1315

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#batch_mode_priorityFixnum

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. Corresponds to the JSON property batchModePriority

Returns:

  • (Fixnum)


1223
1224
1225
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1223

def batch_mode_priority
  @batch_mode_priority
end

#configGoogle::Apis::TranscoderV1::JobConfig

Job configuration Corresponds to the JSON property config



1228
1229
1230
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1228

def config
  @config
end

#create_timeString

Output only. The time the job was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1233
1234
1235
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1233

def create_time
  @create_time
end

#end_timeString

Output only. The time the transcoding finished. Corresponds to the JSON property endTime

Returns:

  • (String)


1238
1239
1240
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1238

def end_time
  @end_time
end

#errorGoogle::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



1248
1249
1250
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1248

def error
  @error
end

#input_uriString

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

Returns:

  • (String)


1258
1259
1260
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1258

def input_uri
  @input_uri
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1264
1265
1266
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1264

def labels
  @labels
end

#modeString

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE. Corresponds to the JSON property mode

Returns:

  • (String)


1269
1270
1271
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1269

def mode
  @mode
end

#nameString

The resource name of the job. Format: projects/project_number/locations/ location/jobs/job` Corresponds to the JSON propertyname`

Returns:

  • (String)


1275
1276
1277
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1275

def name
  @name
end

#optimizationString

Optional. The optimization strategy of the job. The default is AUTODETECT. Corresponds to the JSON property optimization

Returns:

  • (String)


1280
1281
1282
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1280

def optimization
  @optimization
end

#output_uriString

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

Returns:

  • (String)


1289
1290
1291
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1289

def output_uri
  @output_uri
end

#start_timeString

Output only. The time the transcoding started. Corresponds to the JSON property startTime

Returns:

  • (String)


1294
1295
1296
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1294

def start_time
  @start_time
end

#stateString

Output only. The current state of the job. Corresponds to the JSON property state

Returns:

  • (String)


1299
1300
1301
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1299

def state
  @state
end

#template_idString

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 Corresponds to the JSON property templateId

Returns:

  • (String)


1306
1307
1308
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1306

def template_id
  @template_id
end

#ttl_after_completion_daysFixnum

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

Returns:

  • (Fixnum)


1313
1314
1315
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1313

def ttl_after_completion_days
  @ttl_after_completion_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1320

def update!(**args)
  @batch_mode_priority = args[:batch_mode_priority] if args.key?(:batch_mode_priority)
  @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)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
  @optimization = args[:optimization] if args.key?(:optimization)
  @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