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
|
@@ -142,7 +142,24 @@ module Kaltura
|
|
142
142
|
end
|
143
143
|
|
144
144
|
class KalturaDistributionProviderType
|
145
|
+
AVN = "avnDistribution.AVN"
|
146
|
+
COMCAST_MRSS = "comcastMrssDistribution.COMCAST_MRSS"
|
147
|
+
CROSS_KALTURA = "crossKalturaDistribution.CROSS_KALTURA"
|
148
|
+
DAILYMOTION = "dailymotionDistribution.DAILYMOTION"
|
149
|
+
DOUBLECLICK = "doubleClickDistribution.DOUBLECLICK"
|
150
|
+
FACEBOOK = "facebookDistribution.FACEBOOK"
|
151
|
+
FREEWHEEL = "freewheelDistribution.FREEWHEEL"
|
152
|
+
FREEWHEEL_GENERIC = "freewheelGenericDistribution.FREEWHEEL_GENERIC"
|
153
|
+
FTP = "ftpDistribution.FTP"
|
154
|
+
FTP_SCHEDULED = "ftpDistribution.FTP_SCHEDULED"
|
155
|
+
HULU = "huluDistribution.HULU"
|
145
156
|
IDETIC = "ideticDistribution.IDETIC"
|
157
|
+
METRO_PCS = "metroPcsDistribution.METRO_PCS"
|
158
|
+
MSN = "msnDistribution.MSN"
|
159
|
+
QUICKPLAY = "quickPlayDistribution.QUICKPLAY"
|
160
|
+
UNICORN = "unicornDistribution.UNICORN"
|
161
|
+
YAHOO = "yahooDistribution.YAHOO"
|
162
|
+
YOUTUBE = "youTubeDistribution.YOUTUBE"
|
146
163
|
YOUTUBE_API = "youtubeApiDistribution.YOUTUBE_API"
|
147
164
|
GENERIC = "1"
|
148
165
|
SYNDICATION = "2"
|
@@ -190,7 +207,6 @@ module Kaltura
|
|
190
207
|
end
|
191
208
|
|
192
209
|
# Abstract class for asset distribution condition
|
193
|
-
#
|
194
210
|
class KalturaAssetDistributionCondition < KalturaObjectBase
|
195
211
|
|
196
212
|
|
@@ -202,17 +218,19 @@ module Kaltura
|
|
202
218
|
|
203
219
|
class KalturaAssetDistributionRule < KalturaObjectBase
|
204
220
|
# The validation error description that will be set on the "data" property on KalturaDistributionValidationErrorMissingAsset if rule was not fulfilled
|
205
|
-
#
|
206
221
|
attr_accessor :validation_error
|
207
222
|
# An array of asset distribution conditions
|
208
|
-
#
|
209
223
|
attr_accessor :asset_distribution_conditions
|
210
224
|
|
211
225
|
|
212
226
|
def from_xml(xml_element)
|
213
227
|
super
|
214
|
-
|
215
|
-
|
228
|
+
if xml_element.elements['validationError'] != nil
|
229
|
+
self.validation_error = xml_element.elements['validationError'].text
|
230
|
+
end
|
231
|
+
if xml_element.elements['assetDistributionConditions'] != nil
|
232
|
+
self.asset_distribution_conditions = KalturaClientBase.object_from_xml(xml_element.elements['assetDistributionConditions'], 'KalturaAssetDistributionCondition')
|
233
|
+
end
|
216
234
|
end
|
217
235
|
|
218
236
|
end
|
@@ -220,29 +238,22 @@ module Kaltura
|
|
220
238
|
class KalturaDistributionFieldConfig < KalturaObjectBase
|
221
239
|
# A value taken from a connector field enum which associates the current configuration to that connector field
|
222
240
|
# Field enum class should be returned by the provider's getFieldEnumClass function.
|
223
|
-
#
|
224
241
|
attr_accessor :field_name
|
225
242
|
# A string that will be shown to the user as the field name in error messages related to the current field
|
226
|
-
#
|
227
243
|
attr_accessor :user_friendly_field_name
|
228
244
|
# An XSLT string that extracts the right value from the Kaltura entry MRSS XML.
|
229
245
|
# The value of the current connector field will be the one that is returned from transforming the Kaltura entry MRSS XML using this XSLT string.
|
230
|
-
#
|
231
246
|
attr_accessor :entry_mrss_xslt
|
232
247
|
# Is the field required to have a value for submission ?
|
233
|
-
#
|
234
248
|
attr_accessor :is_required
|
249
|
+
attr_accessor :type
|
235
250
|
# Trigger distribution update when this field changes or not ?
|
236
|
-
#
|
237
251
|
attr_accessor :update_on_change
|
238
252
|
# Entry column or metadata xpath that should trigger an update
|
239
|
-
#
|
240
253
|
attr_accessor :update_params
|
241
254
|
# Is this field config is the default for the distribution provider?
|
242
|
-
#
|
243
255
|
attr_accessor :is_default
|
244
256
|
# Is an error on this field going to trigger deletion of distributed content?
|
245
|
-
#
|
246
257
|
attr_accessor :trigger_delete_on_error
|
247
258
|
|
248
259
|
def is_required=(val)
|
@@ -260,14 +271,33 @@ module Kaltura
|
|
260
271
|
|
261
272
|
def from_xml(xml_element)
|
262
273
|
super
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
274
|
+
if xml_element.elements['fieldName'] != nil
|
275
|
+
self.field_name = xml_element.elements['fieldName'].text
|
276
|
+
end
|
277
|
+
if xml_element.elements['userFriendlyFieldName'] != nil
|
278
|
+
self.user_friendly_field_name = xml_element.elements['userFriendlyFieldName'].text
|
279
|
+
end
|
280
|
+
if xml_element.elements['entryMrssXslt'] != nil
|
281
|
+
self.entry_mrss_xslt = xml_element.elements['entryMrssXslt'].text
|
282
|
+
end
|
283
|
+
if xml_element.elements['isRequired'] != nil
|
284
|
+
self.is_required = xml_element.elements['isRequired'].text
|
285
|
+
end
|
286
|
+
if xml_element.elements['type'] != nil
|
287
|
+
self.type = xml_element.elements['type'].text
|
288
|
+
end
|
289
|
+
if xml_element.elements['updateOnChange'] != nil
|
290
|
+
self.update_on_change = xml_element.elements['updateOnChange'].text
|
291
|
+
end
|
292
|
+
if xml_element.elements['updateParams'] != nil
|
293
|
+
self.update_params = KalturaClientBase.object_from_xml(xml_element.elements['updateParams'], 'KalturaString')
|
294
|
+
end
|
295
|
+
if xml_element.elements['isDefault'] != nil
|
296
|
+
self.is_default = xml_element.elements['isDefault'].text
|
297
|
+
end
|
298
|
+
if xml_element.elements['triggerDeleteOnError'] != nil
|
299
|
+
self.trigger_delete_on_error = xml_element.elements['triggerDeleteOnError'].text
|
300
|
+
end
|
271
301
|
end
|
272
302
|
|
273
303
|
end
|
@@ -294,21 +324,22 @@ module Kaltura
|
|
294
324
|
|
295
325
|
def from_xml(xml_element)
|
296
326
|
super
|
297
|
-
|
298
|
-
|
327
|
+
if xml_element.elements['width'] != nil
|
328
|
+
self.width = xml_element.elements['width'].text
|
329
|
+
end
|
330
|
+
if xml_element.elements['height'] != nil
|
331
|
+
self.height = xml_element.elements['height'].text
|
332
|
+
end
|
299
333
|
end
|
300
334
|
|
301
335
|
end
|
302
336
|
|
303
337
|
class KalturaDistributionProfile < KalturaObjectBase
|
304
338
|
# Auto generated unique id
|
305
|
-
#
|
306
339
|
attr_accessor :id
|
307
340
|
# Profile creation date as Unix timestamp (In seconds)
|
308
|
-
#
|
309
341
|
attr_accessor :created_at
|
310
342
|
# Profile last update date as Unix timestamp (In seconds)
|
311
|
-
#
|
312
343
|
attr_accessor :updated_at
|
313
344
|
attr_accessor :partner_id
|
314
345
|
attr_accessor :provider_type
|
@@ -319,43 +350,30 @@ module Kaltura
|
|
319
350
|
attr_accessor :delete_enabled
|
320
351
|
attr_accessor :report_enabled
|
321
352
|
# Comma separated flavor params ids that should be auto converted
|
322
|
-
#
|
323
353
|
attr_accessor :auto_create_flavors
|
324
354
|
# Comma separated thumbnail params ids that should be auto generated
|
325
|
-
#
|
326
355
|
attr_accessor :auto_create_thumb
|
327
356
|
# Comma separated flavor params ids that should be submitted if ready
|
328
|
-
#
|
329
357
|
attr_accessor :optional_flavor_params_ids
|
330
358
|
# Comma separated flavor params ids that required to be ready before submission
|
331
|
-
#
|
332
359
|
attr_accessor :required_flavor_params_ids
|
333
360
|
# Thumbnail dimensions that should be submitted if ready
|
334
|
-
#
|
335
361
|
attr_accessor :optional_thumb_dimensions
|
336
362
|
# Thumbnail dimensions that required to be readt before submission
|
337
|
-
#
|
338
363
|
attr_accessor :required_thumb_dimensions
|
339
364
|
# Asset Distribution Rules for assets that should be submitted if ready
|
340
|
-
#
|
341
365
|
attr_accessor :optional_asset_distribution_rules
|
342
366
|
# Assets Asset Distribution Rules for assets that are required to be ready before submission
|
343
|
-
#
|
344
367
|
attr_accessor :required_asset_distribution_rules
|
345
368
|
# If entry distribution sunrise not specified that will be the default since entry creation time, in seconds
|
346
|
-
#
|
347
369
|
attr_accessor :sunrise_default_offset
|
348
370
|
# If entry distribution sunset not specified that will be the default since entry creation time, in seconds
|
349
|
-
#
|
350
371
|
attr_accessor :sunset_default_offset
|
351
372
|
# The best external storage to be used to download the asset files from
|
352
|
-
#
|
353
373
|
attr_accessor :recommended_storage_profile_for_download
|
354
374
|
# The best Kaltura data center to be used to download the asset files to
|
355
|
-
#
|
356
375
|
attr_accessor :recommended_dc_for_download
|
357
376
|
# The best Kaltura data center to be used to execute the distribution job
|
358
|
-
#
|
359
377
|
attr_accessor :recommended_dc_for_execute
|
360
378
|
|
361
379
|
def id=(val)
|
@@ -403,30 +421,78 @@ module Kaltura
|
|
403
421
|
|
404
422
|
def from_xml(xml_element)
|
405
423
|
super
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
424
|
+
if xml_element.elements['id'] != nil
|
425
|
+
self.id = xml_element.elements['id'].text
|
426
|
+
end
|
427
|
+
if xml_element.elements['createdAt'] != nil
|
428
|
+
self.created_at = xml_element.elements['createdAt'].text
|
429
|
+
end
|
430
|
+
if xml_element.elements['updatedAt'] != nil
|
431
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
432
|
+
end
|
433
|
+
if xml_element.elements['partnerId'] != nil
|
434
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
435
|
+
end
|
436
|
+
if xml_element.elements['providerType'] != nil
|
437
|
+
self.provider_type = xml_element.elements['providerType'].text
|
438
|
+
end
|
439
|
+
if xml_element.elements['name'] != nil
|
440
|
+
self.name = xml_element.elements['name'].text
|
441
|
+
end
|
442
|
+
if xml_element.elements['status'] != nil
|
443
|
+
self.status = xml_element.elements['status'].text
|
444
|
+
end
|
445
|
+
if xml_element.elements['submitEnabled'] != nil
|
446
|
+
self.submit_enabled = xml_element.elements['submitEnabled'].text
|
447
|
+
end
|
448
|
+
if xml_element.elements['updateEnabled'] != nil
|
449
|
+
self.update_enabled = xml_element.elements['updateEnabled'].text
|
450
|
+
end
|
451
|
+
if xml_element.elements['deleteEnabled'] != nil
|
452
|
+
self.delete_enabled = xml_element.elements['deleteEnabled'].text
|
453
|
+
end
|
454
|
+
if xml_element.elements['reportEnabled'] != nil
|
455
|
+
self.report_enabled = xml_element.elements['reportEnabled'].text
|
456
|
+
end
|
457
|
+
if xml_element.elements['autoCreateFlavors'] != nil
|
458
|
+
self.auto_create_flavors = xml_element.elements['autoCreateFlavors'].text
|
459
|
+
end
|
460
|
+
if xml_element.elements['autoCreateThumb'] != nil
|
461
|
+
self.auto_create_thumb = xml_element.elements['autoCreateThumb'].text
|
462
|
+
end
|
463
|
+
if xml_element.elements['optionalFlavorParamsIds'] != nil
|
464
|
+
self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
|
465
|
+
end
|
466
|
+
if xml_element.elements['requiredFlavorParamsIds'] != nil
|
467
|
+
self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
|
468
|
+
end
|
469
|
+
if xml_element.elements['optionalThumbDimensions'] != nil
|
470
|
+
self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
471
|
+
end
|
472
|
+
if xml_element.elements['requiredThumbDimensions'] != nil
|
473
|
+
self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
474
|
+
end
|
475
|
+
if xml_element.elements['optionalAssetDistributionRules'] != nil
|
476
|
+
self.optional_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['optionalAssetDistributionRules'], 'KalturaAssetDistributionRule')
|
477
|
+
end
|
478
|
+
if xml_element.elements['requiredAssetDistributionRules'] != nil
|
479
|
+
self.required_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['requiredAssetDistributionRules'], 'KalturaAssetDistributionRule')
|
480
|
+
end
|
481
|
+
if xml_element.elements['sunriseDefaultOffset'] != nil
|
482
|
+
self.sunrise_default_offset = xml_element.elements['sunriseDefaultOffset'].text
|
483
|
+
end
|
484
|
+
if xml_element.elements['sunsetDefaultOffset'] != nil
|
485
|
+
self.sunset_default_offset = xml_element.elements['sunsetDefaultOffset'].text
|
486
|
+
end
|
487
|
+
if xml_element.elements['recommendedStorageProfileForDownload'] != nil
|
488
|
+
self.recommended_storage_profile_for_download = xml_element.elements['recommendedStorageProfileForDownload'].text
|
489
|
+
end
|
490
|
+
if xml_element.elements['recommendedDcForDownload'] != nil
|
491
|
+
self.recommended_dc_for_download = xml_element.elements['recommendedDcForDownload'].text
|
492
|
+
end
|
493
|
+
if xml_element.elements['recommendedDcForExecute'] != nil
|
494
|
+
self.recommended_dc_for_execute = xml_element.elements['recommendedDcForExecute'].text
|
495
|
+
end
|
430
496
|
end
|
431
497
|
|
432
498
|
end
|
@@ -460,15 +526,33 @@ module Kaltura
|
|
460
526
|
|
461
527
|
def from_xml(xml_element)
|
462
528
|
super
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
529
|
+
if xml_element.elements['type'] != nil
|
530
|
+
self.type = xml_element.elements['type'].text
|
531
|
+
end
|
532
|
+
if xml_element.elements['name'] != nil
|
533
|
+
self.name = xml_element.elements['name'].text
|
534
|
+
end
|
535
|
+
if xml_element.elements['scheduleUpdateEnabled'] != nil
|
536
|
+
self.schedule_update_enabled = xml_element.elements['scheduleUpdateEnabled'].text
|
537
|
+
end
|
538
|
+
if xml_element.elements['availabilityUpdateEnabled'] != nil
|
539
|
+
self.availability_update_enabled = xml_element.elements['availabilityUpdateEnabled'].text
|
540
|
+
end
|
541
|
+
if xml_element.elements['deleteInsteadUpdate'] != nil
|
542
|
+
self.delete_instead_update = xml_element.elements['deleteInsteadUpdate'].text
|
543
|
+
end
|
544
|
+
if xml_element.elements['intervalBeforeSunrise'] != nil
|
545
|
+
self.interval_before_sunrise = xml_element.elements['intervalBeforeSunrise'].text
|
546
|
+
end
|
547
|
+
if xml_element.elements['intervalBeforeSunset'] != nil
|
548
|
+
self.interval_before_sunset = xml_element.elements['intervalBeforeSunset'].text
|
549
|
+
end
|
550
|
+
if xml_element.elements['updateRequiredEntryFields'] != nil
|
551
|
+
self.update_required_entry_fields = xml_element.elements['updateRequiredEntryFields'].text
|
552
|
+
end
|
553
|
+
if xml_element.elements['updateRequiredMetadataXPaths'] != nil
|
554
|
+
self.update_required_metadata_xpaths = xml_element.elements['updateRequiredMetadataXPaths'].text
|
555
|
+
end
|
472
556
|
end
|
473
557
|
|
474
558
|
end
|
@@ -481,9 +565,15 @@ module Kaltura
|
|
481
565
|
|
482
566
|
def from_xml(xml_element)
|
483
567
|
super
|
484
|
-
|
485
|
-
|
486
|
-
|
568
|
+
if xml_element.elements['version'] != nil
|
569
|
+
self.version = xml_element.elements['version'].text
|
570
|
+
end
|
571
|
+
if xml_element.elements['assetId'] != nil
|
572
|
+
self.asset_id = xml_element.elements['assetId'].text
|
573
|
+
end
|
574
|
+
if xml_element.elements['remoteId'] != nil
|
575
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
576
|
+
end
|
487
577
|
end
|
488
578
|
|
489
579
|
end
|
@@ -502,25 +592,27 @@ module Kaltura
|
|
502
592
|
|
503
593
|
def from_xml(xml_element)
|
504
594
|
super
|
505
|
-
|
506
|
-
|
507
|
-
|
595
|
+
if xml_element.elements['action'] != nil
|
596
|
+
self.action = xml_element.elements['action'].text
|
597
|
+
end
|
598
|
+
if xml_element.elements['errorType'] != nil
|
599
|
+
self.error_type = xml_element.elements['errorType'].text
|
600
|
+
end
|
601
|
+
if xml_element.elements['description'] != nil
|
602
|
+
self.description = xml_element.elements['description'].text
|
603
|
+
end
|
508
604
|
end
|
509
605
|
|
510
606
|
end
|
511
607
|
|
512
608
|
class KalturaEntryDistribution < KalturaObjectBase
|
513
609
|
# Auto generated unique id
|
514
|
-
#
|
515
610
|
attr_accessor :id
|
516
611
|
# Entry distribution creation date as Unix timestamp (In seconds)
|
517
|
-
#
|
518
612
|
attr_accessor :created_at
|
519
613
|
# Entry distribution last update date as Unix timestamp (In seconds)
|
520
|
-
#
|
521
614
|
attr_accessor :updated_at
|
522
615
|
# Entry distribution submission date as Unix timestamp (In seconds)
|
523
|
-
#
|
524
616
|
attr_accessor :submitted_at
|
525
617
|
attr_accessor :entry_id
|
526
618
|
attr_accessor :partner_id
|
@@ -529,28 +621,20 @@ module Kaltura
|
|
529
621
|
attr_accessor :sun_status
|
530
622
|
attr_accessor :dirty_status
|
531
623
|
# Comma separated thumbnail asset ids
|
532
|
-
#
|
533
624
|
attr_accessor :thumb_asset_ids
|
534
625
|
# Comma separated flavor asset ids
|
535
|
-
#
|
536
626
|
attr_accessor :flavor_asset_ids
|
537
627
|
# Comma separated asset ids
|
538
|
-
#
|
539
628
|
attr_accessor :asset_ids
|
540
629
|
# Entry distribution publish time as Unix timestamp (In seconds)
|
541
|
-
#
|
542
630
|
attr_accessor :sunrise
|
543
631
|
# Entry distribution un-publish time as Unix timestamp (In seconds)
|
544
|
-
#
|
545
632
|
attr_accessor :sunset
|
546
633
|
# The id as returned from the distributed destination
|
547
|
-
#
|
548
634
|
attr_accessor :remote_id
|
549
635
|
# The plays as retrieved from the remote destination reports
|
550
|
-
#
|
551
636
|
attr_accessor :plays
|
552
637
|
# The views as retrieved from the remote destination reports
|
553
|
-
#
|
554
638
|
attr_accessor :views
|
555
639
|
attr_accessor :validation_errors
|
556
640
|
attr_accessor :error_type
|
@@ -629,34 +713,90 @@ module Kaltura
|
|
629
713
|
|
630
714
|
def from_xml(xml_element)
|
631
715
|
super
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
716
|
+
if xml_element.elements['id'] != nil
|
717
|
+
self.id = xml_element.elements['id'].text
|
718
|
+
end
|
719
|
+
if xml_element.elements['createdAt'] != nil
|
720
|
+
self.created_at = xml_element.elements['createdAt'].text
|
721
|
+
end
|
722
|
+
if xml_element.elements['updatedAt'] != nil
|
723
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
724
|
+
end
|
725
|
+
if xml_element.elements['submittedAt'] != nil
|
726
|
+
self.submitted_at = xml_element.elements['submittedAt'].text
|
727
|
+
end
|
728
|
+
if xml_element.elements['entryId'] != nil
|
729
|
+
self.entry_id = xml_element.elements['entryId'].text
|
730
|
+
end
|
731
|
+
if xml_element.elements['partnerId'] != nil
|
732
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
733
|
+
end
|
734
|
+
if xml_element.elements['distributionProfileId'] != nil
|
735
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
736
|
+
end
|
737
|
+
if xml_element.elements['status'] != nil
|
738
|
+
self.status = xml_element.elements['status'].text
|
739
|
+
end
|
740
|
+
if xml_element.elements['sunStatus'] != nil
|
741
|
+
self.sun_status = xml_element.elements['sunStatus'].text
|
742
|
+
end
|
743
|
+
if xml_element.elements['dirtyStatus'] != nil
|
744
|
+
self.dirty_status = xml_element.elements['dirtyStatus'].text
|
745
|
+
end
|
746
|
+
if xml_element.elements['thumbAssetIds'] != nil
|
747
|
+
self.thumb_asset_ids = xml_element.elements['thumbAssetIds'].text
|
748
|
+
end
|
749
|
+
if xml_element.elements['flavorAssetIds'] != nil
|
750
|
+
self.flavor_asset_ids = xml_element.elements['flavorAssetIds'].text
|
751
|
+
end
|
752
|
+
if xml_element.elements['assetIds'] != nil
|
753
|
+
self.asset_ids = xml_element.elements['assetIds'].text
|
754
|
+
end
|
755
|
+
if xml_element.elements['sunrise'] != nil
|
756
|
+
self.sunrise = xml_element.elements['sunrise'].text
|
757
|
+
end
|
758
|
+
if xml_element.elements['sunset'] != nil
|
759
|
+
self.sunset = xml_element.elements['sunset'].text
|
760
|
+
end
|
761
|
+
if xml_element.elements['remoteId'] != nil
|
762
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
763
|
+
end
|
764
|
+
if xml_element.elements['plays'] != nil
|
765
|
+
self.plays = xml_element.elements['plays'].text
|
766
|
+
end
|
767
|
+
if xml_element.elements['views'] != nil
|
768
|
+
self.views = xml_element.elements['views'].text
|
769
|
+
end
|
770
|
+
if xml_element.elements['validationErrors'] != nil
|
771
|
+
self.validation_errors = KalturaClientBase.object_from_xml(xml_element.elements['validationErrors'], 'KalturaDistributionValidationError')
|
772
|
+
end
|
773
|
+
if xml_element.elements['errorType'] != nil
|
774
|
+
self.error_type = xml_element.elements['errorType'].text
|
775
|
+
end
|
776
|
+
if xml_element.elements['errorNumber'] != nil
|
777
|
+
self.error_number = xml_element.elements['errorNumber'].text
|
778
|
+
end
|
779
|
+
if xml_element.elements['errorDescription'] != nil
|
780
|
+
self.error_description = xml_element.elements['errorDescription'].text
|
781
|
+
end
|
782
|
+
if xml_element.elements['hasSubmitResultsLog'] != nil
|
783
|
+
self.has_submit_results_log = xml_element.elements['hasSubmitResultsLog'].text
|
784
|
+
end
|
785
|
+
if xml_element.elements['hasSubmitSentDataLog'] != nil
|
786
|
+
self.has_submit_sent_data_log = xml_element.elements['hasSubmitSentDataLog'].text
|
787
|
+
end
|
788
|
+
if xml_element.elements['hasUpdateResultsLog'] != nil
|
789
|
+
self.has_update_results_log = xml_element.elements['hasUpdateResultsLog'].text
|
790
|
+
end
|
791
|
+
if xml_element.elements['hasUpdateSentDataLog'] != nil
|
792
|
+
self.has_update_sent_data_log = xml_element.elements['hasUpdateSentDataLog'].text
|
793
|
+
end
|
794
|
+
if xml_element.elements['hasDeleteResultsLog'] != nil
|
795
|
+
self.has_delete_results_log = xml_element.elements['hasDeleteResultsLog'].text
|
796
|
+
end
|
797
|
+
if xml_element.elements['hasDeleteSentDataLog'] != nil
|
798
|
+
self.has_delete_sent_data_log = xml_element.elements['hasDeleteSentDataLog'].text
|
799
|
+
end
|
660
800
|
end
|
661
801
|
|
662
802
|
end
|
@@ -680,27 +820,40 @@ module Kaltura
|
|
680
820
|
|
681
821
|
def from_xml(xml_element)
|
682
822
|
super
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
823
|
+
if xml_element.elements['protocol'] != nil
|
824
|
+
self.protocol = xml_element.elements['protocol'].text
|
825
|
+
end
|
826
|
+
if xml_element.elements['serverUrl'] != nil
|
827
|
+
self.server_url = xml_element.elements['serverUrl'].text
|
828
|
+
end
|
829
|
+
if xml_element.elements['serverPath'] != nil
|
830
|
+
self.server_path = xml_element.elements['serverPath'].text
|
831
|
+
end
|
832
|
+
if xml_element.elements['username'] != nil
|
833
|
+
self.username = xml_element.elements['username'].text
|
834
|
+
end
|
835
|
+
if xml_element.elements['password'] != nil
|
836
|
+
self.password = xml_element.elements['password'].text
|
837
|
+
end
|
838
|
+
if xml_element.elements['ftpPassiveMode'] != nil
|
839
|
+
self.ftp_passive_mode = xml_element.elements['ftpPassiveMode'].text
|
840
|
+
end
|
841
|
+
if xml_element.elements['httpFieldName'] != nil
|
842
|
+
self.http_field_name = xml_element.elements['httpFieldName'].text
|
843
|
+
end
|
844
|
+
if xml_element.elements['httpFileName'] != nil
|
845
|
+
self.http_file_name = xml_element.elements['httpFileName'].text
|
846
|
+
end
|
691
847
|
end
|
692
848
|
|
693
849
|
end
|
694
850
|
|
695
851
|
class KalturaGenericDistributionProviderAction < KalturaObjectBase
|
696
852
|
# Auto generated
|
697
|
-
#
|
698
853
|
attr_accessor :id
|
699
854
|
# Generic distribution provider action creation date as Unix timestamp (In seconds)
|
700
|
-
#
|
701
855
|
attr_accessor :created_at
|
702
856
|
# Generic distribution provider action last update date as Unix timestamp (In seconds)
|
703
|
-
#
|
704
857
|
attr_accessor :updated_at
|
705
858
|
attr_accessor :generic_distribution_provider_id
|
706
859
|
attr_accessor :action
|
@@ -744,36 +897,67 @@ module Kaltura
|
|
744
897
|
|
745
898
|
def from_xml(xml_element)
|
746
899
|
super
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
900
|
+
if xml_element.elements['id'] != nil
|
901
|
+
self.id = xml_element.elements['id'].text
|
902
|
+
end
|
903
|
+
if xml_element.elements['createdAt'] != nil
|
904
|
+
self.created_at = xml_element.elements['createdAt'].text
|
905
|
+
end
|
906
|
+
if xml_element.elements['updatedAt'] != nil
|
907
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
908
|
+
end
|
909
|
+
if xml_element.elements['genericDistributionProviderId'] != nil
|
910
|
+
self.generic_distribution_provider_id = xml_element.elements['genericDistributionProviderId'].text
|
911
|
+
end
|
912
|
+
if xml_element.elements['action'] != nil
|
913
|
+
self.action = xml_element.elements['action'].text
|
914
|
+
end
|
915
|
+
if xml_element.elements['status'] != nil
|
916
|
+
self.status = xml_element.elements['status'].text
|
917
|
+
end
|
918
|
+
if xml_element.elements['resultsParser'] != nil
|
919
|
+
self.results_parser = xml_element.elements['resultsParser'].text
|
920
|
+
end
|
921
|
+
if xml_element.elements['protocol'] != nil
|
922
|
+
self.protocol = xml_element.elements['protocol'].text
|
923
|
+
end
|
924
|
+
if xml_element.elements['serverAddress'] != nil
|
925
|
+
self.server_address = xml_element.elements['serverAddress'].text
|
926
|
+
end
|
927
|
+
if xml_element.elements['remotePath'] != nil
|
928
|
+
self.remote_path = xml_element.elements['remotePath'].text
|
929
|
+
end
|
930
|
+
if xml_element.elements['remoteUsername'] != nil
|
931
|
+
self.remote_username = xml_element.elements['remoteUsername'].text
|
932
|
+
end
|
933
|
+
if xml_element.elements['remotePassword'] != nil
|
934
|
+
self.remote_password = xml_element.elements['remotePassword'].text
|
935
|
+
end
|
936
|
+
if xml_element.elements['editableFields'] != nil
|
937
|
+
self.editable_fields = xml_element.elements['editableFields'].text
|
938
|
+
end
|
939
|
+
if xml_element.elements['mandatoryFields'] != nil
|
940
|
+
self.mandatory_fields = xml_element.elements['mandatoryFields'].text
|
941
|
+
end
|
942
|
+
if xml_element.elements['mrssTransformer'] != nil
|
943
|
+
self.mrss_transformer = xml_element.elements['mrssTransformer'].text
|
944
|
+
end
|
945
|
+
if xml_element.elements['mrssValidator'] != nil
|
946
|
+
self.mrss_validator = xml_element.elements['mrssValidator'].text
|
947
|
+
end
|
948
|
+
if xml_element.elements['resultsTransformer'] != nil
|
949
|
+
self.results_transformer = xml_element.elements['resultsTransformer'].text
|
950
|
+
end
|
764
951
|
end
|
765
952
|
|
766
953
|
end
|
767
954
|
|
768
955
|
class KalturaGenericDistributionProvider < KalturaDistributionProvider
|
769
956
|
# Auto generated
|
770
|
-
#
|
771
957
|
attr_accessor :id
|
772
958
|
# Generic distribution provider creation date as Unix timestamp (In seconds)
|
773
|
-
#
|
774
959
|
attr_accessor :created_at
|
775
960
|
# Generic distribution provider last update date as Unix timestamp (In seconds)
|
776
|
-
#
|
777
961
|
attr_accessor :updated_at
|
778
962
|
attr_accessor :partner_id
|
779
963
|
attr_accessor :is_default
|
@@ -806,38 +990,63 @@ module Kaltura
|
|
806
990
|
|
807
991
|
def from_xml(xml_element)
|
808
992
|
super
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
993
|
+
if xml_element.elements['id'] != nil
|
994
|
+
self.id = xml_element.elements['id'].text
|
995
|
+
end
|
996
|
+
if xml_element.elements['createdAt'] != nil
|
997
|
+
self.created_at = xml_element.elements['createdAt'].text
|
998
|
+
end
|
999
|
+
if xml_element.elements['updatedAt'] != nil
|
1000
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
1001
|
+
end
|
1002
|
+
if xml_element.elements['partnerId'] != nil
|
1003
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
1004
|
+
end
|
1005
|
+
if xml_element.elements['isDefault'] != nil
|
1006
|
+
self.is_default = xml_element.elements['isDefault'].text
|
1007
|
+
end
|
1008
|
+
if xml_element.elements['status'] != nil
|
1009
|
+
self.status = xml_element.elements['status'].text
|
1010
|
+
end
|
1011
|
+
if xml_element.elements['optionalFlavorParamsIds'] != nil
|
1012
|
+
self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
|
1013
|
+
end
|
1014
|
+
if xml_element.elements['requiredFlavorParamsIds'] != nil
|
1015
|
+
self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
|
1016
|
+
end
|
1017
|
+
if xml_element.elements['optionalThumbDimensions'] != nil
|
1018
|
+
self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
1019
|
+
end
|
1020
|
+
if xml_element.elements['requiredThumbDimensions'] != nil
|
1021
|
+
self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
1022
|
+
end
|
1023
|
+
if xml_element.elements['editableFields'] != nil
|
1024
|
+
self.editable_fields = xml_element.elements['editableFields'].text
|
1025
|
+
end
|
1026
|
+
if xml_element.elements['mandatoryFields'] != nil
|
1027
|
+
self.mandatory_fields = xml_element.elements['mandatoryFields'].text
|
1028
|
+
end
|
821
1029
|
end
|
822
1030
|
|
823
1031
|
end
|
824
1032
|
|
825
1033
|
# Defines the condition to match a property and value on core asset object (or one if its inherited objects)
|
826
|
-
#
|
827
1034
|
class KalturaAssetDistributionPropertyCondition < KalturaAssetDistributionCondition
|
828
1035
|
# The property name to look for, this will match to a getter on the asset object.
|
829
1036
|
# Should be camelCase naming convention (defining "myPropertyName" will look for getMyPropertyName())
|
830
|
-
#
|
831
1037
|
attr_accessor :property_name
|
832
1038
|
# The value to compare
|
833
|
-
#
|
834
1039
|
attr_accessor :property_value
|
835
1040
|
|
836
1041
|
|
837
1042
|
def from_xml(xml_element)
|
838
1043
|
super
|
839
|
-
|
840
|
-
|
1044
|
+
if xml_element.elements['propertyName'] != nil
|
1045
|
+
self.property_name = xml_element.elements['propertyName'].text
|
1046
|
+
end
|
1047
|
+
if xml_element.elements['propertyValue'] != nil
|
1048
|
+
self.property_value = xml_element.elements['propertyValue'].text
|
1049
|
+
end
|
841
1050
|
end
|
842
1051
|
|
843
1052
|
end
|
@@ -848,7 +1057,9 @@ module Kaltura
|
|
848
1057
|
|
849
1058
|
def from_xml(xml_element)
|
850
1059
|
super
|
851
|
-
|
1060
|
+
if xml_element.elements['fieldValues'] != nil
|
1061
|
+
self.field_values = xml_element.elements['fieldValues'].text
|
1062
|
+
end
|
852
1063
|
end
|
853
1064
|
|
854
1065
|
end
|
@@ -857,7 +1068,6 @@ module Kaltura
|
|
857
1068
|
attr_accessor :field_config_array
|
858
1069
|
attr_accessor :item_xpaths_to_extend
|
859
1070
|
# When checking custom XSLT conditions using the fieldConfigArray - address only categories associated with the entry via the categoryEntry object
|
860
|
-
#
|
861
1071
|
attr_accessor :use_category_entries
|
862
1072
|
|
863
1073
|
def use_category_entries=(val)
|
@@ -866,9 +1076,15 @@ module Kaltura
|
|
866
1076
|
|
867
1077
|
def from_xml(xml_element)
|
868
1078
|
super
|
869
|
-
|
870
|
-
|
871
|
-
|
1079
|
+
if xml_element.elements['fieldConfigArray'] != nil
|
1080
|
+
self.field_config_array = KalturaClientBase.object_from_xml(xml_element.elements['fieldConfigArray'], 'KalturaDistributionFieldConfig')
|
1081
|
+
end
|
1082
|
+
if xml_element.elements['itemXpathsToExtend'] != nil
|
1083
|
+
self.item_xpaths_to_extend = KalturaClientBase.object_from_xml(xml_element.elements['itemXpathsToExtend'], 'KalturaExtendingItemMrssParameter')
|
1084
|
+
end
|
1085
|
+
if xml_element.elements['useCategoryEntries'] != nil
|
1086
|
+
self.use_category_entries = xml_element.elements['useCategoryEntries'].text
|
1087
|
+
end
|
872
1088
|
end
|
873
1089
|
|
874
1090
|
end
|
@@ -881,7 +1097,6 @@ module Kaltura
|
|
881
1097
|
attr_accessor :entry_distribution_status
|
882
1098
|
attr_accessor :has_entry_distribution_validation_errors
|
883
1099
|
# Comma seperated validation error types
|
884
|
-
#
|
885
1100
|
attr_accessor :entry_distribution_validation_errors
|
886
1101
|
|
887
1102
|
def no_distribution_profiles=(val)
|
@@ -905,13 +1120,27 @@ module Kaltura
|
|
905
1120
|
|
906
1121
|
def from_xml(xml_element)
|
907
1122
|
super
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
1123
|
+
if xml_element.elements['noDistributionProfiles'] != nil
|
1124
|
+
self.no_distribution_profiles = xml_element.elements['noDistributionProfiles'].text
|
1125
|
+
end
|
1126
|
+
if xml_element.elements['distributionProfileId'] != nil
|
1127
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
1128
|
+
end
|
1129
|
+
if xml_element.elements['distributionSunStatus'] != nil
|
1130
|
+
self.distribution_sun_status = xml_element.elements['distributionSunStatus'].text
|
1131
|
+
end
|
1132
|
+
if xml_element.elements['entryDistributionFlag'] != nil
|
1133
|
+
self.entry_distribution_flag = xml_element.elements['entryDistributionFlag'].text
|
1134
|
+
end
|
1135
|
+
if xml_element.elements['entryDistributionStatus'] != nil
|
1136
|
+
self.entry_distribution_status = xml_element.elements['entryDistributionStatus'].text
|
1137
|
+
end
|
1138
|
+
if xml_element.elements['hasEntryDistributionValidationErrors'] != nil
|
1139
|
+
self.has_entry_distribution_validation_errors = xml_element.elements['hasEntryDistributionValidationErrors'].text
|
1140
|
+
end
|
1141
|
+
if xml_element.elements['entryDistributionValidationErrors'] != nil
|
1142
|
+
self.entry_distribution_validation_errors = xml_element.elements['entryDistributionValidationErrors'].text
|
1143
|
+
end
|
915
1144
|
end
|
916
1145
|
|
917
1146
|
end
|
@@ -922,21 +1151,16 @@ module Kaltura
|
|
922
1151
|
attr_accessor :entry_distribution_id
|
923
1152
|
attr_accessor :entry_distribution
|
924
1153
|
# Id of the media in the remote system
|
925
|
-
#
|
926
1154
|
attr_accessor :remote_id
|
927
1155
|
attr_accessor :provider_type
|
928
1156
|
# Additional data that relevant for the provider only
|
929
|
-
#
|
930
1157
|
attr_accessor :provider_data
|
931
1158
|
# The results as returned from the remote destination
|
932
|
-
#
|
933
1159
|
attr_accessor :results
|
934
1160
|
# The data as sent to the remote destination
|
935
|
-
#
|
936
1161
|
attr_accessor :sent_data
|
937
1162
|
# Stores array of media files that submitted to the destination site
|
938
|
-
# Could be used later for media update
|
939
|
-
#
|
1163
|
+
# Could be used later for media update
|
940
1164
|
attr_accessor :media_files
|
941
1165
|
|
942
1166
|
def distribution_profile_id=(val)
|
@@ -948,16 +1172,36 @@ module Kaltura
|
|
948
1172
|
|
949
1173
|
def from_xml(xml_element)
|
950
1174
|
super
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
1175
|
+
if xml_element.elements['distributionProfileId'] != nil
|
1176
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
1177
|
+
end
|
1178
|
+
if xml_element.elements['distributionProfile'] != nil
|
1179
|
+
self.distribution_profile = KalturaClientBase.object_from_xml(xml_element.elements['distributionProfile'], 'KalturaDistributionProfile')
|
1180
|
+
end
|
1181
|
+
if xml_element.elements['entryDistributionId'] != nil
|
1182
|
+
self.entry_distribution_id = xml_element.elements['entryDistributionId'].text
|
1183
|
+
end
|
1184
|
+
if xml_element.elements['entryDistribution'] != nil
|
1185
|
+
self.entry_distribution = KalturaClientBase.object_from_xml(xml_element.elements['entryDistribution'], 'KalturaEntryDistribution')
|
1186
|
+
end
|
1187
|
+
if xml_element.elements['remoteId'] != nil
|
1188
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
1189
|
+
end
|
1190
|
+
if xml_element.elements['providerType'] != nil
|
1191
|
+
self.provider_type = xml_element.elements['providerType'].text
|
1192
|
+
end
|
1193
|
+
if xml_element.elements['providerData'] != nil
|
1194
|
+
self.provider_data = KalturaClientBase.object_from_xml(xml_element.elements['providerData'], 'KalturaDistributionJobProviderData')
|
1195
|
+
end
|
1196
|
+
if xml_element.elements['results'] != nil
|
1197
|
+
self.results = xml_element.elements['results'].text
|
1198
|
+
end
|
1199
|
+
if xml_element.elements['sentData'] != nil
|
1200
|
+
self.sent_data = xml_element.elements['sentData'].text
|
1201
|
+
end
|
1202
|
+
if xml_element.elements['mediaFiles'] != nil
|
1203
|
+
self.media_files = KalturaClientBase.object_from_xml(xml_element.elements['mediaFiles'], 'KalturaDistributionRemoteMediaFile')
|
1204
|
+
end
|
961
1205
|
end
|
962
1206
|
|
963
1207
|
end
|
@@ -993,14 +1237,30 @@ module Kaltura
|
|
993
1237
|
|
994
1238
|
def from_xml(xml_element)
|
995
1239
|
super
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1240
|
+
if xml_element.elements['idEqual'] != nil
|
1241
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1242
|
+
end
|
1243
|
+
if xml_element.elements['idIn'] != nil
|
1244
|
+
self.id_in = xml_element.elements['idIn'].text
|
1245
|
+
end
|
1246
|
+
if xml_element.elements['createdAtGreaterThanOrEqual'] != nil
|
1247
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1248
|
+
end
|
1249
|
+
if xml_element.elements['createdAtLessThanOrEqual'] != nil
|
1250
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1251
|
+
end
|
1252
|
+
if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil
|
1253
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1254
|
+
end
|
1255
|
+
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
1256
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1257
|
+
end
|
1258
|
+
if xml_element.elements['statusEqual'] != nil
|
1259
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1260
|
+
end
|
1261
|
+
if xml_element.elements['statusIn'] != nil
|
1262
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1263
|
+
end
|
1004
1264
|
end
|
1005
1265
|
|
1006
1266
|
end
|
@@ -1011,7 +1271,9 @@ module Kaltura
|
|
1011
1271
|
|
1012
1272
|
def from_xml(xml_element)
|
1013
1273
|
super
|
1014
|
-
|
1274
|
+
if xml_element.elements['objects'] != nil
|
1275
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaDistributionProfile')
|
1276
|
+
end
|
1015
1277
|
end
|
1016
1278
|
|
1017
1279
|
end
|
@@ -1023,8 +1285,12 @@ module Kaltura
|
|
1023
1285
|
|
1024
1286
|
def from_xml(xml_element)
|
1025
1287
|
super
|
1026
|
-
|
1027
|
-
|
1288
|
+
if xml_element.elements['typeEqual'] != nil
|
1289
|
+
self.type_equal = xml_element.elements['typeEqual'].text
|
1290
|
+
end
|
1291
|
+
if xml_element.elements['typeIn'] != nil
|
1292
|
+
self.type_in = xml_element.elements['typeIn'].text
|
1293
|
+
end
|
1028
1294
|
end
|
1029
1295
|
|
1030
1296
|
end
|
@@ -1035,7 +1301,9 @@ module Kaltura
|
|
1035
1301
|
|
1036
1302
|
def from_xml(xml_element)
|
1037
1303
|
super
|
1038
|
-
|
1304
|
+
if xml_element.elements['objects'] != nil
|
1305
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaDistributionProvider')
|
1306
|
+
end
|
1039
1307
|
end
|
1040
1308
|
|
1041
1309
|
end
|
@@ -1046,7 +1314,9 @@ module Kaltura
|
|
1046
1314
|
|
1047
1315
|
def from_xml(xml_element)
|
1048
1316
|
super
|
1049
|
-
|
1317
|
+
if xml_element.elements['conditionName'] != nil
|
1318
|
+
self.condition_name = xml_element.elements['conditionName'].text
|
1319
|
+
end
|
1050
1320
|
end
|
1051
1321
|
|
1052
1322
|
end
|
@@ -1056,7 +1326,6 @@ module Kaltura
|
|
1056
1326
|
attr_accessor :validation_error_type
|
1057
1327
|
# Parameter of the validation error
|
1058
1328
|
# For example, minimum value for KalturaDistributionValidationErrorType::STRING_TOO_SHORT validation error
|
1059
|
-
#
|
1060
1329
|
attr_accessor :validation_error_param
|
1061
1330
|
|
1062
1331
|
def validation_error_type=(val)
|
@@ -1065,9 +1334,15 @@ module Kaltura
|
|
1065
1334
|
|
1066
1335
|
def from_xml(xml_element)
|
1067
1336
|
super
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1337
|
+
if xml_element.elements['fieldName'] != nil
|
1338
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1339
|
+
end
|
1340
|
+
if xml_element.elements['validationErrorType'] != nil
|
1341
|
+
self.validation_error_type = xml_element.elements['validationErrorType'].text
|
1342
|
+
end
|
1343
|
+
if xml_element.elements['validationErrorParam'] != nil
|
1344
|
+
self.validation_error_param = xml_element.elements['validationErrorParam'].text
|
1345
|
+
end
|
1071
1346
|
end
|
1072
1347
|
|
1073
1348
|
end
|
@@ -1078,7 +1353,9 @@ module Kaltura
|
|
1078
1353
|
|
1079
1354
|
def from_xml(xml_element)
|
1080
1355
|
super
|
1081
|
-
|
1356
|
+
if xml_element.elements['data'] != nil
|
1357
|
+
self.data = xml_element.elements['data'].text
|
1358
|
+
end
|
1082
1359
|
end
|
1083
1360
|
|
1084
1361
|
end
|
@@ -1089,7 +1366,9 @@ module Kaltura
|
|
1089
1366
|
|
1090
1367
|
def from_xml(xml_element)
|
1091
1368
|
super
|
1092
|
-
|
1369
|
+
if xml_element.elements['flavorParamsId'] != nil
|
1370
|
+
self.flavor_params_id = xml_element.elements['flavorParamsId'].text
|
1371
|
+
end
|
1093
1372
|
end
|
1094
1373
|
|
1095
1374
|
end
|
@@ -1100,7 +1379,9 @@ module Kaltura
|
|
1100
1379
|
|
1101
1380
|
def from_xml(xml_element)
|
1102
1381
|
super
|
1103
|
-
|
1382
|
+
if xml_element.elements['fieldName'] != nil
|
1383
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1384
|
+
end
|
1104
1385
|
end
|
1105
1386
|
|
1106
1387
|
end
|
@@ -1111,7 +1392,9 @@ module Kaltura
|
|
1111
1392
|
|
1112
1393
|
def from_xml(xml_element)
|
1113
1394
|
super
|
1114
|
-
|
1395
|
+
if xml_element.elements['dimensions'] != nil
|
1396
|
+
self.dimensions = KalturaClientBase.object_from_xml(xml_element.elements['dimensions'], 'KalturaDistributionThumbDimensions')
|
1397
|
+
end
|
1115
1398
|
end
|
1116
1399
|
|
1117
1400
|
end
|
@@ -1122,7 +1405,9 @@ module Kaltura
|
|
1122
1405
|
|
1123
1406
|
def from_xml(xml_element)
|
1124
1407
|
super
|
1125
|
-
|
1408
|
+
if xml_element.elements['objects'] != nil
|
1409
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaEntryDistribution')
|
1410
|
+
end
|
1126
1411
|
end
|
1127
1412
|
|
1128
1413
|
end
|
@@ -1138,9 +1423,15 @@ module Kaltura
|
|
1138
1423
|
|
1139
1424
|
def from_xml(xml_element)
|
1140
1425
|
super
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1426
|
+
if xml_element.elements['xml'] != nil
|
1427
|
+
self.xml = xml_element.elements['xml'].text
|
1428
|
+
end
|
1429
|
+
if xml_element.elements['resultParseData'] != nil
|
1430
|
+
self.result_parse_data = xml_element.elements['resultParseData'].text
|
1431
|
+
end
|
1432
|
+
if xml_element.elements['resultParserType'] != nil
|
1433
|
+
self.result_parser_type = xml_element.elements['resultParserType'].text
|
1434
|
+
end
|
1144
1435
|
end
|
1145
1436
|
|
1146
1437
|
end
|
@@ -1160,13 +1451,27 @@ module Kaltura
|
|
1160
1451
|
|
1161
1452
|
def from_xml(xml_element)
|
1162
1453
|
super
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1454
|
+
if xml_element.elements['genericProviderId'] != nil
|
1455
|
+
self.generic_provider_id = xml_element.elements['genericProviderId'].text
|
1456
|
+
end
|
1457
|
+
if xml_element.elements['submitAction'] != nil
|
1458
|
+
self.submit_action = KalturaClientBase.object_from_xml(xml_element.elements['submitAction'], 'KalturaGenericDistributionProfileAction')
|
1459
|
+
end
|
1460
|
+
if xml_element.elements['updateAction'] != nil
|
1461
|
+
self.update_action = KalturaClientBase.object_from_xml(xml_element.elements['updateAction'], 'KalturaGenericDistributionProfileAction')
|
1462
|
+
end
|
1463
|
+
if xml_element.elements['deleteAction'] != nil
|
1464
|
+
self.delete_action = KalturaClientBase.object_from_xml(xml_element.elements['deleteAction'], 'KalturaGenericDistributionProfileAction')
|
1465
|
+
end
|
1466
|
+
if xml_element.elements['fetchReportAction'] != nil
|
1467
|
+
self.fetch_report_action = KalturaClientBase.object_from_xml(xml_element.elements['fetchReportAction'], 'KalturaGenericDistributionProfileAction')
|
1468
|
+
end
|
1469
|
+
if xml_element.elements['updateRequiredEntryFields'] != nil
|
1470
|
+
self.update_required_entry_fields = xml_element.elements['updateRequiredEntryFields'].text
|
1471
|
+
end
|
1472
|
+
if xml_element.elements['updateRequiredMetadataXPaths'] != nil
|
1473
|
+
self.update_required_metadata_xpaths = xml_element.elements['updateRequiredMetadataXPaths'].text
|
1474
|
+
end
|
1170
1475
|
end
|
1171
1476
|
|
1172
1477
|
end
|
@@ -1207,16 +1512,36 @@ module Kaltura
|
|
1207
1512
|
|
1208
1513
|
def from_xml(xml_element)
|
1209
1514
|
super
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1515
|
+
if xml_element.elements['idEqual'] != nil
|
1516
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1517
|
+
end
|
1518
|
+
if xml_element.elements['idIn'] != nil
|
1519
|
+
self.id_in = xml_element.elements['idIn'].text
|
1520
|
+
end
|
1521
|
+
if xml_element.elements['createdAtGreaterThanOrEqual'] != nil
|
1522
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1523
|
+
end
|
1524
|
+
if xml_element.elements['createdAtLessThanOrEqual'] != nil
|
1525
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1526
|
+
end
|
1527
|
+
if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil
|
1528
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1529
|
+
end
|
1530
|
+
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
1531
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1532
|
+
end
|
1533
|
+
if xml_element.elements['genericDistributionProviderIdEqual'] != nil
|
1534
|
+
self.generic_distribution_provider_id_equal = xml_element.elements['genericDistributionProviderIdEqual'].text
|
1535
|
+
end
|
1536
|
+
if xml_element.elements['genericDistributionProviderIdIn'] != nil
|
1537
|
+
self.generic_distribution_provider_id_in = xml_element.elements['genericDistributionProviderIdIn'].text
|
1538
|
+
end
|
1539
|
+
if xml_element.elements['actionEqual'] != nil
|
1540
|
+
self.action_equal = xml_element.elements['actionEqual'].text
|
1541
|
+
end
|
1542
|
+
if xml_element.elements['actionIn'] != nil
|
1543
|
+
self.action_in = xml_element.elements['actionIn'].text
|
1544
|
+
end
|
1220
1545
|
end
|
1221
1546
|
|
1222
1547
|
end
|
@@ -1227,7 +1552,9 @@ module Kaltura
|
|
1227
1552
|
|
1228
1553
|
def from_xml(xml_element)
|
1229
1554
|
super
|
1230
|
-
|
1555
|
+
if xml_element.elements['objects'] != nil
|
1556
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaGenericDistributionProviderAction')
|
1557
|
+
end
|
1231
1558
|
end
|
1232
1559
|
|
1233
1560
|
end
|
@@ -1238,7 +1565,9 @@ module Kaltura
|
|
1238
1565
|
|
1239
1566
|
def from_xml(xml_element)
|
1240
1567
|
super
|
1241
|
-
|
1568
|
+
if xml_element.elements['objects'] != nil
|
1569
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaGenericDistributionProvider')
|
1570
|
+
end
|
1242
1571
|
end
|
1243
1572
|
|
1244
1573
|
end
|
@@ -1250,8 +1579,12 @@ module Kaltura
|
|
1250
1579
|
|
1251
1580
|
def from_xml(xml_element)
|
1252
1581
|
super
|
1253
|
-
|
1254
|
-
|
1582
|
+
if xml_element.elements['xsl'] != nil
|
1583
|
+
self.xsl = xml_element.elements['xsl'].text
|
1584
|
+
end
|
1585
|
+
if xml_element.elements['feedId'] != nil
|
1586
|
+
self.feed_id = xml_element.elements['feedId'].text
|
1587
|
+
end
|
1255
1588
|
end
|
1256
1589
|
|
1257
1590
|
end
|
@@ -1266,10 +1599,18 @@ module Kaltura
|
|
1266
1599
|
end
|
1267
1600
|
|
1268
1601
|
class KalturaDistributionDeleteJobData < KalturaDistributionJobData
|
1602
|
+
# Flag signifying that the associated distribution item should not be moved to 'removed' status
|
1603
|
+
attr_accessor :keep_distribution_item
|
1269
1604
|
|
1605
|
+
def keep_distribution_item=(val)
|
1606
|
+
@keep_distribution_item = to_b(val)
|
1607
|
+
end
|
1270
1608
|
|
1271
1609
|
def from_xml(xml_element)
|
1272
1610
|
super
|
1611
|
+
if xml_element.elements['keepDistributionItem'] != nil
|
1612
|
+
self.keep_distribution_item = xml_element.elements['keepDistributionItem'].text
|
1613
|
+
end
|
1273
1614
|
end
|
1274
1615
|
|
1275
1616
|
end
|
@@ -1287,8 +1628,12 @@ module Kaltura
|
|
1287
1628
|
|
1288
1629
|
def from_xml(xml_element)
|
1289
1630
|
super
|
1290
|
-
|
1291
|
-
|
1631
|
+
if xml_element.elements['plays'] != nil
|
1632
|
+
self.plays = xml_element.elements['plays'].text
|
1633
|
+
end
|
1634
|
+
if xml_element.elements['views'] != nil
|
1635
|
+
self.views = xml_element.elements['views'].text
|
1636
|
+
end
|
1292
1637
|
end
|
1293
1638
|
|
1294
1639
|
end
|
@@ -1338,7 +1683,9 @@ module Kaltura
|
|
1338
1683
|
|
1339
1684
|
def from_xml(xml_element)
|
1340
1685
|
super
|
1341
|
-
|
1686
|
+
if xml_element.elements['metadataProfileId'] != nil
|
1687
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
1688
|
+
end
|
1342
1689
|
end
|
1343
1690
|
|
1344
1691
|
end
|
@@ -1410,26 +1757,66 @@ module Kaltura
|
|
1410
1757
|
|
1411
1758
|
def from_xml(xml_element)
|
1412
1759
|
super
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1760
|
+
if xml_element.elements['idEqual'] != nil
|
1761
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1762
|
+
end
|
1763
|
+
if xml_element.elements['idIn'] != nil
|
1764
|
+
self.id_in = xml_element.elements['idIn'].text
|
1765
|
+
end
|
1766
|
+
if xml_element.elements['createdAtGreaterThanOrEqual'] != nil
|
1767
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1768
|
+
end
|
1769
|
+
if xml_element.elements['createdAtLessThanOrEqual'] != nil
|
1770
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1771
|
+
end
|
1772
|
+
if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil
|
1773
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1774
|
+
end
|
1775
|
+
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
1776
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1777
|
+
end
|
1778
|
+
if xml_element.elements['submittedAtGreaterThanOrEqual'] != nil
|
1779
|
+
self.submitted_at_greater_than_or_equal = xml_element.elements['submittedAtGreaterThanOrEqual'].text
|
1780
|
+
end
|
1781
|
+
if xml_element.elements['submittedAtLessThanOrEqual'] != nil
|
1782
|
+
self.submitted_at_less_than_or_equal = xml_element.elements['submittedAtLessThanOrEqual'].text
|
1783
|
+
end
|
1784
|
+
if xml_element.elements['entryIdEqual'] != nil
|
1785
|
+
self.entry_id_equal = xml_element.elements['entryIdEqual'].text
|
1786
|
+
end
|
1787
|
+
if xml_element.elements['entryIdIn'] != nil
|
1788
|
+
self.entry_id_in = xml_element.elements['entryIdIn'].text
|
1789
|
+
end
|
1790
|
+
if xml_element.elements['distributionProfileIdEqual'] != nil
|
1791
|
+
self.distribution_profile_id_equal = xml_element.elements['distributionProfileIdEqual'].text
|
1792
|
+
end
|
1793
|
+
if xml_element.elements['distributionProfileIdIn'] != nil
|
1794
|
+
self.distribution_profile_id_in = xml_element.elements['distributionProfileIdIn'].text
|
1795
|
+
end
|
1796
|
+
if xml_element.elements['statusEqual'] != nil
|
1797
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1798
|
+
end
|
1799
|
+
if xml_element.elements['statusIn'] != nil
|
1800
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1801
|
+
end
|
1802
|
+
if xml_element.elements['dirtyStatusEqual'] != nil
|
1803
|
+
self.dirty_status_equal = xml_element.elements['dirtyStatusEqual'].text
|
1804
|
+
end
|
1805
|
+
if xml_element.elements['dirtyStatusIn'] != nil
|
1806
|
+
self.dirty_status_in = xml_element.elements['dirtyStatusIn'].text
|
1807
|
+
end
|
1808
|
+
if xml_element.elements['sunriseGreaterThanOrEqual'] != nil
|
1809
|
+
self.sunrise_greater_than_or_equal = xml_element.elements['sunriseGreaterThanOrEqual'].text
|
1810
|
+
end
|
1811
|
+
if xml_element.elements['sunriseLessThanOrEqual'] != nil
|
1812
|
+
self.sunrise_less_than_or_equal = xml_element.elements['sunriseLessThanOrEqual'].text
|
1813
|
+
end
|
1814
|
+
if xml_element.elements['sunsetGreaterThanOrEqual'] != nil
|
1815
|
+
self.sunset_greater_than_or_equal = xml_element.elements['sunsetGreaterThanOrEqual'].text
|
1816
|
+
end
|
1817
|
+
if xml_element.elements['sunsetLessThanOrEqual'] != nil
|
1818
|
+
self.sunset_less_than_or_equal = xml_element.elements['sunsetLessThanOrEqual'].text
|
1819
|
+
end
|
1433
1820
|
end
|
1434
1821
|
|
1435
1822
|
end
|
@@ -1529,18 +1916,42 @@ module Kaltura
|
|
1529
1916
|
|
1530
1917
|
def from_xml(xml_element)
|
1531
1918
|
super
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1919
|
+
if xml_element.elements['idEqual'] != nil
|
1920
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1921
|
+
end
|
1922
|
+
if xml_element.elements['idIn'] != nil
|
1923
|
+
self.id_in = xml_element.elements['idIn'].text
|
1924
|
+
end
|
1925
|
+
if xml_element.elements['createdAtGreaterThanOrEqual'] != nil
|
1926
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1927
|
+
end
|
1928
|
+
if xml_element.elements['createdAtLessThanOrEqual'] != nil
|
1929
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1930
|
+
end
|
1931
|
+
if xml_element.elements['updatedAtGreaterThanOrEqual'] != nil
|
1932
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1933
|
+
end
|
1934
|
+
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
1935
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1936
|
+
end
|
1937
|
+
if xml_element.elements['partnerIdEqual'] != nil
|
1938
|
+
self.partner_id_equal = xml_element.elements['partnerIdEqual'].text
|
1939
|
+
end
|
1940
|
+
if xml_element.elements['partnerIdIn'] != nil
|
1941
|
+
self.partner_id_in = xml_element.elements['partnerIdIn'].text
|
1942
|
+
end
|
1943
|
+
if xml_element.elements['isDefaultEqual'] != nil
|
1944
|
+
self.is_default_equal = xml_element.elements['isDefaultEqual'].text
|
1945
|
+
end
|
1946
|
+
if xml_element.elements['isDefaultIn'] != nil
|
1947
|
+
self.is_default_in = xml_element.elements['isDefaultIn'].text
|
1948
|
+
end
|
1949
|
+
if xml_element.elements['statusEqual'] != nil
|
1950
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1951
|
+
end
|
1952
|
+
if xml_element.elements['statusIn'] != nil
|
1953
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1954
|
+
end
|
1544
1955
|
end
|
1545
1956
|
|
1546
1957
|
end
|
@@ -1601,14 +2012,13 @@ module Kaltura
|
|
1601
2012
|
|
1602
2013
|
|
1603
2014
|
# Distribution Profile service
|
1604
|
-
#
|
1605
2015
|
class KalturaDistributionProfileService < KalturaServiceBase
|
1606
2016
|
def initialize(client)
|
1607
2017
|
super(client)
|
1608
2018
|
end
|
1609
2019
|
|
1610
2020
|
# Add new Distribution Profile
|
1611
|
-
#
|
2021
|
+
# @return [KalturaDistributionProfile]
|
1612
2022
|
def add(distribution_profile)
|
1613
2023
|
kparams = {}
|
1614
2024
|
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
@@ -1619,74 +2029,75 @@ module Kaltura
|
|
1619
2029
|
return client.do_queue()
|
1620
2030
|
end
|
1621
2031
|
|
1622
|
-
#
|
1623
|
-
#
|
1624
|
-
def
|
2032
|
+
# Delete Distribution Profile by id
|
2033
|
+
# @return []
|
2034
|
+
def delete(id)
|
1625
2035
|
kparams = {}
|
1626
2036
|
client.add_param(kparams, 'id', id)
|
1627
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', '
|
2037
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'delete', '', kparams)
|
1628
2038
|
if (client.is_multirequest)
|
1629
2039
|
return nil
|
1630
2040
|
end
|
1631
2041
|
return client.do_queue()
|
1632
2042
|
end
|
1633
2043
|
|
1634
|
-
#
|
1635
|
-
#
|
1636
|
-
def
|
2044
|
+
# Get Distribution Profile by id
|
2045
|
+
# @return [KalturaDistributionProfile]
|
2046
|
+
def get(id)
|
1637
2047
|
kparams = {}
|
1638
2048
|
client.add_param(kparams, 'id', id)
|
1639
|
-
client.
|
1640
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'update', 'KalturaDistributionProfile', kparams)
|
2049
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'get', 'KalturaDistributionProfile', kparams)
|
1641
2050
|
if (client.is_multirequest)
|
1642
2051
|
return nil
|
1643
2052
|
end
|
1644
2053
|
return client.do_queue()
|
1645
2054
|
end
|
1646
2055
|
|
1647
|
-
#
|
1648
|
-
#
|
1649
|
-
def
|
2056
|
+
# List all distribution providers
|
2057
|
+
# @return [KalturaDistributionProfileListResponse]
|
2058
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1650
2059
|
kparams = {}
|
1651
|
-
client.add_param(kparams, '
|
1652
|
-
client.add_param(kparams, '
|
1653
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', '
|
2060
|
+
client.add_param(kparams, 'filter', filter)
|
2061
|
+
client.add_param(kparams, 'pager', pager)
|
2062
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'list', 'KalturaDistributionProfileListResponse', kparams)
|
1654
2063
|
if (client.is_multirequest)
|
1655
2064
|
return nil
|
1656
2065
|
end
|
1657
2066
|
return client.do_queue()
|
1658
2067
|
end
|
1659
2068
|
|
1660
|
-
#
|
1661
|
-
|
1662
|
-
def delete(id)
|
2069
|
+
# @return [KalturaDistributionProfileListResponse]
|
2070
|
+
def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1663
2071
|
kparams = {}
|
1664
|
-
client.add_param(kparams, '
|
1665
|
-
client.
|
2072
|
+
client.add_param(kparams, 'filter', filter)
|
2073
|
+
client.add_param(kparams, 'pager', pager)
|
2074
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'listByPartner', 'KalturaDistributionProfileListResponse', kparams)
|
1666
2075
|
if (client.is_multirequest)
|
1667
2076
|
return nil
|
1668
2077
|
end
|
1669
2078
|
return client.do_queue()
|
1670
2079
|
end
|
1671
2080
|
|
1672
|
-
#
|
1673
|
-
#
|
1674
|
-
def
|
2081
|
+
# Update Distribution Profile by id
|
2082
|
+
# @return [KalturaDistributionProfile]
|
2083
|
+
def update(id, distribution_profile)
|
1675
2084
|
kparams = {}
|
1676
|
-
client.add_param(kparams, '
|
1677
|
-
client.add_param(kparams, '
|
1678
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', '
|
2085
|
+
client.add_param(kparams, 'id', id)
|
2086
|
+
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
2087
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'update', 'KalturaDistributionProfile', kparams)
|
1679
2088
|
if (client.is_multirequest)
|
1680
2089
|
return nil
|
1681
2090
|
end
|
1682
2091
|
return client.do_queue()
|
1683
2092
|
end
|
1684
2093
|
|
1685
|
-
|
2094
|
+
# Update Distribution Profile status by id
|
2095
|
+
# @return [KalturaDistributionProfile]
|
2096
|
+
def update_status(id, status)
|
1686
2097
|
kparams = {}
|
1687
|
-
client.add_param(kparams, '
|
1688
|
-
client.add_param(kparams, '
|
1689
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', '
|
2098
|
+
client.add_param(kparams, 'id', id)
|
2099
|
+
client.add_param(kparams, 'status', status)
|
2100
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'updateStatus', 'KalturaDistributionProfile', kparams)
|
1690
2101
|
if (client.is_multirequest)
|
1691
2102
|
return nil
|
1692
2103
|
end
|
@@ -1695,14 +2106,13 @@ module Kaltura
|
|
1695
2106
|
end
|
1696
2107
|
|
1697
2108
|
# Entry Distribution service
|
1698
|
-
#
|
1699
2109
|
class KalturaEntryDistributionService < KalturaServiceBase
|
1700
2110
|
def initialize(client)
|
1701
2111
|
super(client)
|
1702
2112
|
end
|
1703
2113
|
|
1704
2114
|
# Add new Entry Distribution
|
1705
|
-
#
|
2115
|
+
# @return [KalturaEntryDistribution]
|
1706
2116
|
def add(entry_distribution)
|
1707
2117
|
kparams = {}
|
1708
2118
|
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
@@ -1713,70 +2123,77 @@ module Kaltura
|
|
1713
2123
|
return client.do_queue()
|
1714
2124
|
end
|
1715
2125
|
|
1716
|
-
#
|
1717
|
-
#
|
1718
|
-
def
|
2126
|
+
# Delete Entry Distribution by id
|
2127
|
+
# @return []
|
2128
|
+
def delete(id)
|
1719
2129
|
kparams = {}
|
1720
2130
|
client.add_param(kparams, 'id', id)
|
1721
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2131
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'delete', '', kparams)
|
1722
2132
|
if (client.is_multirequest)
|
1723
2133
|
return nil
|
1724
2134
|
end
|
1725
2135
|
return client.do_queue()
|
1726
2136
|
end
|
1727
2137
|
|
1728
|
-
#
|
1729
|
-
#
|
1730
|
-
def
|
2138
|
+
# Get Entry Distribution by id
|
2139
|
+
# @return [KalturaEntryDistribution]
|
2140
|
+
def get(id)
|
1731
2141
|
kparams = {}
|
1732
2142
|
client.add_param(kparams, 'id', id)
|
1733
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2143
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'get', 'KalturaEntryDistribution', kparams)
|
1734
2144
|
if (client.is_multirequest)
|
1735
2145
|
return nil
|
1736
2146
|
end
|
1737
2147
|
return client.do_queue()
|
1738
2148
|
end
|
1739
2149
|
|
1740
|
-
#
|
1741
|
-
#
|
1742
|
-
def
|
2150
|
+
# List all distribution providers
|
2151
|
+
# @return [KalturaEntryDistributionListResponse]
|
2152
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1743
2153
|
kparams = {}
|
1744
|
-
client.add_param(kparams, '
|
1745
|
-
client.add_param(kparams, '
|
1746
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2154
|
+
client.add_param(kparams, 'filter', filter)
|
2155
|
+
client.add_param(kparams, 'pager', pager)
|
2156
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'list', 'KalturaEntryDistributionListResponse', kparams)
|
1747
2157
|
if (client.is_multirequest)
|
1748
2158
|
return nil
|
1749
2159
|
end
|
1750
2160
|
return client.do_queue()
|
1751
2161
|
end
|
1752
2162
|
|
1753
|
-
#
|
1754
|
-
#
|
1755
|
-
def
|
2163
|
+
# Retries last submit action
|
2164
|
+
# @return [KalturaEntryDistribution]
|
2165
|
+
def retry_submit(id)
|
1756
2166
|
kparams = {}
|
1757
2167
|
client.add_param(kparams, 'id', id)
|
1758
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2168
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', 'KalturaEntryDistribution', kparams)
|
1759
2169
|
if (client.is_multirequest)
|
1760
2170
|
return nil
|
1761
2171
|
end
|
1762
2172
|
return client.do_queue()
|
1763
2173
|
end
|
1764
2174
|
|
1765
|
-
#
|
1766
|
-
#
|
1767
|
-
def
|
2175
|
+
# Serves entry distribution returned data
|
2176
|
+
# @return [file]
|
2177
|
+
def serve_returned_data(id, action_type)
|
1768
2178
|
kparams = {}
|
1769
|
-
client.add_param(kparams, '
|
1770
|
-
client.add_param(kparams, '
|
1771
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
2179
|
+
client.add_param(kparams, 'id', id)
|
2180
|
+
client.add_param(kparams, 'actionType', action_type)
|
2181
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveReturnedData', 'file', kparams)
|
2182
|
+
return client.get_serve_url()
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
# Serves entry distribution sent data
|
2186
|
+
# @return [file]
|
2187
|
+
def serve_sent_data(id, action_type)
|
2188
|
+
kparams = {}
|
2189
|
+
client.add_param(kparams, 'id', id)
|
2190
|
+
client.add_param(kparams, 'actionType', action_type)
|
2191
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveSentData', 'file', kparams)
|
2192
|
+
return client.get_serve_url()
|
1776
2193
|
end
|
1777
2194
|
|
1778
2195
|
# Submits Entry Distribution to the remote destination
|
1779
|
-
#
|
2196
|
+
# @return [KalturaEntryDistribution]
|
1780
2197
|
def submit_add(id, submit_when_ready=false)
|
1781
2198
|
kparams = {}
|
1782
2199
|
client.add_param(kparams, 'id', id)
|
@@ -1788,12 +2205,12 @@ module Kaltura
|
|
1788
2205
|
return client.do_queue()
|
1789
2206
|
end
|
1790
2207
|
|
1791
|
-
#
|
1792
|
-
#
|
1793
|
-
def
|
2208
|
+
# Deletes Entry Distribution from the remote destination
|
2209
|
+
# @return [KalturaEntryDistribution]
|
2210
|
+
def submit_delete(id)
|
1794
2211
|
kparams = {}
|
1795
2212
|
client.add_param(kparams, 'id', id)
|
1796
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2213
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', 'KalturaEntryDistribution', kparams)
|
1797
2214
|
if (client.is_multirequest)
|
1798
2215
|
return nil
|
1799
2216
|
end
|
@@ -1801,7 +2218,7 @@ module Kaltura
|
|
1801
2218
|
end
|
1802
2219
|
|
1803
2220
|
# Submits Entry Distribution report request
|
1804
|
-
#
|
2221
|
+
# @return [KalturaEntryDistribution]
|
1805
2222
|
def submit_fetch_report(id)
|
1806
2223
|
kparams = {}
|
1807
2224
|
client.add_param(kparams, 'id', id)
|
@@ -1812,60 +2229,52 @@ module Kaltura
|
|
1812
2229
|
return client.do_queue()
|
1813
2230
|
end
|
1814
2231
|
|
1815
|
-
#
|
1816
|
-
#
|
1817
|
-
def
|
2232
|
+
# Submits Entry Distribution changes to the remote destination
|
2233
|
+
# @return [KalturaEntryDistribution]
|
2234
|
+
def submit_update(id)
|
1818
2235
|
kparams = {}
|
1819
2236
|
client.add_param(kparams, 'id', id)
|
1820
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', '
|
2237
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', 'KalturaEntryDistribution', kparams)
|
1821
2238
|
if (client.is_multirequest)
|
1822
2239
|
return nil
|
1823
2240
|
end
|
1824
2241
|
return client.do_queue()
|
1825
2242
|
end
|
1826
2243
|
|
1827
|
-
#
|
1828
|
-
#
|
1829
|
-
def
|
2244
|
+
# Update Entry Distribution by id
|
2245
|
+
# @return [KalturaEntryDistribution]
|
2246
|
+
def update(id, entry_distribution)
|
1830
2247
|
kparams = {}
|
1831
2248
|
client.add_param(kparams, 'id', id)
|
1832
|
-
client.
|
2249
|
+
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
2250
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'update', 'KalturaEntryDistribution', kparams)
|
1833
2251
|
if (client.is_multirequest)
|
1834
2252
|
return nil
|
1835
2253
|
end
|
1836
2254
|
return client.do_queue()
|
1837
2255
|
end
|
1838
2256
|
|
1839
|
-
#
|
1840
|
-
#
|
1841
|
-
def
|
1842
|
-
kparams = {}
|
1843
|
-
client.add_param(kparams, 'id', id)
|
1844
|
-
client.add_param(kparams, 'actionType', action_type)
|
1845
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveSentData', 'file', kparams)
|
1846
|
-
return client.get_serve_url()
|
1847
|
-
end
|
1848
|
-
|
1849
|
-
# Serves entry distribution returned data
|
1850
|
-
#
|
1851
|
-
def serve_returned_data(id, action_type)
|
2257
|
+
# Validates Entry Distribution by id for submission
|
2258
|
+
# @return [KalturaEntryDistribution]
|
2259
|
+
def validate(id)
|
1852
2260
|
kparams = {}
|
1853
2261
|
client.add_param(kparams, 'id', id)
|
1854
|
-
client.
|
1855
|
-
client.
|
1856
|
-
|
2262
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', 'KalturaEntryDistribution', kparams)
|
2263
|
+
if (client.is_multirequest)
|
2264
|
+
return nil
|
2265
|
+
end
|
2266
|
+
return client.do_queue()
|
1857
2267
|
end
|
1858
2268
|
end
|
1859
2269
|
|
1860
2270
|
# Distribution Provider service
|
1861
|
-
#
|
1862
2271
|
class KalturaDistributionProviderService < KalturaServiceBase
|
1863
2272
|
def initialize(client)
|
1864
2273
|
super(client)
|
1865
2274
|
end
|
1866
2275
|
|
1867
2276
|
# List all distribution providers
|
1868
|
-
#
|
2277
|
+
# @return [KalturaDistributionProviderListResponse]
|
1869
2278
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1870
2279
|
kparams = {}
|
1871
2280
|
client.add_param(kparams, 'filter', filter)
|
@@ -1879,14 +2288,13 @@ module Kaltura
|
|
1879
2288
|
end
|
1880
2289
|
|
1881
2290
|
# Generic Distribution Provider service
|
1882
|
-
#
|
1883
2291
|
class KalturaGenericDistributionProviderService < KalturaServiceBase
|
1884
2292
|
def initialize(client)
|
1885
2293
|
super(client)
|
1886
2294
|
end
|
1887
2295
|
|
1888
2296
|
# Add new Generic Distribution Provider
|
1889
|
-
#
|
2297
|
+
# @return [KalturaGenericDistributionProvider]
|
1890
2298
|
def add(generic_distribution_provider)
|
1891
2299
|
kparams = {}
|
1892
2300
|
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
@@ -1897,50 +2305,50 @@ module Kaltura
|
|
1897
2305
|
return client.do_queue()
|
1898
2306
|
end
|
1899
2307
|
|
1900
|
-
#
|
1901
|
-
#
|
1902
|
-
def
|
2308
|
+
# Delete Generic Distribution Provider by id
|
2309
|
+
# @return []
|
2310
|
+
def delete(id)
|
1903
2311
|
kparams = {}
|
1904
2312
|
client.add_param(kparams, 'id', id)
|
1905
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', '
|
2313
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'delete', '', kparams)
|
1906
2314
|
if (client.is_multirequest)
|
1907
2315
|
return nil
|
1908
2316
|
end
|
1909
2317
|
return client.do_queue()
|
1910
2318
|
end
|
1911
2319
|
|
1912
|
-
#
|
1913
|
-
#
|
1914
|
-
def
|
2320
|
+
# Get Generic Distribution Provider by id
|
2321
|
+
# @return [KalturaGenericDistributionProvider]
|
2322
|
+
def get(id)
|
1915
2323
|
kparams = {}
|
1916
2324
|
client.add_param(kparams, 'id', id)
|
1917
|
-
client.
|
1918
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', 'KalturaGenericDistributionProvider', kparams)
|
2325
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', 'KalturaGenericDistributionProvider', kparams)
|
1919
2326
|
if (client.is_multirequest)
|
1920
2327
|
return nil
|
1921
2328
|
end
|
1922
2329
|
return client.do_queue()
|
1923
2330
|
end
|
1924
2331
|
|
1925
|
-
#
|
1926
|
-
#
|
1927
|
-
def
|
2332
|
+
# List all distribution providers
|
2333
|
+
# @return [KalturaGenericDistributionProviderListResponse]
|
2334
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1928
2335
|
kparams = {}
|
1929
|
-
client.add_param(kparams, '
|
1930
|
-
client.
|
2336
|
+
client.add_param(kparams, 'filter', filter)
|
2337
|
+
client.add_param(kparams, 'pager', pager)
|
2338
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'list', 'KalturaGenericDistributionProviderListResponse', kparams)
|
1931
2339
|
if (client.is_multirequest)
|
1932
2340
|
return nil
|
1933
2341
|
end
|
1934
2342
|
return client.do_queue()
|
1935
2343
|
end
|
1936
2344
|
|
1937
|
-
#
|
1938
|
-
#
|
1939
|
-
def
|
2345
|
+
# Update Generic Distribution Provider by id
|
2346
|
+
# @return [KalturaGenericDistributionProvider]
|
2347
|
+
def update(id, generic_distribution_provider)
|
1940
2348
|
kparams = {}
|
1941
|
-
client.add_param(kparams, '
|
1942
|
-
client.add_param(kparams, '
|
1943
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', '
|
2349
|
+
client.add_param(kparams, 'id', id)
|
2350
|
+
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
2351
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', 'KalturaGenericDistributionProvider', kparams)
|
1944
2352
|
if (client.is_multirequest)
|
1945
2353
|
return nil
|
1946
2354
|
end
|
@@ -1949,14 +2357,13 @@ module Kaltura
|
|
1949
2357
|
end
|
1950
2358
|
|
1951
2359
|
# Generic Distribution Provider Actions service
|
1952
|
-
#
|
1953
2360
|
class KalturaGenericDistributionProviderActionService < KalturaServiceBase
|
1954
2361
|
def initialize(client)
|
1955
2362
|
super(client)
|
1956
2363
|
end
|
1957
2364
|
|
1958
2365
|
# Add new Generic Distribution Provider Action
|
1959
|
-
#
|
2366
|
+
# @return [KalturaGenericDistributionProviderAction]
|
1960
2367
|
def add(generic_distribution_provider_action)
|
1961
2368
|
kparams = {}
|
1962
2369
|
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
@@ -1968,7 +2375,7 @@ module Kaltura
|
|
1968
2375
|
end
|
1969
2376
|
|
1970
2377
|
# Add MRSS transform file to generic distribution provider action
|
1971
|
-
#
|
2378
|
+
# @return [KalturaGenericDistributionProviderAction]
|
1972
2379
|
def add_mrss_transform(id, xsl_data)
|
1973
2380
|
kparams = {}
|
1974
2381
|
client.add_param(kparams, 'id', id)
|
@@ -1981,7 +2388,7 @@ module Kaltura
|
|
1981
2388
|
end
|
1982
2389
|
|
1983
2390
|
# Add MRSS transform file to generic distribution provider action
|
1984
|
-
#
|
2391
|
+
# @return [KalturaGenericDistributionProviderAction]
|
1985
2392
|
def add_mrss_transform_from_file(id, xsl_file)
|
1986
2393
|
kparams = {}
|
1987
2394
|
kfiles = {}
|
@@ -1995,7 +2402,7 @@ module Kaltura
|
|
1995
2402
|
end
|
1996
2403
|
|
1997
2404
|
# Add MRSS validate file to generic distribution provider action
|
1998
|
-
#
|
2405
|
+
# @return [KalturaGenericDistributionProviderAction]
|
1999
2406
|
def add_mrss_validate(id, xsd_data)
|
2000
2407
|
kparams = {}
|
2001
2408
|
client.add_param(kparams, 'id', id)
|
@@ -2008,7 +2415,7 @@ module Kaltura
|
|
2008
2415
|
end
|
2009
2416
|
|
2010
2417
|
# Add MRSS validate file to generic distribution provider action
|
2011
|
-
#
|
2418
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2012
2419
|
def add_mrss_validate_from_file(id, xsd_file)
|
2013
2420
|
kparams = {}
|
2014
2421
|
kfiles = {}
|
@@ -2022,7 +2429,7 @@ module Kaltura
|
|
2022
2429
|
end
|
2023
2430
|
|
2024
2431
|
# Add results transform file to generic distribution provider action
|
2025
|
-
#
|
2432
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2026
2433
|
def add_results_transform(id, transform_data)
|
2027
2434
|
kparams = {}
|
2028
2435
|
client.add_param(kparams, 'id', id)
|
@@ -2035,7 +2442,7 @@ module Kaltura
|
|
2035
2442
|
end
|
2036
2443
|
|
2037
2444
|
# Add MRSS transform file to generic distribution provider action
|
2038
|
-
#
|
2445
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2039
2446
|
def add_results_transform_from_file(id, transform_file)
|
2040
2447
|
kparams = {}
|
2041
2448
|
kfiles = {}
|
@@ -2048,90 +2455,90 @@ module Kaltura
|
|
2048
2455
|
return client.do_queue()
|
2049
2456
|
end
|
2050
2457
|
|
2051
|
-
#
|
2052
|
-
#
|
2053
|
-
def
|
2458
|
+
# Delete Generic Distribution Provider Action by id
|
2459
|
+
# @return []
|
2460
|
+
def delete(id)
|
2054
2461
|
kparams = {}
|
2055
2462
|
client.add_param(kparams, 'id', id)
|
2056
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', '
|
2463
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'delete', '', kparams)
|
2057
2464
|
if (client.is_multirequest)
|
2058
2465
|
return nil
|
2059
2466
|
end
|
2060
2467
|
return client.do_queue()
|
2061
2468
|
end
|
2062
2469
|
|
2063
|
-
#
|
2064
|
-
#
|
2065
|
-
def
|
2470
|
+
# Delete Generic Distribution Provider Action by provider id
|
2471
|
+
# @return []
|
2472
|
+
def delete_by_provider_id(generic_distribution_provider_id, action_type)
|
2066
2473
|
kparams = {}
|
2067
2474
|
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2068
2475
|
client.add_param(kparams, 'actionType', action_type)
|
2069
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', '
|
2476
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'deleteByProviderId', '', kparams)
|
2070
2477
|
if (client.is_multirequest)
|
2071
2478
|
return nil
|
2072
2479
|
end
|
2073
2480
|
return client.do_queue()
|
2074
2481
|
end
|
2075
2482
|
|
2076
|
-
#
|
2077
|
-
#
|
2078
|
-
def
|
2483
|
+
# Get Generic Distribution Provider Action by id
|
2484
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2485
|
+
def get(id)
|
2079
2486
|
kparams = {}
|
2080
|
-
client.add_param(kparams, '
|
2081
|
-
client.
|
2082
|
-
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
2083
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', 'KalturaGenericDistributionProviderAction', kparams)
|
2487
|
+
client.add_param(kparams, 'id', id)
|
2488
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'get', 'KalturaGenericDistributionProviderAction', kparams)
|
2084
2489
|
if (client.is_multirequest)
|
2085
2490
|
return nil
|
2086
2491
|
end
|
2087
2492
|
return client.do_queue()
|
2088
2493
|
end
|
2089
2494
|
|
2090
|
-
#
|
2091
|
-
#
|
2092
|
-
def
|
2495
|
+
# Get Generic Distribution Provider Action by provider id
|
2496
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2497
|
+
def get_by_provider_id(generic_distribution_provider_id, action_type)
|
2093
2498
|
kparams = {}
|
2094
|
-
client.add_param(kparams, '
|
2095
|
-
client.add_param(kparams, '
|
2096
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', '
|
2499
|
+
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2500
|
+
client.add_param(kparams, 'actionType', action_type)
|
2501
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'getByProviderId', 'KalturaGenericDistributionProviderAction', kparams)
|
2097
2502
|
if (client.is_multirequest)
|
2098
2503
|
return nil
|
2099
2504
|
end
|
2100
2505
|
return client.do_queue()
|
2101
2506
|
end
|
2102
2507
|
|
2103
|
-
#
|
2104
|
-
#
|
2105
|
-
def
|
2508
|
+
# List all distribution providers
|
2509
|
+
# @return [KalturaGenericDistributionProviderActionListResponse]
|
2510
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
2106
2511
|
kparams = {}
|
2107
|
-
client.add_param(kparams, '
|
2108
|
-
client.
|
2512
|
+
client.add_param(kparams, 'filter', filter)
|
2513
|
+
client.add_param(kparams, 'pager', pager)
|
2514
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'list', 'KalturaGenericDistributionProviderActionListResponse', kparams)
|
2109
2515
|
if (client.is_multirequest)
|
2110
2516
|
return nil
|
2111
2517
|
end
|
2112
2518
|
return client.do_queue()
|
2113
2519
|
end
|
2114
2520
|
|
2115
|
-
#
|
2116
|
-
#
|
2117
|
-
def
|
2521
|
+
# Update Generic Distribution Provider Action by id
|
2522
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2523
|
+
def update(id, generic_distribution_provider_action)
|
2118
2524
|
kparams = {}
|
2119
|
-
client.add_param(kparams, '
|
2120
|
-
client.add_param(kparams, '
|
2121
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', '
|
2525
|
+
client.add_param(kparams, 'id', id)
|
2526
|
+
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
2527
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'update', 'KalturaGenericDistributionProviderAction', kparams)
|
2122
2528
|
if (client.is_multirequest)
|
2123
2529
|
return nil
|
2124
2530
|
end
|
2125
2531
|
return client.do_queue()
|
2126
2532
|
end
|
2127
2533
|
|
2128
|
-
#
|
2129
|
-
#
|
2130
|
-
def
|
2534
|
+
# Update Generic Distribution Provider Action by provider id
|
2535
|
+
# @return [KalturaGenericDistributionProviderAction]
|
2536
|
+
def update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action)
|
2131
2537
|
kparams = {}
|
2132
|
-
client.add_param(kparams, '
|
2133
|
-
client.add_param(kparams, '
|
2134
|
-
client.
|
2538
|
+
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2539
|
+
client.add_param(kparams, 'actionType', action_type)
|
2540
|
+
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
2541
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', 'KalturaGenericDistributionProviderAction', kparams)
|
2135
2542
|
if (client.is_multirequest)
|
2136
2543
|
return nil
|
2137
2544
|
end
|