# =================================================================================================== # _ __ _ _ # | |/ /__ _| | |_ _ _ _ _ __ _ # | ' . # # @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 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 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 end class KalturaFileSyncListResponse < KalturaListResponse attr_accessor :objects end class KalturaFileSyncFilter < KalturaFileSyncBaseFilter attr_accessor :current_dc def current_dc=(val) @current_dc = val.to_i end end end