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
@@ -47,11 +47,27 @@ module Kaltura
|
|
47
47
|
def end_time=(val)
|
48
48
|
@end_time = val.to_i
|
49
49
|
end
|
50
|
+
|
51
|
+
def from_xml(xml_element)
|
52
|
+
super
|
53
|
+
self.asset = KalturaClientBase.object_from_xml(xml_element.elements['asset'], 'KalturaCaptionAsset')
|
54
|
+
self.entry = KalturaClientBase.object_from_xml(xml_element.elements['entry'], 'KalturaBaseEntry')
|
55
|
+
self.start_time = xml_element.elements['startTime'].text
|
56
|
+
self.end_time = xml_element.elements['endTime'].text
|
57
|
+
self.content = xml_element.elements['content'].text
|
58
|
+
end
|
59
|
+
|
50
60
|
end
|
51
61
|
|
52
62
|
class KalturaCaptionAssetItemListResponse < KalturaListResponse
|
53
63
|
attr_accessor :objects
|
54
64
|
|
65
|
+
|
66
|
+
def from_xml(xml_element)
|
67
|
+
super
|
68
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaCaptionAssetItem')
|
69
|
+
end
|
70
|
+
|
55
71
|
end
|
56
72
|
|
57
73
|
class KalturaEntryCaptionAssetSearchItem < KalturaSearchItem
|
@@ -59,6 +75,14 @@ module Kaltura
|
|
59
75
|
attr_accessor :content_multi_like_or
|
60
76
|
attr_accessor :content_multi_like_and
|
61
77
|
|
78
|
+
|
79
|
+
def from_xml(xml_element)
|
80
|
+
super
|
81
|
+
self.content_like = xml_element.elements['contentLike'].text
|
82
|
+
self.content_multi_like_or = xml_element.elements['contentMultiLikeOr'].text
|
83
|
+
self.content_multi_like_and = xml_element.elements['contentMultiLikeAnd'].text
|
84
|
+
end
|
85
|
+
|
62
86
|
end
|
63
87
|
|
64
88
|
class KalturaCaptionAssetItemFilter < KalturaCaptionAssetFilter
|
@@ -89,6 +113,25 @@ module Kaltura
|
|
89
113
|
def end_time_less_than_or_equal=(val)
|
90
114
|
@end_time_less_than_or_equal = val.to_i
|
91
115
|
end
|
116
|
+
|
117
|
+
def from_xml(xml_element)
|
118
|
+
super
|
119
|
+
self.content_like = xml_element.elements['contentLike'].text
|
120
|
+
self.content_multi_like_or = xml_element.elements['contentMultiLikeOr'].text
|
121
|
+
self.content_multi_like_and = xml_element.elements['contentMultiLikeAnd'].text
|
122
|
+
self.partner_description_like = xml_element.elements['partnerDescriptionLike'].text
|
123
|
+
self.partner_description_multi_like_or = xml_element.elements['partnerDescriptionMultiLikeOr'].text
|
124
|
+
self.partner_description_multi_like_and = xml_element.elements['partnerDescriptionMultiLikeAnd'].text
|
125
|
+
self.language_equal = xml_element.elements['languageEqual'].text
|
126
|
+
self.language_in = xml_element.elements['languageIn'].text
|
127
|
+
self.label_equal = xml_element.elements['labelEqual'].text
|
128
|
+
self.label_in = xml_element.elements['labelIn'].text
|
129
|
+
self.start_time_greater_than_or_equal = xml_element.elements['startTimeGreaterThanOrEqual'].text
|
130
|
+
self.start_time_less_than_or_equal = xml_element.elements['startTimeLessThanOrEqual'].text
|
131
|
+
self.end_time_greater_than_or_equal = xml_element.elements['endTimeGreaterThanOrEqual'].text
|
132
|
+
self.end_time_less_than_or_equal = xml_element.elements['endTimeLessThanOrEqual'].text
|
133
|
+
end
|
134
|
+
|
92
135
|
end
|
93
136
|
|
94
137
|
|
@@ -103,28 +146,28 @@ module Kaltura
|
|
103
146
|
#
|
104
147
|
def search(entry_filter=KalturaNotImplemented, caption_asset_item_filter=KalturaNotImplemented, caption_asset_item_pager=KalturaNotImplemented)
|
105
148
|
kparams = {}
|
106
|
-
client.add_param(kparams, 'entryFilter', entry_filter)
|
107
|
-
client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter)
|
108
|
-
client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager)
|
109
|
-
client.queue_service_action_call('captionsearch_captionassetitem', 'search', kparams)
|
149
|
+
client.add_param(kparams, 'entryFilter', entry_filter)
|
150
|
+
client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter)
|
151
|
+
client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager)
|
152
|
+
client.queue_service_action_call('captionsearch_captionassetitem', 'search', 'KalturaCaptionAssetItemListResponse', kparams)
|
110
153
|
if (client.is_multirequest)
|
111
|
-
return nil
|
154
|
+
return nil
|
112
155
|
end
|
113
|
-
return client.do_queue()
|
156
|
+
return client.do_queue()
|
114
157
|
end
|
115
158
|
|
116
159
|
# Search caption asset items by filter, pager and free text
|
117
160
|
#
|
118
161
|
def search_entries(entry_filter=KalturaNotImplemented, caption_asset_item_filter=KalturaNotImplemented, caption_asset_item_pager=KalturaNotImplemented)
|
119
162
|
kparams = {}
|
120
|
-
client.add_param(kparams, 'entryFilter', entry_filter)
|
121
|
-
client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter)
|
122
|
-
client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager)
|
123
|
-
client.queue_service_action_call('captionsearch_captionassetitem', 'searchEntries', kparams)
|
163
|
+
client.add_param(kparams, 'entryFilter', entry_filter)
|
164
|
+
client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter)
|
165
|
+
client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager)
|
166
|
+
client.queue_service_action_call('captionsearch_captionassetitem', 'searchEntries', 'KalturaBaseEntryListResponse', kparams)
|
124
167
|
if (client.is_multirequest)
|
125
|
-
return nil
|
168
|
+
return nil
|
126
169
|
end
|
127
|
-
return client.do_queue()
|
170
|
+
return client.do_queue()
|
128
171
|
end
|
129
172
|
end
|
130
173
|
|
@@ -136,6 +179,7 @@ module Kaltura
|
|
136
179
|
end
|
137
180
|
return @caption_asset_item_service
|
138
181
|
end
|
182
|
+
|
139
183
|
end
|
140
184
|
|
141
185
|
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2015 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
require File.dirname(__FILE__) + '/kaltura_integration_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaCielo24Fidelity
|
34
|
+
MECHANICAL = "MECHANICAL"
|
35
|
+
PREMIUM = "PREMIUM"
|
36
|
+
PROFESSIONAL = "PROFESSIONAL"
|
37
|
+
end
|
38
|
+
|
39
|
+
class KalturaCielo24Priority
|
40
|
+
PRIORITY = "PRIORITY"
|
41
|
+
STANDARD = "STANDARD"
|
42
|
+
end
|
43
|
+
|
44
|
+
class KalturaCielo24JobProviderData < KalturaIntegrationJobProviderData
|
45
|
+
# Entry ID
|
46
|
+
#
|
47
|
+
attr_accessor :entry_id
|
48
|
+
# Flavor ID
|
49
|
+
#
|
50
|
+
attr_accessor :flavor_asset_id
|
51
|
+
# Caption formats
|
52
|
+
#
|
53
|
+
attr_accessor :caption_asset_formats
|
54
|
+
attr_accessor :priority
|
55
|
+
attr_accessor :fidelity
|
56
|
+
# Api key for service provider
|
57
|
+
#
|
58
|
+
attr_accessor :username
|
59
|
+
# Api key for service provider
|
60
|
+
#
|
61
|
+
attr_accessor :password
|
62
|
+
# Transcript content language
|
63
|
+
#
|
64
|
+
attr_accessor :spoken_language
|
65
|
+
# should replace remote media content
|
66
|
+
#
|
67
|
+
attr_accessor :replace_media_content
|
68
|
+
|
69
|
+
def replace_media_content=(val)
|
70
|
+
@replace_media_content = to_b(val)
|
71
|
+
end
|
72
|
+
|
73
|
+
def from_xml(xml_element)
|
74
|
+
super
|
75
|
+
self.entry_id = xml_element.elements['entryId'].text
|
76
|
+
self.flavor_asset_id = xml_element.elements['flavorAssetId'].text
|
77
|
+
self.caption_asset_formats = xml_element.elements['captionAssetFormats'].text
|
78
|
+
self.priority = xml_element.elements['priority'].text
|
79
|
+
self.fidelity = xml_element.elements['fidelity'].text
|
80
|
+
self.username = xml_element.elements['username'].text
|
81
|
+
self.password = xml_element.elements['password'].text
|
82
|
+
self.spoken_language = xml_element.elements['spokenLanguage'].text
|
83
|
+
self.replace_media_content = xml_element.elements['replaceMediaContent'].text
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
end
|
@@ -61,6 +61,15 @@ module Kaltura
|
|
61
61
|
def duration=(val)
|
62
62
|
@duration = val.to_i
|
63
63
|
end
|
64
|
+
|
65
|
+
def from_xml(xml_element)
|
66
|
+
super
|
67
|
+
self.code = xml_element.elements['code'].text
|
68
|
+
self.description = xml_element.elements['description'].text
|
69
|
+
self.end_time = xml_element.elements['endTime'].text
|
70
|
+
self.duration = xml_element.elements['duration'].text
|
71
|
+
end
|
72
|
+
|
64
73
|
end
|
65
74
|
|
66
75
|
class KalturaCodeCuePointBaseFilter < KalturaCuePointFilter
|
@@ -89,10 +98,32 @@ module Kaltura
|
|
89
98
|
def duration_less_than_or_equal=(val)
|
90
99
|
@duration_less_than_or_equal = val.to_i
|
91
100
|
end
|
101
|
+
|
102
|
+
def from_xml(xml_element)
|
103
|
+
super
|
104
|
+
self.code_like = xml_element.elements['codeLike'].text
|
105
|
+
self.code_multi_like_or = xml_element.elements['codeMultiLikeOr'].text
|
106
|
+
self.code_multi_like_and = xml_element.elements['codeMultiLikeAnd'].text
|
107
|
+
self.code_equal = xml_element.elements['codeEqual'].text
|
108
|
+
self.code_in = xml_element.elements['codeIn'].text
|
109
|
+
self.description_like = xml_element.elements['descriptionLike'].text
|
110
|
+
self.description_multi_like_or = xml_element.elements['descriptionMultiLikeOr'].text
|
111
|
+
self.description_multi_like_and = xml_element.elements['descriptionMultiLikeAnd'].text
|
112
|
+
self.end_time_greater_than_or_equal = xml_element.elements['endTimeGreaterThanOrEqual'].text
|
113
|
+
self.end_time_less_than_or_equal = xml_element.elements['endTimeLessThanOrEqual'].text
|
114
|
+
self.duration_greater_than_or_equal = xml_element.elements['durationGreaterThanOrEqual'].text
|
115
|
+
self.duration_less_than_or_equal = xml_element.elements['durationLessThanOrEqual'].text
|
116
|
+
end
|
117
|
+
|
92
118
|
end
|
93
119
|
|
94
120
|
class KalturaCodeCuePointFilter < KalturaCodeCuePointBaseFilter
|
95
121
|
|
122
|
+
|
123
|
+
def from_xml(xml_element)
|
124
|
+
super
|
125
|
+
end
|
126
|
+
|
96
127
|
end
|
97
128
|
|
98
129
|
|
@@ -193,6 +193,11 @@ module Kaltura
|
|
193
193
|
#
|
194
194
|
class KalturaAssetDistributionCondition < KalturaObjectBase
|
195
195
|
|
196
|
+
|
197
|
+
def from_xml(xml_element)
|
198
|
+
super
|
199
|
+
end
|
200
|
+
|
196
201
|
end
|
197
202
|
|
198
203
|
class KalturaAssetDistributionRule < KalturaObjectBase
|
@@ -203,6 +208,13 @@ module Kaltura
|
|
203
208
|
#
|
204
209
|
attr_accessor :asset_distribution_conditions
|
205
210
|
|
211
|
+
|
212
|
+
def from_xml(xml_element)
|
213
|
+
super
|
214
|
+
self.validation_error = xml_element.elements['validationError'].text
|
215
|
+
self.asset_distribution_conditions = KalturaClientBase.object_from_xml(xml_element.elements['assetDistributionConditions'], 'KalturaAssetDistributionCondition')
|
216
|
+
end
|
217
|
+
|
206
218
|
end
|
207
219
|
|
208
220
|
class KalturaDistributionFieldConfig < KalturaObjectBase
|
@@ -229,6 +241,9 @@ module Kaltura
|
|
229
241
|
# Is this field config is the default for the distribution provider?
|
230
242
|
#
|
231
243
|
attr_accessor :is_default
|
244
|
+
# Is an error on this field going to trigger deletion of distributed content?
|
245
|
+
#
|
246
|
+
attr_accessor :trigger_delete_on_error
|
232
247
|
|
233
248
|
def is_required=(val)
|
234
249
|
@is_required = val.to_i
|
@@ -239,10 +254,31 @@ module Kaltura
|
|
239
254
|
def is_default=(val)
|
240
255
|
@is_default = to_b(val)
|
241
256
|
end
|
257
|
+
def trigger_delete_on_error=(val)
|
258
|
+
@trigger_delete_on_error = to_b(val)
|
259
|
+
end
|
260
|
+
|
261
|
+
def from_xml(xml_element)
|
262
|
+
super
|
263
|
+
self.field_name = xml_element.elements['fieldName'].text
|
264
|
+
self.user_friendly_field_name = xml_element.elements['userFriendlyFieldName'].text
|
265
|
+
self.entry_mrss_xslt = xml_element.elements['entryMrssXslt'].text
|
266
|
+
self.is_required = xml_element.elements['isRequired'].text
|
267
|
+
self.update_on_change = xml_element.elements['updateOnChange'].text
|
268
|
+
self.update_params = KalturaClientBase.object_from_xml(xml_element.elements['updateParams'], 'KalturaString')
|
269
|
+
self.is_default = xml_element.elements['isDefault'].text
|
270
|
+
self.trigger_delete_on_error = xml_element.elements['triggerDeleteOnError'].text
|
271
|
+
end
|
272
|
+
|
242
273
|
end
|
243
274
|
|
244
275
|
class KalturaDistributionJobProviderData < KalturaObjectBase
|
245
276
|
|
277
|
+
|
278
|
+
def from_xml(xml_element)
|
279
|
+
super
|
280
|
+
end
|
281
|
+
|
246
282
|
end
|
247
283
|
|
248
284
|
class KalturaDistributionThumbDimensions < KalturaObjectBase
|
@@ -255,6 +291,13 @@ module Kaltura
|
|
255
291
|
def height=(val)
|
256
292
|
@height = val.to_i
|
257
293
|
end
|
294
|
+
|
295
|
+
def from_xml(xml_element)
|
296
|
+
super
|
297
|
+
self.width = xml_element.elements['width'].text
|
298
|
+
self.height = xml_element.elements['height'].text
|
299
|
+
end
|
300
|
+
|
258
301
|
end
|
259
302
|
|
260
303
|
class KalturaDistributionProfile < KalturaObjectBase
|
@@ -357,6 +400,35 @@ module Kaltura
|
|
357
400
|
def recommended_dc_for_execute=(val)
|
358
401
|
@recommended_dc_for_execute = val.to_i
|
359
402
|
end
|
403
|
+
|
404
|
+
def from_xml(xml_element)
|
405
|
+
super
|
406
|
+
self.id = xml_element.elements['id'].text
|
407
|
+
self.created_at = xml_element.elements['createdAt'].text
|
408
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
409
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
410
|
+
self.provider_type = xml_element.elements['providerType'].text
|
411
|
+
self.name = xml_element.elements['name'].text
|
412
|
+
self.status = xml_element.elements['status'].text
|
413
|
+
self.submit_enabled = xml_element.elements['submitEnabled'].text
|
414
|
+
self.update_enabled = xml_element.elements['updateEnabled'].text
|
415
|
+
self.delete_enabled = xml_element.elements['deleteEnabled'].text
|
416
|
+
self.report_enabled = xml_element.elements['reportEnabled'].text
|
417
|
+
self.auto_create_flavors = xml_element.elements['autoCreateFlavors'].text
|
418
|
+
self.auto_create_thumb = xml_element.elements['autoCreateThumb'].text
|
419
|
+
self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
|
420
|
+
self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
|
421
|
+
self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
422
|
+
self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
423
|
+
self.optional_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['optionalAssetDistributionRules'], 'KalturaAssetDistributionRule')
|
424
|
+
self.required_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['requiredAssetDistributionRules'], 'KalturaAssetDistributionRule')
|
425
|
+
self.sunrise_default_offset = xml_element.elements['sunriseDefaultOffset'].text
|
426
|
+
self.sunset_default_offset = xml_element.elements['sunsetDefaultOffset'].text
|
427
|
+
self.recommended_storage_profile_for_download = xml_element.elements['recommendedStorageProfileForDownload'].text
|
428
|
+
self.recommended_dc_for_download = xml_element.elements['recommendedDcForDownload'].text
|
429
|
+
self.recommended_dc_for_execute = xml_element.elements['recommendedDcForExecute'].text
|
430
|
+
end
|
431
|
+
|
360
432
|
end
|
361
433
|
|
362
434
|
class KalturaDistributionProvider < KalturaObjectBase
|
@@ -385,6 +457,20 @@ module Kaltura
|
|
385
457
|
def interval_before_sunset=(val)
|
386
458
|
@interval_before_sunset = val.to_i
|
387
459
|
end
|
460
|
+
|
461
|
+
def from_xml(xml_element)
|
462
|
+
super
|
463
|
+
self.type = xml_element.elements['type'].text
|
464
|
+
self.name = xml_element.elements['name'].text
|
465
|
+
self.schedule_update_enabled = xml_element.elements['scheduleUpdateEnabled'].text
|
466
|
+
self.availability_update_enabled = xml_element.elements['availabilityUpdateEnabled'].text
|
467
|
+
self.delete_instead_update = xml_element.elements['deleteInsteadUpdate'].text
|
468
|
+
self.interval_before_sunrise = xml_element.elements['intervalBeforeSunrise'].text
|
469
|
+
self.interval_before_sunset = xml_element.elements['intervalBeforeSunset'].text
|
470
|
+
self.update_required_entry_fields = xml_element.elements['updateRequiredEntryFields'].text
|
471
|
+
self.update_required_metadata_xpaths = xml_element.elements['updateRequiredMetadataXPaths'].text
|
472
|
+
end
|
473
|
+
|
388
474
|
end
|
389
475
|
|
390
476
|
class KalturaDistributionRemoteMediaFile < KalturaObjectBase
|
@@ -392,6 +478,14 @@ module Kaltura
|
|
392
478
|
attr_accessor :asset_id
|
393
479
|
attr_accessor :remote_id
|
394
480
|
|
481
|
+
|
482
|
+
def from_xml(xml_element)
|
483
|
+
super
|
484
|
+
self.version = xml_element.elements['version'].text
|
485
|
+
self.asset_id = xml_element.elements['assetId'].text
|
486
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
487
|
+
end
|
488
|
+
|
395
489
|
end
|
396
490
|
|
397
491
|
class KalturaDistributionValidationError < KalturaObjectBase
|
@@ -405,6 +499,14 @@ module Kaltura
|
|
405
499
|
def error_type=(val)
|
406
500
|
@error_type = val.to_i
|
407
501
|
end
|
502
|
+
|
503
|
+
def from_xml(xml_element)
|
504
|
+
super
|
505
|
+
self.action = xml_element.elements['action'].text
|
506
|
+
self.error_type = xml_element.elements['errorType'].text
|
507
|
+
self.description = xml_element.elements['description'].text
|
508
|
+
end
|
509
|
+
|
408
510
|
end
|
409
511
|
|
410
512
|
class KalturaEntryDistribution < KalturaObjectBase
|
@@ -524,6 +626,39 @@ module Kaltura
|
|
524
626
|
def has_delete_sent_data_log=(val)
|
525
627
|
@has_delete_sent_data_log = val.to_i
|
526
628
|
end
|
629
|
+
|
630
|
+
def from_xml(xml_element)
|
631
|
+
super
|
632
|
+
self.id = xml_element.elements['id'].text
|
633
|
+
self.created_at = xml_element.elements['createdAt'].text
|
634
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
635
|
+
self.submitted_at = xml_element.elements['submittedAt'].text
|
636
|
+
self.entry_id = xml_element.elements['entryId'].text
|
637
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
638
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
639
|
+
self.status = xml_element.elements['status'].text
|
640
|
+
self.sun_status = xml_element.elements['sunStatus'].text
|
641
|
+
self.dirty_status = xml_element.elements['dirtyStatus'].text
|
642
|
+
self.thumb_asset_ids = xml_element.elements['thumbAssetIds'].text
|
643
|
+
self.flavor_asset_ids = xml_element.elements['flavorAssetIds'].text
|
644
|
+
self.asset_ids = xml_element.elements['assetIds'].text
|
645
|
+
self.sunrise = xml_element.elements['sunrise'].text
|
646
|
+
self.sunset = xml_element.elements['sunset'].text
|
647
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
648
|
+
self.plays = xml_element.elements['plays'].text
|
649
|
+
self.views = xml_element.elements['views'].text
|
650
|
+
self.validation_errors = KalturaClientBase.object_from_xml(xml_element.elements['validationErrors'], 'KalturaDistributionValidationError')
|
651
|
+
self.error_type = xml_element.elements['errorType'].text
|
652
|
+
self.error_number = xml_element.elements['errorNumber'].text
|
653
|
+
self.error_description = xml_element.elements['errorDescription'].text
|
654
|
+
self.has_submit_results_log = xml_element.elements['hasSubmitResultsLog'].text
|
655
|
+
self.has_submit_sent_data_log = xml_element.elements['hasSubmitSentDataLog'].text
|
656
|
+
self.has_update_results_log = xml_element.elements['hasUpdateResultsLog'].text
|
657
|
+
self.has_update_sent_data_log = xml_element.elements['hasUpdateSentDataLog'].text
|
658
|
+
self.has_delete_results_log = xml_element.elements['hasDeleteResultsLog'].text
|
659
|
+
self.has_delete_sent_data_log = xml_element.elements['hasDeleteSentDataLog'].text
|
660
|
+
end
|
661
|
+
|
527
662
|
end
|
528
663
|
|
529
664
|
class KalturaGenericDistributionProfileAction < KalturaObjectBase
|
@@ -542,6 +677,19 @@ module Kaltura
|
|
542
677
|
def ftp_passive_mode=(val)
|
543
678
|
@ftp_passive_mode = to_b(val)
|
544
679
|
end
|
680
|
+
|
681
|
+
def from_xml(xml_element)
|
682
|
+
super
|
683
|
+
self.protocol = xml_element.elements['protocol'].text
|
684
|
+
self.server_url = xml_element.elements['serverUrl'].text
|
685
|
+
self.server_path = xml_element.elements['serverPath'].text
|
686
|
+
self.username = xml_element.elements['username'].text
|
687
|
+
self.password = xml_element.elements['password'].text
|
688
|
+
self.ftp_passive_mode = xml_element.elements['ftpPassiveMode'].text
|
689
|
+
self.http_field_name = xml_element.elements['httpFieldName'].text
|
690
|
+
self.http_file_name = xml_element.elements['httpFileName'].text
|
691
|
+
end
|
692
|
+
|
545
693
|
end
|
546
694
|
|
547
695
|
class KalturaGenericDistributionProviderAction < KalturaObjectBase
|
@@ -593,6 +741,28 @@ module Kaltura
|
|
593
741
|
def protocol=(val)
|
594
742
|
@protocol = val.to_i
|
595
743
|
end
|
744
|
+
|
745
|
+
def from_xml(xml_element)
|
746
|
+
super
|
747
|
+
self.id = xml_element.elements['id'].text
|
748
|
+
self.created_at = xml_element.elements['createdAt'].text
|
749
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
750
|
+
self.generic_distribution_provider_id = xml_element.elements['genericDistributionProviderId'].text
|
751
|
+
self.action = xml_element.elements['action'].text
|
752
|
+
self.status = xml_element.elements['status'].text
|
753
|
+
self.results_parser = xml_element.elements['resultsParser'].text
|
754
|
+
self.protocol = xml_element.elements['protocol'].text
|
755
|
+
self.server_address = xml_element.elements['serverAddress'].text
|
756
|
+
self.remote_path = xml_element.elements['remotePath'].text
|
757
|
+
self.remote_username = xml_element.elements['remoteUsername'].text
|
758
|
+
self.remote_password = xml_element.elements['remotePassword'].text
|
759
|
+
self.editable_fields = xml_element.elements['editableFields'].text
|
760
|
+
self.mandatory_fields = xml_element.elements['mandatoryFields'].text
|
761
|
+
self.mrss_transformer = xml_element.elements['mrssTransformer'].text
|
762
|
+
self.mrss_validator = xml_element.elements['mrssValidator'].text
|
763
|
+
self.results_transformer = xml_element.elements['resultsTransformer'].text
|
764
|
+
end
|
765
|
+
|
596
766
|
end
|
597
767
|
|
598
768
|
class KalturaGenericDistributionProvider < KalturaDistributionProvider
|
@@ -633,6 +803,23 @@ module Kaltura
|
|
633
803
|
def status=(val)
|
634
804
|
@status = val.to_i
|
635
805
|
end
|
806
|
+
|
807
|
+
def from_xml(xml_element)
|
808
|
+
super
|
809
|
+
self.id = xml_element.elements['id'].text
|
810
|
+
self.created_at = xml_element.elements['createdAt'].text
|
811
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
812
|
+
self.partner_id = xml_element.elements['partnerId'].text
|
813
|
+
self.is_default = xml_element.elements['isDefault'].text
|
814
|
+
self.status = xml_element.elements['status'].text
|
815
|
+
self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
|
816
|
+
self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
|
817
|
+
self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
818
|
+
self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
|
819
|
+
self.editable_fields = xml_element.elements['editableFields'].text
|
820
|
+
self.mandatory_fields = xml_element.elements['mandatoryFields'].text
|
821
|
+
end
|
822
|
+
|
636
823
|
end
|
637
824
|
|
638
825
|
# Defines the condition to match a property and value on core asset object (or one if its inherited objects)
|
@@ -646,16 +833,43 @@ module Kaltura
|
|
646
833
|
#
|
647
834
|
attr_accessor :property_value
|
648
835
|
|
836
|
+
|
837
|
+
def from_xml(xml_element)
|
838
|
+
super
|
839
|
+
self.property_name = xml_element.elements['propertyName'].text
|
840
|
+
self.property_value = xml_element.elements['propertyValue'].text
|
841
|
+
end
|
842
|
+
|
649
843
|
end
|
650
844
|
|
651
845
|
class KalturaConfigurableDistributionJobProviderData < KalturaDistributionJobProviderData
|
652
846
|
attr_accessor :field_values
|
653
847
|
|
848
|
+
|
849
|
+
def from_xml(xml_element)
|
850
|
+
super
|
851
|
+
self.field_values = xml_element.elements['fieldValues'].text
|
852
|
+
end
|
853
|
+
|
654
854
|
end
|
655
855
|
|
656
856
|
class KalturaConfigurableDistributionProfile < KalturaDistributionProfile
|
657
857
|
attr_accessor :field_config_array
|
658
858
|
attr_accessor :item_xpaths_to_extend
|
859
|
+
# When checking custom XSLT conditions using the fieldConfigArray - address only categories associated with the entry via the categoryEntry object
|
860
|
+
#
|
861
|
+
attr_accessor :use_category_entries
|
862
|
+
|
863
|
+
def use_category_entries=(val)
|
864
|
+
@use_category_entries = to_b(val)
|
865
|
+
end
|
866
|
+
|
867
|
+
def from_xml(xml_element)
|
868
|
+
super
|
869
|
+
self.field_config_array = KalturaClientBase.object_from_xml(xml_element.elements['fieldConfigArray'], 'KalturaDistributionFieldConfig')
|
870
|
+
self.item_xpaths_to_extend = KalturaClientBase.object_from_xml(xml_element.elements['itemXpathsToExtend'], 'KalturaExtendingItemMrssParameter')
|
871
|
+
self.use_category_entries = xml_element.elements['useCategoryEntries'].text
|
872
|
+
end
|
659
873
|
|
660
874
|
end
|
661
875
|
|
@@ -688,6 +902,18 @@ module Kaltura
|
|
688
902
|
def has_entry_distribution_validation_errors=(val)
|
689
903
|
@has_entry_distribution_validation_errors = to_b(val)
|
690
904
|
end
|
905
|
+
|
906
|
+
def from_xml(xml_element)
|
907
|
+
super
|
908
|
+
self.no_distribution_profiles = xml_element.elements['noDistributionProfiles'].text
|
909
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
910
|
+
self.distribution_sun_status = xml_element.elements['distributionSunStatus'].text
|
911
|
+
self.entry_distribution_flag = xml_element.elements['entryDistributionFlag'].text
|
912
|
+
self.entry_distribution_status = xml_element.elements['entryDistributionStatus'].text
|
913
|
+
self.has_entry_distribution_validation_errors = xml_element.elements['hasEntryDistributionValidationErrors'].text
|
914
|
+
self.entry_distribution_validation_errors = xml_element.elements['entryDistributionValidationErrors'].text
|
915
|
+
end
|
916
|
+
|
691
917
|
end
|
692
918
|
|
693
919
|
class KalturaDistributionJobData < KalturaJobData
|
@@ -719,6 +945,21 @@ module Kaltura
|
|
719
945
|
def entry_distribution_id=(val)
|
720
946
|
@entry_distribution_id = val.to_i
|
721
947
|
end
|
948
|
+
|
949
|
+
def from_xml(xml_element)
|
950
|
+
super
|
951
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
952
|
+
self.distribution_profile = KalturaClientBase.object_from_xml(xml_element.elements['distributionProfile'], 'KalturaDistributionProfile')
|
953
|
+
self.entry_distribution_id = xml_element.elements['entryDistributionId'].text
|
954
|
+
self.entry_distribution = KalturaClientBase.object_from_xml(xml_element.elements['entryDistribution'], 'KalturaEntryDistribution')
|
955
|
+
self.remote_id = xml_element.elements['remoteId'].text
|
956
|
+
self.provider_type = xml_element.elements['providerType'].text
|
957
|
+
self.provider_data = KalturaClientBase.object_from_xml(xml_element.elements['providerData'], 'KalturaDistributionJobProviderData')
|
958
|
+
self.results = xml_element.elements['results'].text
|
959
|
+
self.sent_data = xml_element.elements['sentData'].text
|
960
|
+
self.media_files = KalturaClientBase.object_from_xml(xml_element.elements['mediaFiles'], 'KalturaDistributionRemoteMediaFile')
|
961
|
+
end
|
962
|
+
|
722
963
|
end
|
723
964
|
|
724
965
|
class KalturaDistributionProfileBaseFilter < KalturaFilter
|
@@ -749,27 +990,65 @@ module Kaltura
|
|
749
990
|
def status_equal=(val)
|
750
991
|
@status_equal = val.to_i
|
751
992
|
end
|
993
|
+
|
994
|
+
def from_xml(xml_element)
|
995
|
+
super
|
996
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
997
|
+
self.id_in = xml_element.elements['idIn'].text
|
998
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
999
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1000
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1001
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1002
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1003
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1004
|
+
end
|
1005
|
+
|
752
1006
|
end
|
753
1007
|
|
754
1008
|
class KalturaDistributionProfileListResponse < KalturaListResponse
|
755
1009
|
attr_accessor :objects
|
756
1010
|
|
1011
|
+
|
1012
|
+
def from_xml(xml_element)
|
1013
|
+
super
|
1014
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaDistributionProfile')
|
1015
|
+
end
|
1016
|
+
|
757
1017
|
end
|
758
1018
|
|
759
1019
|
class KalturaDistributionProviderBaseFilter < KalturaFilter
|
760
1020
|
attr_accessor :type_equal
|
761
1021
|
attr_accessor :type_in
|
762
1022
|
|
1023
|
+
|
1024
|
+
def from_xml(xml_element)
|
1025
|
+
super
|
1026
|
+
self.type_equal = xml_element.elements['typeEqual'].text
|
1027
|
+
self.type_in = xml_element.elements['typeIn'].text
|
1028
|
+
end
|
1029
|
+
|
763
1030
|
end
|
764
1031
|
|
765
1032
|
class KalturaDistributionProviderListResponse < KalturaListResponse
|
766
1033
|
attr_accessor :objects
|
767
1034
|
|
1035
|
+
|
1036
|
+
def from_xml(xml_element)
|
1037
|
+
super
|
1038
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaDistributionProvider')
|
1039
|
+
end
|
1040
|
+
|
768
1041
|
end
|
769
1042
|
|
770
1043
|
class KalturaDistributionValidationErrorConditionNotMet < KalturaDistributionValidationError
|
771
1044
|
attr_accessor :condition_name
|
772
1045
|
|
1046
|
+
|
1047
|
+
def from_xml(xml_element)
|
1048
|
+
super
|
1049
|
+
self.condition_name = xml_element.elements['conditionName'].text
|
1050
|
+
end
|
1051
|
+
|
773
1052
|
end
|
774
1053
|
|
775
1054
|
class KalturaDistributionValidationErrorInvalidData < KalturaDistributionValidationError
|
@@ -783,31 +1062,69 @@ module Kaltura
|
|
783
1062
|
def validation_error_type=(val)
|
784
1063
|
@validation_error_type = val.to_i
|
785
1064
|
end
|
1065
|
+
|
1066
|
+
def from_xml(xml_element)
|
1067
|
+
super
|
1068
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1069
|
+
self.validation_error_type = xml_element.elements['validationErrorType'].text
|
1070
|
+
self.validation_error_param = xml_element.elements['validationErrorParam'].text
|
1071
|
+
end
|
1072
|
+
|
786
1073
|
end
|
787
1074
|
|
788
1075
|
class KalturaDistributionValidationErrorMissingAsset < KalturaDistributionValidationError
|
789
1076
|
attr_accessor :data
|
790
1077
|
|
1078
|
+
|
1079
|
+
def from_xml(xml_element)
|
1080
|
+
super
|
1081
|
+
self.data = xml_element.elements['data'].text
|
1082
|
+
end
|
1083
|
+
|
791
1084
|
end
|
792
1085
|
|
793
1086
|
class KalturaDistributionValidationErrorMissingFlavor < KalturaDistributionValidationError
|
794
1087
|
attr_accessor :flavor_params_id
|
795
1088
|
|
1089
|
+
|
1090
|
+
def from_xml(xml_element)
|
1091
|
+
super
|
1092
|
+
self.flavor_params_id = xml_element.elements['flavorParamsId'].text
|
1093
|
+
end
|
1094
|
+
|
796
1095
|
end
|
797
1096
|
|
798
1097
|
class KalturaDistributionValidationErrorMissingMetadata < KalturaDistributionValidationError
|
799
1098
|
attr_accessor :field_name
|
800
1099
|
|
1100
|
+
|
1101
|
+
def from_xml(xml_element)
|
1102
|
+
super
|
1103
|
+
self.field_name = xml_element.elements['fieldName'].text
|
1104
|
+
end
|
1105
|
+
|
801
1106
|
end
|
802
1107
|
|
803
1108
|
class KalturaDistributionValidationErrorMissingThumbnail < KalturaDistributionValidationError
|
804
1109
|
attr_accessor :dimensions
|
805
1110
|
|
1111
|
+
|
1112
|
+
def from_xml(xml_element)
|
1113
|
+
super
|
1114
|
+
self.dimensions = KalturaClientBase.object_from_xml(xml_element.elements['dimensions'], 'KalturaDistributionThumbDimensions')
|
1115
|
+
end
|
1116
|
+
|
806
1117
|
end
|
807
1118
|
|
808
1119
|
class KalturaEntryDistributionListResponse < KalturaListResponse
|
809
1120
|
attr_accessor :objects
|
810
1121
|
|
1122
|
+
|
1123
|
+
def from_xml(xml_element)
|
1124
|
+
super
|
1125
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaEntryDistribution')
|
1126
|
+
end
|
1127
|
+
|
811
1128
|
end
|
812
1129
|
|
813
1130
|
class KalturaGenericDistributionJobProviderData < KalturaDistributionJobProviderData
|
@@ -818,6 +1135,14 @@ module Kaltura
|
|
818
1135
|
def result_parser_type=(val)
|
819
1136
|
@result_parser_type = val.to_i
|
820
1137
|
end
|
1138
|
+
|
1139
|
+
def from_xml(xml_element)
|
1140
|
+
super
|
1141
|
+
self.xml = xml_element.elements['xml'].text
|
1142
|
+
self.result_parse_data = xml_element.elements['resultParseData'].text
|
1143
|
+
self.result_parser_type = xml_element.elements['resultParserType'].text
|
1144
|
+
end
|
1145
|
+
|
821
1146
|
end
|
822
1147
|
|
823
1148
|
class KalturaGenericDistributionProfile < KalturaDistributionProfile
|
@@ -832,6 +1157,18 @@ module Kaltura
|
|
832
1157
|
def generic_provider_id=(val)
|
833
1158
|
@generic_provider_id = val.to_i
|
834
1159
|
end
|
1160
|
+
|
1161
|
+
def from_xml(xml_element)
|
1162
|
+
super
|
1163
|
+
self.generic_provider_id = xml_element.elements['genericProviderId'].text
|
1164
|
+
self.submit_action = KalturaClientBase.object_from_xml(xml_element.elements['submitAction'], 'KalturaGenericDistributionProfileAction')
|
1165
|
+
self.update_action = KalturaClientBase.object_from_xml(xml_element.elements['updateAction'], 'KalturaGenericDistributionProfileAction')
|
1166
|
+
self.delete_action = KalturaClientBase.object_from_xml(xml_element.elements['deleteAction'], 'KalturaGenericDistributionProfileAction')
|
1167
|
+
self.fetch_report_action = KalturaClientBase.object_from_xml(xml_element.elements['fetchReportAction'], 'KalturaGenericDistributionProfileAction')
|
1168
|
+
self.update_required_entry_fields = xml_element.elements['updateRequiredEntryFields'].text
|
1169
|
+
self.update_required_metadata_xpaths = xml_element.elements['updateRequiredMetadataXPaths'].text
|
1170
|
+
end
|
1171
|
+
|
835
1172
|
end
|
836
1173
|
|
837
1174
|
class KalturaGenericDistributionProviderActionBaseFilter < KalturaFilter
|
@@ -867,30 +1204,74 @@ module Kaltura
|
|
867
1204
|
def action_equal=(val)
|
868
1205
|
@action_equal = val.to_i
|
869
1206
|
end
|
1207
|
+
|
1208
|
+
def from_xml(xml_element)
|
1209
|
+
super
|
1210
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1211
|
+
self.id_in = xml_element.elements['idIn'].text
|
1212
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1213
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1214
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1215
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1216
|
+
self.generic_distribution_provider_id_equal = xml_element.elements['genericDistributionProviderIdEqual'].text
|
1217
|
+
self.generic_distribution_provider_id_in = xml_element.elements['genericDistributionProviderIdIn'].text
|
1218
|
+
self.action_equal = xml_element.elements['actionEqual'].text
|
1219
|
+
self.action_in = xml_element.elements['actionIn'].text
|
1220
|
+
end
|
1221
|
+
|
870
1222
|
end
|
871
1223
|
|
872
1224
|
class KalturaGenericDistributionProviderActionListResponse < KalturaListResponse
|
873
1225
|
attr_accessor :objects
|
874
1226
|
|
1227
|
+
|
1228
|
+
def from_xml(xml_element)
|
1229
|
+
super
|
1230
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaGenericDistributionProviderAction')
|
1231
|
+
end
|
1232
|
+
|
875
1233
|
end
|
876
1234
|
|
877
1235
|
class KalturaGenericDistributionProviderListResponse < KalturaListResponse
|
878
1236
|
attr_accessor :objects
|
879
1237
|
|
1238
|
+
|
1239
|
+
def from_xml(xml_element)
|
1240
|
+
super
|
1241
|
+
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaGenericDistributionProvider')
|
1242
|
+
end
|
1243
|
+
|
880
1244
|
end
|
881
1245
|
|
882
1246
|
class KalturaSyndicationDistributionProfile < KalturaDistributionProfile
|
883
1247
|
attr_accessor :xsl
|
884
1248
|
attr_accessor :feed_id
|
885
1249
|
|
1250
|
+
|
1251
|
+
def from_xml(xml_element)
|
1252
|
+
super
|
1253
|
+
self.xsl = xml_element.elements['xsl'].text
|
1254
|
+
self.feed_id = xml_element.elements['feedId'].text
|
1255
|
+
end
|
1256
|
+
|
886
1257
|
end
|
887
1258
|
|
888
1259
|
class KalturaSyndicationDistributionProvider < KalturaDistributionProvider
|
889
1260
|
|
1261
|
+
|
1262
|
+
def from_xml(xml_element)
|
1263
|
+
super
|
1264
|
+
end
|
1265
|
+
|
890
1266
|
end
|
891
1267
|
|
892
1268
|
class KalturaDistributionDeleteJobData < KalturaDistributionJobData
|
893
1269
|
|
1270
|
+
|
1271
|
+
def from_xml(xml_element)
|
1272
|
+
super
|
1273
|
+
end
|
1274
|
+
|
894
1275
|
end
|
895
1276
|
|
896
1277
|
class KalturaDistributionFetchReportJobData < KalturaDistributionJobData
|
@@ -903,22 +1284,49 @@ module Kaltura
|
|
903
1284
|
def views=(val)
|
904
1285
|
@views = val.to_i
|
905
1286
|
end
|
1287
|
+
|
1288
|
+
def from_xml(xml_element)
|
1289
|
+
super
|
1290
|
+
self.plays = xml_element.elements['plays'].text
|
1291
|
+
self.views = xml_element.elements['views'].text
|
1292
|
+
end
|
1293
|
+
|
906
1294
|
end
|
907
1295
|
|
908
1296
|
class KalturaDistributionProfileFilter < KalturaDistributionProfileBaseFilter
|
909
1297
|
|
1298
|
+
|
1299
|
+
def from_xml(xml_element)
|
1300
|
+
super
|
1301
|
+
end
|
1302
|
+
|
910
1303
|
end
|
911
1304
|
|
912
1305
|
class KalturaDistributionProviderFilter < KalturaDistributionProviderBaseFilter
|
913
1306
|
|
1307
|
+
|
1308
|
+
def from_xml(xml_element)
|
1309
|
+
super
|
1310
|
+
end
|
1311
|
+
|
914
1312
|
end
|
915
1313
|
|
916
1314
|
class KalturaDistributionSubmitJobData < KalturaDistributionJobData
|
917
1315
|
|
1316
|
+
|
1317
|
+
def from_xml(xml_element)
|
1318
|
+
super
|
1319
|
+
end
|
1320
|
+
|
918
1321
|
end
|
919
1322
|
|
920
1323
|
class KalturaDistributionUpdateJobData < KalturaDistributionJobData
|
921
1324
|
|
1325
|
+
|
1326
|
+
def from_xml(xml_element)
|
1327
|
+
super
|
1328
|
+
end
|
1329
|
+
|
922
1330
|
end
|
923
1331
|
|
924
1332
|
class KalturaDistributionValidationErrorInvalidMetadata < KalturaDistributionValidationErrorInvalidData
|
@@ -927,6 +1335,12 @@ module Kaltura
|
|
927
1335
|
def metadata_profile_id=(val)
|
928
1336
|
@metadata_profile_id = val.to_i
|
929
1337
|
end
|
1338
|
+
|
1339
|
+
def from_xml(xml_element)
|
1340
|
+
super
|
1341
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
1342
|
+
end
|
1343
|
+
|
930
1344
|
end
|
931
1345
|
|
932
1346
|
class KalturaEntryDistributionBaseFilter < KalturaRelatedFilter
|
@@ -993,30 +1407,85 @@ module Kaltura
|
|
993
1407
|
def sunset_less_than_or_equal=(val)
|
994
1408
|
@sunset_less_than_or_equal = val.to_i
|
995
1409
|
end
|
1410
|
+
|
1411
|
+
def from_xml(xml_element)
|
1412
|
+
super
|
1413
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1414
|
+
self.id_in = xml_element.elements['idIn'].text
|
1415
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1416
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1417
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1418
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1419
|
+
self.submitted_at_greater_than_or_equal = xml_element.elements['submittedAtGreaterThanOrEqual'].text
|
1420
|
+
self.submitted_at_less_than_or_equal = xml_element.elements['submittedAtLessThanOrEqual'].text
|
1421
|
+
self.entry_id_equal = xml_element.elements['entryIdEqual'].text
|
1422
|
+
self.entry_id_in = xml_element.elements['entryIdIn'].text
|
1423
|
+
self.distribution_profile_id_equal = xml_element.elements['distributionProfileIdEqual'].text
|
1424
|
+
self.distribution_profile_id_in = xml_element.elements['distributionProfileIdIn'].text
|
1425
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1426
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1427
|
+
self.dirty_status_equal = xml_element.elements['dirtyStatusEqual'].text
|
1428
|
+
self.dirty_status_in = xml_element.elements['dirtyStatusIn'].text
|
1429
|
+
self.sunrise_greater_than_or_equal = xml_element.elements['sunriseGreaterThanOrEqual'].text
|
1430
|
+
self.sunrise_less_than_or_equal = xml_element.elements['sunriseLessThanOrEqual'].text
|
1431
|
+
self.sunset_greater_than_or_equal = xml_element.elements['sunsetGreaterThanOrEqual'].text
|
1432
|
+
self.sunset_less_than_or_equal = xml_element.elements['sunsetLessThanOrEqual'].text
|
1433
|
+
end
|
1434
|
+
|
996
1435
|
end
|
997
1436
|
|
998
1437
|
class KalturaGenericDistributionProviderActionFilter < KalturaGenericDistributionProviderActionBaseFilter
|
999
1438
|
|
1439
|
+
|
1440
|
+
def from_xml(xml_element)
|
1441
|
+
super
|
1442
|
+
end
|
1443
|
+
|
1000
1444
|
end
|
1001
1445
|
|
1002
1446
|
class KalturaConfigurableDistributionProfileBaseFilter < KalturaDistributionProfileFilter
|
1003
1447
|
|
1448
|
+
|
1449
|
+
def from_xml(xml_element)
|
1450
|
+
super
|
1451
|
+
end
|
1452
|
+
|
1004
1453
|
end
|
1005
1454
|
|
1006
1455
|
class KalturaDistributionDisableJobData < KalturaDistributionUpdateJobData
|
1007
1456
|
|
1457
|
+
|
1458
|
+
def from_xml(xml_element)
|
1459
|
+
super
|
1460
|
+
end
|
1461
|
+
|
1008
1462
|
end
|
1009
1463
|
|
1010
1464
|
class KalturaDistributionEnableJobData < KalturaDistributionUpdateJobData
|
1011
1465
|
|
1466
|
+
|
1467
|
+
def from_xml(xml_element)
|
1468
|
+
super
|
1469
|
+
end
|
1470
|
+
|
1012
1471
|
end
|
1013
1472
|
|
1014
1473
|
class KalturaEntryDistributionFilter < KalturaEntryDistributionBaseFilter
|
1015
1474
|
|
1475
|
+
|
1476
|
+
def from_xml(xml_element)
|
1477
|
+
super
|
1478
|
+
end
|
1479
|
+
|
1016
1480
|
end
|
1017
1481
|
|
1018
1482
|
class KalturaGenericDistributionProfileBaseFilter < KalturaDistributionProfileFilter
|
1019
1483
|
|
1484
|
+
|
1485
|
+
def from_xml(xml_element)
|
1486
|
+
super
|
1487
|
+
end
|
1488
|
+
|
1020
1489
|
end
|
1021
1490
|
|
1022
1491
|
class KalturaGenericDistributionProviderBaseFilter < KalturaDistributionProviderFilter
|
@@ -1057,30 +1526,77 @@ module Kaltura
|
|
1057
1526
|
def status_equal=(val)
|
1058
1527
|
@status_equal = val.to_i
|
1059
1528
|
end
|
1529
|
+
|
1530
|
+
def from_xml(xml_element)
|
1531
|
+
super
|
1532
|
+
self.id_equal = xml_element.elements['idEqual'].text
|
1533
|
+
self.id_in = xml_element.elements['idIn'].text
|
1534
|
+
self.created_at_greater_than_or_equal = xml_element.elements['createdAtGreaterThanOrEqual'].text
|
1535
|
+
self.created_at_less_than_or_equal = xml_element.elements['createdAtLessThanOrEqual'].text
|
1536
|
+
self.updated_at_greater_than_or_equal = xml_element.elements['updatedAtGreaterThanOrEqual'].text
|
1537
|
+
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
1538
|
+
self.partner_id_equal = xml_element.elements['partnerIdEqual'].text
|
1539
|
+
self.partner_id_in = xml_element.elements['partnerIdIn'].text
|
1540
|
+
self.is_default_equal = xml_element.elements['isDefaultEqual'].text
|
1541
|
+
self.is_default_in = xml_element.elements['isDefaultIn'].text
|
1542
|
+
self.status_equal = xml_element.elements['statusEqual'].text
|
1543
|
+
self.status_in = xml_element.elements['statusIn'].text
|
1544
|
+
end
|
1545
|
+
|
1060
1546
|
end
|
1061
1547
|
|
1062
1548
|
class KalturaSyndicationDistributionProfileBaseFilter < KalturaDistributionProfileFilter
|
1063
1549
|
|
1550
|
+
|
1551
|
+
def from_xml(xml_element)
|
1552
|
+
super
|
1553
|
+
end
|
1554
|
+
|
1064
1555
|
end
|
1065
1556
|
|
1066
1557
|
class KalturaSyndicationDistributionProviderBaseFilter < KalturaDistributionProviderFilter
|
1067
1558
|
|
1559
|
+
|
1560
|
+
def from_xml(xml_element)
|
1561
|
+
super
|
1562
|
+
end
|
1563
|
+
|
1068
1564
|
end
|
1069
1565
|
|
1070
1566
|
class KalturaConfigurableDistributionProfileFilter < KalturaConfigurableDistributionProfileBaseFilter
|
1071
1567
|
|
1568
|
+
|
1569
|
+
def from_xml(xml_element)
|
1570
|
+
super
|
1571
|
+
end
|
1572
|
+
|
1072
1573
|
end
|
1073
1574
|
|
1074
1575
|
class KalturaGenericDistributionProfileFilter < KalturaGenericDistributionProfileBaseFilter
|
1075
1576
|
|
1577
|
+
|
1578
|
+
def from_xml(xml_element)
|
1579
|
+
super
|
1580
|
+
end
|
1581
|
+
|
1076
1582
|
end
|
1077
1583
|
|
1078
1584
|
class KalturaGenericDistributionProviderFilter < KalturaGenericDistributionProviderBaseFilter
|
1079
1585
|
|
1586
|
+
|
1587
|
+
def from_xml(xml_element)
|
1588
|
+
super
|
1589
|
+
end
|
1590
|
+
|
1080
1591
|
end
|
1081
1592
|
|
1082
1593
|
class KalturaSyndicationDistributionProfileFilter < KalturaSyndicationDistributionProfileBaseFilter
|
1083
1594
|
|
1595
|
+
|
1596
|
+
def from_xml(xml_element)
|
1597
|
+
super
|
1598
|
+
end
|
1599
|
+
|
1084
1600
|
end
|
1085
1601
|
|
1086
1602
|
|
@@ -1095,86 +1611,86 @@ module Kaltura
|
|
1095
1611
|
#
|
1096
1612
|
def add(distribution_profile)
|
1097
1613
|
kparams = {}
|
1098
|
-
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
1099
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'add', kparams)
|
1614
|
+
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
1615
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'add', 'KalturaDistributionProfile', kparams)
|
1100
1616
|
if (client.is_multirequest)
|
1101
|
-
return nil
|
1617
|
+
return nil
|
1102
1618
|
end
|
1103
|
-
return client.do_queue()
|
1619
|
+
return client.do_queue()
|
1104
1620
|
end
|
1105
1621
|
|
1106
1622
|
# Get Distribution Profile by id
|
1107
1623
|
#
|
1108
1624
|
def get(id)
|
1109
1625
|
kparams = {}
|
1110
|
-
client.add_param(kparams, 'id', id)
|
1111
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'get', kparams)
|
1626
|
+
client.add_param(kparams, 'id', id)
|
1627
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'get', 'KalturaDistributionProfile', kparams)
|
1112
1628
|
if (client.is_multirequest)
|
1113
|
-
return nil
|
1629
|
+
return nil
|
1114
1630
|
end
|
1115
|
-
return client.do_queue()
|
1631
|
+
return client.do_queue()
|
1116
1632
|
end
|
1117
1633
|
|
1118
1634
|
# Update Distribution Profile by id
|
1119
1635
|
#
|
1120
1636
|
def update(id, distribution_profile)
|
1121
1637
|
kparams = {}
|
1122
|
-
client.add_param(kparams, 'id', id)
|
1123
|
-
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
1124
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'update', kparams)
|
1638
|
+
client.add_param(kparams, 'id', id)
|
1639
|
+
client.add_param(kparams, 'distributionProfile', distribution_profile)
|
1640
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'update', 'KalturaDistributionProfile', kparams)
|
1125
1641
|
if (client.is_multirequest)
|
1126
|
-
return nil
|
1642
|
+
return nil
|
1127
1643
|
end
|
1128
|
-
return client.do_queue()
|
1644
|
+
return client.do_queue()
|
1129
1645
|
end
|
1130
1646
|
|
1131
1647
|
# Update Distribution Profile status by id
|
1132
1648
|
#
|
1133
1649
|
def update_status(id, status)
|
1134
1650
|
kparams = {}
|
1135
|
-
client.add_param(kparams, 'id', id)
|
1136
|
-
client.add_param(kparams, 'status', status)
|
1137
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'updateStatus', kparams)
|
1651
|
+
client.add_param(kparams, 'id', id)
|
1652
|
+
client.add_param(kparams, 'status', status)
|
1653
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'updateStatus', 'KalturaDistributionProfile', kparams)
|
1138
1654
|
if (client.is_multirequest)
|
1139
|
-
return nil
|
1655
|
+
return nil
|
1140
1656
|
end
|
1141
|
-
return client.do_queue()
|
1657
|
+
return client.do_queue()
|
1142
1658
|
end
|
1143
1659
|
|
1144
1660
|
# Delete Distribution Profile by id
|
1145
1661
|
#
|
1146
1662
|
def delete(id)
|
1147
1663
|
kparams = {}
|
1148
|
-
client.add_param(kparams, 'id', id)
|
1149
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'delete', kparams)
|
1664
|
+
client.add_param(kparams, 'id', id)
|
1665
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'delete', '', kparams)
|
1150
1666
|
if (client.is_multirequest)
|
1151
|
-
return nil
|
1667
|
+
return nil
|
1152
1668
|
end
|
1153
|
-
return client.do_queue()
|
1669
|
+
return client.do_queue()
|
1154
1670
|
end
|
1155
1671
|
|
1156
1672
|
# List all distribution providers
|
1157
1673
|
#
|
1158
1674
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1159
1675
|
kparams = {}
|
1160
|
-
client.add_param(kparams, 'filter', filter)
|
1161
|
-
client.add_param(kparams, 'pager', pager)
|
1162
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'list', kparams)
|
1676
|
+
client.add_param(kparams, 'filter', filter)
|
1677
|
+
client.add_param(kparams, 'pager', pager)
|
1678
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'list', 'KalturaDistributionProfileListResponse', kparams)
|
1163
1679
|
if (client.is_multirequest)
|
1164
|
-
return nil
|
1680
|
+
return nil
|
1165
1681
|
end
|
1166
|
-
return client.do_queue()
|
1682
|
+
return client.do_queue()
|
1167
1683
|
end
|
1168
1684
|
|
1169
1685
|
def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1170
1686
|
kparams = {}
|
1171
|
-
client.add_param(kparams, 'filter', filter)
|
1172
|
-
client.add_param(kparams, 'pager', pager)
|
1173
|
-
client.queue_service_action_call('contentdistribution_distributionprofile', 'listByPartner', kparams)
|
1687
|
+
client.add_param(kparams, 'filter', filter)
|
1688
|
+
client.add_param(kparams, 'pager', pager)
|
1689
|
+
client.queue_service_action_call('contentdistribution_distributionprofile', 'listByPartner', 'KalturaDistributionProfileListResponse', kparams)
|
1174
1690
|
if (client.is_multirequest)
|
1175
|
-
return nil
|
1691
|
+
return nil
|
1176
1692
|
end
|
1177
|
-
return client.do_queue()
|
1693
|
+
return client.do_queue()
|
1178
1694
|
end
|
1179
1695
|
end
|
1180
1696
|
|
@@ -1189,155 +1705,155 @@ module Kaltura
|
|
1189
1705
|
#
|
1190
1706
|
def add(entry_distribution)
|
1191
1707
|
kparams = {}
|
1192
|
-
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
1193
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'add', kparams)
|
1708
|
+
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
1709
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'add', 'KalturaEntryDistribution', kparams)
|
1194
1710
|
if (client.is_multirequest)
|
1195
|
-
return nil
|
1711
|
+
return nil
|
1196
1712
|
end
|
1197
|
-
return client.do_queue()
|
1713
|
+
return client.do_queue()
|
1198
1714
|
end
|
1199
1715
|
|
1200
1716
|
# Get Entry Distribution by id
|
1201
1717
|
#
|
1202
1718
|
def get(id)
|
1203
1719
|
kparams = {}
|
1204
|
-
client.add_param(kparams, 'id', id)
|
1205
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'get', kparams)
|
1720
|
+
client.add_param(kparams, 'id', id)
|
1721
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'get', 'KalturaEntryDistribution', kparams)
|
1206
1722
|
if (client.is_multirequest)
|
1207
|
-
return nil
|
1723
|
+
return nil
|
1208
1724
|
end
|
1209
|
-
return client.do_queue()
|
1725
|
+
return client.do_queue()
|
1210
1726
|
end
|
1211
1727
|
|
1212
1728
|
# Validates Entry Distribution by id for submission
|
1213
1729
|
#
|
1214
1730
|
def validate(id)
|
1215
1731
|
kparams = {}
|
1216
|
-
client.add_param(kparams, 'id', id)
|
1217
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', kparams)
|
1732
|
+
client.add_param(kparams, 'id', id)
|
1733
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', 'KalturaEntryDistribution', kparams)
|
1218
1734
|
if (client.is_multirequest)
|
1219
|
-
return nil
|
1735
|
+
return nil
|
1220
1736
|
end
|
1221
|
-
return client.do_queue()
|
1737
|
+
return client.do_queue()
|
1222
1738
|
end
|
1223
1739
|
|
1224
1740
|
# Update Entry Distribution by id
|
1225
1741
|
#
|
1226
1742
|
def update(id, entry_distribution)
|
1227
1743
|
kparams = {}
|
1228
|
-
client.add_param(kparams, 'id', id)
|
1229
|
-
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
1230
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'update', kparams)
|
1744
|
+
client.add_param(kparams, 'id', id)
|
1745
|
+
client.add_param(kparams, 'entryDistribution', entry_distribution)
|
1746
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'update', 'KalturaEntryDistribution', kparams)
|
1231
1747
|
if (client.is_multirequest)
|
1232
|
-
return nil
|
1748
|
+
return nil
|
1233
1749
|
end
|
1234
|
-
return client.do_queue()
|
1750
|
+
return client.do_queue()
|
1235
1751
|
end
|
1236
1752
|
|
1237
1753
|
# Delete Entry Distribution by id
|
1238
1754
|
#
|
1239
1755
|
def delete(id)
|
1240
1756
|
kparams = {}
|
1241
|
-
client.add_param(kparams, 'id', id)
|
1242
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'delete', kparams)
|
1757
|
+
client.add_param(kparams, 'id', id)
|
1758
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'delete', '', kparams)
|
1243
1759
|
if (client.is_multirequest)
|
1244
|
-
return nil
|
1760
|
+
return nil
|
1245
1761
|
end
|
1246
|
-
return client.do_queue()
|
1762
|
+
return client.do_queue()
|
1247
1763
|
end
|
1248
1764
|
|
1249
1765
|
# List all distribution providers
|
1250
1766
|
#
|
1251
1767
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1252
1768
|
kparams = {}
|
1253
|
-
client.add_param(kparams, 'filter', filter)
|
1254
|
-
client.add_param(kparams, 'pager', pager)
|
1255
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'list', kparams)
|
1769
|
+
client.add_param(kparams, 'filter', filter)
|
1770
|
+
client.add_param(kparams, 'pager', pager)
|
1771
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'list', 'KalturaEntryDistributionListResponse', kparams)
|
1256
1772
|
if (client.is_multirequest)
|
1257
|
-
return nil
|
1773
|
+
return nil
|
1258
1774
|
end
|
1259
|
-
return client.do_queue()
|
1775
|
+
return client.do_queue()
|
1260
1776
|
end
|
1261
1777
|
|
1262
1778
|
# Submits Entry Distribution to the remote destination
|
1263
1779
|
#
|
1264
1780
|
def submit_add(id, submit_when_ready=false)
|
1265
1781
|
kparams = {}
|
1266
|
-
client.add_param(kparams, 'id', id)
|
1267
|
-
client.add_param(kparams, 'submitWhenReady', submit_when_ready)
|
1268
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitAdd', kparams)
|
1782
|
+
client.add_param(kparams, 'id', id)
|
1783
|
+
client.add_param(kparams, 'submitWhenReady', submit_when_ready)
|
1784
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitAdd', 'KalturaEntryDistribution', kparams)
|
1269
1785
|
if (client.is_multirequest)
|
1270
|
-
return nil
|
1786
|
+
return nil
|
1271
1787
|
end
|
1272
|
-
return client.do_queue()
|
1788
|
+
return client.do_queue()
|
1273
1789
|
end
|
1274
1790
|
|
1275
1791
|
# Submits Entry Distribution changes to the remote destination
|
1276
1792
|
#
|
1277
1793
|
def submit_update(id)
|
1278
1794
|
kparams = {}
|
1279
|
-
client.add_param(kparams, 'id', id)
|
1280
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', kparams)
|
1795
|
+
client.add_param(kparams, 'id', id)
|
1796
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', 'KalturaEntryDistribution', kparams)
|
1281
1797
|
if (client.is_multirequest)
|
1282
|
-
return nil
|
1798
|
+
return nil
|
1283
1799
|
end
|
1284
|
-
return client.do_queue()
|
1800
|
+
return client.do_queue()
|
1285
1801
|
end
|
1286
1802
|
|
1287
1803
|
# Submits Entry Distribution report request
|
1288
1804
|
#
|
1289
1805
|
def submit_fetch_report(id)
|
1290
1806
|
kparams = {}
|
1291
|
-
client.add_param(kparams, 'id', id)
|
1292
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitFetchReport', kparams)
|
1807
|
+
client.add_param(kparams, 'id', id)
|
1808
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitFetchReport', 'KalturaEntryDistribution', kparams)
|
1293
1809
|
if (client.is_multirequest)
|
1294
|
-
return nil
|
1810
|
+
return nil
|
1295
1811
|
end
|
1296
|
-
return client.do_queue()
|
1812
|
+
return client.do_queue()
|
1297
1813
|
end
|
1298
1814
|
|
1299
1815
|
# Deletes Entry Distribution from the remote destination
|
1300
1816
|
#
|
1301
1817
|
def submit_delete(id)
|
1302
1818
|
kparams = {}
|
1303
|
-
client.add_param(kparams, 'id', id)
|
1304
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', kparams)
|
1819
|
+
client.add_param(kparams, 'id', id)
|
1820
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', 'KalturaEntryDistribution', kparams)
|
1305
1821
|
if (client.is_multirequest)
|
1306
|
-
return nil
|
1822
|
+
return nil
|
1307
1823
|
end
|
1308
|
-
return client.do_queue()
|
1824
|
+
return client.do_queue()
|
1309
1825
|
end
|
1310
1826
|
|
1311
1827
|
# Retries last submit action
|
1312
1828
|
#
|
1313
1829
|
def retry_submit(id)
|
1314
1830
|
kparams = {}
|
1315
|
-
client.add_param(kparams, 'id', id)
|
1316
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', kparams)
|
1831
|
+
client.add_param(kparams, 'id', id)
|
1832
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', 'KalturaEntryDistribution', kparams)
|
1317
1833
|
if (client.is_multirequest)
|
1318
|
-
return nil
|
1834
|
+
return nil
|
1319
1835
|
end
|
1320
|
-
return client.do_queue()
|
1836
|
+
return client.do_queue()
|
1321
1837
|
end
|
1322
1838
|
|
1323
1839
|
# Serves entry distribution sent data
|
1324
1840
|
#
|
1325
1841
|
def serve_sent_data(id, action_type)
|
1326
1842
|
kparams = {}
|
1327
|
-
client.add_param(kparams, 'id', id)
|
1328
|
-
client.add_param(kparams, 'actionType', action_type)
|
1329
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveSentData', kparams)
|
1330
|
-
return client.get_serve_url()
|
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()
|
1331
1847
|
end
|
1332
1848
|
|
1333
1849
|
# Serves entry distribution returned data
|
1334
1850
|
#
|
1335
1851
|
def serve_returned_data(id, action_type)
|
1336
1852
|
kparams = {}
|
1337
|
-
client.add_param(kparams, 'id', id)
|
1338
|
-
client.add_param(kparams, 'actionType', action_type)
|
1339
|
-
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveReturnedData', kparams)
|
1340
|
-
return client.get_serve_url()
|
1853
|
+
client.add_param(kparams, 'id', id)
|
1854
|
+
client.add_param(kparams, 'actionType', action_type)
|
1855
|
+
client.queue_service_action_call('contentdistribution_entrydistribution', 'serveReturnedData', 'file', kparams)
|
1856
|
+
return client.get_serve_url()
|
1341
1857
|
end
|
1342
1858
|
end
|
1343
1859
|
|
@@ -1352,13 +1868,13 @@ module Kaltura
|
|
1352
1868
|
#
|
1353
1869
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1354
1870
|
kparams = {}
|
1355
|
-
client.add_param(kparams, 'filter', filter)
|
1356
|
-
client.add_param(kparams, 'pager', pager)
|
1357
|
-
client.queue_service_action_call('contentdistribution_distributionprovider', 'list', kparams)
|
1871
|
+
client.add_param(kparams, 'filter', filter)
|
1872
|
+
client.add_param(kparams, 'pager', pager)
|
1873
|
+
client.queue_service_action_call('contentdistribution_distributionprovider', 'list', 'KalturaDistributionProviderListResponse', kparams)
|
1358
1874
|
if (client.is_multirequest)
|
1359
|
-
return nil
|
1875
|
+
return nil
|
1360
1876
|
end
|
1361
|
-
return client.do_queue()
|
1877
|
+
return client.do_queue()
|
1362
1878
|
end
|
1363
1879
|
end
|
1364
1880
|
|
@@ -1373,62 +1889,62 @@ module Kaltura
|
|
1373
1889
|
#
|
1374
1890
|
def add(generic_distribution_provider)
|
1375
1891
|
kparams = {}
|
1376
|
-
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
1377
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'add', kparams)
|
1892
|
+
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
1893
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'add', 'KalturaGenericDistributionProvider', kparams)
|
1378
1894
|
if (client.is_multirequest)
|
1379
|
-
return nil
|
1895
|
+
return nil
|
1380
1896
|
end
|
1381
|
-
return client.do_queue()
|
1897
|
+
return client.do_queue()
|
1382
1898
|
end
|
1383
1899
|
|
1384
1900
|
# Get Generic Distribution Provider by id
|
1385
1901
|
#
|
1386
1902
|
def get(id)
|
1387
1903
|
kparams = {}
|
1388
|
-
client.add_param(kparams, 'id', id)
|
1389
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', kparams)
|
1904
|
+
client.add_param(kparams, 'id', id)
|
1905
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', 'KalturaGenericDistributionProvider', kparams)
|
1390
1906
|
if (client.is_multirequest)
|
1391
|
-
return nil
|
1907
|
+
return nil
|
1392
1908
|
end
|
1393
|
-
return client.do_queue()
|
1909
|
+
return client.do_queue()
|
1394
1910
|
end
|
1395
1911
|
|
1396
1912
|
# Update Generic Distribution Provider by id
|
1397
1913
|
#
|
1398
1914
|
def update(id, generic_distribution_provider)
|
1399
1915
|
kparams = {}
|
1400
|
-
client.add_param(kparams, 'id', id)
|
1401
|
-
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
1402
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', kparams)
|
1916
|
+
client.add_param(kparams, 'id', id)
|
1917
|
+
client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider)
|
1918
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', 'KalturaGenericDistributionProvider', kparams)
|
1403
1919
|
if (client.is_multirequest)
|
1404
|
-
return nil
|
1920
|
+
return nil
|
1405
1921
|
end
|
1406
|
-
return client.do_queue()
|
1922
|
+
return client.do_queue()
|
1407
1923
|
end
|
1408
1924
|
|
1409
1925
|
# Delete Generic Distribution Provider by id
|
1410
1926
|
#
|
1411
1927
|
def delete(id)
|
1412
1928
|
kparams = {}
|
1413
|
-
client.add_param(kparams, 'id', id)
|
1414
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'delete', kparams)
|
1929
|
+
client.add_param(kparams, 'id', id)
|
1930
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'delete', '', kparams)
|
1415
1931
|
if (client.is_multirequest)
|
1416
|
-
return nil
|
1932
|
+
return nil
|
1417
1933
|
end
|
1418
|
-
return client.do_queue()
|
1934
|
+
return client.do_queue()
|
1419
1935
|
end
|
1420
1936
|
|
1421
1937
|
# List all distribution providers
|
1422
1938
|
#
|
1423
1939
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1424
1940
|
kparams = {}
|
1425
|
-
client.add_param(kparams, 'filter', filter)
|
1426
|
-
client.add_param(kparams, 'pager', pager)
|
1427
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'list', kparams)
|
1941
|
+
client.add_param(kparams, 'filter', filter)
|
1942
|
+
client.add_param(kparams, 'pager', pager)
|
1943
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'list', 'KalturaGenericDistributionProviderListResponse', kparams)
|
1428
1944
|
if (client.is_multirequest)
|
1429
|
-
return nil
|
1945
|
+
return nil
|
1430
1946
|
end
|
1431
|
-
return client.do_queue()
|
1947
|
+
return client.do_queue()
|
1432
1948
|
end
|
1433
1949
|
end
|
1434
1950
|
|
@@ -1443,192 +1959,183 @@ module Kaltura
|
|
1443
1959
|
#
|
1444
1960
|
def add(generic_distribution_provider_action)
|
1445
1961
|
kparams = {}
|
1446
|
-
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
1447
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'add', kparams)
|
1962
|
+
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
1963
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'add', 'KalturaGenericDistributionProviderAction', kparams)
|
1448
1964
|
if (client.is_multirequest)
|
1449
|
-
return nil
|
1965
|
+
return nil
|
1450
1966
|
end
|
1451
|
-
return client.do_queue()
|
1967
|
+
return client.do_queue()
|
1452
1968
|
end
|
1453
1969
|
|
1454
1970
|
# Add MRSS transform file to generic distribution provider action
|
1455
1971
|
#
|
1456
1972
|
def add_mrss_transform(id, xsl_data)
|
1457
1973
|
kparams = {}
|
1458
|
-
|
1459
|
-
client.add_param(kparams, '
|
1460
|
-
|
1461
|
-
client.add_param(kparams, 'xslData', xsl_data);
|
1462
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransform', kparams);
|
1974
|
+
client.add_param(kparams, 'id', id)
|
1975
|
+
client.add_param(kparams, 'xslData', xsl_data)
|
1976
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransform', 'KalturaGenericDistributionProviderAction', kparams)
|
1463
1977
|
if (client.is_multirequest)
|
1464
|
-
return nil
|
1978
|
+
return nil
|
1465
1979
|
end
|
1466
|
-
return client.do_queue()
|
1980
|
+
return client.do_queue()
|
1467
1981
|
end
|
1468
1982
|
|
1469
1983
|
# Add MRSS transform file to generic distribution provider action
|
1470
1984
|
#
|
1471
1985
|
def add_mrss_transform_from_file(id, xsl_file)
|
1472
1986
|
kparams = {}
|
1473
|
-
|
1474
|
-
client.add_param(kparams, 'id', id)
|
1475
|
-
|
1476
|
-
client.
|
1477
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransformFromFile', kparams);
|
1987
|
+
kfiles = {}
|
1988
|
+
client.add_param(kparams, 'id', id)
|
1989
|
+
client.add_param(kfiles, 'xslFile', xsl_file)
|
1990
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransformFromFile', 'KalturaGenericDistributionProviderAction', kparams, kfiles)
|
1478
1991
|
if (client.is_multirequest)
|
1479
|
-
return nil
|
1992
|
+
return nil
|
1480
1993
|
end
|
1481
|
-
return client.do_queue()
|
1994
|
+
return client.do_queue()
|
1482
1995
|
end
|
1483
1996
|
|
1484
1997
|
# Add MRSS validate file to generic distribution provider action
|
1485
1998
|
#
|
1486
1999
|
def add_mrss_validate(id, xsd_data)
|
1487
2000
|
kparams = {}
|
1488
|
-
|
1489
|
-
client.add_param(kparams, '
|
1490
|
-
|
1491
|
-
client.add_param(kparams, 'xsdData', xsd_data);
|
1492
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidate', kparams);
|
2001
|
+
client.add_param(kparams, 'id', id)
|
2002
|
+
client.add_param(kparams, 'xsdData', xsd_data)
|
2003
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidate', 'KalturaGenericDistributionProviderAction', kparams)
|
1493
2004
|
if (client.is_multirequest)
|
1494
|
-
return nil
|
2005
|
+
return nil
|
1495
2006
|
end
|
1496
|
-
return client.do_queue()
|
2007
|
+
return client.do_queue()
|
1497
2008
|
end
|
1498
2009
|
|
1499
2010
|
# Add MRSS validate file to generic distribution provider action
|
1500
2011
|
#
|
1501
2012
|
def add_mrss_validate_from_file(id, xsd_file)
|
1502
2013
|
kparams = {}
|
1503
|
-
|
1504
|
-
client.add_param(kparams, 'id', id)
|
1505
|
-
|
1506
|
-
client.
|
1507
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidateFromFile', kparams);
|
2014
|
+
kfiles = {}
|
2015
|
+
client.add_param(kparams, 'id', id)
|
2016
|
+
client.add_param(kfiles, 'xsdFile', xsd_file)
|
2017
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidateFromFile', 'KalturaGenericDistributionProviderAction', kparams, kfiles)
|
1508
2018
|
if (client.is_multirequest)
|
1509
|
-
return nil
|
2019
|
+
return nil
|
1510
2020
|
end
|
1511
|
-
return client.do_queue()
|
2021
|
+
return client.do_queue()
|
1512
2022
|
end
|
1513
2023
|
|
1514
2024
|
# Add results transform file to generic distribution provider action
|
1515
2025
|
#
|
1516
2026
|
def add_results_transform(id, transform_data)
|
1517
2027
|
kparams = {}
|
1518
|
-
|
1519
|
-
client.add_param(kparams, '
|
1520
|
-
|
1521
|
-
client.add_param(kparams, 'transformData', transform_data);
|
1522
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransform', kparams);
|
2028
|
+
client.add_param(kparams, 'id', id)
|
2029
|
+
client.add_param(kparams, 'transformData', transform_data)
|
2030
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransform', 'KalturaGenericDistributionProviderAction', kparams)
|
1523
2031
|
if (client.is_multirequest)
|
1524
|
-
return nil
|
2032
|
+
return nil
|
1525
2033
|
end
|
1526
|
-
return client.do_queue()
|
2034
|
+
return client.do_queue()
|
1527
2035
|
end
|
1528
2036
|
|
1529
2037
|
# Add MRSS transform file to generic distribution provider action
|
1530
2038
|
#
|
1531
2039
|
def add_results_transform_from_file(id, transform_file)
|
1532
2040
|
kparams = {}
|
1533
|
-
|
1534
|
-
client.add_param(kparams, 'id', id)
|
1535
|
-
|
1536
|
-
client.
|
1537
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransformFromFile', kparams);
|
2041
|
+
kfiles = {}
|
2042
|
+
client.add_param(kparams, 'id', id)
|
2043
|
+
client.add_param(kfiles, 'transformFile', transform_file)
|
2044
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransformFromFile', 'KalturaGenericDistributionProviderAction', kparams, kfiles)
|
1538
2045
|
if (client.is_multirequest)
|
1539
|
-
return nil
|
2046
|
+
return nil
|
1540
2047
|
end
|
1541
|
-
return client.do_queue()
|
2048
|
+
return client.do_queue()
|
1542
2049
|
end
|
1543
2050
|
|
1544
2051
|
# Get Generic Distribution Provider Action by id
|
1545
2052
|
#
|
1546
2053
|
def get(id)
|
1547
2054
|
kparams = {}
|
1548
|
-
client.add_param(kparams, 'id', id)
|
1549
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'get', kparams)
|
2055
|
+
client.add_param(kparams, 'id', id)
|
2056
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'get', 'KalturaGenericDistributionProviderAction', kparams)
|
1550
2057
|
if (client.is_multirequest)
|
1551
|
-
return nil
|
2058
|
+
return nil
|
1552
2059
|
end
|
1553
|
-
return client.do_queue()
|
2060
|
+
return client.do_queue()
|
1554
2061
|
end
|
1555
2062
|
|
1556
2063
|
# Get Generic Distribution Provider Action by provider id
|
1557
2064
|
#
|
1558
2065
|
def get_by_provider_id(generic_distribution_provider_id, action_type)
|
1559
2066
|
kparams = {}
|
1560
|
-
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
1561
|
-
client.add_param(kparams, 'actionType', action_type)
|
1562
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'getByProviderId', kparams)
|
2067
|
+
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2068
|
+
client.add_param(kparams, 'actionType', action_type)
|
2069
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'getByProviderId', 'KalturaGenericDistributionProviderAction', kparams)
|
1563
2070
|
if (client.is_multirequest)
|
1564
|
-
return nil
|
2071
|
+
return nil
|
1565
2072
|
end
|
1566
|
-
return client.do_queue()
|
2073
|
+
return client.do_queue()
|
1567
2074
|
end
|
1568
2075
|
|
1569
2076
|
# Update Generic Distribution Provider Action by provider id
|
1570
2077
|
#
|
1571
2078
|
def update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action)
|
1572
2079
|
kparams = {}
|
1573
|
-
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
1574
|
-
client.add_param(kparams, 'actionType', action_type)
|
1575
|
-
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
1576
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', kparams)
|
2080
|
+
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2081
|
+
client.add_param(kparams, 'actionType', action_type)
|
2082
|
+
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
2083
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', 'KalturaGenericDistributionProviderAction', kparams)
|
1577
2084
|
if (client.is_multirequest)
|
1578
|
-
return nil
|
2085
|
+
return nil
|
1579
2086
|
end
|
1580
|
-
return client.do_queue()
|
2087
|
+
return client.do_queue()
|
1581
2088
|
end
|
1582
2089
|
|
1583
2090
|
# Update Generic Distribution Provider Action by id
|
1584
2091
|
#
|
1585
2092
|
def update(id, generic_distribution_provider_action)
|
1586
2093
|
kparams = {}
|
1587
|
-
client.add_param(kparams, 'id', id)
|
1588
|
-
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
1589
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'update', kparams)
|
2094
|
+
client.add_param(kparams, 'id', id)
|
2095
|
+
client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action)
|
2096
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'update', 'KalturaGenericDistributionProviderAction', kparams)
|
1590
2097
|
if (client.is_multirequest)
|
1591
|
-
return nil
|
2098
|
+
return nil
|
1592
2099
|
end
|
1593
|
-
return client.do_queue()
|
2100
|
+
return client.do_queue()
|
1594
2101
|
end
|
1595
2102
|
|
1596
2103
|
# Delete Generic Distribution Provider Action by id
|
1597
2104
|
#
|
1598
2105
|
def delete(id)
|
1599
2106
|
kparams = {}
|
1600
|
-
client.add_param(kparams, 'id', id)
|
1601
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'delete', kparams)
|
2107
|
+
client.add_param(kparams, 'id', id)
|
2108
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'delete', '', kparams)
|
1602
2109
|
if (client.is_multirequest)
|
1603
|
-
return nil
|
2110
|
+
return nil
|
1604
2111
|
end
|
1605
|
-
return client.do_queue()
|
2112
|
+
return client.do_queue()
|
1606
2113
|
end
|
1607
2114
|
|
1608
2115
|
# Delete Generic Distribution Provider Action by provider id
|
1609
2116
|
#
|
1610
2117
|
def delete_by_provider_id(generic_distribution_provider_id, action_type)
|
1611
2118
|
kparams = {}
|
1612
|
-
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
1613
|
-
client.add_param(kparams, 'actionType', action_type)
|
1614
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'deleteByProviderId', kparams)
|
2119
|
+
client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id)
|
2120
|
+
client.add_param(kparams, 'actionType', action_type)
|
2121
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'deleteByProviderId', '', kparams)
|
1615
2122
|
if (client.is_multirequest)
|
1616
|
-
return nil
|
2123
|
+
return nil
|
1617
2124
|
end
|
1618
|
-
return client.do_queue()
|
2125
|
+
return client.do_queue()
|
1619
2126
|
end
|
1620
2127
|
|
1621
2128
|
# List all distribution providers
|
1622
2129
|
#
|
1623
2130
|
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
1624
2131
|
kparams = {}
|
1625
|
-
client.add_param(kparams, 'filter', filter)
|
1626
|
-
client.add_param(kparams, 'pager', pager)
|
1627
|
-
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'list', kparams)
|
2132
|
+
client.add_param(kparams, 'filter', filter)
|
2133
|
+
client.add_param(kparams, 'pager', pager)
|
2134
|
+
client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'list', 'KalturaGenericDistributionProviderActionListResponse', kparams)
|
1628
2135
|
if (client.is_multirequest)
|
1629
|
-
return nil
|
2136
|
+
return nil
|
1630
2137
|
end
|
1631
|
-
return client.do_queue()
|
2138
|
+
return client.do_queue()
|
1632
2139
|
end
|
1633
2140
|
end
|
1634
2141
|
|
@@ -1640,6 +2147,7 @@ module Kaltura
|
|
1640
2147
|
end
|
1641
2148
|
return @distribution_profile_service
|
1642
2149
|
end
|
2150
|
+
|
1643
2151
|
attr_reader :entry_distribution_service
|
1644
2152
|
def entry_distribution_service
|
1645
2153
|
if (@entry_distribution_service == nil)
|
@@ -1647,6 +2155,7 @@ module Kaltura
|
|
1647
2155
|
end
|
1648
2156
|
return @entry_distribution_service
|
1649
2157
|
end
|
2158
|
+
|
1650
2159
|
attr_reader :distribution_provider_service
|
1651
2160
|
def distribution_provider_service
|
1652
2161
|
if (@distribution_provider_service == nil)
|
@@ -1654,6 +2163,7 @@ module Kaltura
|
|
1654
2163
|
end
|
1655
2164
|
return @distribution_provider_service
|
1656
2165
|
end
|
2166
|
+
|
1657
2167
|
attr_reader :generic_distribution_provider_service
|
1658
2168
|
def generic_distribution_provider_service
|
1659
2169
|
if (@generic_distribution_provider_service == nil)
|
@@ -1661,6 +2171,7 @@ module Kaltura
|
|
1661
2171
|
end
|
1662
2172
|
return @generic_distribution_provider_service
|
1663
2173
|
end
|
2174
|
+
|
1664
2175
|
attr_reader :generic_distribution_provider_action_service
|
1665
2176
|
def generic_distribution_provider_action_service
|
1666
2177
|
if (@generic_distribution_provider_action_service == nil)
|
@@ -1668,6 +2179,7 @@ module Kaltura
|
|
1668
2179
|
end
|
1669
2180
|
return @generic_distribution_provider_action_service
|
1670
2181
|
end
|
2182
|
+
|
1671
2183
|
end
|
1672
2184
|
|
1673
2185
|
end
|