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
|
@@ -54,7 +54,9 @@ module Kaltura
|
|
54
54
|
|
55
55
|
def from_xml(xml_element)
|
56
56
|
super
|
57
|
-
|
57
|
+
if xml_element.elements['eventType'] != nil
|
58
|
+
self.event_type = xml_element.elements['eventType'].text
|
59
|
+
end
|
58
60
|
end
|
59
61
|
|
60
62
|
end
|
@@ -66,8 +68,12 @@ module Kaltura
|
|
66
68
|
|
67
69
|
def from_xml(xml_element)
|
68
70
|
super
|
69
|
-
|
70
|
-
|
71
|
+
if xml_element.elements['eventTypeEqual'] != nil
|
72
|
+
self.event_type_equal = xml_element.elements['eventTypeEqual'].text
|
73
|
+
end
|
74
|
+
if xml_element.elements['eventTypeIn'] != nil
|
75
|
+
self.event_type_in = xml_element.elements['eventTypeIn'].text
|
76
|
+
end
|
71
77
|
end
|
72
78
|
|
73
79
|
end
|
@@ -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
|
@@ -38,6 +38,7 @@ module Kaltura
|
|
38
38
|
class KalturaEventNotificationEventObjectType
|
39
39
|
AD_CUE_POINT = "adCuePointEventNotifications.AdCuePoint"
|
40
40
|
ANNOTATION = "annotationEventNotifications.Annotation"
|
41
|
+
ATTACHMENT_ASSET = "attachmentAssetEventNotifications.AttachmentAsset"
|
41
42
|
CAPTION_ASSET = "captionAssetEventNotifications.CaptionAsset"
|
42
43
|
CODE_CUE_POINT = "codeCuePointEventNotifications.CodeCuePoint"
|
43
44
|
DISTRIBUTION_PROFILE = "contentDistributionEventNotifications.DistributionProfile"
|
@@ -46,6 +47,7 @@ module Kaltura
|
|
46
47
|
DROP_FOLDER = "dropFolderEventNotifications.DropFolder"
|
47
48
|
DROP_FOLDER_FILE = "dropFolderEventNotifications.DropFolderFile"
|
48
49
|
METADATA = "metadataEventNotifications.Metadata"
|
50
|
+
TRANSCRIPT_ASSET = "transcriptAssetEventNotifications.TranscriptAsset"
|
49
51
|
ENTRY = "1"
|
50
52
|
CATEGORY = "2"
|
51
53
|
ASSET = "3"
|
@@ -79,9 +81,15 @@ module Kaltura
|
|
79
81
|
USERROLE = "35"
|
80
82
|
WIDGET = "36"
|
81
83
|
CATEGORYENTRY = "37"
|
84
|
+
LIVE_STREAM = "38"
|
85
|
+
SERVER_NODE = "39"
|
86
|
+
ENTRY_SERVER_NODE = "40"
|
87
|
+
REACH_PROFILE = "41"
|
88
|
+
ENTRY_VENDOR_TASK = "42"
|
82
89
|
end
|
83
90
|
|
84
91
|
class KalturaEventNotificationEventType
|
92
|
+
INTEGRATION_JOB_CLOSED = "integrationEventNotifications.INTEGRATION_JOB_CLOSED"
|
85
93
|
BATCH_JOB_STATUS = "1"
|
86
94
|
OBJECT_ADDED = "2"
|
87
95
|
OBJECT_CHANGED = "3"
|
@@ -107,25 +115,33 @@ module Kaltura
|
|
107
115
|
end
|
108
116
|
|
109
117
|
class KalturaEventNotificationTemplateType
|
118
|
+
BPM_ABORT = "businessProcessNotification.BusinessProcessAbort"
|
119
|
+
BPM_SIGNAL = "businessProcessNotification.BusinessProcessSignal"
|
120
|
+
BPM_START = "businessProcessNotification.BusinessProcessStart"
|
110
121
|
EMAIL = "emailNotification.Email"
|
111
122
|
HTTP = "httpNotification.Http"
|
123
|
+
PUSH = "pushNotification.Push"
|
112
124
|
end
|
113
125
|
|
114
126
|
class KalturaEventNotificationParameter < KalturaObjectBase
|
115
127
|
# The key in the subject and body to be replaced with the dynamic value
|
116
|
-
#
|
117
128
|
attr_accessor :key
|
118
129
|
attr_accessor :description
|
119
130
|
# The dynamic value to be placed in the final output
|
120
|
-
#
|
121
131
|
attr_accessor :value
|
122
132
|
|
123
133
|
|
124
134
|
def from_xml(xml_element)
|
125
135
|
super
|
126
|
-
|
127
|
-
|
128
|
-
|
136
|
+
if xml_element.elements['key'] != nil
|
137
|
+
self.key = xml_element.elements['key'].text
|
138
|
+
end
|
139
|
+
if xml_element.elements['description'] != nil
|
140
|
+
self.description = xml_element.elements['description'].text
|
141
|
+
end
|
142
|
+
if xml_element.elements['value'] != nil
|
143
|
+
self.value = KalturaClientBase.object_from_xml(xml_element.elements['value'], 'KalturaStringValue')
|
144
|
+
end
|
129
145
|
end
|
130
146
|
|
131
147
|
end
|
@@ -141,25 +157,18 @@ module Kaltura
|
|
141
157
|
attr_accessor :created_at
|
142
158
|
attr_accessor :updated_at
|
143
159
|
# Define that the template could be dispatched manually from the API
|
144
|
-
#
|
145
160
|
attr_accessor :manual_dispatch_enabled
|
146
161
|
# Define that the template could be dispatched automatically by the system
|
147
|
-
#
|
148
162
|
attr_accessor :automatic_dispatch_enabled
|
149
163
|
# Define the event that should trigger this notification
|
150
|
-
#
|
151
164
|
attr_accessor :event_type
|
152
165
|
# Define the object that raied the event that should trigger this notification
|
153
|
-
#
|
154
166
|
attr_accessor :event_object_type
|
155
167
|
# Define the conditions that cause this notification to be triggered
|
156
|
-
#
|
157
168
|
attr_accessor :event_conditions
|
158
169
|
# Define the content dynamic parameters
|
159
|
-
#
|
160
170
|
attr_accessor :content_parameters
|
161
171
|
# Define the content dynamic parameters
|
162
|
-
#
|
163
172
|
attr_accessor :user_parameters
|
164
173
|
|
165
174
|
def id=(val)
|
@@ -186,35 +195,68 @@ module Kaltura
|
|
186
195
|
|
187
196
|
def from_xml(xml_element)
|
188
197
|
super
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
198
|
+
if xml_element.elements['id'] != nil
|
199
|
+
self.id = xml_element.elements['id'].text
|
200
|
+
end
|
201
|
+
if xml_element.elements['partnerId'] != nil
|
202
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
203
|
+
end
|
204
|
+
if xml_element.elements['name'] != nil
|
205
|
+
self.name = xml_element.elements['name'].text
|
206
|
+
end
|
207
|
+
if xml_element.elements['systemName'] != nil
|
208
|
+
self.system_name = xml_element.elements['systemName'].text
|
209
|
+
end
|
210
|
+
if xml_element.elements['description'] != nil
|
211
|
+
self.description = xml_element.elements['description'].text
|
212
|
+
end
|
213
|
+
if xml_element.elements['type'] != nil
|
214
|
+
self.type = xml_element.elements['type'].text
|
215
|
+
end
|
216
|
+
if xml_element.elements['status'] != nil
|
217
|
+
self.status = xml_element.elements['status'].text
|
218
|
+
end
|
219
|
+
if xml_element.elements['createdAt'] != nil
|
220
|
+
self.created_at = xml_element.elements['createdAt'].text
|
221
|
+
end
|
222
|
+
if xml_element.elements['updatedAt'] != nil
|
223
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
224
|
+
end
|
225
|
+
if xml_element.elements['manualDispatchEnabled'] != nil
|
226
|
+
self.manual_dispatch_enabled = xml_element.elements['manualDispatchEnabled'].text
|
227
|
+
end
|
228
|
+
if xml_element.elements['automaticDispatchEnabled'] != nil
|
229
|
+
self.automatic_dispatch_enabled = xml_element.elements['automaticDispatchEnabled'].text
|
230
|
+
end
|
231
|
+
if xml_element.elements['eventType'] != nil
|
232
|
+
self.event_type = xml_element.elements['eventType'].text
|
233
|
+
end
|
234
|
+
if xml_element.elements['eventObjectType'] != nil
|
235
|
+
self.event_object_type = xml_element.elements['eventObjectType'].text
|
236
|
+
end
|
237
|
+
if xml_element.elements['eventConditions'] != nil
|
238
|
+
self.event_conditions = KalturaClientBase.object_from_xml(xml_element.elements['eventConditions'], 'KalturaCondition')
|
239
|
+
end
|
240
|
+
if xml_element.elements['contentParameters'] != nil
|
241
|
+
self.content_parameters = KalturaClientBase.object_from_xml(xml_element.elements['contentParameters'], 'KalturaEventNotificationParameter')
|
242
|
+
end
|
243
|
+
if xml_element.elements['userParameters'] != nil
|
244
|
+
self.user_parameters = KalturaClientBase.object_from_xml(xml_element.elements['userParameters'], 'KalturaEventNotificationParameter')
|
245
|
+
end
|
205
246
|
end
|
206
247
|
|
207
248
|
end
|
208
249
|
|
209
250
|
class KalturaEventFieldCondition < KalturaCondition
|
210
251
|
# The field to be evaluated at runtime
|
211
|
-
#
|
212
252
|
attr_accessor :field
|
213
253
|
|
214
254
|
|
215
255
|
def from_xml(xml_element)
|
216
256
|
super
|
217
|
-
|
257
|
+
if xml_element.elements['field'] != nil
|
258
|
+
self.field = KalturaClientBase.object_from_xml(xml_element.elements['field'], 'KalturaBooleanField')
|
259
|
+
end
|
218
260
|
end
|
219
261
|
|
220
262
|
end
|
@@ -222,14 +264,17 @@ module Kaltura
|
|
222
264
|
class KalturaEventNotificationArrayParameter < KalturaEventNotificationParameter
|
223
265
|
attr_accessor :values
|
224
266
|
# Used to restrict the values to close list
|
225
|
-
#
|
226
267
|
attr_accessor :allowed_values
|
227
268
|
|
228
269
|
|
229
270
|
def from_xml(xml_element)
|
230
271
|
super
|
231
|
-
|
232
|
-
|
272
|
+
if xml_element.elements['values'] != nil
|
273
|
+
self.values = KalturaClientBase.object_from_xml(xml_element.elements['values'], 'KalturaString')
|
274
|
+
end
|
275
|
+
if xml_element.elements['allowedValues'] != nil
|
276
|
+
self.allowed_values = KalturaClientBase.object_from_xml(xml_element.elements['allowedValues'], 'KalturaStringValue')
|
277
|
+
end
|
233
278
|
end
|
234
279
|
|
235
280
|
end
|
@@ -237,7 +282,6 @@ module Kaltura
|
|
237
282
|
class KalturaEventNotificationDispatchJobData < KalturaJobData
|
238
283
|
attr_accessor :template_id
|
239
284
|
# Define the content dynamic parameters
|
240
|
-
#
|
241
285
|
attr_accessor :content_parameters
|
242
286
|
|
243
287
|
def template_id=(val)
|
@@ -246,8 +290,12 @@ module Kaltura
|
|
246
290
|
|
247
291
|
def from_xml(xml_element)
|
248
292
|
super
|
249
|
-
|
250
|
-
|
293
|
+
if xml_element.elements['templateId'] != nil
|
294
|
+
self.template_id = xml_element.elements['templateId'].text
|
295
|
+
end
|
296
|
+
if xml_element.elements['contentParameters'] != nil
|
297
|
+
self.content_parameters = KalturaClientBase.object_from_xml(xml_element.elements['contentParameters'], 'KalturaKeyValue')
|
298
|
+
end
|
251
299
|
end
|
252
300
|
|
253
301
|
end
|
@@ -259,8 +307,12 @@ module Kaltura
|
|
259
307
|
|
260
308
|
def from_xml(xml_element)
|
261
309
|
super
|
262
|
-
|
263
|
-
|
310
|
+
if xml_element.elements['objectId'] != nil
|
311
|
+
self.object_id = xml_element.elements['objectId'].text
|
312
|
+
end
|
313
|
+
if xml_element.elements['scopeObjectType'] != nil
|
314
|
+
self.scope_object_type = xml_element.elements['scopeObjectType'].text
|
315
|
+
end
|
264
316
|
end
|
265
317
|
|
266
318
|
end
|
@@ -305,20 +357,48 @@ module Kaltura
|
|
305
357
|
|
306
358
|
def from_xml(xml_element)
|
307
359
|
super
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
360
|
+
if xml_element.elements['idEqual'] != nil
|
361
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
362
|
+
end
|
363
|
+
if xml_element.elements['idIn'] != nil
|
364
|
+
self.id_in = xml_element.elements['idIn'].text
|
365
|
+
end
|
366
|
+
if xml_element.elements['partnerIdEqual'] != nil
|
367
|
+
self.partner_id_equal = xml_element.elements['partnerIdEqual'].text
|
368
|
+
end
|
369
|
+
if xml_element.elements['partnerIdIn'] != nil
|
370
|
+
self.partner_id_in = xml_element.elements['partnerIdIn'].text
|
371
|
+
end
|
372
|
+
if xml_element.elements['systemNameEqual'] != nil
|
373
|
+
self.system_name_equal = xml_element.elements['systemNameEqual'].text
|
374
|
+
end
|
375
|
+
if xml_element.elements['systemNameIn'] != nil
|
376
|
+
self.system_name_in = xml_element.elements['systemNameIn'].text
|
377
|
+
end
|
378
|
+
if xml_element.elements['typeEqual'] != nil
|
379
|
+
self.type_equal = xml_element.elements['typeEqual'].text
|
380
|
+
end
|
381
|
+
if xml_element.elements['typeIn'] != nil
|
382
|
+
self.type_in = xml_element.elements['typeIn'].text
|
383
|
+
end
|
384
|
+
if xml_element.elements['statusEqual'] != nil
|
385
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
386
|
+
end
|
387
|
+
if xml_element.elements['statusIn'] != nil
|
388
|
+
self.status_in = xml_element.elements['statusIn'].text
|
389
|
+
end
|
390
|
+
if xml_element.elements['createdAtGreaterThanOrEqual'] != nil
|
391
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
392
|
+
end
|
393
|
+
if xml_element.elements['createdAtLessThanOrEqual'] != nil
|
394
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
395
|
+
end
|
396
|
+
if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil
|
397
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
398
|
+
end
|
399
|
+
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
400
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
401
|
+
end
|
322
402
|
end
|
323
403
|
|
324
404
|
end
|
@@ -329,20 +409,23 @@ module Kaltura
|
|
329
409
|
|
330
410
|
def from_xml(xml_element)
|
331
411
|
super
|
332
|
-
|
412
|
+
if xml_element.elements['objects'] != nil
|
413
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaEventNotificationTemplate')
|
414
|
+
end
|
333
415
|
end
|
334
416
|
|
335
417
|
end
|
336
418
|
|
337
419
|
class KalturaEventObjectChangedCondition < KalturaCondition
|
338
420
|
# Comma seperated column names to be tested
|
339
|
-
#
|
340
421
|
attr_accessor :modified_columns
|
341
422
|
|
342
423
|
|
343
424
|
def from_xml(xml_element)
|
344
425
|
super
|
345
|
-
|
426
|
+
if xml_element.elements['modifiedColumns'] != nil
|
427
|
+
self.modified_columns = xml_element.elements['modifiedColumns'].text
|
428
|
+
end
|
346
429
|
end
|
347
430
|
|
348
431
|
end
|
@@ -358,14 +441,13 @@ module Kaltura
|
|
358
441
|
|
359
442
|
|
360
443
|
# Event notification template service lets you create and manage event notification templates
|
361
|
-
#
|
362
444
|
class KalturaEventNotificationTemplateService < KalturaServiceBase
|
363
445
|
def initialize(client)
|
364
446
|
super(client)
|
365
447
|
end
|
366
448
|
|
367
449
|
# This action allows for the creation of new backend event types in the system. This action requires access to the Kaltura server Admin Console. If you're looking to register to existing event types, please use the clone action instead.
|
368
|
-
#
|
450
|
+
# @return [KalturaEventNotificationTemplate]
|
369
451
|
def add(event_notification_template)
|
370
452
|
kparams = {}
|
371
453
|
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
@@ -377,7 +459,7 @@ module Kaltura
|
|
377
459
|
end
|
378
460
|
|
379
461
|
# This action allows registering to various backend event. Use this action to create notifications that will react to events such as new video was uploaded or metadata field was updated. To see the list of available event types, call the listTemplates action.
|
380
|
-
#
|
462
|
+
# @return [KalturaEventNotificationTemplate]
|
381
463
|
def clone(id, event_notification_template=KalturaNotImplemented)
|
382
464
|
kparams = {}
|
383
465
|
client.add_param(kparams, 'id', id)
|
@@ -389,100 +471,128 @@ module Kaltura
|
|
389
471
|
return client.do_queue()
|
390
472
|
end
|
391
473
|
|
392
|
-
#
|
393
|
-
#
|
394
|
-
def
|
474
|
+
# Delete an event notification template object
|
475
|
+
# @return []
|
476
|
+
def delete(id)
|
395
477
|
kparams = {}
|
396
478
|
client.add_param(kparams, 'id', id)
|
397
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
479
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'delete', '', kparams)
|
398
480
|
if (client.is_multirequest)
|
399
481
|
return nil
|
400
482
|
end
|
401
483
|
return client.do_queue()
|
402
484
|
end
|
403
485
|
|
404
|
-
#
|
405
|
-
#
|
406
|
-
def
|
486
|
+
# Dispatch event notification object by id
|
487
|
+
# @return [int]
|
488
|
+
def dispatch(id, scope)
|
407
489
|
kparams = {}
|
408
490
|
client.add_param(kparams, 'id', id)
|
409
|
-
client.add_param(kparams, '
|
410
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
491
|
+
client.add_param(kparams, 'scope', scope)
|
492
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'dispatch', 'int', kparams)
|
411
493
|
if (client.is_multirequest)
|
412
494
|
return nil
|
413
495
|
end
|
414
496
|
return client.do_queue()
|
415
497
|
end
|
416
498
|
|
417
|
-
#
|
418
|
-
#
|
419
|
-
def
|
499
|
+
# Retrieve an event notification template object by id
|
500
|
+
# @return [KalturaEventNotificationTemplate]
|
501
|
+
def get(id)
|
420
502
|
kparams = {}
|
421
503
|
client.add_param(kparams, 'id', id)
|
422
|
-
client.
|
423
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'updateStatus', 'KalturaEventNotificationTemplate', kparams)
|
504
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'get', 'KalturaEventNotificationTemplate', kparams)
|
424
505
|
if (client.is_multirequest)
|
425
506
|
return nil
|
426
507
|
end
|
427
508
|
return client.do_queue()
|
428
509
|
end
|
429
510
|
|
430
|
-
#
|
431
|
-
#
|
432
|
-
def
|
511
|
+
# list event notification template objects
|
512
|
+
# @return [KalturaEventNotificationTemplateListResponse]
|
513
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
433
514
|
kparams = {}
|
434
|
-
client.add_param(kparams, '
|
435
|
-
client.
|
515
|
+
client.add_param(kparams, 'filter', filter)
|
516
|
+
client.add_param(kparams, 'pager', pager)
|
517
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'list', 'KalturaEventNotificationTemplateListResponse', kparams)
|
436
518
|
if (client.is_multirequest)
|
437
519
|
return nil
|
438
520
|
end
|
439
521
|
return client.do_queue()
|
440
522
|
end
|
441
523
|
|
442
|
-
#
|
443
|
-
|
444
|
-
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
524
|
+
# @return [KalturaEventNotificationTemplateListResponse]
|
525
|
+
def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
445
526
|
kparams = {}
|
446
527
|
client.add_param(kparams, 'filter', filter)
|
447
528
|
client.add_param(kparams, 'pager', pager)
|
448
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
529
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listByPartner', 'KalturaEventNotificationTemplateListResponse', kparams)
|
449
530
|
if (client.is_multirequest)
|
450
531
|
return nil
|
451
532
|
end
|
452
533
|
return client.do_queue()
|
453
534
|
end
|
454
535
|
|
455
|
-
|
536
|
+
# Action lists the template partner event notification templates.
|
537
|
+
# @return [KalturaEventNotificationTemplateListResponse]
|
538
|
+
def list_templates(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
456
539
|
kparams = {}
|
457
540
|
client.add_param(kparams, 'filter', filter)
|
458
541
|
client.add_param(kparams, 'pager', pager)
|
459
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
542
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listTemplates', 'KalturaEventNotificationTemplateListResponse', kparams)
|
460
543
|
if (client.is_multirequest)
|
461
544
|
return nil
|
462
545
|
end
|
463
546
|
return client.do_queue()
|
464
547
|
end
|
465
548
|
|
466
|
-
#
|
467
|
-
#
|
468
|
-
def
|
549
|
+
# Register to a queue from which event messages will be provided according to given template. Queue will be created if not already exists
|
550
|
+
# @return [KalturaPushNotificationData]
|
551
|
+
def register(notification_template_system_name, push_notification_params)
|
552
|
+
kparams = {}
|
553
|
+
client.add_param(kparams, 'notificationTemplateSystemName', notification_template_system_name)
|
554
|
+
client.add_param(kparams, 'pushNotificationParams', push_notification_params)
|
555
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'register', 'KalturaPushNotificationData', kparams)
|
556
|
+
if (client.is_multirequest)
|
557
|
+
return nil
|
558
|
+
end
|
559
|
+
return client.do_queue()
|
560
|
+
end
|
561
|
+
|
562
|
+
# Clear queue messages
|
563
|
+
# @return []
|
564
|
+
def send_command(notification_template_system_name, push_notification_params, command)
|
565
|
+
kparams = {}
|
566
|
+
client.add_param(kparams, 'notificationTemplateSystemName', notification_template_system_name)
|
567
|
+
client.add_param(kparams, 'pushNotificationParams', push_notification_params)
|
568
|
+
client.add_param(kparams, 'command', command)
|
569
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'sendCommand', '', kparams)
|
570
|
+
if (client.is_multirequest)
|
571
|
+
return nil
|
572
|
+
end
|
573
|
+
return client.do_queue()
|
574
|
+
end
|
575
|
+
|
576
|
+
# Update an existing event notification template object
|
577
|
+
# @return [KalturaEventNotificationTemplate]
|
578
|
+
def update(id, event_notification_template)
|
469
579
|
kparams = {}
|
470
580
|
client.add_param(kparams, 'id', id)
|
471
|
-
client.add_param(kparams, '
|
472
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
581
|
+
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
582
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'update', 'KalturaEventNotificationTemplate', kparams)
|
473
583
|
if (client.is_multirequest)
|
474
584
|
return nil
|
475
585
|
end
|
476
586
|
return client.do_queue()
|
477
587
|
end
|
478
588
|
|
479
|
-
#
|
480
|
-
#
|
481
|
-
def
|
589
|
+
# Update event notification template status by id
|
590
|
+
# @return [KalturaEventNotificationTemplate]
|
591
|
+
def update_status(id, status)
|
482
592
|
kparams = {}
|
483
|
-
client.add_param(kparams, '
|
484
|
-
client.add_param(kparams, '
|
485
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', '
|
593
|
+
client.add_param(kparams, 'id', id)
|
594
|
+
client.add_param(kparams, 'status', status)
|
595
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'updateStatus', 'KalturaEventNotificationTemplate', kparams)
|
486
596
|
if (client.is_multirequest)
|
487
597
|
return nil
|
488
598
|
end
|