kaltura-client 3.1.6 → 3.1.7
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 +0 -1
- data/agpl.txt +67 -80
- data/kaltura.yml +5 -5
- data/lib/kaltura_client.rb +451 -84
- data/lib/kaltura_client_base.rb +1 -1
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb +356 -0
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1 -26
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +3 -7
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +1 -2
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +3 -1
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb +108 -0
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +1 -2
- data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +14 -1
- data/lib/kaltura_plugins/kaltura_scheduled_task_content_distribution_client_plugin.rb +42 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb +575 -0
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +1 -1
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +1 -4
- metadata +6 -2
@@ -8,7 +8,7 @@
|
|
8
8
|
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
9
|
# text.
|
10
10
|
#
|
11
|
-
# Copyright (C) 2006-
|
11
|
+
# Copyright (C) 2006-2015 Kaltura Inc.
|
12
12
|
#
|
13
13
|
# This program is free software: you can redistribute it and/or modify
|
14
14
|
# it under the terms of the GNU Affero General Public License as
|
@@ -0,0 +1,575 @@
|
|
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
|
+
|
30
|
+
module Kaltura
|
31
|
+
|
32
|
+
class KalturaSystemPartnerLimitType
|
33
|
+
ACCESS_CONTROLS = "ACCESS_CONTROLS"
|
34
|
+
ADMIN_LOGIN_USERS = "ADMIN_LOGIN_USERS"
|
35
|
+
BULK_SIZE = "BULK_SIZE"
|
36
|
+
END_USERS = "END_USERS"
|
37
|
+
ENTRIES = "ENTRIES"
|
38
|
+
LIVE_STREAM_INPUTS = "LIVE_STREAM_INPUTS"
|
39
|
+
LIVE_STREAM_OUTPUTS = "LIVE_STREAM_OUTPUTS"
|
40
|
+
LOGIN_USERS = "LOGIN_USERS"
|
41
|
+
MONTHLY_BANDWIDTH = "MONTHLY_BANDWIDTH"
|
42
|
+
MONTHLY_STORAGE = "MONTHLY_STORAGE"
|
43
|
+
MONTHLY_STORAGE_AND_BANDWIDTH = "MONTHLY_STORAGE_AND_BANDWIDTH"
|
44
|
+
MONTHLY_STREAM_ENTRIES = "MONTHLY_STREAM_ENTRIES"
|
45
|
+
PUBLISHERS = "PUBLISHERS"
|
46
|
+
USER_LOGIN_ATTEMPTS = "USER_LOGIN_ATTEMPTS"
|
47
|
+
end
|
48
|
+
|
49
|
+
class KalturaSystemPartnerLimit < KalturaObjectBase
|
50
|
+
attr_accessor :type
|
51
|
+
attr_accessor :max
|
52
|
+
|
53
|
+
def max=(val)
|
54
|
+
@max = val.to_f
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
class KalturaSystemPartnerConfiguration < KalturaObjectBase
|
59
|
+
attr_accessor :id
|
60
|
+
attr_accessor :partner_name
|
61
|
+
attr_accessor :description
|
62
|
+
attr_accessor :admin_name
|
63
|
+
attr_accessor :admin_email
|
64
|
+
attr_accessor :host
|
65
|
+
attr_accessor :cdn_host
|
66
|
+
attr_accessor :thumbnail_host
|
67
|
+
attr_accessor :partner_package
|
68
|
+
attr_accessor :monitor_usage
|
69
|
+
attr_accessor :moderate_content
|
70
|
+
attr_accessor :storage_delete_from_kaltura
|
71
|
+
attr_accessor :storage_serve_priority
|
72
|
+
attr_accessor :kmc_version
|
73
|
+
attr_accessor :restrict_thumbnail_by_ks
|
74
|
+
attr_accessor :support_animated_thumbnails
|
75
|
+
attr_accessor :def_thumb_offset
|
76
|
+
attr_accessor :def_thumb_density
|
77
|
+
attr_accessor :user_session_role_id
|
78
|
+
attr_accessor :admin_session_role_id
|
79
|
+
attr_accessor :always_allowed_permission_names
|
80
|
+
attr_accessor :import_remote_source_for_convert
|
81
|
+
attr_accessor :permissions
|
82
|
+
attr_accessor :notifications_config
|
83
|
+
attr_accessor :allow_multi_notification
|
84
|
+
attr_accessor :login_block_period
|
85
|
+
attr_accessor :num_prev_pass_to_keep
|
86
|
+
attr_accessor :pass_replace_freq
|
87
|
+
attr_accessor :is_first_login
|
88
|
+
attr_accessor :partner_group_type
|
89
|
+
attr_accessor :partner_parent_id
|
90
|
+
attr_accessor :limits
|
91
|
+
# http/rtmp/hdnetwork
|
92
|
+
#
|
93
|
+
attr_accessor :streamer_type
|
94
|
+
# http/https, rtmp/rtmpe
|
95
|
+
#
|
96
|
+
attr_accessor :media_protocol
|
97
|
+
attr_accessor :extended_free_trail_expiry_reason
|
98
|
+
# Unix timestamp (In seconds)
|
99
|
+
#
|
100
|
+
attr_accessor :extended_free_trail_expiry_date
|
101
|
+
attr_accessor :extended_free_trail
|
102
|
+
attr_accessor :crm_id
|
103
|
+
attr_accessor :reference_id
|
104
|
+
attr_accessor :crm_link
|
105
|
+
attr_accessor :vertical_clasiffication
|
106
|
+
attr_accessor :partner_package_class_of_service
|
107
|
+
attr_accessor :enable_bulk_upload_notifications_emails
|
108
|
+
attr_accessor :delivery_profile_ids
|
109
|
+
attr_accessor :enforce_delivery
|
110
|
+
attr_accessor :bulk_upload_notifications_email
|
111
|
+
attr_accessor :internal_use
|
112
|
+
attr_accessor :default_live_stream_entry_source_type
|
113
|
+
attr_accessor :live_stream_provision_params
|
114
|
+
attr_accessor :auto_moderate_entry_filter
|
115
|
+
attr_accessor :logout_url
|
116
|
+
attr_accessor :default_entitlement_enforcement
|
117
|
+
attr_accessor :cache_flavor_version
|
118
|
+
attr_accessor :api_access_control_id
|
119
|
+
attr_accessor :default_delivery_type
|
120
|
+
attr_accessor :default_embed_code_type
|
121
|
+
attr_accessor :custom_delivery_types
|
122
|
+
attr_accessor :restrict_entry_by_metadata
|
123
|
+
attr_accessor :language
|
124
|
+
attr_accessor :audio_thumb_entry_id
|
125
|
+
attr_accessor :live_thumb_entry_id
|
126
|
+
|
127
|
+
def id=(val)
|
128
|
+
@id = val.to_i
|
129
|
+
end
|
130
|
+
def partner_package=(val)
|
131
|
+
@partner_package = val.to_i
|
132
|
+
end
|
133
|
+
def monitor_usage=(val)
|
134
|
+
@monitor_usage = val.to_i
|
135
|
+
end
|
136
|
+
def moderate_content=(val)
|
137
|
+
@moderate_content = to_b(val)
|
138
|
+
end
|
139
|
+
def storage_delete_from_kaltura=(val)
|
140
|
+
@storage_delete_from_kaltura = to_b(val)
|
141
|
+
end
|
142
|
+
def storage_serve_priority=(val)
|
143
|
+
@storage_serve_priority = val.to_i
|
144
|
+
end
|
145
|
+
def kmc_version=(val)
|
146
|
+
@kmc_version = val.to_i
|
147
|
+
end
|
148
|
+
def restrict_thumbnail_by_ks=(val)
|
149
|
+
@restrict_thumbnail_by_ks = val.to_i
|
150
|
+
end
|
151
|
+
def support_animated_thumbnails=(val)
|
152
|
+
@support_animated_thumbnails = to_b(val)
|
153
|
+
end
|
154
|
+
def def_thumb_offset=(val)
|
155
|
+
@def_thumb_offset = val.to_i
|
156
|
+
end
|
157
|
+
def def_thumb_density=(val)
|
158
|
+
@def_thumb_density = val.to_i
|
159
|
+
end
|
160
|
+
def user_session_role_id=(val)
|
161
|
+
@user_session_role_id = val.to_i
|
162
|
+
end
|
163
|
+
def admin_session_role_id=(val)
|
164
|
+
@admin_session_role_id = val.to_i
|
165
|
+
end
|
166
|
+
def import_remote_source_for_convert=(val)
|
167
|
+
@import_remote_source_for_convert = to_b(val)
|
168
|
+
end
|
169
|
+
def allow_multi_notification=(val)
|
170
|
+
@allow_multi_notification = to_b(val)
|
171
|
+
end
|
172
|
+
def login_block_period=(val)
|
173
|
+
@login_block_period = val.to_i
|
174
|
+
end
|
175
|
+
def num_prev_pass_to_keep=(val)
|
176
|
+
@num_prev_pass_to_keep = val.to_i
|
177
|
+
end
|
178
|
+
def pass_replace_freq=(val)
|
179
|
+
@pass_replace_freq = val.to_i
|
180
|
+
end
|
181
|
+
def is_first_login=(val)
|
182
|
+
@is_first_login = to_b(val)
|
183
|
+
end
|
184
|
+
def partner_group_type=(val)
|
185
|
+
@partner_group_type = val.to_i
|
186
|
+
end
|
187
|
+
def partner_parent_id=(val)
|
188
|
+
@partner_parent_id = val.to_i
|
189
|
+
end
|
190
|
+
def extended_free_trail_expiry_date=(val)
|
191
|
+
@extended_free_trail_expiry_date = val.to_i
|
192
|
+
end
|
193
|
+
def extended_free_trail=(val)
|
194
|
+
@extended_free_trail = val.to_i
|
195
|
+
end
|
196
|
+
def enable_bulk_upload_notifications_emails=(val)
|
197
|
+
@enable_bulk_upload_notifications_emails = to_b(val)
|
198
|
+
end
|
199
|
+
def enforce_delivery=(val)
|
200
|
+
@enforce_delivery = to_b(val)
|
201
|
+
end
|
202
|
+
def internal_use=(val)
|
203
|
+
@internal_use = to_b(val)
|
204
|
+
end
|
205
|
+
def default_entitlement_enforcement=(val)
|
206
|
+
@default_entitlement_enforcement = to_b(val)
|
207
|
+
end
|
208
|
+
def cache_flavor_version=(val)
|
209
|
+
@cache_flavor_version = val.to_i
|
210
|
+
end
|
211
|
+
def api_access_control_id=(val)
|
212
|
+
@api_access_control_id = val.to_i
|
213
|
+
end
|
214
|
+
def restrict_entry_by_metadata=(val)
|
215
|
+
@restrict_entry_by_metadata = to_b(val)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
class KalturaSystemPartnerPackage < KalturaObjectBase
|
220
|
+
attr_accessor :id
|
221
|
+
attr_accessor :name
|
222
|
+
|
223
|
+
def id=(val)
|
224
|
+
@id = val.to_i
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
class KalturaSystemPartnerUsageItem < KalturaObjectBase
|
229
|
+
# Partner ID
|
230
|
+
#
|
231
|
+
attr_accessor :partner_id
|
232
|
+
# Partner name
|
233
|
+
#
|
234
|
+
attr_accessor :partner_name
|
235
|
+
# Partner status
|
236
|
+
#
|
237
|
+
attr_accessor :partner_status
|
238
|
+
# Partner package
|
239
|
+
#
|
240
|
+
attr_accessor :partner_package
|
241
|
+
# Partner creation date (Unix timestamp)
|
242
|
+
#
|
243
|
+
attr_accessor :partner_created_at
|
244
|
+
# Number of player loads in the specific date range
|
245
|
+
#
|
246
|
+
attr_accessor :views
|
247
|
+
# Number of plays in the specific date range
|
248
|
+
#
|
249
|
+
attr_accessor :plays
|
250
|
+
# Number of new entries created during specific date range
|
251
|
+
#
|
252
|
+
attr_accessor :entries_count
|
253
|
+
# Total number of entries
|
254
|
+
#
|
255
|
+
attr_accessor :total_entries_count
|
256
|
+
# Number of new video entries created during specific date range
|
257
|
+
#
|
258
|
+
attr_accessor :video_entries_count
|
259
|
+
# Number of new image entries created during specific date range
|
260
|
+
#
|
261
|
+
attr_accessor :image_entries_count
|
262
|
+
# Number of new audio entries created during specific date range
|
263
|
+
#
|
264
|
+
attr_accessor :audio_entries_count
|
265
|
+
# Number of new mix entries created during specific date range
|
266
|
+
#
|
267
|
+
attr_accessor :mix_entries_count
|
268
|
+
# The total bandwidth usage during the given date range (in MB)
|
269
|
+
#
|
270
|
+
attr_accessor :bandwidth
|
271
|
+
# The total storage consumption (in MB)
|
272
|
+
#
|
273
|
+
attr_accessor :total_storage
|
274
|
+
# The change in storage consumption (new uploads) during the given date range (in MB)
|
275
|
+
#
|
276
|
+
attr_accessor :storage
|
277
|
+
# The peak amount of storage consumption during the given date range for the specific publisher
|
278
|
+
#
|
279
|
+
attr_accessor :peak_storage
|
280
|
+
# The average amount of storage consumption during the given date range for the specific publisher
|
281
|
+
#
|
282
|
+
attr_accessor :avg_storage
|
283
|
+
# The combined amount of bandwidth and storage consumed during the given date range for the specific publisher
|
284
|
+
#
|
285
|
+
attr_accessor :combined_bandwidth_storage
|
286
|
+
# Amount of deleted storage in MB
|
287
|
+
#
|
288
|
+
attr_accessor :deleted_storage
|
289
|
+
# Amount of transcoding usage in MB
|
290
|
+
#
|
291
|
+
attr_accessor :transcoding_usage
|
292
|
+
|
293
|
+
def partner_id=(val)
|
294
|
+
@partner_id = val.to_i
|
295
|
+
end
|
296
|
+
def partner_status=(val)
|
297
|
+
@partner_status = val.to_i
|
298
|
+
end
|
299
|
+
def partner_package=(val)
|
300
|
+
@partner_package = val.to_i
|
301
|
+
end
|
302
|
+
def partner_created_at=(val)
|
303
|
+
@partner_created_at = val.to_i
|
304
|
+
end
|
305
|
+
def views=(val)
|
306
|
+
@views = val.to_i
|
307
|
+
end
|
308
|
+
def plays=(val)
|
309
|
+
@plays = val.to_i
|
310
|
+
end
|
311
|
+
def entries_count=(val)
|
312
|
+
@entries_count = val.to_i
|
313
|
+
end
|
314
|
+
def total_entries_count=(val)
|
315
|
+
@total_entries_count = val.to_i
|
316
|
+
end
|
317
|
+
def video_entries_count=(val)
|
318
|
+
@video_entries_count = val.to_i
|
319
|
+
end
|
320
|
+
def image_entries_count=(val)
|
321
|
+
@image_entries_count = val.to_i
|
322
|
+
end
|
323
|
+
def audio_entries_count=(val)
|
324
|
+
@audio_entries_count = val.to_i
|
325
|
+
end
|
326
|
+
def mix_entries_count=(val)
|
327
|
+
@mix_entries_count = val.to_i
|
328
|
+
end
|
329
|
+
def bandwidth=(val)
|
330
|
+
@bandwidth = val.to_f
|
331
|
+
end
|
332
|
+
def total_storage=(val)
|
333
|
+
@total_storage = val.to_f
|
334
|
+
end
|
335
|
+
def storage=(val)
|
336
|
+
@storage = val.to_f
|
337
|
+
end
|
338
|
+
def peak_storage=(val)
|
339
|
+
@peak_storage = val.to_f
|
340
|
+
end
|
341
|
+
def avg_storage=(val)
|
342
|
+
@avg_storage = val.to_f
|
343
|
+
end
|
344
|
+
def combined_bandwidth_storage=(val)
|
345
|
+
@combined_bandwidth_storage = val.to_f
|
346
|
+
end
|
347
|
+
def deleted_storage=(val)
|
348
|
+
@deleted_storage = val.to_f
|
349
|
+
end
|
350
|
+
def transcoding_usage=(val)
|
351
|
+
@transcoding_usage = val.to_f
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
class KalturaSystemPartnerUsageListResponse < KalturaObjectBase
|
356
|
+
attr_accessor :objects
|
357
|
+
attr_accessor :total_count
|
358
|
+
|
359
|
+
def total_count=(val)
|
360
|
+
@total_count = val.to_i
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
class KalturaSystemPartnerOveragedLimit < KalturaSystemPartnerLimit
|
365
|
+
attr_accessor :overage_price
|
366
|
+
attr_accessor :overage_unit
|
367
|
+
|
368
|
+
def overage_price=(val)
|
369
|
+
@overage_price = val.to_f
|
370
|
+
end
|
371
|
+
def overage_unit=(val)
|
372
|
+
@overage_unit = val.to_f
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
class KalturaSystemPartnerUsageFilter < KalturaFilter
|
377
|
+
# Date range from
|
378
|
+
#
|
379
|
+
attr_accessor :from_date
|
380
|
+
# Date range to
|
381
|
+
#
|
382
|
+
attr_accessor :to_date
|
383
|
+
# Time zone offset
|
384
|
+
#
|
385
|
+
attr_accessor :timezone_offset
|
386
|
+
|
387
|
+
def from_date=(val)
|
388
|
+
@from_date = val.to_i
|
389
|
+
end
|
390
|
+
def to_date=(val)
|
391
|
+
@to_date = val.to_i
|
392
|
+
end
|
393
|
+
def timezone_offset=(val)
|
394
|
+
@timezone_offset = val.to_i
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
class KalturaSystemPartnerFilter < KalturaPartnerFilter
|
399
|
+
attr_accessor :partner_parent_id_equal
|
400
|
+
attr_accessor :partner_parent_id_in
|
401
|
+
|
402
|
+
def partner_parent_id_equal=(val)
|
403
|
+
@partner_parent_id_equal = val.to_i
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
|
408
|
+
# System partner service
|
409
|
+
#
|
410
|
+
class KalturaSystemPartnerService < KalturaServiceBase
|
411
|
+
def initialize(client)
|
412
|
+
super(client)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Retrieve all info about partner
|
416
|
+
# This service gets partner id as parameter and accessable to the admin console partner only
|
417
|
+
#
|
418
|
+
def get(partner_id)
|
419
|
+
kparams = {}
|
420
|
+
# X
|
421
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
422
|
+
client.queue_service_action_call('systempartner_systempartner', 'get', kparams);
|
423
|
+
if (client.is_multirequest)
|
424
|
+
return nil;
|
425
|
+
end
|
426
|
+
return client.do_queue();
|
427
|
+
end
|
428
|
+
|
429
|
+
def get_usage(partner_filter=KalturaNotImplemented, usage_filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
430
|
+
kparams = {}
|
431
|
+
client.add_param(kparams, 'partnerFilter', partner_filter);
|
432
|
+
client.add_param(kparams, 'usageFilter', usage_filter);
|
433
|
+
client.add_param(kparams, 'pager', pager);
|
434
|
+
client.queue_service_action_call('systempartner_systempartner', 'getUsage', kparams);
|
435
|
+
if (client.is_multirequest)
|
436
|
+
return nil;
|
437
|
+
end
|
438
|
+
return client.do_queue();
|
439
|
+
end
|
440
|
+
|
441
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
442
|
+
kparams = {}
|
443
|
+
client.add_param(kparams, 'filter', filter);
|
444
|
+
client.add_param(kparams, 'pager', pager);
|
445
|
+
client.queue_service_action_call('systempartner_systempartner', 'list', kparams);
|
446
|
+
if (client.is_multirequest)
|
447
|
+
return nil;
|
448
|
+
end
|
449
|
+
return client.do_queue();
|
450
|
+
end
|
451
|
+
|
452
|
+
def update_status(partner_id, status, reason)
|
453
|
+
kparams = {}
|
454
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
455
|
+
client.add_param(kparams, 'status', status);
|
456
|
+
client.add_param(kparams, 'reason', reason);
|
457
|
+
client.queue_service_action_call('systempartner_systempartner', 'updateStatus', kparams);
|
458
|
+
if (client.is_multirequest)
|
459
|
+
return nil;
|
460
|
+
end
|
461
|
+
return client.do_queue();
|
462
|
+
end
|
463
|
+
|
464
|
+
def get_admin_session(partner_id, user_id=KalturaNotImplemented)
|
465
|
+
kparams = {}
|
466
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
467
|
+
client.add_param(kparams, 'userId', user_id);
|
468
|
+
client.queue_service_action_call('systempartner_systempartner', 'getAdminSession', kparams);
|
469
|
+
if (client.is_multirequest)
|
470
|
+
return nil;
|
471
|
+
end
|
472
|
+
return client.do_queue();
|
473
|
+
end
|
474
|
+
|
475
|
+
def update_configuration(partner_id, configuration)
|
476
|
+
kparams = {}
|
477
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
478
|
+
client.add_param(kparams, 'configuration', configuration);
|
479
|
+
client.queue_service_action_call('systempartner_systempartner', 'updateConfiguration', kparams);
|
480
|
+
if (client.is_multirequest)
|
481
|
+
return nil;
|
482
|
+
end
|
483
|
+
return client.do_queue();
|
484
|
+
end
|
485
|
+
|
486
|
+
def get_configuration(partner_id)
|
487
|
+
kparams = {}
|
488
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
489
|
+
client.queue_service_action_call('systempartner_systempartner', 'getConfiguration', kparams);
|
490
|
+
if (client.is_multirequest)
|
491
|
+
return nil;
|
492
|
+
end
|
493
|
+
return client.do_queue();
|
494
|
+
end
|
495
|
+
|
496
|
+
def get_packages()
|
497
|
+
kparams = {}
|
498
|
+
client.queue_service_action_call('systempartner_systempartner', 'getPackages', kparams);
|
499
|
+
if (client.is_multirequest)
|
500
|
+
return nil;
|
501
|
+
end
|
502
|
+
return client.do_queue();
|
503
|
+
end
|
504
|
+
|
505
|
+
def get_packages_class_of_service()
|
506
|
+
kparams = {}
|
507
|
+
client.queue_service_action_call('systempartner_systempartner', 'getPackagesClassOfService', kparams);
|
508
|
+
if (client.is_multirequest)
|
509
|
+
return nil;
|
510
|
+
end
|
511
|
+
return client.do_queue();
|
512
|
+
end
|
513
|
+
|
514
|
+
def get_packages_vertical()
|
515
|
+
kparams = {}
|
516
|
+
client.queue_service_action_call('systempartner_systempartner', 'getPackagesVertical', kparams);
|
517
|
+
if (client.is_multirequest)
|
518
|
+
return nil;
|
519
|
+
end
|
520
|
+
return client.do_queue();
|
521
|
+
end
|
522
|
+
|
523
|
+
def get_player_embed_code_types()
|
524
|
+
kparams = {}
|
525
|
+
client.queue_service_action_call('systempartner_systempartner', 'getPlayerEmbedCodeTypes', kparams);
|
526
|
+
if (client.is_multirequest)
|
527
|
+
return nil;
|
528
|
+
end
|
529
|
+
return client.do_queue();
|
530
|
+
end
|
531
|
+
|
532
|
+
def get_player_delivery_types()
|
533
|
+
kparams = {}
|
534
|
+
client.queue_service_action_call('systempartner_systempartner', 'getPlayerDeliveryTypes', kparams);
|
535
|
+
if (client.is_multirequest)
|
536
|
+
return nil;
|
537
|
+
end
|
538
|
+
return client.do_queue();
|
539
|
+
end
|
540
|
+
|
541
|
+
def reset_user_password(user_id, partner_id, new_password)
|
542
|
+
kparams = {}
|
543
|
+
client.add_param(kparams, 'userId', user_id);
|
544
|
+
client.add_param(kparams, 'partnerId', partner_id);
|
545
|
+
client.add_param(kparams, 'newPassword', new_password);
|
546
|
+
client.queue_service_action_call('systempartner_systempartner', 'resetUserPassword', kparams);
|
547
|
+
if (client.is_multirequest)
|
548
|
+
return nil;
|
549
|
+
end
|
550
|
+
return client.do_queue();
|
551
|
+
end
|
552
|
+
|
553
|
+
def list_user_login_data(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
554
|
+
kparams = {}
|
555
|
+
client.add_param(kparams, 'filter', filter);
|
556
|
+
client.add_param(kparams, 'pager', pager);
|
557
|
+
client.queue_service_action_call('systempartner_systempartner', 'listUserLoginData', kparams);
|
558
|
+
if (client.is_multirequest)
|
559
|
+
return nil;
|
560
|
+
end
|
561
|
+
return client.do_queue();
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
565
|
+
class KalturaClient < KalturaClientBase
|
566
|
+
attr_reader :system_partner_service
|
567
|
+
def system_partner_service
|
568
|
+
if (@system_partner_service == nil)
|
569
|
+
@system_partner_service = KalturaSystemPartnerService.new(self)
|
570
|
+
end
|
571
|
+
return @system_partner_service
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
575
|
+
end
|