kaltura-client 15.20.0 → 16.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README +1 -1
- data/lib/kaltura_client.rb +54 -3
- data/lib/kaltura_enums.rb +38 -0
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +1 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +13 -0
- data/lib/kaltura_plugins/kaltura_capture_space_client_plugin.rb +36 -0
- data/lib/kaltura_plugins/kaltura_conference_client_plugin.rb +152 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1 -0
- data/lib/kaltura_plugins/kaltura_cross_kaltura_distribution_client_plugin.rb +5 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +12 -0
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +12 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +5 -0
- data/lib/kaltura_plugins/kaltura_interactivity_client_plugin.rb +280 -0
- data/lib/kaltura_plugins/kaltura_live_cluster_client_plugin.rb +60 -0
- data/lib/kaltura_plugins/kaltura_podcast_distribution_client_plugin.rb +140 -0
- data/lib/kaltura_plugins/kaltura_rating_client_plugin.rb +165 -0
- data/lib/kaltura_plugins/kaltura_reach_client_plugin.rb +115 -24
- data/lib/kaltura_plugins/kaltura_registration_client_plugin.rb +51 -0
- data/lib/kaltura_plugins/kaltura_sip_client_plugin.rb +167 -0
- data/lib/kaltura_plugins/kaltura_sso_client_plugin.rb +282 -0
- data/lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb +63 -0
- data/lib/kaltura_plugins/kaltura_vendor_client_plugin.rb +180 -0
- data/lib/kaltura_types.rb +216 -6
- metadata +12 -1
@@ -161,6 +161,7 @@ module Kaltura
|
|
161
161
|
IDETIC = "ideticDistribution.IDETIC"
|
162
162
|
METRO_PCS = "metroPcsDistribution.METRO_PCS"
|
163
163
|
MSN = "msnDistribution.MSN"
|
164
|
+
PODCAST = "podcastDistribution.PODCAST"
|
164
165
|
QUICKPLAY = "quickPlayDistribution.QUICKPLAY"
|
165
166
|
UNICORN = "unicornDistribution.UNICORN"
|
166
167
|
YAHOO = "yahooDistribution.YAHOO"
|
@@ -58,6 +58,8 @@ module Kaltura
|
|
58
58
|
attr_accessor :distributed_metadata
|
59
59
|
# Key-value array where the keys are IDs of distributed caption assets in the source account and the values are the matching IDs in the target account
|
60
60
|
attr_accessor :distributed_caption_assets
|
61
|
+
# Key-value array where the keys are IDs of distributed fileassets in the source account and the values are the matching IDs in the target account
|
62
|
+
attr_accessor :distributed_file_assets
|
61
63
|
# Key-value array where the keys are IDs of distributed caption assets in the source account and the values are the matching IDs in the target account
|
62
64
|
attr_accessor :distributed_attachment_assets
|
63
65
|
# Key-value array where the keys are IDs of distributed cue points in the source account and the values are the matching IDs in the target account
|
@@ -82,6 +84,9 @@ module Kaltura
|
|
82
84
|
if xml_element.elements['distributedCaptionAssets'] != nil
|
83
85
|
self.distributed_caption_assets = xml_element.elements['distributedCaptionAssets'].text
|
84
86
|
end
|
87
|
+
if xml_element.elements['distributedFileAssets'] != nil
|
88
|
+
self.distributed_file_assets = xml_element.elements['distributedFileAssets'].text
|
89
|
+
end
|
85
90
|
if xml_element.elements['distributedAttachmentAssets'] != nil
|
86
91
|
self.distributed_attachment_assets = xml_element.elements['distributedAttachmentAssets'].text
|
87
92
|
end
|
@@ -1263,6 +1263,18 @@ module Kaltura
|
|
1263
1263
|
end
|
1264
1264
|
return client.do_queue()
|
1265
1265
|
end
|
1266
|
+
|
1267
|
+
# @return []
|
1268
|
+
def update_status(drop_folder_id, status)
|
1269
|
+
kparams = {}
|
1270
|
+
client.add_param(kparams, 'dropFolderId', drop_folder_id)
|
1271
|
+
client.add_param(kparams, 'status', status)
|
1272
|
+
client.queue_service_action_call('dropfolder_dropfolder', 'updateStatus', '', kparams)
|
1273
|
+
if (client.is_multirequest)
|
1274
|
+
return nil
|
1275
|
+
end
|
1276
|
+
return client.do_queue()
|
1277
|
+
end
|
1266
1278
|
end
|
1267
1279
|
|
1268
1280
|
# DropFolderFile service lets you create and manage drop folder files
|
@@ -84,6 +84,9 @@ module Kaltura
|
|
84
84
|
attr_accessor :is_current_dc
|
85
85
|
attr_accessor :is_dir
|
86
86
|
attr_accessor :original_id
|
87
|
+
attr_accessor :src_path
|
88
|
+
attr_accessor :src_enc_key
|
89
|
+
attr_accessor :storage_class
|
87
90
|
|
88
91
|
def id=(val)
|
89
92
|
@id = val.to_i
|
@@ -214,6 +217,15 @@ module Kaltura
|
|
214
217
|
if xml_element.elements['originalId'] != nil
|
215
218
|
self.original_id = xml_element.elements['originalId'].text
|
216
219
|
end
|
220
|
+
if xml_element.elements['srcPath'] != nil
|
221
|
+
self.src_path = xml_element.elements['srcPath'].text
|
222
|
+
end
|
223
|
+
if xml_element.elements['srcEncKey'] != nil
|
224
|
+
self.src_enc_key = xml_element.elements['srcEncKey'].text
|
225
|
+
end
|
226
|
+
if xml_element.elements['storageClass'] != nil
|
227
|
+
self.storage_class = xml_element.elements['storageClass'].text
|
228
|
+
end
|
217
229
|
end
|
218
230
|
|
219
231
|
end
|
@@ -317,6 +317,8 @@ module Kaltura
|
|
317
317
|
attr_accessor :url
|
318
318
|
# Request method.
|
319
319
|
attr_accessor :method
|
320
|
+
# The type of the data to send.
|
321
|
+
attr_accessor :content_type
|
320
322
|
# Data to send.
|
321
323
|
attr_accessor :data
|
322
324
|
# The maximum number of seconds to allow cURL functions to execute.
|
@@ -378,6 +380,9 @@ module Kaltura
|
|
378
380
|
if xml_element.elements['method'] != nil
|
379
381
|
self.method = xml_element.elements['method'].text
|
380
382
|
end
|
383
|
+
if xml_element.elements['contentType'] != nil
|
384
|
+
self.content_type = xml_element.elements['contentType'].text
|
385
|
+
end
|
381
386
|
if xml_element.elements['data'] != nil
|
382
387
|
self.data = xml_element.elements['data'].text
|
383
388
|
end
|
@@ -0,0 +1,280 @@
|
|
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-2020 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_file_sync_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaBaseInteractivity < KalturaObjectBase
|
34
|
+
attr_accessor :data
|
35
|
+
attr_accessor :version
|
36
|
+
attr_accessor :entry_id
|
37
|
+
# Interactivity update date as Unix timestamp (In seconds)
|
38
|
+
attr_accessor :updated_at
|
39
|
+
|
40
|
+
def version=(val)
|
41
|
+
@version = val.to_i
|
42
|
+
end
|
43
|
+
def updated_at=(val)
|
44
|
+
@updated_at = val.to_i
|
45
|
+
end
|
46
|
+
|
47
|
+
def from_xml(xml_element)
|
48
|
+
super
|
49
|
+
if xml_element.elements['data'] != nil
|
50
|
+
self.data = xml_element.elements['data'].text
|
51
|
+
end
|
52
|
+
if xml_element.elements['version'] != nil
|
53
|
+
self.version = xml_element.elements['version'].text
|
54
|
+
end
|
55
|
+
if xml_element.elements['entryId'] != nil
|
56
|
+
self.entry_id = xml_element.elements['entryId'].text
|
57
|
+
end
|
58
|
+
if xml_element.elements['updatedAt'] != nil
|
59
|
+
self.updated_at = xml_element.elements['updatedAt'].text
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
class KalturaInteractivityDataFieldsFilter < KalturaObjectBase
|
66
|
+
# A string containing CSV list of fields to include
|
67
|
+
attr_accessor :fields
|
68
|
+
|
69
|
+
|
70
|
+
def from_xml(xml_element)
|
71
|
+
super
|
72
|
+
if xml_element.elements['fields'] != nil
|
73
|
+
self.fields = xml_element.elements['fields'].text
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
class KalturaInteractivityRootFilter < KalturaInteractivityDataFieldsFilter
|
80
|
+
|
81
|
+
|
82
|
+
def from_xml(xml_element)
|
83
|
+
super
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
class KalturaInteractivityNodeFilter < KalturaInteractivityDataFieldsFilter
|
89
|
+
|
90
|
+
|
91
|
+
def from_xml(xml_element)
|
92
|
+
super
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
class KalturaInteractivityInteractionFilter < KalturaInteractivityDataFieldsFilter
|
98
|
+
|
99
|
+
|
100
|
+
def from_xml(xml_element)
|
101
|
+
super
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
class KalturaInteractivityDataFilter < KalturaObjectBase
|
107
|
+
attr_accessor :root_filter
|
108
|
+
attr_accessor :node_filter
|
109
|
+
attr_accessor :interaction_filter
|
110
|
+
|
111
|
+
|
112
|
+
def from_xml(xml_element)
|
113
|
+
super
|
114
|
+
if xml_element.elements['rootFilter'] != nil
|
115
|
+
self.root_filter = KalturaClientBase.object_from_xml(xml_element.elements['rootFilter'], 'KalturaInteractivityRootFilter')
|
116
|
+
end
|
117
|
+
if xml_element.elements['nodeFilter'] != nil
|
118
|
+
self.node_filter = KalturaClientBase.object_from_xml(xml_element.elements['nodeFilter'], 'KalturaInteractivityNodeFilter')
|
119
|
+
end
|
120
|
+
if xml_element.elements['interactionFilter'] != nil
|
121
|
+
self.interaction_filter = KalturaClientBase.object_from_xml(xml_element.elements['interactionFilter'], 'KalturaInteractivityInteractionFilter')
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
class KalturaInteractivity < KalturaBaseInteractivity
|
128
|
+
|
129
|
+
|
130
|
+
def from_xml(xml_element)
|
131
|
+
super
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|
135
|
+
|
136
|
+
class KalturaVolatileInteractivity < KalturaBaseInteractivity
|
137
|
+
|
138
|
+
|
139
|
+
def from_xml(xml_element)
|
140
|
+
super
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
class KalturaInteractivityService < KalturaServiceBase
|
147
|
+
def initialize(client)
|
148
|
+
super(client)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Add a interactivity object
|
152
|
+
# @return [KalturaInteractivity]
|
153
|
+
def add(entry_id, kaltura_interactivity)
|
154
|
+
kparams = {}
|
155
|
+
client.add_param(kparams, 'entryId', entry_id)
|
156
|
+
client.add_param(kparams, 'kalturaInteractivity', kaltura_interactivity)
|
157
|
+
client.queue_service_action_call('interactivity_interactivity', 'add', 'KalturaInteractivity', kparams)
|
158
|
+
if (client.is_multirequest)
|
159
|
+
return nil
|
160
|
+
end
|
161
|
+
return client.do_queue()
|
162
|
+
end
|
163
|
+
|
164
|
+
# Delete a interactivity object by entry id
|
165
|
+
# @return []
|
166
|
+
def delete(entry_id)
|
167
|
+
kparams = {}
|
168
|
+
client.add_param(kparams, 'entryId', entry_id)
|
169
|
+
client.queue_service_action_call('interactivity_interactivity', 'delete', '', kparams)
|
170
|
+
if (client.is_multirequest)
|
171
|
+
return nil
|
172
|
+
end
|
173
|
+
return client.do_queue()
|
174
|
+
end
|
175
|
+
|
176
|
+
# Retrieve a interactivity object by entry id
|
177
|
+
# @return [KalturaInteractivity]
|
178
|
+
def get(entry_id, data_filter=KalturaNotImplemented)
|
179
|
+
kparams = {}
|
180
|
+
client.add_param(kparams, 'entryId', entry_id)
|
181
|
+
client.add_param(kparams, 'dataFilter', data_filter)
|
182
|
+
client.queue_service_action_call('interactivity_interactivity', 'get', 'KalturaInteractivity', kparams)
|
183
|
+
if (client.is_multirequest)
|
184
|
+
return nil
|
185
|
+
end
|
186
|
+
return client.do_queue()
|
187
|
+
end
|
188
|
+
|
189
|
+
# Update an existing interactivity object
|
190
|
+
# @return [KalturaInteractivity]
|
191
|
+
def update(entry_id, version, kaltura_interactivity)
|
192
|
+
kparams = {}
|
193
|
+
client.add_param(kparams, 'entryId', entry_id)
|
194
|
+
client.add_param(kparams, 'version', version)
|
195
|
+
client.add_param(kparams, 'kalturaInteractivity', kaltura_interactivity)
|
196
|
+
client.queue_service_action_call('interactivity_interactivity', 'update', 'KalturaInteractivity', kparams)
|
197
|
+
if (client.is_multirequest)
|
198
|
+
return nil
|
199
|
+
end
|
200
|
+
return client.do_queue()
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class KalturaVolatileInteractivityService < KalturaServiceBase
|
205
|
+
def initialize(client)
|
206
|
+
super(client)
|
207
|
+
end
|
208
|
+
|
209
|
+
# add a volatile interactivity object
|
210
|
+
# @return [KalturaVolatileInteractivity]
|
211
|
+
def add(entry_id, kaltura_volatile_interactivity)
|
212
|
+
kparams = {}
|
213
|
+
client.add_param(kparams, 'entryId', entry_id)
|
214
|
+
client.add_param(kparams, 'kalturaVolatileInteractivity', kaltura_volatile_interactivity)
|
215
|
+
client.queue_service_action_call('interactivity_volatileinteractivity', 'add', 'KalturaVolatileInteractivity', kparams)
|
216
|
+
if (client.is_multirequest)
|
217
|
+
return nil
|
218
|
+
end
|
219
|
+
return client.do_queue()
|
220
|
+
end
|
221
|
+
|
222
|
+
# Delete a volatile interactivity object by entry id
|
223
|
+
# @return []
|
224
|
+
def delete(entry_id)
|
225
|
+
kparams = {}
|
226
|
+
client.add_param(kparams, 'entryId', entry_id)
|
227
|
+
client.queue_service_action_call('interactivity_volatileinteractivity', 'delete', '', kparams)
|
228
|
+
if (client.is_multirequest)
|
229
|
+
return nil
|
230
|
+
end
|
231
|
+
return client.do_queue()
|
232
|
+
end
|
233
|
+
|
234
|
+
# Retrieve a volatile interactivity object by entry id
|
235
|
+
# @return [KalturaVolatileInteractivity]
|
236
|
+
def get(entry_id)
|
237
|
+
kparams = {}
|
238
|
+
client.add_param(kparams, 'entryId', entry_id)
|
239
|
+
client.queue_service_action_call('interactivity_volatileinteractivity', 'get', 'KalturaVolatileInteractivity', kparams)
|
240
|
+
if (client.is_multirequest)
|
241
|
+
return nil
|
242
|
+
end
|
243
|
+
return client.do_queue()
|
244
|
+
end
|
245
|
+
|
246
|
+
# Update a volatile interactivity object
|
247
|
+
# @return [KalturaVolatileInteractivity]
|
248
|
+
def update(entry_id, version, kaltura_volatile_interactivity)
|
249
|
+
kparams = {}
|
250
|
+
client.add_param(kparams, 'entryId', entry_id)
|
251
|
+
client.add_param(kparams, 'version', version)
|
252
|
+
client.add_param(kparams, 'kalturaVolatileInteractivity', kaltura_volatile_interactivity)
|
253
|
+
client.queue_service_action_call('interactivity_volatileinteractivity', 'update', 'KalturaVolatileInteractivity', kparams)
|
254
|
+
if (client.is_multirequest)
|
255
|
+
return nil
|
256
|
+
end
|
257
|
+
return client.do_queue()
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
class KalturaClient < KalturaClientBase
|
262
|
+
attr_reader :interactivity_service
|
263
|
+
def interactivity_service
|
264
|
+
if (@interactivity_service == nil)
|
265
|
+
@interactivity_service = KalturaInteractivityService.new(self)
|
266
|
+
end
|
267
|
+
return @interactivity_service
|
268
|
+
end
|
269
|
+
|
270
|
+
attr_reader :volatile_interactivity_service
|
271
|
+
def volatile_interactivity_service
|
272
|
+
if (@volatile_interactivity_service == nil)
|
273
|
+
@volatile_interactivity_service = KalturaVolatileInteractivityService.new(self)
|
274
|
+
end
|
275
|
+
return @volatile_interactivity_service
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
279
|
+
|
280
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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-2020 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
|
30
|
+
module Kaltura
|
31
|
+
|
32
|
+
class KalturaLiveClusterMediaServerNode < KalturaMediaServerNode
|
33
|
+
|
34
|
+
|
35
|
+
def from_xml(xml_element)
|
36
|
+
super
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
class KalturaLiveClusterMediaServerNodeBaseFilter < KalturaMediaServerNodeFilter
|
42
|
+
|
43
|
+
|
44
|
+
def from_xml(xml_element)
|
45
|
+
super
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
class KalturaLiveClusterMediaServerNodeFilter < KalturaLiveClusterMediaServerNodeBaseFilter
|
51
|
+
|
52
|
+
|
53
|
+
def from_xml(xml_element)
|
54
|
+
super
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
|
60
|
+
end
|
@@ -0,0 +1,140 @@
|
|
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-2020 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_content_distribution_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaPodcastDistributionProfileOrderBy
|
34
|
+
CREATED_AT_ASC = "+createdAt"
|
35
|
+
UPDATED_AT_ASC = "+updatedAt"
|
36
|
+
CREATED_AT_DESC = "-createdAt"
|
37
|
+
UPDATED_AT_DESC = "-updatedAt"
|
38
|
+
end
|
39
|
+
|
40
|
+
class KalturaPodcastDistributionProviderOrderBy
|
41
|
+
end
|
42
|
+
|
43
|
+
class KalturaPodcastDistributionJobProviderData < KalturaDistributionJobProviderData
|
44
|
+
attr_accessor :xml
|
45
|
+
attr_accessor :metadata_profile_id
|
46
|
+
attr_accessor :distribution_profile_id
|
47
|
+
|
48
|
+
def metadata_profile_id=(val)
|
49
|
+
@metadata_profile_id = val.to_i
|
50
|
+
end
|
51
|
+
def distribution_profile_id=(val)
|
52
|
+
@distribution_profile_id = val.to_i
|
53
|
+
end
|
54
|
+
|
55
|
+
def from_xml(xml_element)
|
56
|
+
super
|
57
|
+
if xml_element.elements['xml'] != nil
|
58
|
+
self.xml = xml_element.elements['xml'].text
|
59
|
+
end
|
60
|
+
if xml_element.elements['metadataProfileId'] != nil
|
61
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
62
|
+
end
|
63
|
+
if xml_element.elements['distributionProfileId'] != nil
|
64
|
+
self.distribution_profile_id = xml_element.elements['distributionProfileId'].text
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
class KalturaPodcastDistributionProfile < KalturaDistributionProfile
|
71
|
+
attr_accessor :xsl
|
72
|
+
attr_accessor :feed_id
|
73
|
+
attr_accessor :metadata_profile_id
|
74
|
+
|
75
|
+
def metadata_profile_id=(val)
|
76
|
+
@metadata_profile_id = val.to_i
|
77
|
+
end
|
78
|
+
|
79
|
+
def from_xml(xml_element)
|
80
|
+
super
|
81
|
+
if xml_element.elements['xsl'] != nil
|
82
|
+
self.xsl = xml_element.elements['xsl'].text
|
83
|
+
end
|
84
|
+
if xml_element.elements['feedId'] != nil
|
85
|
+
self.feed_id = xml_element.elements['feedId'].text
|
86
|
+
end
|
87
|
+
if xml_element.elements['metadataProfileId'] != nil
|
88
|
+
self.metadata_profile_id = xml_element.elements['metadataProfileId'].text
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
|
94
|
+
class KalturaPodcastDistributionProvider < KalturaDistributionProvider
|
95
|
+
|
96
|
+
|
97
|
+
def from_xml(xml_element)
|
98
|
+
super
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
class KalturaPodcastDistributionProfileBaseFilter < KalturaDistributionProfileFilter
|
104
|
+
|
105
|
+
|
106
|
+
def from_xml(xml_element)
|
107
|
+
super
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
111
|
+
|
112
|
+
class KalturaPodcastDistributionProviderBaseFilter < KalturaDistributionProviderFilter
|
113
|
+
|
114
|
+
|
115
|
+
def from_xml(xml_element)
|
116
|
+
super
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
|
121
|
+
class KalturaPodcastDistributionProfileFilter < KalturaPodcastDistributionProfileBaseFilter
|
122
|
+
|
123
|
+
|
124
|
+
def from_xml(xml_element)
|
125
|
+
super
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
|
130
|
+
class KalturaPodcastDistributionProviderFilter < KalturaPodcastDistributionProviderBaseFilter
|
131
|
+
|
132
|
+
|
133
|
+
def from_xml(xml_element)
|
134
|
+
super
|
135
|
+
end
|
136
|
+
|
137
|
+
end
|
138
|
+
|
139
|
+
|
140
|
+
end
|