kaltura-client 3.3.0 → 14.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +23 -23
- data/lib/kaltura_client.rb +2054 -1860
- data/lib/kaltura_client_base.rb +4 -1
- data/lib/kaltura_enums.rb +612 -36
- data/lib/kaltura_plugins/kaltura_activiti_business_process_notification_client_plugin.rb +96 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +46 -17
- data/lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb +61 -251
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +131 -60
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +83 -55
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +613 -0
- data/lib/kaltura_plugins/kaltura_avn_distribution_client_plugin.rb +109 -0
- data/lib/kaltura_plugins/kaltura_bpm_event_notification_integration_client_plugin.rb +61 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +17 -19
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +7 -6
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +33 -13
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +1 -2
- data/lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb +545 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +235 -114
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +86 -29
- data/lib/kaltura_plugins/kaltura_cielo24client_plugin.rb +39 -17
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +49 -18
- data/lib/kaltura_plugins/kaltura_comcast_mrss_distribution_client_plugin.rb +163 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +846 -439
- data/lib/kaltura_plugins/kaltura_cross_kaltura_distribution_client_plugin.rb +232 -0
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +229 -74
- data/lib/kaltura_plugins/kaltura_dailymotion_distribution_client_plugin.rb +199 -0
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +140 -97
- data/lib/kaltura_plugins/kaltura_double_click_distribution_client_plugin.rb +142 -0
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +635 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +485 -196
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +19 -1
- data/lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb +1228 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +178 -89
- data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +205 -95
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +43 -32
- data/lib/kaltura_plugins/kaltura_facebook_distribution_client_plugin.rb +183 -0
- data/lib/kaltura_plugins/kaltura_fairplay_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_feed_drop_folder_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +182 -67
- data/lib/kaltura_plugins/kaltura_freewheel_distribution_client_plugin.rb +157 -0
- data/lib/kaltura_plugins/kaltura_freewheel_generic_distribution_client_plugin.rb +172 -0
- data/lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb +258 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +154 -102
- data/lib/kaltura_plugins/kaltura_hulu_distribution_client_plugin.rb +213 -0
- data/lib/kaltura_plugins/kaltura_idetic_distribution_client_plugin.rb +131 -0
- data/lib/kaltura_plugins/kaltura_integration_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb +1 -87
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +45 -25
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +435 -213
- data/lib/kaltura_plugins/kaltura_metro_pcs_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_msn_distribution_client_plugin.rb +186 -0
- data/lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb +482 -0
- data/lib/kaltura_plugins/kaltura_poll_client_plugin.rb +116 -0
- data/lib/kaltura_plugins/kaltura_push_notification_client_plugin.rb +154 -0
- data/lib/kaltura_plugins/kaltura_quick_play_distribution_client_plugin.rb +187 -0
- data/lib/kaltura_plugins/kaltura_quiz_client_plugin.rb +155 -58
- data/lib/kaltura_plugins/kaltura_schedule_bulk_upload_client_plugin.rb +107 -0
- data/lib/kaltura_plugins/kaltura_schedule_client_plugin.rb +1580 -0
- data/lib/kaltura_plugins/kaltura_schedule_drop_folder_client_plugin.rb +52 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +277 -71
- data/lib/kaltura_plugins/kaltura_scheduled_task_content_distribution_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +10 -7
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +113 -66
- data/lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb +81 -517
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +63 -30
- data/lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_transcript_client_plugin.rb +44 -8
- data/lib/kaltura_plugins/kaltura_unicorn_distribution_client_plugin.rb +212 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +75 -74
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_view_history_client_plugin.rb +112 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +119 -59
- data/lib/kaltura_plugins/kaltura_voicebase_client_plugin.rb +34 -19
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +207 -0
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +299 -0
- data/lib/kaltura_plugins/kaltura_wowza_client_plugin.rb +22 -13
- data/lib/kaltura_plugins/kaltura_yahoo_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_you_tube_distribution_client_plugin.rb +382 -0
- data/lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb +219 -0
- data/lib/kaltura_types.rb +10305 -4858
- data/test/access_control_service_test.rb +43 -20
- data/test/base_entry_service_test.rb +57 -67
- data/test/configuration_test.rb +2 -34
- data/test/cue_point_service_test.rb +1 -1
- data/test/data_service_test.rb +19 -5
- data/test/document_service_test.rb +1 -1
- data/test/media_service_test.rb +296 -296
- data/test/metadata_profile_service_test.rb +1 -1
- metadata +52 -21
@@ -8,7 +8,7 @@
|
|
8
8
|
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
9
|
# text.
|
10
10
|
#
|
11
|
-
# Copyright (C) 2006-
|
11
|
+
# Copyright (C) 2006-2019 Kaltura Inc.
|
12
12
|
#
|
13
13
|
# This program is free software: you can redistribute it and/or modify
|
14
14
|
# it under the terms of the GNU Affero General Public License as
|
@@ -40,5 +40,23 @@ module Kaltura
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
+
# Represents the Bulk upload job data for drop folder xml bulk upload
|
44
|
+
class KalturaDropFolderXmlBulkUploadJobData < KalturaBulkUploadXmlJobData
|
45
|
+
# the job drop folder id
|
46
|
+
attr_accessor :drop_folder_id
|
47
|
+
|
48
|
+
def drop_folder_id=(val)
|
49
|
+
@drop_folder_id = val.to_i
|
50
|
+
end
|
51
|
+
|
52
|
+
def from_xml(xml_element)
|
53
|
+
super
|
54
|
+
if xml_element.elements['dropFolderId'] != nil
|
55
|
+
self.drop_folder_id = xml_element.elements['dropFolderId'].text
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
43
61
|
|
44
62
|
end
|
@@ -0,0 +1,1228 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2019 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
|
30
|
+
module Kaltura
|
31
|
+
|
32
|
+
class KalturaESearchItemType
|
33
|
+
EXACT_MATCH = 1
|
34
|
+
PARTIAL = 2
|
35
|
+
STARTS_WITH = 3
|
36
|
+
EXISTS = 4
|
37
|
+
RANGE = 5
|
38
|
+
end
|
39
|
+
|
40
|
+
class KalturaESearchOperatorType
|
41
|
+
AND_OP = 1
|
42
|
+
OR_OP = 2
|
43
|
+
NOT_OP = 3
|
44
|
+
end
|
45
|
+
|
46
|
+
class KalturaESearchCaptionFieldName
|
47
|
+
CAPTION_ASSET_ID = "caption_asset_id"
|
48
|
+
CONTENT = "content"
|
49
|
+
END_TIME = "end_time"
|
50
|
+
LABEL = "label"
|
51
|
+
LANGUAGE = "language"
|
52
|
+
START_TIME = "start_time"
|
53
|
+
end
|
54
|
+
|
55
|
+
class KalturaESearchCategoryEntryFieldName
|
56
|
+
ANCESTOR_ID = "ancestor_id"
|
57
|
+
ANCESTOR_NAME = "ancestor_name"
|
58
|
+
FULL_IDS = "full_ids"
|
59
|
+
ID = "id"
|
60
|
+
NAME = "name"
|
61
|
+
end
|
62
|
+
|
63
|
+
class KalturaESearchCategoryFieldName
|
64
|
+
CONTRIBUTION_POLICY = "contribution_policy"
|
65
|
+
CREATED_AT = "created_at"
|
66
|
+
DEPTH = "depth"
|
67
|
+
DESCRIPTION = "description"
|
68
|
+
DIRECT_ENTRIES_COUNT = "direct_entries_count"
|
69
|
+
DIRECT_SUB_CATEGORIES_COUNT = "direct_sub_categories_count"
|
70
|
+
DISPLAY_IN_SEARCH = "display_in_search"
|
71
|
+
ENTRIES_COUNT = "entries_count"
|
72
|
+
FULL_IDS = "full_ids"
|
73
|
+
FULL_NAME = "full_name"
|
74
|
+
ID = "id"
|
75
|
+
INHERITANCE_TYPE = "inheritance_type"
|
76
|
+
INHERITED_PARENT_ID = "inherited_parent_id"
|
77
|
+
MEMBERS_COUNT = "members_count"
|
78
|
+
MODERATION = "moderation"
|
79
|
+
NAME = "name"
|
80
|
+
PARENT_ID = "parent_id"
|
81
|
+
PENDING_ENTRIES_COUNT = "pending_entries_count"
|
82
|
+
PENDING_MEMBERS_COUNT = "pending_members_count"
|
83
|
+
PRIVACY = "privacy"
|
84
|
+
PRIVACY_CONTEXT = "privacy_context"
|
85
|
+
PRIVACY_CONTEXTS = "privacy_contexts"
|
86
|
+
REFERENCE_ID = "reference_id"
|
87
|
+
TAGS = "tags"
|
88
|
+
UPDATED_AT = "updated_at"
|
89
|
+
USER_ID = "user_id"
|
90
|
+
end
|
91
|
+
|
92
|
+
class KalturaESearchCategoryOrderByFieldName
|
93
|
+
CREATED_AT = "created_at"
|
94
|
+
ENTRIES_COUNT = "entries_count"
|
95
|
+
MEMBERS_COUNT = "members_count"
|
96
|
+
NAME = "name"
|
97
|
+
UPDATED_AT = "updated_at"
|
98
|
+
end
|
99
|
+
|
100
|
+
class KalturaESearchCategoryUserFieldName
|
101
|
+
USER_ID = "user_id"
|
102
|
+
end
|
103
|
+
|
104
|
+
class KalturaESearchCuePointFieldName
|
105
|
+
ANSWERS = "answers"
|
106
|
+
END_TIME = "end_time"
|
107
|
+
EXPLANATION = "explanation"
|
108
|
+
HINT = "hint"
|
109
|
+
ID = "id"
|
110
|
+
NAME = "name"
|
111
|
+
QUESTION = "question"
|
112
|
+
START_TIME = "start_time"
|
113
|
+
SUB_TYPE = "sub_type"
|
114
|
+
TAGS = "tags"
|
115
|
+
TEXT = "text"
|
116
|
+
TYPE = "type"
|
117
|
+
end
|
118
|
+
|
119
|
+
class KalturaESearchEntryFieldName
|
120
|
+
ACCESS_CONTROL_ID = "access_control_id"
|
121
|
+
ADMIN_TAGS = "admin_tags"
|
122
|
+
CONVERSION_PROFILE_ID = "conversion_profile_id"
|
123
|
+
CREATED_AT = "created_at"
|
124
|
+
CREATOR_ID = "creator_kuser_id"
|
125
|
+
CREDIT = "credit"
|
126
|
+
DESCRIPTION = "description"
|
127
|
+
END_DATE = "end_date"
|
128
|
+
ENTITLED_USER_EDIT = "entitled_kusers_edit"
|
129
|
+
ENTITLED_USER_PUBLISH = "entitled_kusers_publish"
|
130
|
+
ENTITLED_USER_VIEW = "entitled_kusers_view"
|
131
|
+
ENTRY_TYPE = "entry_type"
|
132
|
+
EXTERNAL_SOURCE_TYPE = "external_source_type"
|
133
|
+
ID = "id"
|
134
|
+
IS_LIVE = "is_live"
|
135
|
+
IS_QUIZ = "is_quiz"
|
136
|
+
USER_ID = "kuser_id"
|
137
|
+
LENGTH_IN_MSECS = "length_in_msecs"
|
138
|
+
MEDIA_TYPE = "media_type"
|
139
|
+
MODERATION_STATUS = "moderation_status"
|
140
|
+
NAME = "name"
|
141
|
+
PARENT_ENTRY_ID = "parent_id"
|
142
|
+
PUSH_PUBLISH = "push_publish"
|
143
|
+
RECORDED_ENTRY_ID = "recorded_entry_id"
|
144
|
+
REDIRECT_ENTRY_ID = "redirect_entry_id"
|
145
|
+
REFERENCE_ID = "reference_id"
|
146
|
+
ROOT_ID = "root_id"
|
147
|
+
SITE_URL = "site_url"
|
148
|
+
SOURCE_TYPE = "source_type"
|
149
|
+
START_DATE = "start_date"
|
150
|
+
TAGS = "tags"
|
151
|
+
TEMPLATE_ENTRY_ID = "template_entry_id"
|
152
|
+
UPDATED_AT = "updated_at"
|
153
|
+
USER_NAMES = "user_names"
|
154
|
+
end
|
155
|
+
|
156
|
+
class KalturaESearchEntryOrderByFieldName
|
157
|
+
CREATED_AT = "created_at"
|
158
|
+
END_DATE = "end_date"
|
159
|
+
LAST_PLAYED_AT = "last_played_at"
|
160
|
+
NAME = "name"
|
161
|
+
PLAYS = "plays"
|
162
|
+
PLAYS_LAST_1_DAY = "plays_last_1_day"
|
163
|
+
PLAYS_LAST_30_DAYS = "plays_last_30_days"
|
164
|
+
PLAYS_LAST_7_DAYS = "plays_last_7_days"
|
165
|
+
START_DATE = "start_date"
|
166
|
+
UPDATED_AT = "updated_at"
|
167
|
+
VIEWS = "views"
|
168
|
+
VIEWS_LAST_1_DAY = "views_last_1_day"
|
169
|
+
VIEWS_LAST_30_DAYS = "views_last_30_days"
|
170
|
+
VIEWS_LAST_7_DAYS = "views_last_7_days"
|
171
|
+
VOTES = "votes"
|
172
|
+
end
|
173
|
+
|
174
|
+
class KalturaESearchSortOrder
|
175
|
+
ORDER_BY_ASC = "asc"
|
176
|
+
ORDER_BY_DESC = "desc"
|
177
|
+
end
|
178
|
+
|
179
|
+
class KalturaESearchUserFieldName
|
180
|
+
CREATED_AT = "created_at"
|
181
|
+
EMAIL = "email"
|
182
|
+
FIRST_NAME = "first_name"
|
183
|
+
GROUP_IDS = "group_ids"
|
184
|
+
LAST_NAME = "last_name"
|
185
|
+
PERMISSION_NAMES = "permission_names"
|
186
|
+
ROLE_IDS = "role_ids"
|
187
|
+
SCREEN_NAME = "screen_name"
|
188
|
+
TAGS = "tags"
|
189
|
+
UPDATED_AT = "updated_at"
|
190
|
+
USER_ID = "user_id"
|
191
|
+
TYPE = "user_type"
|
192
|
+
end
|
193
|
+
|
194
|
+
class KalturaESearchUserOrderByFieldName
|
195
|
+
CREATED_AT = "created_at"
|
196
|
+
UPDATED_AT = "updated_at"
|
197
|
+
end
|
198
|
+
|
199
|
+
class KalturaESearchBaseItem < KalturaObjectBase
|
200
|
+
|
201
|
+
|
202
|
+
def from_xml(xml_element)
|
203
|
+
super
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|
207
|
+
|
208
|
+
class KalturaBeaconScheduledResourceBaseItem < KalturaESearchBaseItem
|
209
|
+
|
210
|
+
|
211
|
+
def from_xml(xml_element)
|
212
|
+
super
|
213
|
+
end
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
class KalturaESearchCategoryBaseItem < KalturaESearchBaseItem
|
218
|
+
|
219
|
+
|
220
|
+
def from_xml(xml_element)
|
221
|
+
super
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
class KalturaESearchHighlight < KalturaObjectBase
|
227
|
+
attr_accessor :field_name
|
228
|
+
attr_accessor :hits
|
229
|
+
|
230
|
+
|
231
|
+
def from_xml(xml_element)
|
232
|
+
super
|
233
|
+
if xml_element.elements['fieldName'] != nil
|
234
|
+
self.field_name = xml_element.elements['fieldName'].text
|
235
|
+
end
|
236
|
+
if xml_element.elements['hits'] != nil
|
237
|
+
self.hits = KalturaClientBase.object_from_xml(xml_element.elements['hits'], 'KalturaString')
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
242
|
+
|
243
|
+
class KalturaESearchItemData < KalturaObjectBase
|
244
|
+
attr_accessor :highlight
|
245
|
+
|
246
|
+
|
247
|
+
def from_xml(xml_element)
|
248
|
+
super
|
249
|
+
if xml_element.elements['highlight'] != nil
|
250
|
+
self.highlight = KalturaClientBase.object_from_xml(xml_element.elements['highlight'], 'KalturaESearchHighlight')
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
class KalturaESearchItemDataResult < KalturaObjectBase
|
257
|
+
attr_accessor :total_count
|
258
|
+
attr_accessor :items
|
259
|
+
attr_accessor :items_type
|
260
|
+
|
261
|
+
def total_count=(val)
|
262
|
+
@total_count = val.to_i
|
263
|
+
end
|
264
|
+
|
265
|
+
def from_xml(xml_element)
|
266
|
+
super
|
267
|
+
if xml_element.elements['totalCount'] != nil
|
268
|
+
self.total_count = xml_element.elements['totalCount'].text
|
269
|
+
end
|
270
|
+
if xml_element.elements['items'] != nil
|
271
|
+
self.items = KalturaClientBase.object_from_xml(xml_element.elements['items'], 'KalturaESearchItemData')
|
272
|
+
end
|
273
|
+
if xml_element.elements['itemsType'] != nil
|
274
|
+
self.items_type = xml_element.elements['itemsType'].text
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
279
|
+
|
280
|
+
class KalturaESearchResult < KalturaObjectBase
|
281
|
+
attr_accessor :highlight
|
282
|
+
attr_accessor :items_data
|
283
|
+
|
284
|
+
|
285
|
+
def from_xml(xml_element)
|
286
|
+
super
|
287
|
+
if xml_element.elements['highlight'] != nil
|
288
|
+
self.highlight = KalturaClientBase.object_from_xml(xml_element.elements['highlight'], 'KalturaESearchHighlight')
|
289
|
+
end
|
290
|
+
if xml_element.elements['itemsData'] != nil
|
291
|
+
self.items_data = KalturaClientBase.object_from_xml(xml_element.elements['itemsData'], 'KalturaESearchItemDataResult')
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
end
|
296
|
+
|
297
|
+
class KalturaESearchCategoryResult < KalturaESearchResult
|
298
|
+
attr_accessor :object
|
299
|
+
|
300
|
+
|
301
|
+
def from_xml(xml_element)
|
302
|
+
super
|
303
|
+
if xml_element.elements['object'] != nil
|
304
|
+
self.object = KalturaClientBase.object_from_xml(xml_element.elements['object'], 'KalturaCategory')
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
309
|
+
|
310
|
+
class KalturaESearchEntryBaseItem < KalturaESearchBaseItem
|
311
|
+
|
312
|
+
|
313
|
+
def from_xml(xml_element)
|
314
|
+
super
|
315
|
+
end
|
316
|
+
|
317
|
+
end
|
318
|
+
|
319
|
+
class KalturaESearchEntryBaseNestedObject < KalturaESearchEntryBaseItem
|
320
|
+
|
321
|
+
|
322
|
+
def from_xml(xml_element)
|
323
|
+
super
|
324
|
+
end
|
325
|
+
|
326
|
+
end
|
327
|
+
|
328
|
+
class KalturaESearchEntryNestedBaseItem < KalturaESearchEntryBaseNestedObject
|
329
|
+
|
330
|
+
|
331
|
+
def from_xml(xml_element)
|
332
|
+
super
|
333
|
+
end
|
334
|
+
|
335
|
+
end
|
336
|
+
|
337
|
+
class KalturaESearchEntryResult < KalturaESearchResult
|
338
|
+
attr_accessor :object
|
339
|
+
|
340
|
+
|
341
|
+
def from_xml(xml_element)
|
342
|
+
super
|
343
|
+
if xml_element.elements['object'] != nil
|
344
|
+
self.object = KalturaClientBase.object_from_xml(xml_element.elements['object'], 'KalturaBaseEntry')
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
end
|
349
|
+
|
350
|
+
class KalturaESearchOrderByItem < KalturaObjectBase
|
351
|
+
attr_accessor :sort_order
|
352
|
+
|
353
|
+
|
354
|
+
def from_xml(xml_element)
|
355
|
+
super
|
356
|
+
if xml_element.elements['sortOrder'] != nil
|
357
|
+
self.sort_order = xml_element.elements['sortOrder'].text
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
end
|
362
|
+
|
363
|
+
class KalturaESearchOrderBy < KalturaObjectBase
|
364
|
+
attr_accessor :order_items
|
365
|
+
|
366
|
+
|
367
|
+
def from_xml(xml_element)
|
368
|
+
super
|
369
|
+
if xml_element.elements['orderItems'] != nil
|
370
|
+
self.order_items = KalturaClientBase.object_from_xml(xml_element.elements['orderItems'], 'KalturaESearchOrderByItem')
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
end
|
375
|
+
|
376
|
+
class KalturaESearchParams < KalturaObjectBase
|
377
|
+
attr_accessor :object_statuses
|
378
|
+
attr_accessor :object_id
|
379
|
+
attr_accessor :order_by
|
380
|
+
|
381
|
+
|
382
|
+
def from_xml(xml_element)
|
383
|
+
super
|
384
|
+
if xml_element.elements['objectStatuses'] != nil
|
385
|
+
self.object_statuses = xml_element.elements['objectStatuses'].text
|
386
|
+
end
|
387
|
+
if xml_element.elements['objectId'] != nil
|
388
|
+
self.object_id = xml_element.elements['objectId'].text
|
389
|
+
end
|
390
|
+
if xml_element.elements['orderBy'] != nil
|
391
|
+
self.order_by = KalturaClientBase.object_from_xml(xml_element.elements['orderBy'], 'KalturaESearchOrderBy')
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
end
|
396
|
+
|
397
|
+
class KalturaESearchRange < KalturaObjectBase
|
398
|
+
attr_accessor :greater_than_or_equal
|
399
|
+
attr_accessor :less_than_or_equal
|
400
|
+
attr_accessor :greater_than
|
401
|
+
attr_accessor :less_than
|
402
|
+
|
403
|
+
def greater_than_or_equal=(val)
|
404
|
+
@greater_than_or_equal = val.to_i
|
405
|
+
end
|
406
|
+
def less_than_or_equal=(val)
|
407
|
+
@less_than_or_equal = val.to_i
|
408
|
+
end
|
409
|
+
def greater_than=(val)
|
410
|
+
@greater_than = val.to_i
|
411
|
+
end
|
412
|
+
def less_than=(val)
|
413
|
+
@less_than = val.to_i
|
414
|
+
end
|
415
|
+
|
416
|
+
def from_xml(xml_element)
|
417
|
+
super
|
418
|
+
if xml_element.elements['greaterThanOrEqual'] != nil
|
419
|
+
self.greater_than_or_equal = xml_element.elements['greaterThanOrEqual'].text
|
420
|
+
end
|
421
|
+
if xml_element.elements['lessThanOrEqual'] != nil
|
422
|
+
self.less_than_or_equal = xml_element.elements['lessThanOrEqual'].text
|
423
|
+
end
|
424
|
+
if xml_element.elements['greaterThan'] != nil
|
425
|
+
self.greater_than = xml_element.elements['greaterThan'].text
|
426
|
+
end
|
427
|
+
if xml_element.elements['lessThan'] != nil
|
428
|
+
self.less_than = xml_element.elements['lessThan'].text
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
end
|
433
|
+
|
434
|
+
class KalturaESearchResponse < KalturaObjectBase
|
435
|
+
attr_accessor :total_count
|
436
|
+
|
437
|
+
def total_count=(val)
|
438
|
+
@total_count = val.to_i
|
439
|
+
end
|
440
|
+
|
441
|
+
def from_xml(xml_element)
|
442
|
+
super
|
443
|
+
if xml_element.elements['totalCount'] != nil
|
444
|
+
self.total_count = xml_element.elements['totalCount'].text
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
end
|
449
|
+
|
450
|
+
class KalturaESearchUserBaseItem < KalturaESearchBaseItem
|
451
|
+
|
452
|
+
|
453
|
+
def from_xml(xml_element)
|
454
|
+
super
|
455
|
+
end
|
456
|
+
|
457
|
+
end
|
458
|
+
|
459
|
+
class KalturaESearchUserResult < KalturaESearchResult
|
460
|
+
attr_accessor :object
|
461
|
+
|
462
|
+
|
463
|
+
def from_xml(xml_element)
|
464
|
+
super
|
465
|
+
if xml_element.elements['object'] != nil
|
466
|
+
self.object = KalturaClientBase.object_from_xml(xml_element.elements['object'], 'KalturaUser')
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
end
|
471
|
+
|
472
|
+
class KalturaESearchCaptionItemData < KalturaESearchItemData
|
473
|
+
attr_accessor :line
|
474
|
+
attr_accessor :starts_at
|
475
|
+
attr_accessor :ends_at
|
476
|
+
attr_accessor :language
|
477
|
+
attr_accessor :caption_asset_id
|
478
|
+
attr_accessor :label
|
479
|
+
|
480
|
+
def starts_at=(val)
|
481
|
+
@starts_at = val.to_i
|
482
|
+
end
|
483
|
+
def ends_at=(val)
|
484
|
+
@ends_at = val.to_i
|
485
|
+
end
|
486
|
+
|
487
|
+
def from_xml(xml_element)
|
488
|
+
super
|
489
|
+
if xml_element.elements['line'] != nil
|
490
|
+
self.line = xml_element.elements['line'].text
|
491
|
+
end
|
492
|
+
if xml_element.elements['startsAt'] != nil
|
493
|
+
self.starts_at = xml_element.elements['startsAt'].text
|
494
|
+
end
|
495
|
+
if xml_element.elements['endsAt'] != nil
|
496
|
+
self.ends_at = xml_element.elements['endsAt'].text
|
497
|
+
end
|
498
|
+
if xml_element.elements['language'] != nil
|
499
|
+
self.language = xml_element.elements['language'].text
|
500
|
+
end
|
501
|
+
if xml_element.elements['captionAssetId'] != nil
|
502
|
+
self.caption_asset_id = xml_element.elements['captionAssetId'].text
|
503
|
+
end
|
504
|
+
if xml_element.elements['label'] != nil
|
505
|
+
self.label = xml_element.elements['label'].text
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
end
|
510
|
+
|
511
|
+
class KalturaESearchCategoryOrderByItem < KalturaESearchOrderByItem
|
512
|
+
attr_accessor :sort_field
|
513
|
+
|
514
|
+
|
515
|
+
def from_xml(xml_element)
|
516
|
+
super
|
517
|
+
if xml_element.elements['sortField'] != nil
|
518
|
+
self.sort_field = xml_element.elements['sortField'].text
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
end
|
523
|
+
|
524
|
+
class KalturaESearchCategoryOperator < KalturaESearchCategoryBaseItem
|
525
|
+
attr_accessor :operator
|
526
|
+
attr_accessor :search_items
|
527
|
+
|
528
|
+
def operator=(val)
|
529
|
+
@operator = val.to_i
|
530
|
+
end
|
531
|
+
|
532
|
+
def from_xml(xml_element)
|
533
|
+
super
|
534
|
+
if xml_element.elements['operator'] != nil
|
535
|
+
self.operator = xml_element.elements['operator'].text
|
536
|
+
end
|
537
|
+
if xml_element.elements['searchItems'] != nil
|
538
|
+
self.search_items = KalturaClientBase.object_from_xml(xml_element.elements['searchItems'], 'KalturaESearchCategoryBaseItem')
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
end
|
543
|
+
|
544
|
+
class KalturaESearchCategoryParams < KalturaESearchParams
|
545
|
+
attr_accessor :search_operator
|
546
|
+
|
547
|
+
|
548
|
+
def from_xml(xml_element)
|
549
|
+
super
|
550
|
+
if xml_element.elements['searchOperator'] != nil
|
551
|
+
self.search_operator = KalturaClientBase.object_from_xml(xml_element.elements['searchOperator'], 'KalturaESearchCategoryOperator')
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
555
|
+
end
|
556
|
+
|
557
|
+
class KalturaESearchCategoryResponse < KalturaESearchResponse
|
558
|
+
attr_accessor :objects
|
559
|
+
|
560
|
+
|
561
|
+
def from_xml(xml_element)
|
562
|
+
super
|
563
|
+
if xml_element.elements['objects'] != nil
|
564
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaESearchCategoryResult')
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
end
|
569
|
+
|
570
|
+
class KalturaESearchCuePointItemData < KalturaESearchItemData
|
571
|
+
attr_accessor :cue_point_type
|
572
|
+
attr_accessor :id
|
573
|
+
attr_accessor :name
|
574
|
+
attr_accessor :text
|
575
|
+
attr_accessor :tags
|
576
|
+
attr_accessor :start_time
|
577
|
+
attr_accessor :end_time
|
578
|
+
attr_accessor :sub_type
|
579
|
+
attr_accessor :question
|
580
|
+
attr_accessor :answers
|
581
|
+
attr_accessor :hint
|
582
|
+
attr_accessor :explanation
|
583
|
+
attr_accessor :asset_id
|
584
|
+
|
585
|
+
|
586
|
+
def from_xml(xml_element)
|
587
|
+
super
|
588
|
+
if xml_element.elements['cuePointType'] != nil
|
589
|
+
self.cue_point_type = xml_element.elements['cuePointType'].text
|
590
|
+
end
|
591
|
+
if xml_element.elements['id'] != nil
|
592
|
+
self.id = xml_element.elements['id'].text
|
593
|
+
end
|
594
|
+
if xml_element.elements['name'] != nil
|
595
|
+
self.name = xml_element.elements['name'].text
|
596
|
+
end
|
597
|
+
if xml_element.elements['text'] != nil
|
598
|
+
self.text = xml_element.elements['text'].text
|
599
|
+
end
|
600
|
+
if xml_element.elements['tags'] != nil
|
601
|
+
self.tags = KalturaClientBase.object_from_xml(xml_element.elements['tags'], 'KalturaString')
|
602
|
+
end
|
603
|
+
if xml_element.elements['startTime'] != nil
|
604
|
+
self.start_time = xml_element.elements['startTime'].text
|
605
|
+
end
|
606
|
+
if xml_element.elements['endTime'] != nil
|
607
|
+
self.end_time = xml_element.elements['endTime'].text
|
608
|
+
end
|
609
|
+
if xml_element.elements['subType'] != nil
|
610
|
+
self.sub_type = xml_element.elements['subType'].text
|
611
|
+
end
|
612
|
+
if xml_element.elements['question'] != nil
|
613
|
+
self.question = xml_element.elements['question'].text
|
614
|
+
end
|
615
|
+
if xml_element.elements['answers'] != nil
|
616
|
+
self.answers = KalturaClientBase.object_from_xml(xml_element.elements['answers'], 'KalturaString')
|
617
|
+
end
|
618
|
+
if xml_element.elements['hint'] != nil
|
619
|
+
self.hint = xml_element.elements['hint'].text
|
620
|
+
end
|
621
|
+
if xml_element.elements['explanation'] != nil
|
622
|
+
self.explanation = xml_element.elements['explanation'].text
|
623
|
+
end
|
624
|
+
if xml_element.elements['assetId'] != nil
|
625
|
+
self.asset_id = xml_element.elements['assetId'].text
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
629
|
+
end
|
630
|
+
|
631
|
+
class KalturaESearchEntryOrderByItem < KalturaESearchOrderByItem
|
632
|
+
attr_accessor :sort_field
|
633
|
+
|
634
|
+
|
635
|
+
def from_xml(xml_element)
|
636
|
+
super
|
637
|
+
if xml_element.elements['sortField'] != nil
|
638
|
+
self.sort_field = xml_element.elements['sortField'].text
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
end
|
643
|
+
|
644
|
+
class KalturaESearchEntryOperator < KalturaESearchEntryBaseItem
|
645
|
+
attr_accessor :operator
|
646
|
+
attr_accessor :search_items
|
647
|
+
|
648
|
+
def operator=(val)
|
649
|
+
@operator = val.to_i
|
650
|
+
end
|
651
|
+
|
652
|
+
def from_xml(xml_element)
|
653
|
+
super
|
654
|
+
if xml_element.elements['operator'] != nil
|
655
|
+
self.operator = xml_element.elements['operator'].text
|
656
|
+
end
|
657
|
+
if xml_element.elements['searchItems'] != nil
|
658
|
+
self.search_items = KalturaClientBase.object_from_xml(xml_element.elements['searchItems'], 'KalturaESearchEntryBaseItem')
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
662
|
+
end
|
663
|
+
|
664
|
+
class KalturaESearchEntryParams < KalturaESearchParams
|
665
|
+
attr_accessor :search_operator
|
666
|
+
|
667
|
+
|
668
|
+
def from_xml(xml_element)
|
669
|
+
super
|
670
|
+
if xml_element.elements['searchOperator'] != nil
|
671
|
+
self.search_operator = KalturaClientBase.object_from_xml(xml_element.elements['searchOperator'], 'KalturaESearchEntryOperator')
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
675
|
+
end
|
676
|
+
|
677
|
+
class KalturaESearchEntryResponse < KalturaESearchResponse
|
678
|
+
attr_accessor :objects
|
679
|
+
|
680
|
+
|
681
|
+
def from_xml(xml_element)
|
682
|
+
super
|
683
|
+
if xml_element.elements['objects'] != nil
|
684
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaESearchEntryResult')
|
685
|
+
end
|
686
|
+
end
|
687
|
+
|
688
|
+
end
|
689
|
+
|
690
|
+
class KalturaESearchMetadataItemData < KalturaESearchItemData
|
691
|
+
attr_accessor :xpath
|
692
|
+
attr_accessor :metadata_profile_id
|
693
|
+
attr_accessor :metadata_field_id
|
694
|
+
attr_accessor :value_text
|
695
|
+
attr_accessor :value_int
|
696
|
+
|
697
|
+
def metadata_profile_id=(val)
|
698
|
+
@metadata_profile_id = val.to_i
|
699
|
+
end
|
700
|
+
def metadata_field_id=(val)
|
701
|
+
@metadata_field_id = val.to_i
|
702
|
+
end
|
703
|
+
def value_int=(val)
|
704
|
+
@value_int = val.to_i
|
705
|
+
end
|
706
|
+
|
707
|
+
def from_xml(xml_element)
|
708
|
+
super
|
709
|
+
if xml_element.elements['xpath'] != nil
|
710
|
+
self.xpath = xml_element.elements['xpath'].text
|
711
|
+
end
|
712
|
+
if xml_element.elements['metadataProfileId'] != nil
|
713
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
714
|
+
end
|
715
|
+
if xml_element.elements['metadataFieldId'] != nil
|
716
|
+
self.metadata_field_id = xml_element.elements['metadataFieldId'].text
|
717
|
+
end
|
718
|
+
if xml_element.elements['valueText'] != nil
|
719
|
+
self.value_text = xml_element.elements['valueText'].text
|
720
|
+
end
|
721
|
+
if xml_element.elements['valueInt'] != nil
|
722
|
+
self.value_int = xml_element.elements['valueInt'].text
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
end
|
727
|
+
|
728
|
+
class KalturaESearchMetadataOrderByItem < KalturaESearchOrderByItem
|
729
|
+
attr_accessor :xpath
|
730
|
+
attr_accessor :metadata_profile_id
|
731
|
+
|
732
|
+
def metadata_profile_id=(val)
|
733
|
+
@metadata_profile_id = val.to_i
|
734
|
+
end
|
735
|
+
|
736
|
+
def from_xml(xml_element)
|
737
|
+
super
|
738
|
+
if xml_element.elements['xpath'] != nil
|
739
|
+
self.xpath = xml_element.elements['xpath'].text
|
740
|
+
end
|
741
|
+
if xml_element.elements['metadataProfileId'] != nil
|
742
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
end
|
747
|
+
|
748
|
+
class KalturaESearchUserOrderByItem < KalturaESearchOrderByItem
|
749
|
+
attr_accessor :sort_field
|
750
|
+
|
751
|
+
|
752
|
+
def from_xml(xml_element)
|
753
|
+
super
|
754
|
+
if xml_element.elements['sortField'] != nil
|
755
|
+
self.sort_field = xml_element.elements['sortField'].text
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
end
|
760
|
+
|
761
|
+
class KalturaESearchUserOperator < KalturaESearchUserBaseItem
|
762
|
+
attr_accessor :operator
|
763
|
+
attr_accessor :search_items
|
764
|
+
|
765
|
+
def operator=(val)
|
766
|
+
@operator = val.to_i
|
767
|
+
end
|
768
|
+
|
769
|
+
def from_xml(xml_element)
|
770
|
+
super
|
771
|
+
if xml_element.elements['operator'] != nil
|
772
|
+
self.operator = xml_element.elements['operator'].text
|
773
|
+
end
|
774
|
+
if xml_element.elements['searchItems'] != nil
|
775
|
+
self.search_items = KalturaClientBase.object_from_xml(xml_element.elements['searchItems'], 'KalturaESearchUserBaseItem')
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
779
|
+
end
|
780
|
+
|
781
|
+
class KalturaESearchUserParams < KalturaESearchParams
|
782
|
+
attr_accessor :search_operator
|
783
|
+
|
784
|
+
|
785
|
+
def from_xml(xml_element)
|
786
|
+
super
|
787
|
+
if xml_element.elements['searchOperator'] != nil
|
788
|
+
self.search_operator = KalturaClientBase.object_from_xml(xml_element.elements['searchOperator'], 'KalturaESearchUserOperator')
|
789
|
+
end
|
790
|
+
end
|
791
|
+
|
792
|
+
end
|
793
|
+
|
794
|
+
class KalturaESearchUserResponse < KalturaESearchResponse
|
795
|
+
attr_accessor :objects
|
796
|
+
|
797
|
+
|
798
|
+
def from_xml(xml_element)
|
799
|
+
super
|
800
|
+
if xml_element.elements['objects'] != nil
|
801
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaESearchUserResult')
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
end
|
806
|
+
|
807
|
+
class KalturaBeaconAbstractScheduledResourceItem < KalturaBeaconScheduledResourceBaseItem
|
808
|
+
attr_accessor :search_term
|
809
|
+
attr_accessor :item_type
|
810
|
+
attr_accessor :range
|
811
|
+
|
812
|
+
def item_type=(val)
|
813
|
+
@item_type = val.to_i
|
814
|
+
end
|
815
|
+
|
816
|
+
def from_xml(xml_element)
|
817
|
+
super
|
818
|
+
if xml_element.elements['searchTerm'] != nil
|
819
|
+
self.search_term = xml_element.elements['searchTerm'].text
|
820
|
+
end
|
821
|
+
if xml_element.elements['itemType'] != nil
|
822
|
+
self.item_type = xml_element.elements['itemType'].text
|
823
|
+
end
|
824
|
+
if xml_element.elements['range'] != nil
|
825
|
+
self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
end
|
830
|
+
|
831
|
+
class KalturaESearchAbstractCategoryItem < KalturaESearchCategoryBaseItem
|
832
|
+
attr_accessor :search_term
|
833
|
+
attr_accessor :item_type
|
834
|
+
attr_accessor :range
|
835
|
+
attr_accessor :add_highlight
|
836
|
+
|
837
|
+
def item_type=(val)
|
838
|
+
@item_type = val.to_i
|
839
|
+
end
|
840
|
+
def add_highlight=(val)
|
841
|
+
@add_highlight = to_b(val)
|
842
|
+
end
|
843
|
+
|
844
|
+
def from_xml(xml_element)
|
845
|
+
super
|
846
|
+
if xml_element.elements['searchTerm'] != nil
|
847
|
+
self.search_term = xml_element.elements['searchTerm'].text
|
848
|
+
end
|
849
|
+
if xml_element.elements['itemType'] != nil
|
850
|
+
self.item_type = xml_element.elements['itemType'].text
|
851
|
+
end
|
852
|
+
if xml_element.elements['range'] != nil
|
853
|
+
self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
|
854
|
+
end
|
855
|
+
if xml_element.elements['addHighlight'] != nil
|
856
|
+
self.add_highlight = xml_element.elements['addHighlight'].text
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
860
|
+
end
|
861
|
+
|
862
|
+
class KalturaESearchAbstractEntryItem < KalturaESearchEntryBaseItem
|
863
|
+
attr_accessor :search_term
|
864
|
+
attr_accessor :item_type
|
865
|
+
attr_accessor :range
|
866
|
+
attr_accessor :add_highlight
|
867
|
+
|
868
|
+
def item_type=(val)
|
869
|
+
@item_type = val.to_i
|
870
|
+
end
|
871
|
+
def add_highlight=(val)
|
872
|
+
@add_highlight = to_b(val)
|
873
|
+
end
|
874
|
+
|
875
|
+
def from_xml(xml_element)
|
876
|
+
super
|
877
|
+
if xml_element.elements['searchTerm'] != nil
|
878
|
+
self.search_term = xml_element.elements['searchTerm'].text
|
879
|
+
end
|
880
|
+
if xml_element.elements['itemType'] != nil
|
881
|
+
self.item_type = xml_element.elements['itemType'].text
|
882
|
+
end
|
883
|
+
if xml_element.elements['range'] != nil
|
884
|
+
self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
|
885
|
+
end
|
886
|
+
if xml_element.elements['addHighlight'] != nil
|
887
|
+
self.add_highlight = xml_element.elements['addHighlight'].text
|
888
|
+
end
|
889
|
+
end
|
890
|
+
|
891
|
+
end
|
892
|
+
|
893
|
+
class KalturaESearchAbstractUserItem < KalturaESearchUserBaseItem
|
894
|
+
attr_accessor :search_term
|
895
|
+
attr_accessor :item_type
|
896
|
+
attr_accessor :range
|
897
|
+
attr_accessor :add_highlight
|
898
|
+
|
899
|
+
def item_type=(val)
|
900
|
+
@item_type = val.to_i
|
901
|
+
end
|
902
|
+
def add_highlight=(val)
|
903
|
+
@add_highlight = to_b(val)
|
904
|
+
end
|
905
|
+
|
906
|
+
def from_xml(xml_element)
|
907
|
+
super
|
908
|
+
if xml_element.elements['searchTerm'] != nil
|
909
|
+
self.search_term = xml_element.elements['searchTerm'].text
|
910
|
+
end
|
911
|
+
if xml_element.elements['itemType'] != nil
|
912
|
+
self.item_type = xml_element.elements['itemType'].text
|
913
|
+
end
|
914
|
+
if xml_element.elements['range'] != nil
|
915
|
+
self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
|
916
|
+
end
|
917
|
+
if xml_element.elements['addHighlight'] != nil
|
918
|
+
self.add_highlight = xml_element.elements['addHighlight'].text
|
919
|
+
end
|
920
|
+
end
|
921
|
+
|
922
|
+
end
|
923
|
+
|
924
|
+
class KalturaESearchCategoryEntryItem < KalturaESearchAbstractEntryItem
|
925
|
+
attr_accessor :field_name
|
926
|
+
attr_accessor :category_entry_status
|
927
|
+
|
928
|
+
def category_entry_status=(val)
|
929
|
+
@category_entry_status = val.to_i
|
930
|
+
end
|
931
|
+
|
932
|
+
def from_xml(xml_element)
|
933
|
+
super
|
934
|
+
if xml_element.elements['fieldName'] != nil
|
935
|
+
self.field_name = xml_element.elements['fieldName'].text
|
936
|
+
end
|
937
|
+
if xml_element.elements['categoryEntryStatus'] != nil
|
938
|
+
self.category_entry_status = xml_element.elements['categoryEntryStatus'].text
|
939
|
+
end
|
940
|
+
end
|
941
|
+
|
942
|
+
end
|
943
|
+
|
944
|
+
class KalturaESearchCategoryItem < KalturaESearchAbstractCategoryItem
|
945
|
+
attr_accessor :field_name
|
946
|
+
|
947
|
+
|
948
|
+
def from_xml(xml_element)
|
949
|
+
super
|
950
|
+
if xml_element.elements['fieldName'] != nil
|
951
|
+
self.field_name = xml_element.elements['fieldName'].text
|
952
|
+
end
|
953
|
+
end
|
954
|
+
|
955
|
+
end
|
956
|
+
|
957
|
+
class KalturaESearchCategoryMetadataItem < KalturaESearchAbstractCategoryItem
|
958
|
+
attr_accessor :xpath
|
959
|
+
attr_accessor :metadata_profile_id
|
960
|
+
attr_accessor :metadata_field_id
|
961
|
+
|
962
|
+
def metadata_profile_id=(val)
|
963
|
+
@metadata_profile_id = val.to_i
|
964
|
+
end
|
965
|
+
def metadata_field_id=(val)
|
966
|
+
@metadata_field_id = val.to_i
|
967
|
+
end
|
968
|
+
|
969
|
+
def from_xml(xml_element)
|
970
|
+
super
|
971
|
+
if xml_element.elements['xpath'] != nil
|
972
|
+
self.xpath = xml_element.elements['xpath'].text
|
973
|
+
end
|
974
|
+
if xml_element.elements['metadataProfileId'] != nil
|
975
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
976
|
+
end
|
977
|
+
if xml_element.elements['metadataFieldId'] != nil
|
978
|
+
self.metadata_field_id = xml_element.elements['metadataFieldId'].text
|
979
|
+
end
|
980
|
+
end
|
981
|
+
|
982
|
+
end
|
983
|
+
|
984
|
+
class KalturaESearchCategoryUserItem < KalturaESearchAbstractCategoryItem
|
985
|
+
attr_accessor :field_name
|
986
|
+
attr_accessor :permission_level
|
987
|
+
attr_accessor :permission_name
|
988
|
+
|
989
|
+
def permission_level=(val)
|
990
|
+
@permission_level = val.to_i
|
991
|
+
end
|
992
|
+
|
993
|
+
def from_xml(xml_element)
|
994
|
+
super
|
995
|
+
if xml_element.elements['fieldName'] != nil
|
996
|
+
self.field_name = xml_element.elements['fieldName'].text
|
997
|
+
end
|
998
|
+
if xml_element.elements['permissionLevel'] != nil
|
999
|
+
self.permission_level = xml_element.elements['permissionLevel'].text
|
1000
|
+
end
|
1001
|
+
if xml_element.elements['permissionName'] != nil
|
1002
|
+
self.permission_name = xml_element.elements['permissionName'].text
|
1003
|
+
end
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
class KalturaESearchEntryItem < KalturaESearchAbstractEntryItem
|
1009
|
+
attr_accessor :field_name
|
1010
|
+
|
1011
|
+
|
1012
|
+
def from_xml(xml_element)
|
1013
|
+
super
|
1014
|
+
if xml_element.elements['fieldName'] != nil
|
1015
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1016
|
+
end
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
class KalturaESearchUnifiedItem < KalturaESearchAbstractEntryItem
|
1022
|
+
|
1023
|
+
|
1024
|
+
def from_xml(xml_element)
|
1025
|
+
super
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
class KalturaESearchUserItem < KalturaESearchAbstractUserItem
|
1031
|
+
attr_accessor :field_name
|
1032
|
+
|
1033
|
+
|
1034
|
+
def from_xml(xml_element)
|
1035
|
+
super
|
1036
|
+
if xml_element.elements['fieldName'] != nil
|
1037
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
class KalturaESearchUserMetadataItem < KalturaESearchAbstractUserItem
|
1044
|
+
attr_accessor :xpath
|
1045
|
+
attr_accessor :metadata_profile_id
|
1046
|
+
attr_accessor :metadata_field_id
|
1047
|
+
|
1048
|
+
def metadata_profile_id=(val)
|
1049
|
+
@metadata_profile_id = val.to_i
|
1050
|
+
end
|
1051
|
+
def metadata_field_id=(val)
|
1052
|
+
@metadata_field_id = val.to_i
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
def from_xml(xml_element)
|
1056
|
+
super
|
1057
|
+
if xml_element.elements['xpath'] != nil
|
1058
|
+
self.xpath = xml_element.elements['xpath'].text
|
1059
|
+
end
|
1060
|
+
if xml_element.elements['metadataProfileId'] != nil
|
1061
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
1062
|
+
end
|
1063
|
+
if xml_element.elements['metadataFieldId'] != nil
|
1064
|
+
self.metadata_field_id = xml_element.elements['metadataFieldId'].text
|
1065
|
+
end
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
class KalturaESearchEntryAbstractNestedItem < KalturaESearchEntryNestedBaseItem
|
1071
|
+
attr_accessor :search_term
|
1072
|
+
attr_accessor :item_type
|
1073
|
+
attr_accessor :range
|
1074
|
+
attr_accessor :add_highlight
|
1075
|
+
|
1076
|
+
def item_type=(val)
|
1077
|
+
@item_type = val.to_i
|
1078
|
+
end
|
1079
|
+
def add_highlight=(val)
|
1080
|
+
@add_highlight = to_b(val)
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
def from_xml(xml_element)
|
1084
|
+
super
|
1085
|
+
if xml_element.elements['searchTerm'] != nil
|
1086
|
+
self.search_term = xml_element.elements['searchTerm'].text
|
1087
|
+
end
|
1088
|
+
if xml_element.elements['itemType'] != nil
|
1089
|
+
self.item_type = xml_element.elements['itemType'].text
|
1090
|
+
end
|
1091
|
+
if xml_element.elements['range'] != nil
|
1092
|
+
self.range = KalturaClientBase.object_from_xml(xml_element.elements['range'], 'KalturaESearchRange')
|
1093
|
+
end
|
1094
|
+
if xml_element.elements['addHighlight'] != nil
|
1095
|
+
self.add_highlight = xml_element.elements['addHighlight'].text
|
1096
|
+
end
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
class KalturaESearchNestedOperator < KalturaESearchEntryNestedBaseItem
|
1102
|
+
attr_accessor :operator
|
1103
|
+
attr_accessor :search_items
|
1104
|
+
|
1105
|
+
def operator=(val)
|
1106
|
+
@operator = val.to_i
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def from_xml(xml_element)
|
1110
|
+
super
|
1111
|
+
if xml_element.elements['operator'] != nil
|
1112
|
+
self.operator = xml_element.elements['operator'].text
|
1113
|
+
end
|
1114
|
+
if xml_element.elements['searchItems'] != nil
|
1115
|
+
self.search_items = KalturaClientBase.object_from_xml(xml_element.elements['searchItems'], 'KalturaESearchEntryNestedBaseItem')
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
class KalturaESearchCaptionItem < KalturaESearchEntryAbstractNestedItem
|
1122
|
+
attr_accessor :field_name
|
1123
|
+
|
1124
|
+
|
1125
|
+
def from_xml(xml_element)
|
1126
|
+
super
|
1127
|
+
if xml_element.elements['fieldName'] != nil
|
1128
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1129
|
+
end
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
class KalturaESearchCuePointItem < KalturaESearchEntryAbstractNestedItem
|
1135
|
+
attr_accessor :field_name
|
1136
|
+
|
1137
|
+
|
1138
|
+
def from_xml(xml_element)
|
1139
|
+
super
|
1140
|
+
if xml_element.elements['fieldName'] != nil
|
1141
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1142
|
+
end
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
class KalturaESearchEntryMetadataItem < KalturaESearchEntryAbstractNestedItem
|
1148
|
+
attr_accessor :xpath
|
1149
|
+
attr_accessor :metadata_profile_id
|
1150
|
+
attr_accessor :metadata_field_id
|
1151
|
+
|
1152
|
+
def metadata_profile_id=(val)
|
1153
|
+
@metadata_profile_id = val.to_i
|
1154
|
+
end
|
1155
|
+
def metadata_field_id=(val)
|
1156
|
+
@metadata_field_id = val.to_i
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
def from_xml(xml_element)
|
1160
|
+
super
|
1161
|
+
if xml_element.elements['xpath'] != nil
|
1162
|
+
self.xpath = xml_element.elements['xpath'].text
|
1163
|
+
end
|
1164
|
+
if xml_element.elements['metadataProfileId'] != nil
|
1165
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
1166
|
+
end
|
1167
|
+
if xml_element.elements['metadataFieldId'] != nil
|
1168
|
+
self.metadata_field_id = xml_element.elements['metadataFieldId'].text
|
1169
|
+
end
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
|
1175
|
+
class KalturaESearchService < KalturaServiceBase
|
1176
|
+
def initialize(client)
|
1177
|
+
super(client)
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
# @return [KalturaESearchCategoryResponse]
|
1181
|
+
def search_category(search_params, pager=KalturaNotImplemented)
|
1182
|
+
kparams = {}
|
1183
|
+
client.add_param(kparams, 'searchParams', search_params)
|
1184
|
+
client.add_param(kparams, 'pager', pager)
|
1185
|
+
client.queue_service_action_call('elasticsearch_esearch', 'searchCategory', 'KalturaESearchCategoryResponse', kparams)
|
1186
|
+
if (client.is_multirequest)
|
1187
|
+
return nil
|
1188
|
+
end
|
1189
|
+
return client.do_queue()
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# @return [KalturaESearchEntryResponse]
|
1193
|
+
def search_entry(search_params, pager=KalturaNotImplemented)
|
1194
|
+
kparams = {}
|
1195
|
+
client.add_param(kparams, 'searchParams', search_params)
|
1196
|
+
client.add_param(kparams, 'pager', pager)
|
1197
|
+
client.queue_service_action_call('elasticsearch_esearch', 'searchEntry', 'KalturaESearchEntryResponse', kparams)
|
1198
|
+
if (client.is_multirequest)
|
1199
|
+
return nil
|
1200
|
+
end
|
1201
|
+
return client.do_queue()
|
1202
|
+
end
|
1203
|
+
|
1204
|
+
# @return [KalturaESearchUserResponse]
|
1205
|
+
def search_user(search_params, pager=KalturaNotImplemented)
|
1206
|
+
kparams = {}
|
1207
|
+
client.add_param(kparams, 'searchParams', search_params)
|
1208
|
+
client.add_param(kparams, 'pager', pager)
|
1209
|
+
client.queue_service_action_call('elasticsearch_esearch', 'searchUser', 'KalturaESearchUserResponse', kparams)
|
1210
|
+
if (client.is_multirequest)
|
1211
|
+
return nil
|
1212
|
+
end
|
1213
|
+
return client.do_queue()
|
1214
|
+
end
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
class KalturaClient < KalturaClientBase
|
1218
|
+
attr_reader :e_search_service
|
1219
|
+
def e_search_service
|
1220
|
+
if (@e_search_service == nil)
|
1221
|
+
@e_search_service = KalturaESearchService.new(self)
|
1222
|
+
end
|
1223
|
+
return @e_search_service
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
end
|