Class: Kaltura::KalturaFileSyncResource

Inherits:
KalturaContentResource show all
Defined in:
lib/kaltura_types.rb

Overview

Used to ingest media that is already ingested to Kaltura system as a different file in the past, the new created flavor asset will be ready immediately using a file sync of link type that will point to the existing file sync.

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#file_sync_object_typeObject

The object type of the file sync object



16662
16663
16664
# File 'lib/kaltura_types.rb', line 16662

def file_sync_object_type
  @file_sync_object_type
end

#object_idObject

The object id of the file sync object



16666
16667
16668
# File 'lib/kaltura_types.rb', line 16666

def object_id
  @object_id
end

#object_sub_typeObject

The object sub-type of the file sync object



16664
16665
16666
# File 'lib/kaltura_types.rb', line 16664

def object_sub_type
  @object_sub_type
end

#versionObject

The version of the file sync object



16668
16669
16670
# File 'lib/kaltura_types.rb', line 16668

def version
  @version
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
# File 'lib/kaltura_types.rb', line 16677

def from_xml(xml_element)
  super
  if xml_element.elements['fileSyncObjectType'] != nil
    self.file_sync_object_type = xml_element.elements['fileSyncObjectType'].text
  end
  if xml_element.elements['objectSubType'] != nil
    self.object_sub_type = xml_element.elements['objectSubType'].text
  end
  if xml_element.elements['objectId'] != nil
    self.object_id = xml_element.elements['objectId'].text
  end
  if xml_element.elements['version'] != nil
    self.version = xml_element.elements['version'].text
  end
end