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.



1130
1131
1132
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1130

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

Instance Attribute Details

#configGoogle::Apis::TranscoderV1::JobConfig

Job configuration Corresponds to the JSON property config



1122
1123
1124
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1122

def config
  @config
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)


1128
1129
1130
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1128

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1135
1136
1137
1138
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1135

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