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
@@ -1,61 +0,0 @@
|
|
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-2011 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
|
-
|
33
|
-
# Aspera service
|
34
|
-
#
|
35
|
-
class KalturaAsperaService < KalturaServiceBase
|
36
|
-
def initialize(client)
|
37
|
-
super(client)
|
38
|
-
end
|
39
|
-
|
40
|
-
def get_fasp_url(flavor_asset_id)
|
41
|
-
kparams = {}
|
42
|
-
client.add_param(kparams, 'flavorAssetId', flavor_asset_id);
|
43
|
-
client.queue_service_action_call('aspera_aspera', 'getFaspUrl', kparams);
|
44
|
-
if (client.is_multirequest)
|
45
|
-
return nil;
|
46
|
-
end
|
47
|
-
return client.do_queue();
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
class KalturaClient < KalturaClientBase
|
52
|
-
attr_reader :aspera_service
|
53
|
-
def aspera_service
|
54
|
-
if (@aspera_service == nil)
|
55
|
-
@aspera_service = KalturaAsperaService.new(self)
|
56
|
-
end
|
57
|
-
return @aspera_service
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
@@ -1,349 +0,0 @@
|
|
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-2011 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 KalturaAuditTrailChangeXmlNodeType
|
33
|
-
CHANGED = 1
|
34
|
-
ADDED = 2
|
35
|
-
REMOVED = 3
|
36
|
-
end
|
37
|
-
|
38
|
-
class KalturaAuditTrailContext
|
39
|
-
CLIENT = -1
|
40
|
-
SCRIPT = 0
|
41
|
-
PS2 = 1
|
42
|
-
API_V3 = 2
|
43
|
-
end
|
44
|
-
|
45
|
-
class KalturaAuditTrailFileSyncType
|
46
|
-
FILE = 1
|
47
|
-
LINK = 2
|
48
|
-
URL = 3
|
49
|
-
end
|
50
|
-
|
51
|
-
class KalturaAuditTrailStatus
|
52
|
-
PENDING = 1
|
53
|
-
READY = 2
|
54
|
-
FAILED = 3
|
55
|
-
end
|
56
|
-
|
57
|
-
class KalturaAuditTrailAction
|
58
|
-
CHANGED = "CHANGED"
|
59
|
-
CONTENT_VIEWED = "CONTENT_VIEWED"
|
60
|
-
COPIED = "COPIED"
|
61
|
-
CREATED = "CREATED"
|
62
|
-
DELETED = "DELETED"
|
63
|
-
FILE_SYNC_CREATED = "FILE_SYNC_CREATED"
|
64
|
-
RELATION_ADDED = "RELATION_ADDED"
|
65
|
-
RELATION_REMOVED = "RELATION_REMOVED"
|
66
|
-
VIEWED = "VIEWED"
|
67
|
-
end
|
68
|
-
|
69
|
-
class KalturaAuditTrailObjectType
|
70
|
-
BATCH_JOB = "BatchJob"
|
71
|
-
EMAIL_INGESTION_PROFILE = "EmailIngestionProfile"
|
72
|
-
FILE_SYNC = "FileSync"
|
73
|
-
KSHOW_KUSER = "KshowKuser"
|
74
|
-
METADATA = "Metadata"
|
75
|
-
METADATA_PROFILE = "MetadataProfile"
|
76
|
-
PARTNER = "Partner"
|
77
|
-
PERMISSION = "Permission"
|
78
|
-
UPLOAD_TOKEN = "UploadToken"
|
79
|
-
USER_LOGIN_DATA = "UserLoginData"
|
80
|
-
USER_ROLE = "UserRole"
|
81
|
-
ACCESS_CONTROL = "accessControl"
|
82
|
-
CATEGORY = "category"
|
83
|
-
CONVERSION_PROFILE_2 = "conversionProfile2"
|
84
|
-
ENTRY = "entry"
|
85
|
-
FLAVOR_ASSET = "flavorAsset"
|
86
|
-
FLAVOR_PARAMS = "flavorParams"
|
87
|
-
FLAVOR_PARAMS_CONVERSION_PROFILE = "flavorParamsConversionProfile"
|
88
|
-
FLAVOR_PARAMS_OUTPUT = "flavorParamsOutput"
|
89
|
-
KSHOW = "kshow"
|
90
|
-
KUSER = "kuser"
|
91
|
-
MEDIA_INFO = "mediaInfo"
|
92
|
-
MODERATION = "moderation"
|
93
|
-
ROUGHCUT = "roughcutEntry"
|
94
|
-
SYNDICATION = "syndicationFeed"
|
95
|
-
THUMBNAIL_ASSET = "thumbAsset"
|
96
|
-
THUMBNAIL_PARAMS = "thumbParams"
|
97
|
-
THUMBNAIL_PARAMS_OUTPUT = "thumbParamsOutput"
|
98
|
-
UI_CONF = "uiConf"
|
99
|
-
WIDGET = "widget"
|
100
|
-
end
|
101
|
-
|
102
|
-
class KalturaAuditTrailOrderBy
|
103
|
-
CREATED_AT_ASC = "+createdAt"
|
104
|
-
PARSED_AT_ASC = "+parsedAt"
|
105
|
-
CREATED_AT_DESC = "-createdAt"
|
106
|
-
PARSED_AT_DESC = "-parsedAt"
|
107
|
-
end
|
108
|
-
|
109
|
-
class KalturaAuditTrailInfo < KalturaObjectBase
|
110
|
-
|
111
|
-
end
|
112
|
-
|
113
|
-
class KalturaAuditTrail < KalturaObjectBase
|
114
|
-
attr_accessor :id
|
115
|
-
attr_accessor :created_at
|
116
|
-
# Indicates when the data was parsed
|
117
|
-
#
|
118
|
-
attr_accessor :parsed_at
|
119
|
-
attr_accessor :status
|
120
|
-
attr_accessor :audit_object_type
|
121
|
-
attr_accessor :object_id
|
122
|
-
attr_accessor :related_object_id
|
123
|
-
attr_accessor :related_object_type
|
124
|
-
attr_accessor :entry_id
|
125
|
-
attr_accessor :master_partner_id
|
126
|
-
attr_accessor :partner_id
|
127
|
-
attr_accessor :request_id
|
128
|
-
attr_accessor :user_id
|
129
|
-
attr_accessor :action
|
130
|
-
attr_accessor :data
|
131
|
-
attr_accessor :ks
|
132
|
-
attr_accessor :context
|
133
|
-
# The API service and action that called and caused this audit
|
134
|
-
#
|
135
|
-
attr_accessor :entry_point
|
136
|
-
attr_accessor :server_name
|
137
|
-
attr_accessor :ip_address
|
138
|
-
attr_accessor :user_agent
|
139
|
-
attr_accessor :client_tag
|
140
|
-
attr_accessor :description
|
141
|
-
attr_accessor :error_description
|
142
|
-
|
143
|
-
def id=(val)
|
144
|
-
@id = val.to_i
|
145
|
-
end
|
146
|
-
def created_at=(val)
|
147
|
-
@created_at = val.to_i
|
148
|
-
end
|
149
|
-
def parsed_at=(val)
|
150
|
-
@parsed_at = val.to_i
|
151
|
-
end
|
152
|
-
def status=(val)
|
153
|
-
@status = val.to_i
|
154
|
-
end
|
155
|
-
def master_partner_id=(val)
|
156
|
-
@master_partner_id = val.to_i
|
157
|
-
end
|
158
|
-
def partner_id=(val)
|
159
|
-
@partner_id = val.to_i
|
160
|
-
end
|
161
|
-
def context=(val)
|
162
|
-
@context = val.to_i
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
class KalturaAuditTrailChangeItem < KalturaObjectBase
|
167
|
-
attr_accessor :descriptor
|
168
|
-
attr_accessor :old_value
|
169
|
-
attr_accessor :new_value
|
170
|
-
|
171
|
-
end
|
172
|
-
|
173
|
-
class KalturaAuditTrailListResponse < KalturaObjectBase
|
174
|
-
attr_accessor :objects
|
175
|
-
attr_accessor :total_count
|
176
|
-
|
177
|
-
def total_count=(val)
|
178
|
-
@total_count = val.to_i
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
class KalturaAuditTrailBaseFilter < KalturaFilter
|
183
|
-
attr_accessor :id_equal
|
184
|
-
attr_accessor :created_at_greater_than_or_equal
|
185
|
-
attr_accessor :created_at_less_than_or_equal
|
186
|
-
attr_accessor :parsed_at_greater_than_or_equal
|
187
|
-
attr_accessor :parsed_at_less_than_or_equal
|
188
|
-
attr_accessor :status_equal
|
189
|
-
attr_accessor :status_in
|
190
|
-
attr_accessor :audit_object_type_equal
|
191
|
-
attr_accessor :audit_object_type_in
|
192
|
-
attr_accessor :object_id_equal
|
193
|
-
attr_accessor :object_id_in
|
194
|
-
attr_accessor :related_object_id_equal
|
195
|
-
attr_accessor :related_object_id_in
|
196
|
-
attr_accessor :related_object_type_equal
|
197
|
-
attr_accessor :related_object_type_in
|
198
|
-
attr_accessor :entry_id_equal
|
199
|
-
attr_accessor :entry_id_in
|
200
|
-
attr_accessor :master_partner_id_equal
|
201
|
-
attr_accessor :master_partner_id_in
|
202
|
-
attr_accessor :partner_id_equal
|
203
|
-
attr_accessor :partner_id_in
|
204
|
-
attr_accessor :request_id_equal
|
205
|
-
attr_accessor :request_id_in
|
206
|
-
attr_accessor :user_id_equal
|
207
|
-
attr_accessor :user_id_in
|
208
|
-
attr_accessor :action_equal
|
209
|
-
attr_accessor :action_in
|
210
|
-
attr_accessor :ks_equal
|
211
|
-
attr_accessor :context_equal
|
212
|
-
attr_accessor :context_in
|
213
|
-
attr_accessor :entry_point_equal
|
214
|
-
attr_accessor :entry_point_in
|
215
|
-
attr_accessor :server_name_equal
|
216
|
-
attr_accessor :server_name_in
|
217
|
-
attr_accessor :ip_address_equal
|
218
|
-
attr_accessor :ip_address_in
|
219
|
-
attr_accessor :client_tag_equal
|
220
|
-
|
221
|
-
def id_equal=(val)
|
222
|
-
@id_equal = val.to_i
|
223
|
-
end
|
224
|
-
def created_at_greater_than_or_equal=(val)
|
225
|
-
@created_at_greater_than_or_equal = val.to_i
|
226
|
-
end
|
227
|
-
def created_at_less_than_or_equal=(val)
|
228
|
-
@created_at_less_than_or_equal = val.to_i
|
229
|
-
end
|
230
|
-
def parsed_at_greater_than_or_equal=(val)
|
231
|
-
@parsed_at_greater_than_or_equal = val.to_i
|
232
|
-
end
|
233
|
-
def parsed_at_less_than_or_equal=(val)
|
234
|
-
@parsed_at_less_than_or_equal = val.to_i
|
235
|
-
end
|
236
|
-
def status_equal=(val)
|
237
|
-
@status_equal = val.to_i
|
238
|
-
end
|
239
|
-
def master_partner_id_equal=(val)
|
240
|
-
@master_partner_id_equal = val.to_i
|
241
|
-
end
|
242
|
-
def partner_id_equal=(val)
|
243
|
-
@partner_id_equal = val.to_i
|
244
|
-
end
|
245
|
-
def context_equal=(val)
|
246
|
-
@context_equal = val.to_i
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
class KalturaAuditTrailChangeInfo < KalturaAuditTrailInfo
|
251
|
-
attr_accessor :changed_items
|
252
|
-
|
253
|
-
end
|
254
|
-
|
255
|
-
class KalturaAuditTrailChangeXmlNode < KalturaAuditTrailChangeItem
|
256
|
-
attr_accessor :type
|
257
|
-
|
258
|
-
def type=(val)
|
259
|
-
@type = val.to_i
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
class KalturaAuditTrailFileSyncCreateInfo < KalturaAuditTrailInfo
|
264
|
-
attr_accessor :version
|
265
|
-
attr_accessor :object_sub_type
|
266
|
-
attr_accessor :dc
|
267
|
-
attr_accessor :original
|
268
|
-
attr_accessor :file_type
|
269
|
-
|
270
|
-
def object_sub_type=(val)
|
271
|
-
@object_sub_type = val.to_i
|
272
|
-
end
|
273
|
-
def dc=(val)
|
274
|
-
@dc = val.to_i
|
275
|
-
end
|
276
|
-
def original=(val)
|
277
|
-
@original = to_b(val)
|
278
|
-
end
|
279
|
-
def file_type=(val)
|
280
|
-
@file_type = val.to_i
|
281
|
-
end
|
282
|
-
end
|
283
|
-
|
284
|
-
class KalturaAuditTrailTextInfo < KalturaAuditTrailInfo
|
285
|
-
attr_accessor :info
|
286
|
-
|
287
|
-
end
|
288
|
-
|
289
|
-
class KalturaAuditTrailFilter < KalturaAuditTrailBaseFilter
|
290
|
-
|
291
|
-
end
|
292
|
-
|
293
|
-
|
294
|
-
# Audit Trail service
|
295
|
-
#
|
296
|
-
class KalturaAuditTrailService < KalturaServiceBase
|
297
|
-
def initialize(client)
|
298
|
-
super(client)
|
299
|
-
end
|
300
|
-
|
301
|
-
# Allows you to add an audit trail object and audit trail content associated with Kaltura object
|
302
|
-
#
|
303
|
-
def add(audit_trail)
|
304
|
-
kparams = {}
|
305
|
-
client.add_param(kparams, 'auditTrail', audit_trail);
|
306
|
-
client.queue_service_action_call('audit_audittrail', 'add', kparams);
|
307
|
-
if (client.is_multirequest)
|
308
|
-
return nil;
|
309
|
-
end
|
310
|
-
return client.do_queue();
|
311
|
-
end
|
312
|
-
|
313
|
-
# Retrieve an audit trail object by id
|
314
|
-
#
|
315
|
-
def get(id)
|
316
|
-
kparams = {}
|
317
|
-
client.add_param(kparams, 'id', id);
|
318
|
-
client.queue_service_action_call('audit_audittrail', 'get', kparams);
|
319
|
-
if (client.is_multirequest)
|
320
|
-
return nil;
|
321
|
-
end
|
322
|
-
return client.do_queue();
|
323
|
-
end
|
324
|
-
|
325
|
-
# List audit trail objects by filter and pager
|
326
|
-
#
|
327
|
-
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
328
|
-
kparams = {}
|
329
|
-
client.add_param(kparams, 'filter', filter);
|
330
|
-
client.add_param(kparams, 'pager', pager);
|
331
|
-
client.queue_service_action_call('audit_audittrail', 'list', kparams);
|
332
|
-
if (client.is_multirequest)
|
333
|
-
return nil;
|
334
|
-
end
|
335
|
-
return client.do_queue();
|
336
|
-
end
|
337
|
-
end
|
338
|
-
|
339
|
-
class KalturaClient < KalturaClientBase
|
340
|
-
attr_reader :audit_trail_service
|
341
|
-
def audit_trail_service
|
342
|
-
if (@audit_trail_service == nil)
|
343
|
-
@audit_trail_service = KalturaAuditTrailService.new(self)
|
344
|
-
end
|
345
|
-
return @audit_trail_service
|
346
|
-
end
|
347
|
-
end
|
348
|
-
|
349
|
-
end
|
@@ -1,401 +0,0 @@
|
|
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-2011 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 KalturaDrmLicenseExpirationPolicy
|
33
|
-
FIXED_DURATION = 1
|
34
|
-
ENTRY_SCHEDULING_END = 2
|
35
|
-
UNLIMITED = 3
|
36
|
-
end
|
37
|
-
|
38
|
-
class KalturaDrmPolicyStatus
|
39
|
-
ACTIVE = 1
|
40
|
-
DELETED = 2
|
41
|
-
end
|
42
|
-
|
43
|
-
class KalturaDrmProfileStatus
|
44
|
-
ACTIVE = 1
|
45
|
-
DELETED = 2
|
46
|
-
end
|
47
|
-
|
48
|
-
class KalturaDrmDeviceOrderBy
|
49
|
-
CREATED_AT_ASC = "+createdAt"
|
50
|
-
CREATED_AT_DESC = "-createdAt"
|
51
|
-
end
|
52
|
-
|
53
|
-
class KalturaDrmLicenseScenario
|
54
|
-
PROTECTION = "playReady.PROTECTION"
|
55
|
-
PURCHASE = "playReady.PURCHASE"
|
56
|
-
RENTAL = "playReady.RENTAL"
|
57
|
-
SUBSCRIPTION = "playReady.SUBSCRIPTION"
|
58
|
-
end
|
59
|
-
|
60
|
-
class KalturaDrmLicenseType
|
61
|
-
NON_PERSISTENT = "playReady.NON_PERSISTENT"
|
62
|
-
PERSISTENT = "playReady.PERSISTENT"
|
63
|
-
end
|
64
|
-
|
65
|
-
class KalturaDrmPolicyOrderBy
|
66
|
-
end
|
67
|
-
|
68
|
-
class KalturaDrmProfileOrderBy
|
69
|
-
ID_ASC = "+id"
|
70
|
-
NAME_ASC = "+name"
|
71
|
-
ID_DESC = "-id"
|
72
|
-
NAME_DESC = "-name"
|
73
|
-
end
|
74
|
-
|
75
|
-
class KalturaDrmProviderType
|
76
|
-
PLAY_READY = "playReady.PLAY_READY"
|
77
|
-
WIDEVINE = "widevine.WIDEVINE"
|
78
|
-
end
|
79
|
-
|
80
|
-
class KalturaDrmPolicy < KalturaObjectBase
|
81
|
-
attr_accessor :id
|
82
|
-
attr_accessor :partner_id
|
83
|
-
attr_accessor :name
|
84
|
-
attr_accessor :system_name
|
85
|
-
attr_accessor :description
|
86
|
-
attr_accessor :provider
|
87
|
-
attr_accessor :status
|
88
|
-
attr_accessor :scenario
|
89
|
-
attr_accessor :license_type
|
90
|
-
attr_accessor :license_expiration_policy
|
91
|
-
# Duration in days the license is effective
|
92
|
-
#
|
93
|
-
attr_accessor :duration
|
94
|
-
attr_accessor :created_at
|
95
|
-
attr_accessor :updated_at
|
96
|
-
|
97
|
-
def id=(val)
|
98
|
-
@id = val.to_i
|
99
|
-
end
|
100
|
-
def partner_id=(val)
|
101
|
-
@partner_id = val.to_i
|
102
|
-
end
|
103
|
-
def status=(val)
|
104
|
-
@status = val.to_i
|
105
|
-
end
|
106
|
-
def license_expiration_policy=(val)
|
107
|
-
@license_expiration_policy = val.to_i
|
108
|
-
end
|
109
|
-
def duration=(val)
|
110
|
-
@duration = val.to_i
|
111
|
-
end
|
112
|
-
def created_at=(val)
|
113
|
-
@created_at = val.to_i
|
114
|
-
end
|
115
|
-
def updated_at=(val)
|
116
|
-
@updated_at = val.to_i
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
class KalturaDrmPolicyListResponse < KalturaObjectBase
|
121
|
-
attr_accessor :objects
|
122
|
-
attr_accessor :total_count
|
123
|
-
|
124
|
-
def total_count=(val)
|
125
|
-
@total_count = val.to_i
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
class KalturaDrmProfile < KalturaObjectBase
|
130
|
-
attr_accessor :id
|
131
|
-
attr_accessor :partner_id
|
132
|
-
attr_accessor :name
|
133
|
-
attr_accessor :description
|
134
|
-
attr_accessor :provider
|
135
|
-
attr_accessor :status
|
136
|
-
attr_accessor :license_server_url
|
137
|
-
attr_accessor :default_policy
|
138
|
-
attr_accessor :created_at
|
139
|
-
attr_accessor :updated_at
|
140
|
-
|
141
|
-
def id=(val)
|
142
|
-
@id = val.to_i
|
143
|
-
end
|
144
|
-
def partner_id=(val)
|
145
|
-
@partner_id = val.to_i
|
146
|
-
end
|
147
|
-
def status=(val)
|
148
|
-
@status = val.to_i
|
149
|
-
end
|
150
|
-
def created_at=(val)
|
151
|
-
@created_at = val.to_i
|
152
|
-
end
|
153
|
-
def updated_at=(val)
|
154
|
-
@updated_at = val.to_i
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
class KalturaDrmProfileListResponse < KalturaObjectBase
|
159
|
-
attr_accessor :objects
|
160
|
-
attr_accessor :total_count
|
161
|
-
|
162
|
-
def total_count=(val)
|
163
|
-
@total_count = val.to_i
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
class KalturaDrmDeviceBaseFilter < KalturaFilter
|
168
|
-
attr_accessor :partner_id_equal
|
169
|
-
attr_accessor :partner_id_in
|
170
|
-
attr_accessor :device_id_like
|
171
|
-
attr_accessor :provider_equal
|
172
|
-
attr_accessor :provider_in
|
173
|
-
|
174
|
-
def partner_id_equal=(val)
|
175
|
-
@partner_id_equal = val.to_i
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
class KalturaDrmPolicyBaseFilter < KalturaFilter
|
180
|
-
attr_accessor :partner_id_equal
|
181
|
-
attr_accessor :partner_id_in
|
182
|
-
attr_accessor :name_like
|
183
|
-
attr_accessor :system_name_like
|
184
|
-
attr_accessor :provider_equal
|
185
|
-
attr_accessor :provider_in
|
186
|
-
attr_accessor :status_equal
|
187
|
-
attr_accessor :status_in
|
188
|
-
attr_accessor :scenario_equal
|
189
|
-
attr_accessor :scenario_in
|
190
|
-
|
191
|
-
def partner_id_equal=(val)
|
192
|
-
@partner_id_equal = val.to_i
|
193
|
-
end
|
194
|
-
def status_equal=(val)
|
195
|
-
@status_equal = val.to_i
|
196
|
-
end
|
197
|
-
end
|
198
|
-
|
199
|
-
class KalturaDrmProfileBaseFilter < KalturaFilter
|
200
|
-
attr_accessor :id_equal
|
201
|
-
attr_accessor :id_in
|
202
|
-
attr_accessor :partner_id_equal
|
203
|
-
attr_accessor :partner_id_in
|
204
|
-
attr_accessor :name_like
|
205
|
-
attr_accessor :provider_equal
|
206
|
-
attr_accessor :provider_in
|
207
|
-
attr_accessor :status_equal
|
208
|
-
attr_accessor :status_in
|
209
|
-
|
210
|
-
def id_equal=(val)
|
211
|
-
@id_equal = val.to_i
|
212
|
-
end
|
213
|
-
def partner_id_equal=(val)
|
214
|
-
@partner_id_equal = val.to_i
|
215
|
-
end
|
216
|
-
def status_equal=(val)
|
217
|
-
@status_equal = val.to_i
|
218
|
-
end
|
219
|
-
end
|
220
|
-
|
221
|
-
class KalturaDrmDeviceFilter < KalturaDrmDeviceBaseFilter
|
222
|
-
|
223
|
-
end
|
224
|
-
|
225
|
-
class KalturaDrmPolicyFilter < KalturaDrmPolicyBaseFilter
|
226
|
-
|
227
|
-
end
|
228
|
-
|
229
|
-
class KalturaDrmProfileFilter < KalturaDrmProfileBaseFilter
|
230
|
-
|
231
|
-
end
|
232
|
-
|
233
|
-
|
234
|
-
class KalturaDrmPolicyService < KalturaServiceBase
|
235
|
-
def initialize(client)
|
236
|
-
super(client)
|
237
|
-
end
|
238
|
-
|
239
|
-
# Allows you to add a new DrmPolicy object
|
240
|
-
#
|
241
|
-
def add(drm_policy)
|
242
|
-
kparams = {}
|
243
|
-
client.add_param(kparams, 'drmPolicy', drm_policy);
|
244
|
-
client.queue_service_action_call('drm_drmpolicy', 'add', kparams);
|
245
|
-
if (client.is_multirequest)
|
246
|
-
return nil;
|
247
|
-
end
|
248
|
-
return client.do_queue();
|
249
|
-
end
|
250
|
-
|
251
|
-
# Retrieve a KalturaDrmPolicy object by ID
|
252
|
-
#
|
253
|
-
def get(drm_policy_id)
|
254
|
-
kparams = {}
|
255
|
-
client.add_param(kparams, 'drmPolicyId', drm_policy_id);
|
256
|
-
client.queue_service_action_call('drm_drmpolicy', 'get', kparams);
|
257
|
-
if (client.is_multirequest)
|
258
|
-
return nil;
|
259
|
-
end
|
260
|
-
return client.do_queue();
|
261
|
-
end
|
262
|
-
|
263
|
-
# Update an existing KalturaDrmPolicy object
|
264
|
-
#
|
265
|
-
def update(drm_policy_id, drm_policy)
|
266
|
-
kparams = {}
|
267
|
-
client.add_param(kparams, 'drmPolicyId', drm_policy_id);
|
268
|
-
# Id
|
269
|
-
client.add_param(kparams, 'drmPolicy', drm_policy);
|
270
|
-
client.queue_service_action_call('drm_drmpolicy', 'update', kparams);
|
271
|
-
if (client.is_multirequest)
|
272
|
-
return nil;
|
273
|
-
end
|
274
|
-
return client.do_queue();
|
275
|
-
end
|
276
|
-
|
277
|
-
# Mark the KalturaDrmPolicy object as deleted
|
278
|
-
#
|
279
|
-
def delete(drm_policy_id)
|
280
|
-
kparams = {}
|
281
|
-
client.add_param(kparams, 'drmPolicyId', drm_policy_id);
|
282
|
-
client.queue_service_action_call('drm_drmpolicy', 'delete', kparams);
|
283
|
-
if (client.is_multirequest)
|
284
|
-
return nil;
|
285
|
-
end
|
286
|
-
return client.do_queue();
|
287
|
-
end
|
288
|
-
|
289
|
-
# List KalturaDrmPolicy objects
|
290
|
-
#
|
291
|
-
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
292
|
-
kparams = {}
|
293
|
-
client.add_param(kparams, 'filter', filter);
|
294
|
-
client.add_param(kparams, 'pager', pager);
|
295
|
-
client.queue_service_action_call('drm_drmpolicy', 'list', kparams);
|
296
|
-
if (client.is_multirequest)
|
297
|
-
return nil;
|
298
|
-
end
|
299
|
-
return client.do_queue();
|
300
|
-
end
|
301
|
-
end
|
302
|
-
|
303
|
-
class KalturaDrmProfileService < KalturaServiceBase
|
304
|
-
def initialize(client)
|
305
|
-
super(client)
|
306
|
-
end
|
307
|
-
|
308
|
-
# Allows you to add a new DrmProfile object
|
309
|
-
#
|
310
|
-
def add(drm_profile)
|
311
|
-
kparams = {}
|
312
|
-
client.add_param(kparams, 'drmProfile', drm_profile);
|
313
|
-
client.queue_service_action_call('drm_drmprofile', 'add', kparams);
|
314
|
-
if (client.is_multirequest)
|
315
|
-
return nil;
|
316
|
-
end
|
317
|
-
return client.do_queue();
|
318
|
-
end
|
319
|
-
|
320
|
-
# Retrieve a KalturaDrmProfile object by ID
|
321
|
-
#
|
322
|
-
def get(drm_profile_id)
|
323
|
-
kparams = {}
|
324
|
-
client.add_param(kparams, 'drmProfileId', drm_profile_id);
|
325
|
-
client.queue_service_action_call('drm_drmprofile', 'get', kparams);
|
326
|
-
if (client.is_multirequest)
|
327
|
-
return nil;
|
328
|
-
end
|
329
|
-
return client.do_queue();
|
330
|
-
end
|
331
|
-
|
332
|
-
# Update an existing KalturaDrmProfile object
|
333
|
-
#
|
334
|
-
def update(drm_profile_id, drm_profile)
|
335
|
-
kparams = {}
|
336
|
-
client.add_param(kparams, 'drmProfileId', drm_profile_id);
|
337
|
-
# Id
|
338
|
-
client.add_param(kparams, 'drmProfile', drm_profile);
|
339
|
-
client.queue_service_action_call('drm_drmprofile', 'update', kparams);
|
340
|
-
if (client.is_multirequest)
|
341
|
-
return nil;
|
342
|
-
end
|
343
|
-
return client.do_queue();
|
344
|
-
end
|
345
|
-
|
346
|
-
# Mark the KalturaDrmProfile object as deleted
|
347
|
-
#
|
348
|
-
def delete(drm_profile_id)
|
349
|
-
kparams = {}
|
350
|
-
client.add_param(kparams, 'drmProfileId', drm_profile_id);
|
351
|
-
client.queue_service_action_call('drm_drmprofile', 'delete', kparams);
|
352
|
-
if (client.is_multirequest)
|
353
|
-
return nil;
|
354
|
-
end
|
355
|
-
return client.do_queue();
|
356
|
-
end
|
357
|
-
|
358
|
-
# List KalturaDrmProfile objects
|
359
|
-
#
|
360
|
-
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
361
|
-
kparams = {}
|
362
|
-
client.add_param(kparams, 'filter', filter);
|
363
|
-
client.add_param(kparams, 'pager', pager);
|
364
|
-
client.queue_service_action_call('drm_drmprofile', 'list', kparams);
|
365
|
-
if (client.is_multirequest)
|
366
|
-
return nil;
|
367
|
-
end
|
368
|
-
return client.do_queue();
|
369
|
-
end
|
370
|
-
|
371
|
-
# Retrieve a KalturaDrmProfile object by provider, if no specific profile defined return default profile
|
372
|
-
#
|
373
|
-
def get_by_provider(provider)
|
374
|
-
kparams = {}
|
375
|
-
client.add_param(kparams, 'provider', provider);
|
376
|
-
client.queue_service_action_call('drm_drmprofile', 'getByProvider', kparams);
|
377
|
-
if (client.is_multirequest)
|
378
|
-
return nil;
|
379
|
-
end
|
380
|
-
return client.do_queue();
|
381
|
-
end
|
382
|
-
end
|
383
|
-
|
384
|
-
class KalturaClient < KalturaClientBase
|
385
|
-
attr_reader :drm_policy_service
|
386
|
-
def drm_policy_service
|
387
|
-
if (@drm_policy_service == nil)
|
388
|
-
@drm_policy_service = KalturaDrmPolicyService.new(self)
|
389
|
-
end
|
390
|
-
return @drm_policy_service
|
391
|
-
end
|
392
|
-
attr_reader :drm_profile_service
|
393
|
-
def drm_profile_service
|
394
|
-
if (@drm_profile_service == nil)
|
395
|
-
@drm_profile_service = KalturaDrmProfileService.new(self)
|
396
|
-
end
|
397
|
-
return @drm_profile_service
|
398
|
-
end
|
399
|
-
end
|
400
|
-
|
401
|
-
end
|