kaltura-client 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -0
- data/kaltura.yml +4 -4
- data/lib/kaltura_client.rb +2269 -12871
- data/lib/kaltura_client_base.rb +289 -222
- data/lib/kaltura_enums.rb +3119 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +30 -0
- data/lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb +125 -78
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +76 -34
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +71 -40
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +25 -22
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +7 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +14 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +5 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +167 -77
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +56 -12
- data/lib/kaltura_plugins/kaltura_cielo24client_plugin.rb +89 -0
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +31 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +706 -194
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +124 -34
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +238 -102
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +328 -55
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +5 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +122 -0
- data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +18 -0
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +142 -51
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +54 -33
- data/lib/kaltura_plugins/kaltura_feed_drop_folder_client_plugin.rb +28 -0
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +84 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +94 -0
- data/lib/kaltura_plugins/kaltura_integration_client_plugin.rb +127 -0
- data/lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb +25 -11
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +31 -0
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +95 -13
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +331 -149
- data/lib/kaltura_plugins/kaltura_quiz_client_plugin.rb +365 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +132 -31
- data/lib/kaltura_plugins/kaltura_scheduled_task_content_distribution_client_plugin.rb +6 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +6 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +8 -0
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +74 -27
- data/lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb +203 -62
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +51 -14
- data/lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb +44 -1
- data/lib/kaltura_plugins/kaltura_transcript_client_plugin.rb +101 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +59 -11
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +8 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +87 -28
- data/lib/kaltura_plugins/kaltura_voicebase_client_plugin.rb +82 -0
- data/lib/kaltura_plugins/kaltura_wowza_client_plugin.rb +99 -0
- data/lib/kaltura_types.rb +13862 -0
- data/test/access_control_service_test.rb +35 -42
- data/test/base_entry_service_test.rb +265 -241
- data/test/configuration_test.rb +19 -14
- data/test/media_service_test.rb +296 -294
- data/test/metadata_profile_service_test.rb +30 -32
- data/test/response_profile_test.rb +208 -0
- data/test/test_helper.rb +3 -3
- metadata +53 -51
- data/lib/kaltura_plugins/kaltura_abc_screeners_watermark_access_control_client_plugin.rb +0 -37
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +0 -61
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +0 -349
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +0 -401
- data/lib/kaltura_plugins/kaltura_multi_centers_client_plugin.rb +0 -45
- data/lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb +0 -347
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +0 -111
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +0 -195
@@ -64,6 +64,13 @@ module Kaltura
|
|
64
64
|
#
|
65
65
|
attr_accessor :name
|
66
66
|
|
67
|
+
|
68
|
+
def from_xml(xml_element)
|
69
|
+
super
|
70
|
+
self.email = KalturaClientBase.object_from_xml(xml_element.elements['email'], 'KalturaStringValue')
|
71
|
+
self.name = KalturaClientBase.object_from_xml(xml_element.elements['name'], 'KalturaStringValue')
|
72
|
+
end
|
73
|
+
|
67
74
|
end
|
68
75
|
|
69
76
|
# Abstract class representing the final output recipients going into the batch mechanism
|
@@ -73,12 +80,23 @@ module Kaltura
|
|
73
80
|
#
|
74
81
|
attr_accessor :provider_type
|
75
82
|
|
83
|
+
|
84
|
+
def from_xml(xml_element)
|
85
|
+
super
|
86
|
+
self.provider_type = xml_element.elements['providerType'].text
|
87
|
+
end
|
88
|
+
|
76
89
|
end
|
77
90
|
|
78
91
|
# Abstract core class which provides the recipients (to, CC, BCC) for an email notification
|
79
92
|
#
|
80
93
|
class KalturaEmailNotificationRecipientProvider < KalturaObjectBase
|
81
94
|
|
95
|
+
|
96
|
+
def from_xml(xml_element)
|
97
|
+
super
|
98
|
+
end
|
99
|
+
|
82
100
|
end
|
83
101
|
|
84
102
|
class KalturaCategoryUserProviderFilter < KalturaFilter
|
@@ -113,6 +131,23 @@ module Kaltura
|
|
113
131
|
def update_method_equal=(val)
|
114
132
|
@update_method_equal = val.to_i
|
115
133
|
end
|
134
|
+
|
135
|
+
def from_xml(xml_element)
|
136
|
+
super
|
137
|
+
self.user_id_equal = xml_element.elements['userIdEqual'].text
|
138
|
+
self.user_id_in = xml_element.elements['userIdIn'].text
|
139
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
140
|
+
self.status_in = xml_element.elements['statusIn'].text
|
141
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
142
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
143
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
144
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
145
|
+
self.update_method_equal = xml_element.elements['updateMethodEqual'].text
|
146
|
+
self.update_method_in = xml_element.elements['updateMethodIn'].text
|
147
|
+
self.permission_names_match_and = xml_element.elements['permissionNamesMatchAnd'].text
|
148
|
+
self.permission_names_match_or = xml_element.elements['permissionNamesMatchOr'].text
|
149
|
+
end
|
150
|
+
|
116
151
|
end
|
117
152
|
|
118
153
|
# Job Data representing the provider of recipients for a single categoryId
|
@@ -120,6 +155,12 @@ module Kaltura
|
|
120
155
|
class KalturaEmailNotificationCategoryRecipientJobData < KalturaEmailNotificationRecipientJobData
|
121
156
|
attr_accessor :category_user_filter
|
122
157
|
|
158
|
+
|
159
|
+
def from_xml(xml_element)
|
160
|
+
super
|
161
|
+
self.category_user_filter = KalturaClientBase.object_from_xml(xml_element.elements['categoryUserFilter'], 'KalturaCategoryUserFilter')
|
162
|
+
end
|
163
|
+
|
123
164
|
end
|
124
165
|
|
125
166
|
# API object which provides the recipients of category related notifications.
|
@@ -130,10 +171,22 @@ module Kaltura
|
|
130
171
|
attr_accessor :category_id
|
131
172
|
attr_accessor :category_user_filter
|
132
173
|
|
174
|
+
|
175
|
+
def from_xml(xml_element)
|
176
|
+
super
|
177
|
+
self.category_id = KalturaClientBase.object_from_xml(xml_element.elements['categoryId'], 'KalturaStringValue')
|
178
|
+
self.category_user_filter = KalturaClientBase.object_from_xml(xml_element.elements['categoryUserFilter'], 'KalturaCategoryUserProviderFilter')
|
179
|
+
end
|
180
|
+
|
133
181
|
end
|
134
182
|
|
135
183
|
class KalturaEmailNotificationParameter < KalturaEventNotificationParameter
|
136
184
|
|
185
|
+
|
186
|
+
def from_xml(xml_element)
|
187
|
+
super
|
188
|
+
end
|
189
|
+
|
137
190
|
end
|
138
191
|
|
139
192
|
# JobData representing the static receipient array
|
@@ -143,6 +196,12 @@ module Kaltura
|
|
143
196
|
#
|
144
197
|
attr_accessor :email_recipients
|
145
198
|
|
199
|
+
|
200
|
+
def from_xml(xml_element)
|
201
|
+
super
|
202
|
+
self.email_recipients = KalturaClientBase.object_from_xml(xml_element.elements['emailRecipients'], 'KalturaKeyValue')
|
203
|
+
end
|
204
|
+
|
146
205
|
end
|
147
206
|
|
148
207
|
# API class for recipient provider containing a static list of email recipients.
|
@@ -152,6 +211,12 @@ module Kaltura
|
|
152
211
|
#
|
153
212
|
attr_accessor :email_recipients
|
154
213
|
|
214
|
+
|
215
|
+
def from_xml(xml_element)
|
216
|
+
super
|
217
|
+
self.email_recipients = KalturaClientBase.object_from_xml(xml_element.elements['emailRecipients'], 'KalturaEmailNotificationRecipient')
|
218
|
+
end
|
219
|
+
|
155
220
|
end
|
156
221
|
|
157
222
|
class KalturaEmailNotificationTemplate < KalturaEventNotificationTemplate
|
@@ -203,6 +268,25 @@ module Kaltura
|
|
203
268
|
def priority=(val)
|
204
269
|
@priority = val.to_i
|
205
270
|
end
|
271
|
+
|
272
|
+
def from_xml(xml_element)
|
273
|
+
super
|
274
|
+
self.format = xml_element.elements['format'].text
|
275
|
+
self.subject = xml_element.elements['subject'].text
|
276
|
+
self.body = xml_element.elements['body'].text
|
277
|
+
self.from_email = xml_element.elements['fromEmail'].text
|
278
|
+
self.from_name = xml_element.elements['fromName'].text
|
279
|
+
self.to = KalturaClientBase.object_from_xml(xml_element.elements['to'], 'KalturaEmailNotificationRecipientProvider')
|
280
|
+
self.cc = KalturaClientBase.object_from_xml(xml_element.elements['cc'], 'KalturaEmailNotificationRecipientProvider')
|
281
|
+
self.bcc = KalturaClientBase.object_from_xml(xml_element.elements['bcc'], 'KalturaEmailNotificationRecipientProvider')
|
282
|
+
self.reply_to = KalturaClientBase.object_from_xml(xml_element.elements['replyTo'], 'KalturaEmailNotificationRecipientProvider')
|
283
|
+
self.priority = xml_element.elements['priority'].text
|
284
|
+
self.confirm_reading_to = xml_element.elements['confirmReadingTo'].text
|
285
|
+
self.hostname = xml_element.elements['hostname'].text
|
286
|
+
self.message_id = xml_element.elements['messageID'].text
|
287
|
+
self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue')
|
288
|
+
end
|
289
|
+
|
206
290
|
end
|
207
291
|
|
208
292
|
# JobData representing the dynamic user receipient array
|
@@ -210,6 +294,12 @@ module Kaltura
|
|
210
294
|
class KalturaEmailNotificationUserRecipientJobData < KalturaEmailNotificationRecipientJobData
|
211
295
|
attr_accessor :filter
|
212
296
|
|
297
|
+
|
298
|
+
def from_xml(xml_element)
|
299
|
+
super
|
300
|
+
self.filter = KalturaClientBase.object_from_xml(xml_element.elements['filter'], 'KalturaUserFilter')
|
301
|
+
end
|
302
|
+
|
213
303
|
end
|
214
304
|
|
215
305
|
# API class for recipient provider which constructs a dynamic list of recipients according to a user filter
|
@@ -217,6 +307,12 @@ module Kaltura
|
|
217
307
|
class KalturaEmailNotificationUserRecipientProvider < KalturaEmailNotificationRecipientProvider
|
218
308
|
attr_accessor :filter
|
219
309
|
|
310
|
+
|
311
|
+
def from_xml(xml_element)
|
312
|
+
super
|
313
|
+
self.filter = KalturaClientBase.object_from_xml(xml_element.elements['filter'], 'KalturaUserFilter')
|
314
|
+
end
|
315
|
+
|
220
316
|
end
|
221
317
|
|
222
318
|
class KalturaEmailNotificationDispatchJobData < KalturaEventNotificationDispatchJobData
|
@@ -259,14 +355,40 @@ module Kaltura
|
|
259
355
|
def priority=(val)
|
260
356
|
@priority = val.to_i
|
261
357
|
end
|
358
|
+
|
359
|
+
def from_xml(xml_element)
|
360
|
+
super
|
361
|
+
self.from_email = xml_element.elements['fromEmail'].text
|
362
|
+
self.from_name = xml_element.elements['fromName'].text
|
363
|
+
self.to = KalturaClientBase.object_from_xml(xml_element.elements['to'], 'KalturaEmailNotificationRecipientJobData')
|
364
|
+
self.cc = KalturaClientBase.object_from_xml(xml_element.elements['cc'], 'KalturaEmailNotificationRecipientJobData')
|
365
|
+
self.bcc = KalturaClientBase.object_from_xml(xml_element.elements['bcc'], 'KalturaEmailNotificationRecipientJobData')
|
366
|
+
self.reply_to = KalturaClientBase.object_from_xml(xml_element.elements['replyTo'], 'KalturaEmailNotificationRecipientJobData')
|
367
|
+
self.priority = xml_element.elements['priority'].text
|
368
|
+
self.confirm_reading_to = xml_element.elements['confirmReadingTo'].text
|
369
|
+
self.hostname = xml_element.elements['hostname'].text
|
370
|
+
self.message_id = xml_element.elements['messageID'].text
|
371
|
+
self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue')
|
372
|
+
end
|
373
|
+
|
262
374
|
end
|
263
375
|
|
264
376
|
class KalturaEmailNotificationTemplateBaseFilter < KalturaEventNotificationTemplateFilter
|
265
377
|
|
378
|
+
|
379
|
+
def from_xml(xml_element)
|
380
|
+
super
|
381
|
+
end
|
382
|
+
|
266
383
|
end
|
267
384
|
|
268
385
|
class KalturaEmailNotificationTemplateFilter < KalturaEmailNotificationTemplateBaseFilter
|
269
386
|
|
387
|
+
|
388
|
+
def from_xml(xml_element)
|
389
|
+
super
|
390
|
+
end
|
391
|
+
|
270
392
|
end
|
271
393
|
|
272
394
|
|
@@ -51,16 +51,34 @@ module Kaltura
|
|
51
51
|
class KalturaEventCuePoint < KalturaCuePoint
|
52
52
|
attr_accessor :event_type
|
53
53
|
|
54
|
+
|
55
|
+
def from_xml(xml_element)
|
56
|
+
super
|
57
|
+
self.event_type = xml_element.elements['eventType'].text
|
58
|
+
end
|
59
|
+
|
54
60
|
end
|
55
61
|
|
56
62
|
class KalturaEventCuePointBaseFilter < KalturaCuePointFilter
|
57
63
|
attr_accessor :event_type_equal
|
58
64
|
attr_accessor :event_type_in
|
59
65
|
|
66
|
+
|
67
|
+
def from_xml(xml_element)
|
68
|
+
super
|
69
|
+
self.event_type_equal = xml_element.elements['eventTypeEqual'].text
|
70
|
+
self.event_type_in = xml_element.elements['eventTypeIn'].text
|
71
|
+
end
|
72
|
+
|
60
73
|
end
|
61
74
|
|
62
75
|
class KalturaEventCuePointFilter < KalturaEventCuePointBaseFilter
|
63
76
|
|
77
|
+
|
78
|
+
def from_xml(xml_element)
|
79
|
+
super
|
80
|
+
end
|
81
|
+
|
64
82
|
end
|
65
83
|
|
66
84
|
|
@@ -120,6 +120,14 @@ module Kaltura
|
|
120
120
|
#
|
121
121
|
attr_accessor :value
|
122
122
|
|
123
|
+
|
124
|
+
def from_xml(xml_element)
|
125
|
+
super
|
126
|
+
self.key = xml_element.elements['key'].text
|
127
|
+
self.description = xml_element.elements['description'].text
|
128
|
+
self.value = KalturaClientBase.object_from_xml(xml_element.elements['value'], 'KalturaStringValue')
|
129
|
+
end
|
130
|
+
|
123
131
|
end
|
124
132
|
|
125
133
|
class KalturaEventNotificationTemplate < KalturaObjectBase
|
@@ -175,6 +183,27 @@ module Kaltura
|
|
175
183
|
def automatic_dispatch_enabled=(val)
|
176
184
|
@automatic_dispatch_enabled = to_b(val)
|
177
185
|
end
|
186
|
+
|
187
|
+
def from_xml(xml_element)
|
188
|
+
super
|
189
|
+
self.id = xml_element.elements['id'].text
|
190
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
191
|
+
self.name = xml_element.elements['name'].text
|
192
|
+
self.system_name = xml_element.elements['systemName'].text
|
193
|
+
self.description = xml_element.elements['description'].text
|
194
|
+
self.type = xml_element.elements['type'].text
|
195
|
+
self.status = xml_element.elements['status'].text
|
196
|
+
self.created_at = xml_element.elements['createdAt'].text
|
197
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
198
|
+
self.manual_dispatch_enabled = xml_element.elements['manualDispatchEnabled'].text
|
199
|
+
self.automatic_dispatch_enabled = xml_element.elements['automaticDispatchEnabled'].text
|
200
|
+
self.event_type = xml_element.elements['eventType'].text
|
201
|
+
self.event_object_type = xml_element.elements['eventObjectType'].text
|
202
|
+
self.event_conditions = KalturaClientBase.object_from_xml(xml_element.elements['eventConditions'], 'KalturaCondition')
|
203
|
+
self.content_parameters = KalturaClientBase.object_from_xml(xml_element.elements['contentParameters'], 'KalturaEventNotificationParameter')
|
204
|
+
self.user_parameters = KalturaClientBase.object_from_xml(xml_element.elements['userParameters'], 'KalturaEventNotificationParameter')
|
205
|
+
end
|
206
|
+
|
178
207
|
end
|
179
208
|
|
180
209
|
class KalturaEventFieldCondition < KalturaCondition
|
@@ -182,6 +211,12 @@ module Kaltura
|
|
182
211
|
#
|
183
212
|
attr_accessor :field
|
184
213
|
|
214
|
+
|
215
|
+
def from_xml(xml_element)
|
216
|
+
super
|
217
|
+
self.field = KalturaClientBase.object_from_xml(xml_element.elements['field'], 'KalturaBooleanField')
|
218
|
+
end
|
219
|
+
|
185
220
|
end
|
186
221
|
|
187
222
|
class KalturaEventNotificationArrayParameter < KalturaEventNotificationParameter
|
@@ -190,6 +225,13 @@ module Kaltura
|
|
190
225
|
#
|
191
226
|
attr_accessor :allowed_values
|
192
227
|
|
228
|
+
|
229
|
+
def from_xml(xml_element)
|
230
|
+
super
|
231
|
+
self.values = KalturaClientBase.object_from_xml(xml_element.elements['values'], 'KalturaString')
|
232
|
+
self.allowed_values = KalturaClientBase.object_from_xml(xml_element.elements['allowedValues'], 'KalturaStringValue')
|
233
|
+
end
|
234
|
+
|
193
235
|
end
|
194
236
|
|
195
237
|
class KalturaEventNotificationDispatchJobData < KalturaJobData
|
@@ -201,12 +243,26 @@ module Kaltura
|
|
201
243
|
def template_id=(val)
|
202
244
|
@template_id = val.to_i
|
203
245
|
end
|
246
|
+
|
247
|
+
def from_xml(xml_element)
|
248
|
+
super
|
249
|
+
self.template_id = xml_element.elements['templateId'].text
|
250
|
+
self.content_parameters = KalturaClientBase.object_from_xml(xml_element.elements['contentParameters'], 'KalturaKeyValue')
|
251
|
+
end
|
252
|
+
|
204
253
|
end
|
205
254
|
|
206
255
|
class KalturaEventNotificationScope < KalturaScope
|
207
256
|
attr_accessor :object_id
|
208
257
|
attr_accessor :scope_object_type
|
209
258
|
|
259
|
+
|
260
|
+
def from_xml(xml_element)
|
261
|
+
super
|
262
|
+
self.object_id = xml_element.elements['objectId'].text
|
263
|
+
self.scope_object_type = xml_element.elements['scopeObjectType'].text
|
264
|
+
end
|
265
|
+
|
210
266
|
end
|
211
267
|
|
212
268
|
class KalturaEventNotificationTemplateBaseFilter < KalturaFilter
|
@@ -246,11 +302,36 @@ module Kaltura
|
|
246
302
|
def updated_at_less_than_or_equal=(val)
|
247
303
|
@updated_at_less_than_or_equal = val.to_i
|
248
304
|
end
|
305
|
+
|
306
|
+
def from_xml(xml_element)
|
307
|
+
super
|
308
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
309
|
+
self.id_in = xml_element.elements['idIn'].text
|
310
|
+
self.partner_id_equal = xml_element.elements['partnerIdEqual'].text
|
311
|
+
self.partner_id_in = xml_element.elements['partnerIdIn'].text
|
312
|
+
self.system_name_equal = xml_element.elements['systemNameEqual'].text
|
313
|
+
self.system_name_in = xml_element.elements['systemNameIn'].text
|
314
|
+
self.type_equal = xml_element.elements['typeEqual'].text
|
315
|
+
self.type_in = xml_element.elements['typeIn'].text
|
316
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
317
|
+
self.status_in = xml_element.elements['statusIn'].text
|
318
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
319
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
320
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
321
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
322
|
+
end
|
323
|
+
|
249
324
|
end
|
250
325
|
|
251
326
|
class KalturaEventNotificationTemplateListResponse < KalturaListResponse
|
252
327
|
attr_accessor :objects
|
253
328
|
|
329
|
+
|
330
|
+
def from_xml(xml_element)
|
331
|
+
super
|
332
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaEventNotificationTemplate')
|
333
|
+
end
|
334
|
+
|
254
335
|
end
|
255
336
|
|
256
337
|
class KalturaEventObjectChangedCondition < KalturaCondition
|
@@ -258,10 +339,21 @@ module Kaltura
|
|
258
339
|
#
|
259
340
|
attr_accessor :modified_columns
|
260
341
|
|
342
|
+
|
343
|
+
def from_xml(xml_element)
|
344
|
+
super
|
345
|
+
self.modified_columns = xml_element.elements['modifiedColumns'].text
|
346
|
+
end
|
347
|
+
|
261
348
|
end
|
262
349
|
|
263
350
|
class KalturaEventNotificationTemplateFilter < KalturaEventNotificationTemplateBaseFilter
|
264
351
|
|
352
|
+
|
353
|
+
def from_xml(xml_element)
|
354
|
+
super
|
355
|
+
end
|
356
|
+
|
265
357
|
end
|
266
358
|
|
267
359
|
|
@@ -272,131 +364,129 @@ module Kaltura
|
|
272
364
|
super(client)
|
273
365
|
end
|
274
366
|
|
275
|
-
#
|
367
|
+
# 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.
|
276
368
|
#
|
277
369
|
def add(event_notification_template)
|
278
370
|
kparams = {}
|
279
|
-
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
280
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'add', kparams)
|
371
|
+
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
372
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'add', 'KalturaEventNotificationTemplate', kparams)
|
281
373
|
if (client.is_multirequest)
|
282
|
-
return nil
|
374
|
+
return nil
|
283
375
|
end
|
284
|
-
return client.do_queue()
|
376
|
+
return client.do_queue()
|
285
377
|
end
|
286
378
|
|
287
|
-
#
|
379
|
+
# 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.
|
288
380
|
#
|
289
381
|
def clone(id, event_notification_template=KalturaNotImplemented)
|
290
382
|
kparams = {}
|
291
|
-
|
292
|
-
client.add_param(kparams, '
|
293
|
-
|
294
|
-
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template);
|
295
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'clone', kparams);
|
383
|
+
client.add_param(kparams, 'id', id)
|
384
|
+
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
385
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'clone', 'KalturaEventNotificationTemplate', kparams)
|
296
386
|
if (client.is_multirequest)
|
297
|
-
return nil
|
387
|
+
return nil
|
298
388
|
end
|
299
|
-
return client.do_queue()
|
389
|
+
return client.do_queue()
|
300
390
|
end
|
301
391
|
|
302
392
|
# Retrieve an event notification template object by id
|
303
393
|
#
|
304
394
|
def get(id)
|
305
395
|
kparams = {}
|
306
|
-
client.add_param(kparams, 'id', id)
|
307
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'get', kparams)
|
396
|
+
client.add_param(kparams, 'id', id)
|
397
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'get', 'KalturaEventNotificationTemplate', kparams)
|
308
398
|
if (client.is_multirequest)
|
309
|
-
return nil
|
399
|
+
return nil
|
310
400
|
end
|
311
|
-
return client.do_queue()
|
401
|
+
return client.do_queue()
|
312
402
|
end
|
313
403
|
|
314
404
|
# Update an existing event notification template object
|
315
405
|
#
|
316
406
|
def update(id, event_notification_template)
|
317
407
|
kparams = {}
|
318
|
-
client.add_param(kparams, 'id', id)
|
319
|
-
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
320
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'update', kparams)
|
408
|
+
client.add_param(kparams, 'id', id)
|
409
|
+
client.add_param(kparams, 'eventNotificationTemplate', event_notification_template)
|
410
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'update', 'KalturaEventNotificationTemplate', kparams)
|
321
411
|
if (client.is_multirequest)
|
322
|
-
return nil
|
412
|
+
return nil
|
323
413
|
end
|
324
|
-
return client.do_queue()
|
414
|
+
return client.do_queue()
|
325
415
|
end
|
326
416
|
|
327
417
|
# Update event notification template status by id
|
328
418
|
#
|
329
419
|
def update_status(id, status)
|
330
420
|
kparams = {}
|
331
|
-
client.add_param(kparams, 'id', id)
|
332
|
-
client.add_param(kparams, 'status', status)
|
333
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'updateStatus', kparams)
|
421
|
+
client.add_param(kparams, 'id', id)
|
422
|
+
client.add_param(kparams, 'status', status)
|
423
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'updateStatus', 'KalturaEventNotificationTemplate', kparams)
|
334
424
|
if (client.is_multirequest)
|
335
|
-
return nil
|
425
|
+
return nil
|
336
426
|
end
|
337
|
-
return client.do_queue()
|
427
|
+
return client.do_queue()
|
338
428
|
end
|
339
429
|
|
340
430
|
# Delete an event notification template object
|
341
431
|
#
|
342
432
|
def delete(id)
|
343
433
|
kparams = {}
|
344
|
-
client.add_param(kparams, 'id', id)
|
345
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'delete', kparams)
|
434
|
+
client.add_param(kparams, 'id', id)
|
435
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'delete', '', kparams)
|
346
436
|
if (client.is_multirequest)
|
347
|
-
return nil
|
437
|
+
return nil
|
348
438
|
end
|
349
|
-
return client.do_queue()
|
439
|
+
return client.do_queue()
|
350
440
|
end
|
351
441
|
|
352
442
|
# list event notification template objects
|
353
443
|
#
|
354
444
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
355
445
|
kparams = {}
|
356
|
-
client.add_param(kparams, 'filter', filter)
|
357
|
-
client.add_param(kparams, 'pager', pager)
|
358
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'list', kparams)
|
446
|
+
client.add_param(kparams, 'filter', filter)
|
447
|
+
client.add_param(kparams, 'pager', pager)
|
448
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'list', 'KalturaEventNotificationTemplateListResponse', kparams)
|
359
449
|
if (client.is_multirequest)
|
360
|
-
return nil
|
450
|
+
return nil
|
361
451
|
end
|
362
|
-
return client.do_queue()
|
452
|
+
return client.do_queue()
|
363
453
|
end
|
364
454
|
|
365
455
|
def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
366
456
|
kparams = {}
|
367
|
-
client.add_param(kparams, 'filter', filter)
|
368
|
-
client.add_param(kparams, 'pager', pager)
|
369
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listByPartner', kparams)
|
457
|
+
client.add_param(kparams, 'filter', filter)
|
458
|
+
client.add_param(kparams, 'pager', pager)
|
459
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listByPartner', 'KalturaEventNotificationTemplateListResponse', kparams)
|
370
460
|
if (client.is_multirequest)
|
371
|
-
return nil
|
461
|
+
return nil
|
372
462
|
end
|
373
|
-
return client.do_queue()
|
463
|
+
return client.do_queue()
|
374
464
|
end
|
375
465
|
|
376
466
|
# Dispatch event notification object by id
|
377
467
|
#
|
378
468
|
def dispatch(id, scope)
|
379
469
|
kparams = {}
|
380
|
-
client.add_param(kparams, 'id', id)
|
381
|
-
client.add_param(kparams, 'scope', scope)
|
382
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'dispatch', kparams)
|
470
|
+
client.add_param(kparams, 'id', id)
|
471
|
+
client.add_param(kparams, 'scope', scope)
|
472
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'dispatch', 'int', kparams)
|
383
473
|
if (client.is_multirequest)
|
384
|
-
return nil
|
474
|
+
return nil
|
385
475
|
end
|
386
|
-
return client.do_queue()
|
476
|
+
return client.do_queue()
|
387
477
|
end
|
388
478
|
|
389
479
|
# Action lists the template partner event notification templates.
|
390
480
|
#
|
391
481
|
def list_templates(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
392
482
|
kparams = {}
|
393
|
-
client.add_param(kparams, 'filter', filter)
|
394
|
-
client.add_param(kparams, 'pager', pager)
|
395
|
-
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listTemplates', kparams)
|
483
|
+
client.add_param(kparams, 'filter', filter)
|
484
|
+
client.add_param(kparams, 'pager', pager)
|
485
|
+
client.queue_service_action_call('eventnotification_eventnotificationtemplate', 'listTemplates', 'KalturaEventNotificationTemplateListResponse', kparams)
|
396
486
|
if (client.is_multirequest)
|
397
|
-
return nil
|
487
|
+
return nil
|
398
488
|
end
|
399
|
-
return client.do_queue()
|
489
|
+
return client.do_queue()
|
400
490
|
end
|
401
491
|
end
|
402
492
|
|
@@ -408,6 +498,7 @@ module Kaltura
|
|
408
498
|
end
|
409
499
|
return @event_notification_template_service
|
410
500
|
end
|
501
|
+
|
411
502
|
end
|
412
503
|
|
413
504
|
end
|