# =================================================================================================== # _ __ _ _ # | |/ /__ _| | |_ _ _ _ _ __ _ # | ' . # # @ignore # =================================================================================================== require 'kaltura_client.rb' module Kaltura class KalturaScheduleEventClassificationType PUBLIC_EVENT = 1 PRIVATE_EVENT = 2 CONFIDENTIAL_EVENT = 3 end class KalturaScheduleEventConflictType RESOURCE_CONFLICT = 1 BLACKOUT_CONFLICT = 2 BOTH = 3 end class KalturaScheduleEventRecurrenceType NONE = 0 RECURRING = 1 RECURRENCE = 2 end class KalturaScheduleEventStatus CANCELLED = 1 ACTIVE = 2 DELETED = 3 end class KalturaScheduleEventType RECORD = 1 LIVE_STREAM = 2 BLACKOUT = 3 end class KalturaScheduleResourceStatus DISABLED = 1 ACTIVE = 2 DELETED = 3 end class KalturaCameraScheduleResourceOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaEntryScheduleEventOrderBy CREATED_AT_ASC = "+createdAt" END_DATE_ASC = "+endDate" PRIORITY_ASC = "+priority" START_DATE_ASC = "+startDate" SUMMARY_ASC = "+summary" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" END_DATE_DESC = "-endDate" PRIORITY_DESC = "-priority" START_DATE_DESC = "-startDate" SUMMARY_DESC = "-summary" UPDATED_AT_DESC = "-updatedAt" end class KalturaLiveEntryScheduleResourceOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaLiveStreamScheduleEventOrderBy CREATED_AT_ASC = "+createdAt" END_DATE_ASC = "+endDate" PRIORITY_ASC = "+priority" START_DATE_ASC = "+startDate" SUMMARY_ASC = "+summary" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" END_DATE_DESC = "-endDate" PRIORITY_DESC = "-priority" START_DATE_DESC = "-startDate" SUMMARY_DESC = "-summary" UPDATED_AT_DESC = "-updatedAt" end class KalturaLocationScheduleResourceOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaRecordScheduleEventOrderBy CREATED_AT_ASC = "+createdAt" END_DATE_ASC = "+endDate" PRIORITY_ASC = "+priority" START_DATE_ASC = "+startDate" SUMMARY_ASC = "+summary" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" END_DATE_DESC = "-endDate" PRIORITY_DESC = "-priority" START_DATE_DESC = "-startDate" SUMMARY_DESC = "-summary" UPDATED_AT_DESC = "-updatedAt" end class KalturaScheduleEventOrderBy CREATED_AT_ASC = "+createdAt" END_DATE_ASC = "+endDate" PRIORITY_ASC = "+priority" START_DATE_ASC = "+startDate" SUMMARY_ASC = "+summary" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" END_DATE_DESC = "-endDate" PRIORITY_DESC = "-priority" START_DATE_DESC = "-startDate" SUMMARY_DESC = "-summary" UPDATED_AT_DESC = "-updatedAt" end class KalturaScheduleEventRecurrenceDay FRIDAY = "FR" MONDAY = "MO" SATURDAY = "SA" SUNDAY = "SU" THURSDAY = "TH" TUESDAY = "TU" WEDNESDAY = "WE" end class KalturaScheduleEventRecurrenceFrequency DAILY = "days" HOURLY = "hours" MINUTELY = "minutes" MONTHLY = "months" SECONDLY = "seconds" WEEKLY = "weeks" YEARLY = "years" end class KalturaScheduleEventResourceOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaScheduleResourceOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaScheduleEventRecurrence < KalturaObjectBase attr_accessor :name attr_accessor :frequency attr_accessor :until # TimeZone String attr_accessor :time_zone attr_accessor :count attr_accessor :interval # Comma separated numbers between 0 to 59 attr_accessor :by_second # Comma separated numbers between 0 to 59 attr_accessor :by_minute # Comma separated numbers between 0 to 23 attr_accessor :by_hour # Comma separated of KalturaScheduleEventRecurrenceDay # Each byDay value can also be preceded by a positive (+n) or negative (-n) integer. # If present, this indicates the nth occurrence of the specific day within the MONTHLY or YEARLY RRULE. # For example, within a MONTHLY rule, +1MO (or simply 1MO) represents the first Monday within the month, whereas -1MO represents the last Monday of the month. # If an integer modifier is not present, it means all days of this type within the specified frequency. # For example, within a MONTHLY rule, MO represents all Mondays within the month. attr_accessor :by_day # Comma separated of numbers between -31 to 31, excluding 0. # For example, -10 represents the tenth to the last day of the month. attr_accessor :by_month_day # Comma separated of numbers between -366 to 366, excluding 0. # For example, -1 represents the last day of the year (December 31st) and -306 represents the 306th to the last day of the year (March 1st). attr_accessor :by_year_day # Comma separated of numbers between -53 to 53, excluding 0. # This corresponds to weeks according to week numbering. # A week is defined as a seven day period, starting on the day of the week defined to be the week start. # Week number one of the calendar year is the first week which contains at least four (4) days in that calendar year. # This rule part is only valid for YEARLY frequency. # For example, 3 represents the third week of the year. attr_accessor :by_week_number # Comma separated numbers between 1 to 12 attr_accessor :by_month # Comma separated of numbers between -366 to 366, excluding 0. # Corresponds to the nth occurrence within the set of events specified by the rule. # It must only be used in conjunction with another byrule part. # For example "the last work day of the month" could be represented as: frequency=MONTHLY;byDay=MO,TU,WE,TH,FR;byOffset=-1 # Each byOffset value can include a positive (+n) or negative (-n) integer. # If present, this indicates the nth occurrence of the specific occurrence within the set of events specified by the rule. attr_accessor :by_offset attr_accessor :week_start_day def until=(val) @until = val.to_i end def count=(val) @count = val.to_i end def interval=(val) @interval = val.to_i end def from_xml(xml_element) super if xml_element.elements['name'] != nil self.name = xml_element.elements['name'].text end if xml_element.elements['frequency'] != nil self.frequency = xml_element.elements['frequency'].text end if xml_element.elements['until'] != nil self.until = xml_element.elements['until'].text end if xml_element.elements['timeZone'] != nil self.time_zone = xml_element.elements['timeZone'].text end if xml_element.elements['count'] != nil self.count = xml_element.elements['count'].text end if xml_element.elements['interval'] != nil self.interval = xml_element.elements['interval'].text end if xml_element.elements['bySecond'] != nil self.by_second = xml_element.elements['bySecond'].text end if xml_element.elements['byMinute'] != nil self.by_minute = xml_element.elements['byMinute'].text end if xml_element.elements['byHour'] != nil self.by_hour = xml_element.elements['byHour'].text end if xml_element.elements['byDay'] != nil self.by_day = xml_element.elements['byDay'].text end if xml_element.elements['byMonthDay'] != nil self.by_month_day = xml_element.elements['byMonthDay'].text end if xml_element.elements['byYearDay'] != nil self.by_year_day = xml_element.elements['byYearDay'].text end if xml_element.elements['byWeekNumber'] != nil self.by_week_number = xml_element.elements['byWeekNumber'].text end if xml_element.elements['byMonth'] != nil self.by_month = xml_element.elements['byMonth'].text end if xml_element.elements['byOffset'] != nil self.by_offset = xml_element.elements['byOffset'].text end if xml_element.elements['weekStartDay'] != nil self.week_start_day = xml_element.elements['weekStartDay'].text end end end class KalturaScheduleEvent < KalturaObjectBase # Auto-generated unique identifier attr_accessor :id attr_accessor :partner_id attr_accessor :parent_id # Defines a short summary or subject for the event attr_accessor :summary attr_accessor :description attr_accessor :status attr_accessor :start_date attr_accessor :end_date attr_accessor :reference_id attr_accessor :classification_type # Specifies the global position for the activity attr_accessor :geo_latitude # Specifies the global position for the activity attr_accessor :geo_longitude # Defines the intended venue for the activity attr_accessor :location attr_accessor :organizer attr_accessor :owner_id # The value for the priority field. attr_accessor :priority # Defines the revision sequence number. attr_accessor :sequence attr_accessor :recurrence_type # Duration in seconds attr_accessor :duration # Used to represent contact information or alternately a reference to contact information. attr_accessor :contact # Specifies non-processing information intended to provide a comment to the calendar user. attr_accessor :comment attr_accessor :tags # Creation date as Unix timestamp (In seconds) attr_accessor :created_at # Last update as Unix timestamp (In seconds) attr_accessor :updated_at attr_accessor :recurrence def id=(val) @id = val.to_i end def partner_id=(val) @partner_id = val.to_i end def parent_id=(val) @parent_id = val.to_i end def status=(val) @status = val.to_i end def start_date=(val) @start_date = val.to_i end def end_date=(val) @end_date = val.to_i end def classification_type=(val) @classification_type = val.to_i end def geo_latitude=(val) @geo_latitude = val.to_f end def geo_longitude=(val) @geo_longitude = val.to_f end def priority=(val) @priority = val.to_i end def sequence=(val) @sequence = val.to_i end def recurrence_type=(val) @recurrence_type = val.to_i end def duration=(val) @duration = 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 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['parentId'] != nil self.parent_id = xml_element.elements['parentId'].text end if xml_element.elements['summary'] != nil self.summary = xml_element.elements['summary'].text end if xml_element.elements['description'] != nil self.description = xml_element.elements['description'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['startDate'] != nil self.start_date = xml_element.elements['startDate'].text end if xml_element.elements['endDate'] != nil self.end_date = xml_element.elements['endDate'].text end if xml_element.elements['referenceId'] != nil self.reference_id = xml_element.elements['referenceId'].text end if xml_element.elements['classificationType'] != nil self.classification_type = xml_element.elements['classificationType'].text end if xml_element.elements['geoLatitude'] != nil self.geo_latitude = xml_element.elements['geoLatitude'].text end if xml_element.elements['geoLongitude'] != nil self.geo_longitude = xml_element.elements['geoLongitude'].text end if xml_element.elements['location'] != nil self.location = xml_element.elements['location'].text end if xml_element.elements['organizer'] != nil self.organizer = xml_element.elements['organizer'].text end if xml_element.elements['ownerId'] != nil self.owner_id = xml_element.elements['ownerId'].text end if xml_element.elements['priority'] != nil self.priority = xml_element.elements['priority'].text end if xml_element.elements['sequence'] != nil self.sequence = xml_element.elements['sequence'].text end if xml_element.elements['recurrenceType'] != nil self.recurrence_type = xml_element.elements['recurrenceType'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end if xml_element.elements['contact'] != nil self.contact = xml_element.elements['contact'].text end if xml_element.elements['comment'] != nil self.comment = xml_element.elements['comment'].text end if xml_element.elements['tags'] != nil self.tags = xml_element.elements['tags'].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['recurrence'] != nil self.recurrence = KalturaClientBase.object_from_xml(xml_element.elements['recurrence'], 'KalturaScheduleEventRecurrence') end end end class KalturaScheduleEventResource < KalturaObjectBase attr_accessor :event_id attr_accessor :resource_id attr_accessor :partner_id # Creation date as Unix timestamp (In seconds) attr_accessor :created_at # Last update as Unix timestamp (In seconds) attr_accessor :updated_at def event_id=(val) @event_id = val.to_i end def resource_id=(val) @resource_id = val.to_i end def partner_id=(val) @partner_id = 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 from_xml(xml_element) super if xml_element.elements['eventId'] != nil self.event_id = xml_element.elements['eventId'].text end if xml_element.elements['resourceId'] != nil self.resource_id = xml_element.elements['resourceId'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].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 end end class KalturaScheduleResource < KalturaObjectBase # Auto-generated unique identifier attr_accessor :id attr_accessor :parent_id attr_accessor :partner_id # Defines a short name attr_accessor :name # Defines a unique system-name attr_accessor :system_name attr_accessor :description attr_accessor :status attr_accessor :tags # Creation date as Unix timestamp (In seconds) attr_accessor :created_at # Last update as Unix timestamp (In seconds) attr_accessor :updated_at def id=(val) @id = val.to_i end def parent_id=(val) @parent_id = val.to_i end def partner_id=(val) @partner_id = val.to_i end def status=(val) @status = 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 from_xml(xml_element) super if xml_element.elements['id'] != nil self.id = xml_element.elements['id'].text end if xml_element.elements['parentId'] != nil self.parent_id = xml_element.elements['parentId'].text end if xml_element.elements['partnerId'] != nil self.partner_id = xml_element.elements['partnerId'].text end if xml_element.elements['name'] != nil self.name = xml_element.elements['name'].text end if xml_element.elements['systemName'] != nil self.system_name = xml_element.elements['systemName'].text end if xml_element.elements['description'] != nil self.description = xml_element.elements['description'].text end if xml_element.elements['status'] != nil self.status = xml_element.elements['status'].text end if xml_element.elements['tags'] != nil self.tags = xml_element.elements['tags'].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 end end class KalturaBlackoutScheduleEvent < KalturaScheduleEvent def from_xml(xml_element) super end end class KalturaCameraScheduleResource < KalturaScheduleResource # URL of the stream attr_accessor :stream_url def from_xml(xml_element) super if xml_element.elements['streamUrl'] != nil self.stream_url = xml_element.elements['streamUrl'].text end end end class KalturaEntryScheduleEvent < KalturaScheduleEvent # Entry to be used as template during content ingestion attr_accessor :template_entry_id # Entries that associated with this event attr_accessor :entry_ids # Categories that associated with this event attr_accessor :category_ids # Blackout schedule events the conflict with this event attr_accessor :blackout_conflicts def from_xml(xml_element) super if xml_element.elements['templateEntryId'] != nil self.template_entry_id = xml_element.elements['templateEntryId'].text end if xml_element.elements['entryIds'] != nil self.entry_ids = xml_element.elements['entryIds'].text end if xml_element.elements['categoryIds'] != nil self.category_ids = xml_element.elements['categoryIds'].text end if xml_element.elements['blackoutConflicts'] != nil self.blackout_conflicts = KalturaClientBase.object_from_xml(xml_element.elements['blackoutConflicts'], 'KalturaScheduleEvent') end end end class KalturaLiveEntryScheduleResource < KalturaScheduleResource attr_accessor :entry_id def from_xml(xml_element) super if xml_element.elements['entryId'] != nil self.entry_id = xml_element.elements['entryId'].text end end end class KalturaLocationScheduleResource < KalturaScheduleResource def from_xml(xml_element) super end end class KalturaScheduleEventListResponse < 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'], 'KalturaScheduleEvent') end end end class KalturaScheduleEventResourceListResponse < 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'], 'KalturaScheduleEventResource') end end end class KalturaScheduleResourceListResponse < 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'], 'KalturaScheduleResource') end end end class KalturaLiveStreamScheduleEvent < KalturaEntryScheduleEvent # Defines the expected audience. attr_accessor :projected_audience def projected_audience=(val) @projected_audience = val.to_i end def from_xml(xml_element) super if xml_element.elements['projectedAudience'] != nil self.projected_audience = xml_element.elements['projectedAudience'].text end end end class KalturaRecordScheduleEvent < KalturaEntryScheduleEvent def from_xml(xml_element) super end end class KalturaScheduleEventBaseFilter < KalturaRelatedFilter attr_accessor :id_equal attr_accessor :id_in attr_accessor :id_not_in attr_accessor :parent_id_equal attr_accessor :parent_id_in attr_accessor :parent_id_not_in attr_accessor :status_equal attr_accessor :status_in attr_accessor :start_date_greater_than_or_equal attr_accessor :start_date_less_than_or_equal attr_accessor :end_date_greater_than_or_equal attr_accessor :end_date_less_than_or_equal attr_accessor :reference_id_equal attr_accessor :reference_id_in attr_accessor :owner_id_equal attr_accessor :owner_id_in attr_accessor :priority_equal attr_accessor :priority_in attr_accessor :priority_greater_than_or_equal attr_accessor :priority_less_than_or_equal attr_accessor :recurrence_type_equal attr_accessor :recurrence_type_in attr_accessor :tags_like attr_accessor :tags_multi_like_or attr_accessor :tags_multi_like_and 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 def id_equal=(val) @id_equal = val.to_i end def parent_id_equal=(val) @parent_id_equal = val.to_i end def status_equal=(val) @status_equal = val.to_i end def start_date_greater_than_or_equal=(val) @start_date_greater_than_or_equal = val.to_i end def start_date_less_than_or_equal=(val) @start_date_less_than_or_equal = val.to_i end def end_date_greater_than_or_equal=(val) @end_date_greater_than_or_equal = val.to_i end def end_date_less_than_or_equal=(val) @end_date_less_than_or_equal = val.to_i end def priority_equal=(val) @priority_equal = val.to_i end def priority_greater_than_or_equal=(val) @priority_greater_than_or_equal = val.to_i end def priority_less_than_or_equal=(val) @priority_less_than_or_equal = val.to_i end def recurrence_type_equal=(val) @recurrence_type_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 from_xml(xml_element) super if xml_element.elements['idEqual'] != nil self.id_equal = xml_element.elements['idEqual'].text end if xml_element.elements['idIn'] != nil self.id_in = xml_element.elements['idIn'].text end if xml_element.elements['idNotIn'] != nil self.id_not_in = xml_element.elements['idNotIn'].text end if xml_element.elements['parentIdEqual'] != nil self.parent_id_equal = xml_element.elements['parentIdEqual'].text end if xml_element.elements['parentIdIn'] != nil self.parent_id_in = xml_element.elements['parentIdIn'].text end if xml_element.elements['parentIdNotIn'] != nil self.parent_id_not_in = xml_element.elements['parentIdNotIn'].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['startDateGreaterThanOrEqual'] != nil self.start_date_greater_than_or_equal = xml_element.elements['startDateGreaterThanOrEqual'].text end if xml_element.elements['startDateLessThanOrEqual'] != nil self.start_date_less_than_or_equal = xml_element.elements['startDateLessThanOrEqual'].text end if xml_element.elements['endDateGreaterThanOrEqual'] != nil self.end_date_greater_than_or_equal = xml_element.elements['endDateGreaterThanOrEqual'].text end if xml_element.elements['endDateLessThanOrEqual'] != nil self.end_date_less_than_or_equal = xml_element.elements['endDateLessThanOrEqual'].text end if xml_element.elements['referenceIdEqual'] != nil self.reference_id_equal = xml_element.elements['referenceIdEqual'].text end if xml_element.elements['referenceIdIn'] != nil self.reference_id_in = xml_element.elements['referenceIdIn'].text end if xml_element.elements['ownerIdEqual'] != nil self.owner_id_equal = xml_element.elements['ownerIdEqual'].text end if xml_element.elements['ownerIdIn'] != nil self.owner_id_in = xml_element.elements['ownerIdIn'].text end if xml_element.elements['priorityEqual'] != nil self.priority_equal = xml_element.elements['priorityEqual'].text end if xml_element.elements['priorityIn'] != nil self.priority_in = xml_element.elements['priorityIn'].text end if xml_element.elements['priorityGreaterThanOrEqual'] != nil self.priority_greater_than_or_equal = xml_element.elements['priorityGreaterThanOrEqual'].text end if xml_element.elements['priorityLessThanOrEqual'] != nil self.priority_less_than_or_equal = xml_element.elements['priorityLessThanOrEqual'].text end if xml_element.elements['recurrenceTypeEqual'] != nil self.recurrence_type_equal = xml_element.elements['recurrenceTypeEqual'].text end if xml_element.elements['recurrenceTypeIn'] != nil self.recurrence_type_in = xml_element.elements['recurrenceTypeIn'].text end if xml_element.elements['tagsLike'] != nil self.tags_like = xml_element.elements['tagsLike'].text end if xml_element.elements['tagsMultiLikeOr'] != nil self.tags_multi_like_or = xml_element.elements['tagsMultiLikeOr'].text end if xml_element.elements['tagsMultiLikeAnd'] != nil self.tags_multi_like_and = xml_element.elements['tagsMultiLikeAnd'].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 end end class KalturaScheduleEventResourceBaseFilter < KalturaRelatedFilter attr_accessor :event_id_equal attr_accessor :event_id_in attr_accessor :resource_id_equal attr_accessor :resource_id_in 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 def event_id_equal=(val) @event_id_equal = val.to_i end def resource_id_equal=(val) @resource_id_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 from_xml(xml_element) super if xml_element.elements['eventIdEqual'] != nil self.event_id_equal = xml_element.elements['eventIdEqual'].text end if xml_element.elements['eventIdIn'] != nil self.event_id_in = xml_element.elements['eventIdIn'].text end if xml_element.elements['resourceIdEqual'] != nil self.resource_id_equal = xml_element.elements['resourceIdEqual'].text end if xml_element.elements['resourceIdIn'] != nil self.resource_id_in = xml_element.elements['resourceIdIn'].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 end end class KalturaScheduleResourceBaseFilter < KalturaRelatedFilter attr_accessor :id_equal attr_accessor :id_in attr_accessor :id_not_in attr_accessor :parent_id_equal attr_accessor :parent_id_in attr_accessor :name_equal attr_accessor :system_name_equal attr_accessor :system_name_in attr_accessor :status_equal attr_accessor :status_in attr_accessor :tags_like attr_accessor :tags_multi_like_or attr_accessor :tags_multi_like_and 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 def id_equal=(val) @id_equal = val.to_i end def parent_id_equal=(val) @parent_id_equal = val.to_i end def status_equal=(val) @status_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 from_xml(xml_element) super if xml_element.elements['idEqual'] != nil self.id_equal = xml_element.elements['idEqual'].text end if xml_element.elements['idIn'] != nil self.id_in = xml_element.elements['idIn'].text end if xml_element.elements['idNotIn'] != nil self.id_not_in = xml_element.elements['idNotIn'].text end if xml_element.elements['parentIdEqual'] != nil self.parent_id_equal = xml_element.elements['parentIdEqual'].text end if xml_element.elements['parentIdIn'] != nil self.parent_id_in = xml_element.elements['parentIdIn'].text end if xml_element.elements['nameEqual'] != nil self.name_equal = xml_element.elements['nameEqual'].text end if xml_element.elements['systemNameEqual'] != nil self.system_name_equal = xml_element.elements['systemNameEqual'].text end if xml_element.elements['systemNameIn'] != nil self.system_name_in = xml_element.elements['systemNameIn'].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['tagsLike'] != nil self.tags_like = xml_element.elements['tagsLike'].text end if xml_element.elements['tagsMultiLikeOr'] != nil self.tags_multi_like_or = xml_element.elements['tagsMultiLikeOr'].text end if xml_element.elements['tagsMultiLikeAnd'] != nil self.tags_multi_like_and = xml_element.elements['tagsMultiLikeAnd'].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 end end class KalturaScheduleEventFilter < KalturaScheduleEventBaseFilter attr_accessor :resource_ids_like attr_accessor :resource_ids_multi_like_or attr_accessor :resource_ids_multi_like_and attr_accessor :parent_resource_ids_like attr_accessor :parent_resource_ids_multi_like_or attr_accessor :parent_resource_ids_multi_like_and attr_accessor :template_entry_categories_ids_multi_like_and attr_accessor :template_entry_categories_ids_multi_like_or attr_accessor :resource_system_names_multi_like_or attr_accessor :template_entry_categories_ids_like attr_accessor :resource_system_names_multi_like_and attr_accessor :resource_system_names_like attr_accessor :resource_id_equal def from_xml(xml_element) super if xml_element.elements['resourceIdsLike'] != nil self.resource_ids_like = xml_element.elements['resourceIdsLike'].text end if xml_element.elements['resourceIdsMultiLikeOr'] != nil self.resource_ids_multi_like_or = xml_element.elements['resourceIdsMultiLikeOr'].text end if xml_element.elements['resourceIdsMultiLikeAnd'] != nil self.resource_ids_multi_like_and = xml_element.elements['resourceIdsMultiLikeAnd'].text end if xml_element.elements['parentResourceIdsLike'] != nil self.parent_resource_ids_like = xml_element.elements['parentResourceIdsLike'].text end if xml_element.elements['parentResourceIdsMultiLikeOr'] != nil self.parent_resource_ids_multi_like_or = xml_element.elements['parentResourceIdsMultiLikeOr'].text end if xml_element.elements['parentResourceIdsMultiLikeAnd'] != nil self.parent_resource_ids_multi_like_and = xml_element.elements['parentResourceIdsMultiLikeAnd'].text end if xml_element.elements['templateEntryCategoriesIdsMultiLikeAnd'] != nil self.template_entry_categories_ids_multi_like_and = xml_element.elements['templateEntryCategoriesIdsMultiLikeAnd'].text end if xml_element.elements['templateEntryCategoriesIdsMultiLikeOr'] != nil self.template_entry_categories_ids_multi_like_or = xml_element.elements['templateEntryCategoriesIdsMultiLikeOr'].text end if xml_element.elements['resourceSystemNamesMultiLikeOr'] != nil self.resource_system_names_multi_like_or = xml_element.elements['resourceSystemNamesMultiLikeOr'].text end if xml_element.elements['templateEntryCategoriesIdsLike'] != nil self.template_entry_categories_ids_like = xml_element.elements['templateEntryCategoriesIdsLike'].text end if xml_element.elements['resourceSystemNamesMultiLikeAnd'] != nil self.resource_system_names_multi_like_and = xml_element.elements['resourceSystemNamesMultiLikeAnd'].text end if xml_element.elements['resourceSystemNamesLike'] != nil self.resource_system_names_like = xml_element.elements['resourceSystemNamesLike'].text end if xml_element.elements['resourceIdEqual'] != nil self.resource_id_equal = xml_element.elements['resourceIdEqual'].text end end end class KalturaScheduleEventResourceFilter < KalturaScheduleEventResourceBaseFilter # Find event-resource objects that associated with the event, if none found, find by its parent event attr_accessor :event_id_or_its_parent_id_equal def event_id_or_its_parent_id_equal=(val) @event_id_or_its_parent_id_equal = val.to_i end def from_xml(xml_element) super if xml_element.elements['eventIdOrItsParentIdEqual'] != nil self.event_id_or_its_parent_id_equal = xml_element.elements['eventIdOrItsParentIdEqual'].text end end end class KalturaScheduleResourceFilter < KalturaScheduleResourceBaseFilter def from_xml(xml_element) super end end class KalturaCameraScheduleResourceBaseFilter < KalturaScheduleResourceFilter def from_xml(xml_element) super end end class KalturaEntryScheduleEventBaseFilter < KalturaScheduleEventFilter attr_accessor :template_entry_id_equal attr_accessor :entry_ids_like attr_accessor :entry_ids_multi_like_or attr_accessor :entry_ids_multi_like_and attr_accessor :category_ids_like attr_accessor :category_ids_multi_like_or attr_accessor :category_ids_multi_like_and def from_xml(xml_element) super if xml_element.elements['templateEntryIdEqual'] != nil self.template_entry_id_equal = xml_element.elements['templateEntryIdEqual'].text end if xml_element.elements['entryIdsLike'] != nil self.entry_ids_like = xml_element.elements['entryIdsLike'].text end if xml_element.elements['entryIdsMultiLikeOr'] != nil self.entry_ids_multi_like_or = xml_element.elements['entryIdsMultiLikeOr'].text end if xml_element.elements['entryIdsMultiLikeAnd'] != nil self.entry_ids_multi_like_and = xml_element.elements['entryIdsMultiLikeAnd'].text end if xml_element.elements['categoryIdsLike'] != nil self.category_ids_like = xml_element.elements['categoryIdsLike'].text end if xml_element.elements['categoryIdsMultiLikeOr'] != nil self.category_ids_multi_like_or = xml_element.elements['categoryIdsMultiLikeOr'].text end if xml_element.elements['categoryIdsMultiLikeAnd'] != nil self.category_ids_multi_like_and = xml_element.elements['categoryIdsMultiLikeAnd'].text end end end class KalturaLiveEntryScheduleResourceBaseFilter < KalturaScheduleResourceFilter def from_xml(xml_element) super end end class KalturaLocationScheduleResourceBaseFilter < KalturaScheduleResourceFilter def from_xml(xml_element) super end end class KalturaCameraScheduleResourceFilter < KalturaCameraScheduleResourceBaseFilter def from_xml(xml_element) super end end class KalturaEntryScheduleEventFilter < KalturaEntryScheduleEventBaseFilter attr_accessor :parent_category_ids_like attr_accessor :parent_category_ids_multi_like_or attr_accessor :parent_category_ids_multi_like_and def from_xml(xml_element) super if xml_element.elements['parentCategoryIdsLike'] != nil self.parent_category_ids_like = xml_element.elements['parentCategoryIdsLike'].text end if xml_element.elements['parentCategoryIdsMultiLikeOr'] != nil self.parent_category_ids_multi_like_or = xml_element.elements['parentCategoryIdsMultiLikeOr'].text end if xml_element.elements['parentCategoryIdsMultiLikeAnd'] != nil self.parent_category_ids_multi_like_and = xml_element.elements['parentCategoryIdsMultiLikeAnd'].text end end end class KalturaLiveEntryScheduleResourceFilter < KalturaLiveEntryScheduleResourceBaseFilter def from_xml(xml_element) super end end class KalturaLocationScheduleResourceFilter < KalturaLocationScheduleResourceBaseFilter def from_xml(xml_element) super end end class KalturaLiveStreamScheduleEventBaseFilter < KalturaEntryScheduleEventFilter def from_xml(xml_element) super end end class KalturaRecordScheduleEventBaseFilter < KalturaEntryScheduleEventFilter def from_xml(xml_element) super end end class KalturaBlackoutScheduleEventFilter < KalturaRecordScheduleEventBaseFilter def from_xml(xml_element) super end end class KalturaLiveStreamScheduleEventFilter < KalturaLiveStreamScheduleEventBaseFilter def from_xml(xml_element) super end end class KalturaRecordScheduleEventFilter < KalturaRecordScheduleEventBaseFilter def from_xml(xml_element) super end end # The ScheduleEvent service enables you to create and manage (update, delete, retrieve, etc.) scheduled recording events. class KalturaScheduleEventService < KalturaServiceBase def initialize(client) super(client) end # Allows you to add a new KalturaScheduleEvent object # @return [KalturaScheduleEvent] def add(schedule_event) kparams = {} client.add_param(kparams, 'scheduleEvent', schedule_event) client.queue_service_action_call('schedule_scheduleevent', 'add', 'KalturaScheduleEvent', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Add new bulk upload batch job # @return [KalturaBulkUpload] def add_from_bulk_upload(file_data, bulk_upload_data=KalturaNotImplemented) kparams = {} kfiles = {} client.add_param(kfiles, 'fileData', file_data) client.add_param(kparams, 'bulkUploadData', bulk_upload_data) client.queue_service_action_call('schedule_scheduleevent', 'addFromBulkUpload', 'KalturaBulkUpload', kparams, kfiles) if (client.is_multirequest) return nil end return client.do_queue() end # Mark the KalturaScheduleEvent object as cancelled # @return [KalturaScheduleEvent] def cancel(schedule_event_id) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.queue_service_action_call('schedule_scheduleevent', 'cancel', 'KalturaScheduleEvent', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Mark the KalturaScheduleEvent object as deleted # @return [KalturaScheduleEvent] def delete(schedule_event_id) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.queue_service_action_call('schedule_scheduleevent', 'delete', 'KalturaScheduleEvent', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Retrieve a KalturaScheduleEvent object by ID # @return [KalturaScheduleEvent] def get(schedule_event_id) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.queue_service_action_call('schedule_scheduleevent', 'get', 'KalturaScheduleEvent', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # List conflicting events for resourcesIds by event's dates # @return [KalturaScheduleEventListResponse] def get_conflicts(resource_ids, schedule_event, schedule_event_id_to_ignore=KalturaNotImplemented, schedule_event_conflict_type=1) kparams = {} client.add_param(kparams, 'resourceIds', resource_ids) client.add_param(kparams, 'scheduleEvent', schedule_event) client.add_param(kparams, 'scheduleEventIdToIgnore', schedule_event_id_to_ignore) client.add_param(kparams, 'scheduleEventConflictType', schedule_event_conflict_type) client.queue_service_action_call('schedule_scheduleevent', 'getConflicts', 'KalturaScheduleEventListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # List KalturaScheduleEvent objects # @return [KalturaScheduleEventListResponse] def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('schedule_scheduleevent', 'list', 'KalturaScheduleEventListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Update an existing KalturaScheduleEvent object # @return [KalturaScheduleEvent] def update(schedule_event_id, schedule_event) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.add_param(kparams, 'scheduleEvent', schedule_event) client.queue_service_action_call('schedule_scheduleevent', 'update', 'KalturaScheduleEvent', kparams) if (client.is_multirequest) return nil end return client.do_queue() end end # The ScheduleResource service enables you to create and manage (update, delete, retrieve, etc.) the resources required for scheduled events (cameras, capture devices, etc.). class KalturaScheduleResourceService < KalturaServiceBase def initialize(client) super(client) end # Allows you to add a new KalturaScheduleResource object # @return [KalturaScheduleResource] def add(schedule_resource) kparams = {} client.add_param(kparams, 'scheduleResource', schedule_resource) client.queue_service_action_call('schedule_scheduleresource', 'add', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Add new bulk upload batch job # @return [KalturaBulkUpload] def add_from_bulk_upload(file_data, bulk_upload_data=KalturaNotImplemented) kparams = {} kfiles = {} client.add_param(kfiles, 'fileData', file_data) client.add_param(kparams, 'bulkUploadData', bulk_upload_data) client.queue_service_action_call('schedule_scheduleresource', 'addFromBulkUpload', 'KalturaBulkUpload', kparams, kfiles) if (client.is_multirequest) return nil end return client.do_queue() end # Mark the KalturaScheduleResource object as deleted # @return [KalturaScheduleResource] def delete(schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleresource', 'delete', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Retrieve a KalturaScheduleResource object by ID # @return [KalturaScheduleResource] def get(schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleresource', 'get', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # List KalturaScheduleResource objects # @return [KalturaScheduleResourceListResponse] def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('schedule_scheduleresource', 'list', 'KalturaScheduleResourceListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Update an existing KalturaScheduleResource object # @return [KalturaScheduleResource] def update(schedule_resource_id, schedule_resource) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.add_param(kparams, 'scheduleResource', schedule_resource) client.queue_service_action_call('schedule_scheduleresource', 'update', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end end # The ScheduleEventResource service enables you create and manage (update, delete, retrieve, etc.) the connections between recording events and the resources required for these events (cameras, capture devices, etc.). class KalturaScheduleEventResourceService < KalturaServiceBase def initialize(client) super(client) end # Allows you to add a new KalturaScheduleEventResource object # @return [KalturaScheduleEventResource] def add(schedule_event_resource) kparams = {} client.add_param(kparams, 'scheduleEventResource', schedule_event_resource) client.queue_service_action_call('schedule_scheduleeventresource', 'add', 'KalturaScheduleEventResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Mark the KalturaScheduleEventResource object as deleted # @return [] def delete(schedule_event_id, schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleeventresource', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Retrieve a KalturaScheduleEventResource object by ID # @return [KalturaScheduleEventResource] def get(schedule_event_id, schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleeventresource', 'get', 'KalturaScheduleEventResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # List KalturaScheduleEventResource objects # @return [KalturaScheduleEventResourceListResponse] def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented, filter_blackout_conflicts=true) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.add_param(kparams, 'filterBlackoutConflicts', filter_blackout_conflicts) client.queue_service_action_call('schedule_scheduleeventresource', 'list', 'KalturaScheduleEventResourceListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end # Update an existing KalturaScheduleEventResource object # @return [KalturaScheduleEventResource] def update(schedule_event_id, schedule_resource_id, schedule_event_resource) kparams = {} client.add_param(kparams, 'scheduleEventId', schedule_event_id) client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.add_param(kparams, 'scheduleEventResource', schedule_event_resource) client.queue_service_action_call('schedule_scheduleeventresource', 'update', 'KalturaScheduleEventResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end end class KalturaClient < KalturaClientBase attr_reader :schedule_event_service def schedule_event_service if (@schedule_event_service == nil) @schedule_event_service = KalturaScheduleEventService.new(self) end return @schedule_event_service end attr_reader :schedule_resource_service def schedule_resource_service if (@schedule_resource_service == nil) @schedule_resource_service = KalturaScheduleResourceService.new(self) end return @schedule_resource_service end attr_reader :schedule_event_resource_service def schedule_event_resource_service if (@schedule_event_resource_service == nil) @schedule_event_resource_service = KalturaScheduleEventResourceService.new(self) end return @schedule_event_resource_service end end end