Class: Google::Apis::TranscoderV1::JobTemplate

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 template resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobTemplate

Returns a new instance of JobTemplate.



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

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

Instance Attribute Details

#configGoogle::Apis::TranscoderV1::JobConfig

Job configuration Corresponds to the JSON property config



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

def config
  @config
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1240
1241
1242
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1240

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1246
1247
1248
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1246

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1253

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
end