kaltura-client 15.2.0 → 15.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README +1 -1
- data/lib/kaltura_client.rb +8 -5
- data/lib/kaltura_client_base.rb +3 -1
- data/lib/kaltura_enums.rb +1 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +30 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +13 -0
- data/lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb +150 -0
- data/lib/kaltura_types.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 415cbe2878c6794122226ab4ac5ab3ff1ca00d1e18ad445bc699706e563fbb95
|
4
|
+
data.tar.gz: 19fcd801a013cf74f4ac3a6dab6757aaa063c5f900971888549844d1659ae3fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f19de3ecac00594c8b7ecc8f3a37d267e6899e35109e094b513eef7d676e288501418a555ac89dde3452456adbdc91f102a89aa32f01ec897ef2e8d8fc6b18bb
|
7
|
+
data.tar.gz: 273fac658eceb3b5558b99ed8215cb4a658e4892be3363c7521a6ca989ff808a3e4ba34fea352fcf905e00b0b9707b4bdb8b7007e876fb2090dda87617f91e00
|
data/README
CHANGED
data/lib/kaltura_client.rb
CHANGED
@@ -217,12 +217,13 @@ module Kaltura
|
|
217
217
|
|
218
218
|
# Update admin user password and email
|
219
219
|
# @return [KalturaAdminUser]
|
220
|
-
def update_password(email, password, new_email='', new_password='')
|
220
|
+
def update_password(email, password, new_email='', new_password='', otp=KalturaNotImplemented)
|
221
221
|
kparams = {}
|
222
222
|
client.add_param(kparams, 'email', email)
|
223
223
|
client.add_param(kparams, 'password', password)
|
224
224
|
client.add_param(kparams, 'newEmail', new_email)
|
225
225
|
client.add_param(kparams, 'newPassword', new_password)
|
226
|
+
client.add_param(kparams, 'otp', otp)
|
226
227
|
client.queue_service_action_call('adminuser', 'updatePassword', 'KalturaAdminUser', kparams)
|
227
228
|
if (client.is_multirequest)
|
228
229
|
return nil
|
@@ -3405,11 +3406,12 @@ module Kaltura
|
|
3405
3406
|
|
3406
3407
|
# Retrieve partner secret and admin secret
|
3407
3408
|
# @return [KalturaPartner]
|
3408
|
-
def get_secrets(partner_id, admin_email, cms_password)
|
3409
|
+
def get_secrets(partner_id, admin_email, cms_password, otp=KalturaNotImplemented)
|
3409
3410
|
kparams = {}
|
3410
3411
|
client.add_param(kparams, 'partnerId', partner_id)
|
3411
3412
|
client.add_param(kparams, 'adminEmail', admin_email)
|
3412
3413
|
client.add_param(kparams, 'cmsPassword', cms_password)
|
3414
|
+
client.add_param(kparams, 'otp', otp)
|
3413
3415
|
client.queue_service_action_call('partner', 'getSecrets', 'KalturaPartner', kparams)
|
3414
3416
|
if (client.is_multirequest)
|
3415
3417
|
return nil
|
@@ -5675,7 +5677,7 @@ module Kaltura
|
|
5675
5677
|
|
5676
5678
|
# Updates a user's login data: email, password, name.
|
5677
5679
|
# @return []
|
5678
|
-
def update_login_data(old_login_id, password, new_login_id='', new_password='', new_first_name=KalturaNotImplemented, new_last_name=KalturaNotImplemented)
|
5680
|
+
def update_login_data(old_login_id, password, new_login_id='', new_password='', new_first_name=KalturaNotImplemented, new_last_name=KalturaNotImplemented, otp=KalturaNotImplemented)
|
5679
5681
|
kparams = {}
|
5680
5682
|
client.add_param(kparams, 'oldLoginId', old_login_id)
|
5681
5683
|
client.add_param(kparams, 'password', password)
|
@@ -5683,6 +5685,7 @@ module Kaltura
|
|
5683
5685
|
client.add_param(kparams, 'newPassword', new_password)
|
5684
5686
|
client.add_param(kparams, 'newFirstName', new_first_name)
|
5685
5687
|
client.add_param(kparams, 'newLastName', new_last_name)
|
5688
|
+
client.add_param(kparams, 'otp', otp)
|
5686
5689
|
client.queue_service_action_call('user', 'updateLoginData', '', kparams)
|
5687
5690
|
if (client.is_multirequest)
|
5688
5691
|
return nil
|
@@ -6205,8 +6208,8 @@ module Kaltura
|
|
6205
6208
|
|
6206
6209
|
def initialize(client)
|
6207
6210
|
super(client)
|
6208
|
-
self.client_tag = 'ruby:19-07-
|
6209
|
-
self.api_version = '15.
|
6211
|
+
self.client_tag = 'ruby:19-07-17'
|
6212
|
+
self.api_version = '15.3.0'
|
6210
6213
|
end
|
6211
6214
|
|
6212
6215
|
def client_tag=(value)
|
data/lib/kaltura_client_base.rb
CHANGED
@@ -133,8 +133,10 @@ module Kaltura
|
|
133
133
|
return result_object
|
134
134
|
|
135
135
|
rescue KalturaAPIError => e
|
136
|
+
reset_request()
|
136
137
|
raise e
|
137
138
|
rescue Exception => e
|
139
|
+
reset_request()
|
138
140
|
raise KalturaAPIError.new("KALTURA_RUBY_CLIENT_ERROR", e.to_s)
|
139
141
|
end
|
140
142
|
end
|
@@ -499,4 +501,4 @@ module Kaltura
|
|
499
501
|
@message = message
|
500
502
|
end
|
501
503
|
end
|
502
|
-
end
|
504
|
+
end
|
data/lib/kaltura_enums.rb
CHANGED
@@ -1045,6 +1045,7 @@ module Kaltura
|
|
1045
1045
|
|
1046
1046
|
class KalturaBatchJobType
|
1047
1047
|
CONVERT = "0"
|
1048
|
+
CONVERT_CAPTION_ASSET = "caption.convertcaptionasset"
|
1048
1049
|
PARSE_MULTI_LANGUAGE_CAPTION_ASSET = "caption.parsemultilanguagecaptionasset"
|
1049
1050
|
PARSE_CAPTION_ASSET = "captionSearch.parseCaptionAsset"
|
1050
1051
|
DISTRIBUTION_DELETE = "contentDistribution.DistributionDelete"
|
@@ -57,6 +57,7 @@ module Kaltura
|
|
57
57
|
DFXP = "2"
|
58
58
|
WEBVTT = "3"
|
59
59
|
CAP = "4"
|
60
|
+
SCC = "5"
|
60
61
|
end
|
61
62
|
|
62
63
|
class KalturaCaptionAsset < KalturaAsset
|
@@ -239,6 +240,35 @@ module Kaltura
|
|
239
240
|
|
240
241
|
end
|
241
242
|
|
243
|
+
class KalturaConvertCaptionAssetJobData < KalturaJobData
|
244
|
+
attr_accessor :caption_asset_id
|
245
|
+
attr_accessor :file_location
|
246
|
+
attr_accessor :file_encryption_key
|
247
|
+
attr_accessor :from_type
|
248
|
+
attr_accessor :to_type
|
249
|
+
|
250
|
+
|
251
|
+
def from_xml(xml_element)
|
252
|
+
super
|
253
|
+
if xml_element.elements['captionAssetId'] != nil
|
254
|
+
self.caption_asset_id = xml_element.elements['captionAssetId'].text
|
255
|
+
end
|
256
|
+
if xml_element.elements['fileLocation'] != nil
|
257
|
+
self.file_location = xml_element.elements['fileLocation'].text
|
258
|
+
end
|
259
|
+
if xml_element.elements['fileEncryptionKey'] != nil
|
260
|
+
self.file_encryption_key = xml_element.elements['fileEncryptionKey'].text
|
261
|
+
end
|
262
|
+
if xml_element.elements['fromType'] != nil
|
263
|
+
self.from_type = xml_element.elements['fromType'].text
|
264
|
+
end
|
265
|
+
if xml_element.elements['toType'] != nil
|
266
|
+
self.to_type = xml_element.elements['toType'].text
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
271
|
+
|
242
272
|
class KalturaCopyCaptionsJobData < KalturaJobData
|
243
273
|
# entry Id
|
244
274
|
attr_accessor :entry_id
|
@@ -30,6 +30,11 @@ require File.dirname(__FILE__) + '/kaltura_metadata_client_plugin.rb'
|
|
30
30
|
|
31
31
|
module Kaltura
|
32
32
|
|
33
|
+
class KalturaDistributeTrigger
|
34
|
+
ENTRY_READY = 1
|
35
|
+
MODERATION_APPROVED = 2
|
36
|
+
end
|
37
|
+
|
33
38
|
class KalturaDistributionAction
|
34
39
|
SUBMIT = 1
|
35
40
|
UPDATE = 2
|
@@ -375,6 +380,8 @@ module Kaltura
|
|
375
380
|
attr_accessor :recommended_dc_for_download
|
376
381
|
# The best Kaltura data center to be used to execute the distribution job
|
377
382
|
attr_accessor :recommended_dc_for_execute
|
383
|
+
# The event that trigger the automatic distribute
|
384
|
+
attr_accessor :distribute_trigger
|
378
385
|
|
379
386
|
def id=(val)
|
380
387
|
@id = val.to_i
|
@@ -418,6 +425,9 @@ module Kaltura
|
|
418
425
|
def recommended_dc_for_execute=(val)
|
419
426
|
@recommended_dc_for_execute = val.to_i
|
420
427
|
end
|
428
|
+
def distribute_trigger=(val)
|
429
|
+
@distribute_trigger = val.to_i
|
430
|
+
end
|
421
431
|
|
422
432
|
def from_xml(xml_element)
|
423
433
|
super
|
@@ -493,6 +503,9 @@ module Kaltura
|
|
493
503
|
if xml_element.elements['recommendedDcForExecute'] != nil
|
494
504
|
self.recommended_dc_for_execute = xml_element.elements['recommendedDcForExecute'].text
|
495
505
|
end
|
506
|
+
if xml_element.elements['distributeTrigger'] != nil
|
507
|
+
self.distribute_trigger = xml_element.elements['distributeTrigger'].text
|
508
|
+
end
|
496
509
|
end
|
497
510
|
|
498
511
|
end
|
@@ -52,6 +52,10 @@ module Kaltura
|
|
52
52
|
START_TIME = "start_time"
|
53
53
|
end
|
54
54
|
|
55
|
+
class KalturaESearchCategoryAggregateByFieldName
|
56
|
+
CATEGORY_NAME = "category_name"
|
57
|
+
end
|
58
|
+
|
55
59
|
class KalturaESearchCategoryEntryFieldName
|
56
60
|
ANCESTOR_ID = "ancestor_id"
|
57
61
|
ANCESTOR_NAME = "ancestor_name"
|
@@ -101,6 +105,11 @@ module Kaltura
|
|
101
105
|
USER_ID = "user_id"
|
102
106
|
end
|
103
107
|
|
108
|
+
class KalturaESearchCuePointAggregateByFieldName
|
109
|
+
TAGS = "tags"
|
110
|
+
TYPE = "type"
|
111
|
+
end
|
112
|
+
|
104
113
|
class KalturaESearchCuePointFieldName
|
105
114
|
ANSWERS = "answers"
|
106
115
|
END_TIME = "end_time"
|
@@ -116,6 +125,13 @@ module Kaltura
|
|
116
125
|
TYPE = "type"
|
117
126
|
end
|
118
127
|
|
128
|
+
class KalturaESearchEntryAggregateByFieldName
|
129
|
+
ACCESS_CONTROL_PROFILE = "access_control_profile_id"
|
130
|
+
ENTRY_TYPE = "entry_type"
|
131
|
+
MEDIA_TYPE = "media_type"
|
132
|
+
TAGS = "tags"
|
133
|
+
end
|
134
|
+
|
119
135
|
class KalturaESearchEntryFieldName
|
120
136
|
ACCESS_CONTROL_ID = "access_control_id"
|
121
137
|
ADMIN_TAGS = "admin_tags"
|
@@ -139,6 +155,7 @@ module Kaltura
|
|
139
155
|
MODERATION_STATUS = "moderation_status"
|
140
156
|
NAME = "name"
|
141
157
|
PARENT_ENTRY_ID = "parent_id"
|
158
|
+
PARTNER_SORT_VALUE = "partner_sort_value"
|
142
159
|
PUSH_PUBLISH = "push_publish"
|
143
160
|
RECORDED_ENTRY_ID = "recorded_entry_id"
|
144
161
|
REDIRECT_ENTRY_ID = "redirect_entry_id"
|
@@ -171,6 +188,9 @@ module Kaltura
|
|
171
188
|
VOTES = "votes"
|
172
189
|
end
|
173
190
|
|
191
|
+
class KalturaESearchMetadataAggregateByFieldName
|
192
|
+
end
|
193
|
+
|
174
194
|
class KalturaESearchSortOrder
|
175
195
|
ORDER_BY_ASC = "asc"
|
176
196
|
ORDER_BY_DESC = "desc"
|
@@ -233,6 +253,76 @@ module Kaltura
|
|
233
253
|
|
234
254
|
end
|
235
255
|
|
256
|
+
class KalturaESearchAggregationItem < KalturaObjectBase
|
257
|
+
attr_accessor :size
|
258
|
+
|
259
|
+
def size=(val)
|
260
|
+
@size = val.to_i
|
261
|
+
end
|
262
|
+
|
263
|
+
def from_xml(xml_element)
|
264
|
+
super
|
265
|
+
if xml_element.elements['size'] != nil
|
266
|
+
self.size = xml_element.elements['size'].text
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
271
|
+
|
272
|
+
class KalturaESearchAggregation < KalturaObjectBase
|
273
|
+
attr_accessor :aggregations
|
274
|
+
|
275
|
+
|
276
|
+
def from_xml(xml_element)
|
277
|
+
super
|
278
|
+
if xml_element.elements['aggregations'] != nil
|
279
|
+
self.aggregations = KalturaClientBase.object_from_xml(xml_element.elements['aggregations'], 'KalturaESearchAggregationItem')
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
end
|
284
|
+
|
285
|
+
class KalturaESearchAggregationBucket < KalturaObjectBase
|
286
|
+
attr_accessor :value
|
287
|
+
attr_accessor :count
|
288
|
+
|
289
|
+
def count=(val)
|
290
|
+
@count = val.to_i
|
291
|
+
end
|
292
|
+
|
293
|
+
def from_xml(xml_element)
|
294
|
+
super
|
295
|
+
if xml_element.elements['value'] != nil
|
296
|
+
self.value = xml_element.elements['value'].text
|
297
|
+
end
|
298
|
+
if xml_element.elements['count'] != nil
|
299
|
+
self.count = xml_element.elements['count'].text
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
end
|
304
|
+
|
305
|
+
class KalturaESearchAggregationResponseItem < KalturaObjectBase
|
306
|
+
attr_accessor :name
|
307
|
+
attr_accessor :field_name
|
308
|
+
attr_accessor :buckets
|
309
|
+
|
310
|
+
|
311
|
+
def from_xml(xml_element)
|
312
|
+
super
|
313
|
+
if xml_element.elements['name'] != nil
|
314
|
+
self.name = xml_element.elements['name'].text
|
315
|
+
end
|
316
|
+
if xml_element.elements['fieldName'] != nil
|
317
|
+
self.field_name = xml_element.elements['fieldName'].text
|
318
|
+
end
|
319
|
+
if xml_element.elements['buckets'] != nil
|
320
|
+
self.buckets = KalturaClientBase.object_from_xml(xml_element.elements['buckets'], 'KalturaESearchAggregationBucket')
|
321
|
+
end
|
322
|
+
end
|
323
|
+
|
324
|
+
end
|
325
|
+
|
236
326
|
class KalturaESearchBaseFilter < KalturaObjectBase
|
237
327
|
|
238
328
|
|
@@ -556,6 +646,19 @@ module Kaltura
|
|
556
646
|
|
557
647
|
end
|
558
648
|
|
649
|
+
class KalturaESearchCategoryAggregationItem < KalturaESearchAggregationItem
|
650
|
+
attr_accessor :field_name
|
651
|
+
|
652
|
+
|
653
|
+
def from_xml(xml_element)
|
654
|
+
super
|
655
|
+
if xml_element.elements['fieldName'] != nil
|
656
|
+
self.field_name = xml_element.elements['fieldName'].text
|
657
|
+
end
|
658
|
+
end
|
659
|
+
|
660
|
+
end
|
661
|
+
|
559
662
|
class KalturaESearchCategoryOrderByItem < KalturaESearchOrderByItem
|
560
663
|
attr_accessor :sort_field
|
561
664
|
|
@@ -676,6 +779,32 @@ module Kaltura
|
|
676
779
|
|
677
780
|
end
|
678
781
|
|
782
|
+
class KalturaESearchCuepointsAggregationItem < KalturaESearchAggregationItem
|
783
|
+
attr_accessor :field_name
|
784
|
+
|
785
|
+
|
786
|
+
def from_xml(xml_element)
|
787
|
+
super
|
788
|
+
if xml_element.elements['fieldName'] != nil
|
789
|
+
self.field_name = xml_element.elements['fieldName'].text
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
end
|
794
|
+
|
795
|
+
class KalturaESearchEntryAggregationItem < KalturaESearchAggregationItem
|
796
|
+
attr_accessor :field_name
|
797
|
+
|
798
|
+
|
799
|
+
def from_xml(xml_element)
|
800
|
+
super
|
801
|
+
if xml_element.elements['fieldName'] != nil
|
802
|
+
self.field_name = xml_element.elements['fieldName'].text
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
806
|
+
end
|
807
|
+
|
679
808
|
class KalturaESearchEntryOrderByItem < KalturaESearchOrderByItem
|
680
809
|
attr_accessor :sort_field
|
681
810
|
|
@@ -691,6 +820,7 @@ module Kaltura
|
|
691
820
|
|
692
821
|
class KalturaESearchEntryParams < KalturaESearchParams
|
693
822
|
attr_accessor :search_operator
|
823
|
+
attr_accessor :aggregations
|
694
824
|
|
695
825
|
|
696
826
|
def from_xml(xml_element)
|
@@ -698,12 +828,16 @@ module Kaltura
|
|
698
828
|
if xml_element.elements['searchOperator'] != nil
|
699
829
|
self.search_operator = KalturaClientBase.object_from_xml(xml_element.elements['searchOperator'], 'KalturaESearchEntryOperator')
|
700
830
|
end
|
831
|
+
if xml_element.elements['aggregations'] != nil
|
832
|
+
self.aggregations = KalturaClientBase.object_from_xml(xml_element.elements['aggregations'], 'KalturaESearchAggregation')
|
833
|
+
end
|
701
834
|
end
|
702
835
|
|
703
836
|
end
|
704
837
|
|
705
838
|
class KalturaESearchEntryResponse < KalturaESearchResponse
|
706
839
|
attr_accessor :objects
|
840
|
+
attr_accessor :aggregations
|
707
841
|
|
708
842
|
|
709
843
|
def from_xml(xml_element)
|
@@ -711,6 +845,9 @@ module Kaltura
|
|
711
845
|
if xml_element.elements['objects'] != nil
|
712
846
|
self.objects = KalturaClientBase.object_from_xml(xml_element.elements['objects'], 'KalturaESearchEntryResult')
|
713
847
|
end
|
848
|
+
if xml_element.elements['aggregations'] != nil
|
849
|
+
self.aggregations = KalturaClientBase.object_from_xml(xml_element.elements['aggregations'], 'KalturaESearchAggregationResponseItem')
|
850
|
+
end
|
714
851
|
end
|
715
852
|
|
716
853
|
end
|
@@ -754,6 +891,19 @@ module Kaltura
|
|
754
891
|
|
755
892
|
end
|
756
893
|
|
894
|
+
class KalturaESearchMetadataAggregationItem < KalturaESearchAggregationItem
|
895
|
+
attr_accessor :field_name
|
896
|
+
|
897
|
+
|
898
|
+
def from_xml(xml_element)
|
899
|
+
super
|
900
|
+
if xml_element.elements['fieldName'] != nil
|
901
|
+
self.field_name = xml_element.elements['fieldName'].text
|
902
|
+
end
|
903
|
+
end
|
904
|
+
|
905
|
+
end
|
906
|
+
|
757
907
|
class KalturaESearchMetadataItemData < KalturaESearchItemData
|
758
908
|
attr_accessor :xpath
|
759
909
|
attr_accessor :metadata_profile_id
|
data/lib/kaltura_types.rb
CHANGED
@@ -1886,6 +1886,7 @@ module Kaltura
|
|
1886
1886
|
attr_accessor :allow_quick_edit
|
1887
1887
|
attr_accessor :merge_entry_lists
|
1888
1888
|
attr_accessor :notifications_config
|
1889
|
+
attr_accessor :allowed_from_email_white_list
|
1889
1890
|
attr_accessor :max_upload_size
|
1890
1891
|
attr_accessor :partner_package
|
1891
1892
|
attr_accessor :secret
|
@@ -2070,6 +2071,9 @@ module Kaltura
|
|
2070
2071
|
if xml_element.elements['notificationsConfig'] != nil
|
2071
2072
|
self.notifications_config = xml_element.elements['notificationsConfig'].text
|
2072
2073
|
end
|
2074
|
+
if xml_element.elements['allowedFromEmailWhiteList'] != nil
|
2075
|
+
self.allowed_from_email_white_list = xml_element.elements['allowedFromEmailWhiteList'].text
|
2076
|
+
end
|
2073
2077
|
if xml_element.elements['maxUploadSize'] != nil
|
2074
2078
|
self.max_upload_size = xml_element.elements['maxUploadSize'].text
|
2075
2079
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaltura-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaltura Inc.
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.7.6
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: A gem implementation of Kaltura's Ruby Client
|