Class: Google::Apis::TranscoderV1::TextMapping

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

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextMapping

Returns a new instance of TextMapping.



1821
1822
1823
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1821

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

Instance Attribute Details

#atom_keyString

Required. The EditAtom.key that references atom with text inputs in the Job. edit_list. Corresponds to the JSON property atomKey

Returns:

  • (String)


1809
1810
1811
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1809

def atom_key
  @atom_key
end

#input_keyString

Required. The Input.key that identifies the input file. Corresponds to the JSON property inputKey

Returns:

  • (String)


1814
1815
1816
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1814

def input_key
  @input_key
end

#input_trackFixnum

Required. The zero-based index of the track in the input file. Corresponds to the JSON property inputTrack

Returns:

  • (Fixnum)


1819
1820
1821
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1819

def input_track
  @input_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1826
1827
1828
1829
1830
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1826

def update!(**args)
  @atom_key = args[:atom_key] if args.key?(:atom_key)
  @input_key = args[:input_key] if args.key?(:input_key)
  @input_track = args[:input_track] if args.key?(:input_track)
end