# =================================================================================================== # _ __ _ _ # | |/ /__ _| | |_ _ _ _ _ __ _ # | ' . # # @ignore # =================================================================================================== require 'kaltura_client.rb' module Kaltura class KalturaFileSyncStatus ERROR = -1 PENDING = 1 READY = 2 DELETED = 3 PURGED = 4 end class KalturaFileSyncType FILE = 1 LINK = 2 URL = 3 end class KalturaFileSyncOrderBy CREATED_AT_ASC = "+createdAt" FILE_SIZE_ASC = "+fileSize" READY_AT_ASC = "+readyAt" SYNC_TIME_ASC = "+syncTime" UPDATED_AT_ASC = "+updatedAt" VERSION_ASC = "+version" CREATED_AT_DESC = "-createdAt" FILE_SIZE_DESC = "-fileSize" READY_AT_DESC = "-readyAt" SYNC_TIME_DESC = "-syncTime" UPDATED_AT_DESC = "-updatedAt" VERSION_DESC = "-version" end class KalturaFileSync < KalturaObjectBase attr_accessor :id attr_accessor :partner_id attr_accessor :file_object_type attr_accessor :object_id attr_accessor :version attr_accessor :object_sub_type attr_accessor :dc attr_accessor :original attr_accessor :created_at attr_accessor :updated_at attr_accessor :ready_at attr_accessor :sync_time attr_accessor :status attr_accessor :file_type attr_accessor :linked_id attr_accessor :link_count attr_accessor :file_root attr_accessor :file_path attr_accessor :file_size attr_accessor :file_url attr_accessor :file_content attr_accessor :file_disc_size attr_accessor :is_current_dc attr_accessor :is_dir attr_accessor :original_id def id=(val) @id = val.to_i end def partner_id=(val) @partner_id = val.to_i end def object_sub_type=(val) @object_sub_type = val.to_i end def original=(val) @original = val.to_i end def created_at=(val) @created_at = val.to_i end def updated_at=(val) @updated_at = val.to_i end def ready_at=(val) @ready_at = val.to_i end def sync_time=(val) @sync_time = val.to_i end def status=(val) @status = val.to_i end def file_type=(val) @file_type = val.to_i end def linked_id=(val) @linked_id = val.to_i end def link_count=(val) @link_count = val.to_i end def file_size=(val) @file_size = val.to_f end def file_disc_size=(val) @file_disc_size = val.to_f end def is_current_dc=(val) @is_current_dc = to_b(val) end def is_dir=(val) @is_dir = to_b(val) end def original_id=(val) @original_id = val.to_i end def from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['fileObjectType'] != nil self.file_object_type = xml_element.elements['fileObjectType'].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 if xml_element.elements['objectSubType'] != nil self.object_sub_type = xml_element.elements['objectSubType'].text end if xml_element.elements['dc'] != nil self.dc = xml_element.elements['dc'].text end if xml_element.elements['original'] != nil self.original = xml_element.elements['original'].text end if xml_element.elements['createdAt'] != nil self.created_at = xml_element.elements['createdAt'].text end if xml_element.elements['updatedAt'] != nil self.updated_at = xml_element.elements['updatedAt'].text end if xml_element.elements['readyAt'] != nil self.ready_at = xml_element.elements['readyAt'].text end if xml_element.elements['syncTime'] != nil self.sync_time = xml_element.elements['syncTime'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['fileType'] != nil self.file_type = xml_element.elements['fileType'].text end if xml_element.elements['linkedId'] != nil self.linked_id = xml_element.elements['linkedId'].text end if xml_element.elements['linkCount'] != nil self.link_count = xml_element.elements['linkCount'].text end if xml_element.elements['fileRoot'] != nil self.file_root = xml_element.elements['fileRoot'].text end if xml_element.elements['filePath'] != nil self.file_path = xml_element.elements['filePath'].text end if xml_element.elements['fileSize'] != nil self.file_size = xml_element.elements['fileSize'].text end if xml_element.elements['fileUrl'] != nil self.file_url = xml_element.elements['fileUrl'].text end if xml_element.elements['fileContent'] != nil self.file_content = xml_element.elements['fileContent'].text end if xml_element.elements['fileDiscSize'] != nil self.file_disc_size = xml_element.elements['fileDiscSize'].text end if xml_element.elements['isCurrentDc'] != nil self.is_current_dc = xml_element.elements['isCurrentDc'].text end if xml_element.elements['isDir'] != nil self.is_dir = xml_element.elements['isDir'].text end if xml_element.elements['originalId'] != nil self.original_id = xml_element.elements['originalId'].text end end end class KalturaFileSyncListResponse < KalturaListResponse attr_accessor :objects def from_xml(xml_element) super if xml_element.elements['objects'] != nil self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaFileSync') end end end class KalturaFileSyncBaseFilter < KalturaFilter attr_accessor :partner_id_equal attr_accessor :file_object_type_equal attr_accessor :file_object_type_in attr_accessor :object_id_equal attr_accessor :object_id_in attr_accessor :version_equal attr_accessor :version_in attr_accessor :object_sub_type_equal attr_accessor :object_sub_type_in attr_accessor :dc_equal attr_accessor :dc_in attr_accessor :original_equal attr_accessor :created_at_greater_than_or_equal attr_accessor :created_at_less_than_or_equal attr_accessor :updated_at_greater_than_or_equal attr_accessor :updated_at_less_than_or_equal attr_accessor :ready_at_greater_than_or_equal attr_accessor :ready_at_less_than_or_equal attr_accessor :sync_time_greater_than_or_equal attr_accessor :sync_time_less_than_or_equal attr_accessor :status_equal attr_accessor :status_in attr_accessor :file_type_equal attr_accessor :file_type_in attr_accessor :linked_id_equal attr_accessor :link_count_greater_than_or_equal attr_accessor :link_count_less_than_or_equal attr_accessor :file_size_greater_than_or_equal attr_accessor :file_size_less_than_or_equal def partner_id_equal=(val) @partner_id_equal = val.to_i end def object_sub_type_equal=(val) @object_sub_type_equal = val.to_i end def original_equal=(val) @original_equal = val.to_i end def created_at_greater_than_or_equal=(val) @created_at_greater_than_or_equal = val.to_i end def created_at_less_than_or_equal=(val) @created_at_less_than_or_equal = val.to_i end def updated_at_greater_than_or_equal=(val) @updated_at_greater_than_or_equal = val.to_i end def updated_at_less_than_or_equal=(val) @updated_at_less_than_or_equal = val.to_i end def ready_at_greater_than_or_equal=(val) @ready_at_greater_than_or_equal = val.to_i end def ready_at_less_than_or_equal=(val) @ready_at_less_than_or_equal = val.to_i end def sync_time_greater_than_or_equal=(val) @sync_time_greater_than_or_equal = val.to_i end def sync_time_less_than_or_equal=(val) @sync_time_less_than_or_equal = val.to_i end def status_equal=(val) @status_equal = val.to_i end def file_type_equal=(val) @file_type_equal = val.to_i end def linked_id_equal=(val) @linked_id_equal = val.to_i end def link_count_greater_than_or_equal=(val) @link_count_greater_than_or_equal = val.to_i end def link_count_less_than_or_equal=(val) @link_count_less_than_or_equal = val.to_i end def file_size_greater_than_or_equal=(val) @file_size_greater_than_or_equal = val.to_f end def file_size_less_than_or_equal=(val) @file_size_less_than_or_equal = val.to_f end def from_xml(xml_element) super if xml_element.elements['partnerIdEqual'] != nil self.partner_id_equal = xml_element.elements['partnerIdEqual'].text end if xml_element.elements['fileObjectTypeEqual'] != nil self.file_object_type_equal = xml_element.elements['fileObjectTypeEqual'].text end if xml_element.elements['fileObjectTypeIn'] != nil self.file_object_type_in = xml_element.elements['fileObjectTypeIn'].text end if xml_element.elements['objectIdEqual'] != nil self.object_id_equal = xml_element.elements['objectIdEqual'].text end if xml_element.elements['objectIdIn'] != nil self.object_id_in = xml_element.elements['objectIdIn'].text end if xml_element.elements['versionEqual'] != nil self.version_equal = xml_element.elements['versionEqual'].text end if xml_element.elements['versionIn'] != nil self.version_in = xml_element.elements['versionIn'].text end if xml_element.elements['objectSubTypeEqual'] != nil self.object_sub_type_equal = xml_element.elements['objectSubTypeEqual'].text end if xml_element.elements['objectSubTypeIn'] != nil self.object_sub_type_in = xml_element.elements['objectSubTypeIn'].text end if xml_element.elements['dcEqual'] != nil self.dc_equal = xml_element.elements['dcEqual'].text end if xml_element.elements['dcIn'] != nil self.dc_in = xml_element.elements['dcIn'].text end if xml_element.elements['originalEqual'] != nil self.original_equal = xml_element.elements['originalEqual'].text end if xml_element.elements['createdAtGreaterThanOrEqual'] != nil self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text end if xml_element.elements['createdAtLessThanOrEqual'] != nil self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text end if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text end if xml_element.elements['updatedAtLessThanOrEqual'] != nil self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text end if xml_element.elements['readyAtGreaterThanOrEqual'] != nil self.ready_at_greater_than_or_equal = xml_element.elements['readyAtGreaterThanOrEqual'].text end if xml_element.elements['readyAtLessThanOrEqual'] != nil self.ready_at_less_than_or_equal = xml_element.elements['readyAtLessThanOrEqual'].text end if xml_element.elements['syncTimeGreaterThanOrEqual'] != nil self.sync_time_greater_than_or_equal = xml_element.elements['syncTimeGreaterThanOrEqual'].text end if xml_element.elements['syncTimeLessThanOrEqual'] != nil self.sync_time_less_than_or_equal = xml_element.elements['syncTimeLessThanOrEqual'].text end if xml_element.elements['statusEqual'] != nil self.status_equal = xml_element.elements['statusEqual'].text end if xml_element.elements['statusIn'] != nil self.status_in = xml_element.elements['statusIn'].text end if xml_element.elements['fileTypeEqual'] != nil self.file_type_equal = xml_element.elements['fileTypeEqual'].text end if xml_element.elements['fileTypeIn'] != nil self.file_type_in = xml_element.elements['fileTypeIn'].text end if xml_element.elements['linkedIdEqual'] != nil self.linked_id_equal = xml_element.elements['linkedIdEqual'].text end if xml_element.elements['linkCountGreaterThanOrEqual'] != nil self.link_count_greater_than_or_equal = xml_element.elements['linkCountGreaterThanOrEqual'].text end if xml_element.elements['linkCountLessThanOrEqual'] != nil self.link_count_less_than_or_equal = xml_element.elements['linkCountLessThanOrEqual'].text end if xml_element.elements['fileSizeGreaterThanOrEqual'] != nil self.file_size_greater_than_or_equal = xml_element.elements['fileSizeGreaterThanOrEqual'].text end if xml_element.elements['fileSizeLessThanOrEqual'] != nil self.file_size_less_than_or_equal = xml_element.elements['fileSizeLessThanOrEqual'].text end end end class KalturaFileSyncFilter < KalturaFileSyncBaseFilter attr_accessor :current_dc def current_dc=(val) @current_dc = val.to_i end def from_xml(xml_element) super if xml_element.elements['currentDc'] != nil self.current_dc = xml_element.elements['currentDc'].text end end end class KalturaClient < KalturaClientBase end end