Class: Google::Apis::TranscoderV1::JobTemplate
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::JobTemplate
- 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
-
#config ⇒ Google::Apis::TranscoderV1::JobConfig
Job configuration Corresponds to the JSON property
config. -
#labels ⇒ Hash<String,String>
The labels associated with this job template.
-
#name ⇒ String
The resource name of the job template.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobTemplate
constructor
A new instance of JobTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobTemplate
Returns a new instance of JobTemplate.
1274 1275 1276 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::TranscoderV1::JobConfig
Job configuration
Corresponds to the JSON property config
1260 1261 1262 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1260 def config @config end |
#labels ⇒ Hash<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
1266 1267 1268 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1266 def labels @labels end |
#name ⇒ String
The resource name of the job template. Format: projects/project_number/
locations/location/jobTemplates/job_template`
Corresponds to the JSON propertyname`
1272 1273 1274 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1272 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1279 1280 1281 1282 1283 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1279 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 |