Class: Google::Apis::TranscoderV1::Manifest

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

Manifest configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Manifest

Returns a new instance of Manifest.



1345
1346
1347
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1345

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

Instance Attribute Details

#file_nameString

The name of the generated file. The default is manifest with the extension suffix corresponding to the Manifest.type. Corresponds to the JSON property fileName

Returns:

  • (String)


1330
1331
1332
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1330

def file_name
  @file_name
end

#mux_streamsArray<String>

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream. key and .m3u8 extension is generated for each element of the Manifest. mux_streams. Corresponds to the JSON property muxStreams

Returns:

  • (Array<String>)


1338
1339
1340
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1338

def mux_streams
  @mux_streams
end

#typeString

Required. Type of the manifest, can be HLS or DASH. Corresponds to the JSON property type

Returns:

  • (String)


1343
1344
1345
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1343

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1350
1351
1352
1353
1354
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1350

def update!(**args)
  @file_name = args[:file_name] if args.key?(:file_name)
  @mux_streams = args[:mux_streams] if args.key?(:mux_streams)
  @type = args[:type] if args.key?(:type)
end