kaltura-client 15.10.0 → 15.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +14 -1
- data/kaltura.yml +2 -0
- data/lib/kaltura_client.rb +12 -2
- data/lib/kaltura_client_base.rb +15 -0
- data/lib/kaltura_enums.rb +54 -0
- data/lib/kaltura_plugins/kaltura_conf_maps_client_plugin.rb +13 -5
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +0 -1
- data/lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb +8 -0
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +1 -0
- data/lib/kaltura_types.rb +92 -0
- data/test/configuration_test.rb +2 -0
- data/test/test_helper.rb +2 -0
- metadata +1 -2
- data/lib/kaltura_plugins/kaltura_ap_feed_drop_folder_client_plugin.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2de61f0369876b60593cc5cb84c2c019d388eec39687acf85b7bfa9c7baa56e
|
4
|
+
data.tar.gz: c979fd10304d93fa1c35bccdd4688bac23280dce9e6aaebdd9c7d51aa0be246b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41418bdcf41565662955c17d57f5c8de40f3a9a6676904e2aa1138fe3d9b974017f06b6a56c997b70f3ad07e21fe85b319810f49dc69027b64eec6ed81def74
|
7
|
+
data.tar.gz: c3e63fe7b561bcbf336d77080b0fb9280cc10d745101c2b5c3778d2ccf629aca97fce09cfb2ff00fc32ef0d9664a7616db072aec7a0f886fc34df5e91aaec20b
|
data/README
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Kaltura Ruby API Client Library.
|
2
|
-
Compatible with Kaltura server version 15.
|
2
|
+
Compatible with Kaltura server version 15.14.0 and above.
|
3
3
|
|
4
4
|
This source contains:
|
5
5
|
- The Kaltura client library (kaltura_client_base.rb)
|
@@ -21,3 +21,16 @@ IMPORTANT: never run the tests of the client library against a production accoun
|
|
21
21
|
Update kaltura.yml with your account information
|
22
22
|
Change directory to kaltura/ruby
|
23
23
|
Execute the command: rake test
|
24
|
+
|
25
|
+
== HTTP[s] proxy support ==
|
26
|
+
This client respects both the `https_proxy` and `http_proxy` ENV vars (https_proxy takes precedence).
|
27
|
+
`http_proxy` should be set like so: proxy_hostname:proxy_port, for example:
|
28
|
+
http_proxy='my_proxy:3128'
|
29
|
+
|
30
|
+
When initialising the Kaltura::KalturaConfiguration object, you may also set a proxy host, like so:
|
31
|
+
|
32
|
+
config = Kaltura::KalturaConfiguration.new()
|
33
|
+
config.http_proxy = http_proxy
|
34
|
+
|
35
|
+
Doing that will override the values set in either ENV var.
|
36
|
+
|
data/kaltura.yml
CHANGED
data/lib/kaltura_client.rb
CHANGED
@@ -4635,6 +4635,16 @@ module Kaltura
|
|
4635
4635
|
super(client)
|
4636
4636
|
end
|
4637
4637
|
|
4638
|
+
# @return [string]
|
4639
|
+
def get_health_check()
|
4640
|
+
kparams = {}
|
4641
|
+
client.queue_service_action_call('system', 'getHealthCheck', 'string', kparams)
|
4642
|
+
if (client.is_multirequest)
|
4643
|
+
return nil
|
4644
|
+
end
|
4645
|
+
return client.do_queue()
|
4646
|
+
end
|
4647
|
+
|
4638
4648
|
# @return [int]
|
4639
4649
|
def get_time()
|
4640
4650
|
kparams = {}
|
@@ -6208,8 +6218,8 @@ module Kaltura
|
|
6208
6218
|
|
6209
6219
|
def initialize(client)
|
6210
6220
|
super(client)
|
6211
|
-
self.client_tag = 'ruby:
|
6212
|
-
self.api_version = '15.
|
6221
|
+
self.client_tag = 'ruby:20-01-06'
|
6222
|
+
self.api_version = '15.14.0'
|
6213
6223
|
end
|
6214
6224
|
|
6215
6225
|
def client_tag=(value)
|
data/lib/kaltura_client_base.rb
CHANGED
@@ -194,6 +194,16 @@ module Kaltura
|
|
194
194
|
}
|
195
195
|
|
196
196
|
log("request options: " + JSON.pretty_generate(options))
|
197
|
+
if @config.http_proxy and !@config.http_proxy.empty?
|
198
|
+
RestClient.proxy = @config.http_proxy
|
199
|
+
log('Proxy server: ' + @config.http_proxy + ' will be used (KalturaConfiguration::http_proxy was set).')
|
200
|
+
elsif ENV['https_proxy']
|
201
|
+
RestClient.proxy = ENV['https_proxy']
|
202
|
+
log('Proxy server: ' + ENV['https_proxy'] + ' will be used (https_proxy ENV var is set).')
|
203
|
+
elsif ENV['http_proxy']
|
204
|
+
RestClient.proxy = ENV['http_proxy']
|
205
|
+
log('Proxy server: ' + ENV['http_proxy'] + ' will be used (http_proxy ENV var is set).')
|
206
|
+
end
|
197
207
|
res = RestClient::Request.execute(options)
|
198
208
|
|
199
209
|
return res
|
@@ -474,6 +484,7 @@ module Kaltura
|
|
474
484
|
class KalturaConfiguration
|
475
485
|
attr_accessor :logger
|
476
486
|
attr_accessor :service_url
|
487
|
+
attr_accessor :http_proxy
|
477
488
|
attr_accessor :format
|
478
489
|
attr_accessor :timeout
|
479
490
|
attr_accessor :requestHeaders
|
@@ -491,6 +502,10 @@ module Kaltura
|
|
491
502
|
def service_url=(url)
|
492
503
|
@service_url = url.chomp('/')
|
493
504
|
end
|
505
|
+
|
506
|
+
def http_proxy=(proxy_host_port)
|
507
|
+
@http_proxy = proxy_host_port
|
508
|
+
end
|
494
509
|
end
|
495
510
|
|
496
511
|
class KalturaAPIError < RuntimeError
|
data/lib/kaltura_enums.rb
CHANGED
@@ -1242,6 +1242,7 @@ module Kaltura
|
|
1242
1242
|
ANONYMOUS_IP = "15"
|
1243
1243
|
ASSET_TYPE = "16"
|
1244
1244
|
BOOLEAN = "17"
|
1245
|
+
HTTP_HEADER = "18"
|
1245
1246
|
end
|
1246
1247
|
|
1247
1248
|
class KalturaConfMapsSourceLocation
|
@@ -3446,6 +3447,7 @@ module Kaltura
|
|
3446
3447
|
HOURS = "hours"
|
3447
3448
|
MINUTES = "minutes"
|
3448
3449
|
MONTHS = "months"
|
3450
|
+
TEN_MINUTES = "ten_minutes"
|
3449
3451
|
TEN_SECONDS = "ten_seconds"
|
3450
3452
|
end
|
3451
3453
|
|
@@ -3503,6 +3505,9 @@ module Kaltura
|
|
3503
3505
|
PLAYBACK_RATE = "46"
|
3504
3506
|
TOP_USER_CONTENT = "47"
|
3505
3507
|
USER_HIGHLIGHTS = "48"
|
3508
|
+
USER_INTERACTIVE_VIDEO = "49"
|
3509
|
+
INTERACTIVE_VIDEO_TOP_NODES = "50"
|
3510
|
+
LATEST_PLAYED_ENTRIES = "51"
|
3506
3511
|
PARTNER_USAGE = "201"
|
3507
3512
|
MAP_OVERLAY_COUNTRY_REALTIME = "10001"
|
3508
3513
|
MAP_OVERLAY_REGION_REALTIME = "10002"
|
@@ -3538,6 +3543,55 @@ module Kaltura
|
|
3538
3543
|
PLAYER_RELATED_INTERACTIONS_VPAAS = "20019"
|
3539
3544
|
PLAYBACK_RATE_VPAAS = "20020"
|
3540
3545
|
PARTNER_USAGE_VPAAS = "20021"
|
3546
|
+
TOP_PLAYBACK_CONTEXT_VPAAS = "20022"
|
3547
|
+
QOE_OVERVIEW = "30001"
|
3548
|
+
QOE_EXPERIENCE = "30002"
|
3549
|
+
QOE_EXPERIENCE_PLATFORMS = "30003"
|
3550
|
+
QOE_EXPERIENCE_COUNTRY = "30004"
|
3551
|
+
QOE_EXPERIENCE_REGION = "30005"
|
3552
|
+
QOE_EXPERIENCE_CITY = "30006"
|
3553
|
+
QOE_EXPERIENCE_BROWSERS_FAMILIES = "30007"
|
3554
|
+
QOE_EXPERIENCE_BROWSERS = "30008"
|
3555
|
+
QOE_EXPERIENCE_OPERATING_SYSTEM_FAMILIES = "30009"
|
3556
|
+
QOE_EXPERIENCE_OPERATING_SYSTEM = "30010"
|
3557
|
+
QOE_EXPERIENCE_PLAYER_VERSION = "30011"
|
3558
|
+
QOE_EXPERIENCE_ENTRY = "30012"
|
3559
|
+
QOE_EXPERIENCE_ISP = "30013"
|
3560
|
+
QOE_ENGAGEMENT = "30014"
|
3561
|
+
QOE_ENGAGEMENT_PLATFORMS = "30015"
|
3562
|
+
QOE_ENGAGEMENT_COUNTRY = "30016"
|
3563
|
+
QOE_ENGAGEMENT_REGION = "30017"
|
3564
|
+
QOE_ENGAGEMENT_CITY = "30018"
|
3565
|
+
QOE_ENGAGEMENT_BROWSERS_FAMILIES = "30019"
|
3566
|
+
QOE_ENGAGEMENT_BROWSERS = "30020"
|
3567
|
+
QOE_ENGAGEMENT_OPERATING_SYSTEM_FAMILIES = "30021"
|
3568
|
+
QOE_ENGAGEMENT_OPERATING_SYSTEM = "30022"
|
3569
|
+
QOE_ENGAGEMENT_PLAYER_VERSION = "30023"
|
3570
|
+
QOE_ENGAGEMENT_ENTRY = "30024"
|
3571
|
+
QOE_ENGAGEMENT_ISP = "30025"
|
3572
|
+
QOE_STREAM_QUALITY = "30026"
|
3573
|
+
QOE_STREAM_QUALITY_PLATFORMS = "30027"
|
3574
|
+
QOE_STREAM_QUALITY_COUNTRY = "30028"
|
3575
|
+
QOE_STREAM_QUALITY_REGION = "30029"
|
3576
|
+
QOE_STREAM_QUALITY_CITY = "30030"
|
3577
|
+
QOE_STREAM_QUALITY_BROWSERS_FAMILIES = "30031"
|
3578
|
+
QOE_STREAM_QUALITY_BROWSERS = "30032"
|
3579
|
+
QOE_STREAM_QUALITY_OPERATING_SYSTEM_FAMILIES = "30033"
|
3580
|
+
QOE_STREAM_QUALITY_OPERATING_SYSTEM = "30034"
|
3581
|
+
QOE_STREAM_QUALITY_PLAYER_VERSION = "30035"
|
3582
|
+
QOE_STREAM_QUALITY_ENTRY = "30036"
|
3583
|
+
QOE_STREAM_QUALITY_ISP = "30037"
|
3584
|
+
QOE_ERROR_TRACKING = "30038"
|
3585
|
+
QOE_ERROR_TRACKING_CODES = "30039"
|
3586
|
+
QOE_ERROR_TRACKING_PLATFORMS = "30040"
|
3587
|
+
QOE_ERROR_TRACKING_BROWSERS_FAMILIES = "30041"
|
3588
|
+
QOE_ERROR_TRACKING_BROWSERS = "30042"
|
3589
|
+
QOE_ERROR_TRACKING_OPERATING_SYSTEM_FAMILIES = "30043"
|
3590
|
+
QOE_ERROR_TRACKING_OPERATING_SYSTEM = "30044"
|
3591
|
+
QOE_ERROR_TRACKING_PLAYER_VERSION = "30045"
|
3592
|
+
QOE_ERROR_TRACKING_ENTRY = "30046"
|
3593
|
+
QOE_VOD_SESSION_FLOW = "30047"
|
3594
|
+
QOE_LIVE_SESSION_FLOW = "30048"
|
3541
3595
|
end
|
3542
3596
|
|
3543
3597
|
class KalturaResponseProfileOrderBy
|
@@ -39,10 +39,12 @@ module Kaltura
|
|
39
39
|
attr_accessor :name
|
40
40
|
# Ini file content
|
41
41
|
attr_accessor :content
|
42
|
+
attr_accessor :raw_data
|
43
|
+
attr_accessor :user_id
|
42
44
|
# IsEditable - true / false
|
43
45
|
attr_accessor :is_editable
|
44
46
|
# Time of the last update
|
45
|
-
attr_accessor :
|
47
|
+
attr_accessor :created_at
|
46
48
|
# Regex that represent the host/s that this map affect
|
47
49
|
attr_accessor :related_host
|
48
50
|
attr_accessor :version
|
@@ -54,8 +56,8 @@ module Kaltura
|
|
54
56
|
def is_editable=(val)
|
55
57
|
@is_editable = to_b(val)
|
56
58
|
end
|
57
|
-
def
|
58
|
-
@
|
59
|
+
def created_at=(val)
|
60
|
+
@created_at = val.to_i
|
59
61
|
end
|
60
62
|
def version=(val)
|
61
63
|
@version = val.to_i
|
@@ -72,11 +74,17 @@ module Kaltura
|
|
72
74
|
if xml_element.elements['content'] != nil
|
73
75
|
self.content = xml_element.elements['content'].text
|
74
76
|
end
|
77
|
+
if xml_element.elements['rawData'] != nil
|
78
|
+
self.raw_data = xml_element.elements['rawData'].text
|
79
|
+
end
|
80
|
+
if xml_element.elements['userId'] != nil
|
81
|
+
self.user_id = xml_element.elements['userId'].text
|
82
|
+
end
|
75
83
|
if xml_element.elements['isEditable'] != nil
|
76
84
|
self.is_editable = xml_element.elements['isEditable'].text
|
77
85
|
end
|
78
|
-
if xml_element.elements['
|
79
|
-
self.
|
86
|
+
if xml_element.elements['createdAt'] != nil
|
87
|
+
self.created_at = xml_element.elements['createdAt'].text
|
80
88
|
end
|
81
89
|
if xml_element.elements['relatedHost'] != nil
|
82
90
|
self.related_host = xml_element.elements['relatedHost'].text
|
@@ -160,6 +160,7 @@ module Kaltura
|
|
160
160
|
PARTNER_SORT_VALUE = "partner_sort_value"
|
161
161
|
PLAYS = "plays"
|
162
162
|
PUSH_PUBLISH = "push_publish"
|
163
|
+
RANK = "rank"
|
163
164
|
RECORDED_ENTRY_ID = "recorded_entry_id"
|
164
165
|
REDIRECT_ENTRY_ID = "redirect_entry_id"
|
165
166
|
REFERENCE_ID = "reference_id"
|
@@ -171,6 +172,7 @@ module Kaltura
|
|
171
172
|
TEMPLATE_ENTRY_ID = "template_entry_id"
|
172
173
|
UPDATED_AT = "updated_at"
|
173
174
|
USER_NAMES = "user_names"
|
175
|
+
VOTES = "votes"
|
174
176
|
end
|
175
177
|
|
176
178
|
class KalturaESearchEntryOrderByFieldName
|
@@ -182,6 +184,7 @@ module Kaltura
|
|
182
184
|
PLAYS_LAST_1_DAY = "plays_last_1_day"
|
183
185
|
PLAYS_LAST_30_DAYS = "plays_last_30_days"
|
184
186
|
PLAYS_LAST_7_DAYS = "plays_last_7_days"
|
187
|
+
RANK = "rank"
|
185
188
|
START_DATE = "start_date"
|
186
189
|
UPDATED_AT = "updated_at"
|
187
190
|
VIEWS = "views"
|
@@ -1144,6 +1147,8 @@ module Kaltura
|
|
1144
1147
|
class KalturaMediaEsearchExportToCsvJobData < KalturaExportCsvJobData
|
1145
1148
|
# Esearch parameters for the entry search
|
1146
1149
|
attr_accessor :search_params
|
1150
|
+
# options
|
1151
|
+
attr_accessor :options
|
1147
1152
|
|
1148
1153
|
|
1149
1154
|
def from_xml(xml_element)
|
@@ -1151,6 +1156,9 @@ module Kaltura
|
|
1151
1156
|
if xml_element.elements['searchParams'] != nil
|
1152
1157
|
self.search_params = KalturaClientBase.object_from_xml(xml_element.elements['searchParams'], 'KalturaESearchEntryParams')
|
1153
1158
|
end
|
1159
|
+
if xml_element.elements['options'] != nil
|
1160
|
+
self.options = KalturaClientBase.object_from_xml(xml_element.elements['options'], 'KalturaExportToCsvOptions')
|
1161
|
+
end
|
1154
1162
|
end
|
1155
1163
|
|
1156
1164
|
end
|
data/lib/kaltura_types.rb
CHANGED
@@ -4333,6 +4333,21 @@ module Kaltura
|
|
4333
4333
|
|
4334
4334
|
end
|
4335
4335
|
|
4336
|
+
class KalturaExportToCsvOptions < KalturaObjectBase
|
4337
|
+
# The format of the outputted date string. There are also several predefined date constants that may be used instead, so for example DATE_RSS contains the format string 'D, d M Y H:i:s'.
|
4338
|
+
# https://www.php.net/manual/en/function.date.php
|
4339
|
+
attr_accessor :format
|
4340
|
+
|
4341
|
+
|
4342
|
+
def from_xml(xml_element)
|
4343
|
+
super
|
4344
|
+
if xml_element.elements['format'] != nil
|
4345
|
+
self.format = xml_element.elements['format'].text
|
4346
|
+
end
|
4347
|
+
end
|
4348
|
+
|
4349
|
+
end
|
4350
|
+
|
4336
4351
|
# Configuration for extended item in the Kaltura MRSS feeds
|
4337
4352
|
class KalturaObjectIdentifier < KalturaObjectBase
|
4338
4353
|
# Comma separated string of enum values denoting which features of the item need to be included in the MRSS
|
@@ -5643,6 +5658,12 @@ module Kaltura
|
|
5643
5658
|
attr_accessor :content_streams
|
5644
5659
|
attr_accessor :complexity_value
|
5645
5660
|
attr_accessor :max_gop
|
5661
|
+
attr_accessor :matrix_coefficients
|
5662
|
+
attr_accessor :color_transfer
|
5663
|
+
attr_accessor :color_primaries
|
5664
|
+
attr_accessor :pixel_format
|
5665
|
+
attr_accessor :chroma_subsampling
|
5666
|
+
attr_accessor :bits_depth
|
5646
5667
|
|
5647
5668
|
def id=(val)
|
5648
5669
|
@id = val.to_i
|
@@ -5710,6 +5731,9 @@ module Kaltura
|
|
5710
5731
|
def max_gop=(val)
|
5711
5732
|
@max_gop = val.to_f
|
5712
5733
|
end
|
5734
|
+
def bits_depth=(val)
|
5735
|
+
@bits_depth = val.to_i
|
5736
|
+
end
|
5713
5737
|
|
5714
5738
|
def from_xml(xml_element)
|
5715
5739
|
super
|
@@ -5818,6 +5842,24 @@ module Kaltura
|
|
5818
5842
|
if xml_element.elements['maxGOP'] != nil
|
5819
5843
|
self.max_gop = xml_element.elements['maxGOP'].text
|
5820
5844
|
end
|
5845
|
+
if xml_element.elements['matrixCoefficients'] != nil
|
5846
|
+
self.matrix_coefficients = xml_element.elements['matrixCoefficients'].text
|
5847
|
+
end
|
5848
|
+
if xml_element.elements['colorTransfer'] != nil
|
5849
|
+
self.color_transfer = xml_element.elements['colorTransfer'].text
|
5850
|
+
end
|
5851
|
+
if xml_element.elements['colorPrimaries'] != nil
|
5852
|
+
self.color_primaries = xml_element.elements['colorPrimaries'].text
|
5853
|
+
end
|
5854
|
+
if xml_element.elements['pixelFormat'] != nil
|
5855
|
+
self.pixel_format = xml_element.elements['pixelFormat'].text
|
5856
|
+
end
|
5857
|
+
if xml_element.elements['chromaSubsampling'] != nil
|
5858
|
+
self.chroma_subsampling = xml_element.elements['chromaSubsampling'].text
|
5859
|
+
end
|
5860
|
+
if xml_element.elements['bitsDepth'] != nil
|
5861
|
+
self.bits_depth = xml_element.elements['bitsDepth'].text
|
5862
|
+
end
|
5821
5863
|
end
|
5822
5864
|
|
5823
5865
|
end
|
@@ -6945,6 +6987,8 @@ module Kaltura
|
|
6945
6987
|
attr_accessor :created_at_less_than_or_equal
|
6946
6988
|
attr_accessor :updated_at_greater_than_or_equal
|
6947
6989
|
attr_accessor :updated_at_less_than_or_equal
|
6990
|
+
attr_accessor :rank_less_than_or_equal
|
6991
|
+
attr_accessor :rank_greater_than_or_equal
|
6948
6992
|
attr_accessor :total_rank_less_than_or_equal
|
6949
6993
|
attr_accessor :total_rank_greater_than_or_equal
|
6950
6994
|
attr_accessor :group_id_equal
|
@@ -7012,6 +7056,12 @@ module Kaltura
|
|
7012
7056
|
def updated_at_less_than_or_equal=(val)
|
7013
7057
|
@updated_at_less_than_or_equal = val.to_i
|
7014
7058
|
end
|
7059
|
+
def rank_less_than_or_equal=(val)
|
7060
|
+
@rank_less_than_or_equal = val.to_f
|
7061
|
+
end
|
7062
|
+
def rank_greater_than_or_equal=(val)
|
7063
|
+
@rank_greater_than_or_equal = val.to_f
|
7064
|
+
end
|
7015
7065
|
def total_rank_less_than_or_equal=(val)
|
7016
7066
|
@total_rank_less_than_or_equal = val.to_i
|
7017
7067
|
end
|
@@ -7177,6 +7227,12 @@ module Kaltura
|
|
7177
7227
|
if xml_element.elements['updatedAtLessThanOrEqual'] != nil
|
7178
7228
|
self.updated_at_less_than_or_equal = xml_element.elements['updatedAtLessThanOrEqual'].text
|
7179
7229
|
end
|
7230
|
+
if xml_element.elements['rankLessThanOrEqual'] != nil
|
7231
|
+
self.rank_less_than_or_equal = xml_element.elements['rankLessThanOrEqual'].text
|
7232
|
+
end
|
7233
|
+
if xml_element.elements['rankGreaterThanOrEqual'] != nil
|
7234
|
+
self.rank_greater_than_or_equal = xml_element.elements['rankGreaterThanOrEqual'].text
|
7235
|
+
end
|
7180
7236
|
if xml_element.elements['totalRankLessThanOrEqual'] != nil
|
7181
7237
|
self.total_rank_less_than_or_equal = xml_element.elements['totalRankLessThanOrEqual'].text
|
7182
7238
|
end
|
@@ -8212,6 +8268,11 @@ module Kaltura
|
|
8212
8268
|
# Entry created at less than or equal as Unix timestamp
|
8213
8269
|
attr_accessor :entry_created_at_less_than_or_equal
|
8214
8270
|
attr_accessor :entry_id_in
|
8271
|
+
attr_accessor :playback_type_in
|
8272
|
+
# filter by playback context ids
|
8273
|
+
attr_accessor :playback_context_ids_in
|
8274
|
+
# filter by root entry ids
|
8275
|
+
attr_accessor :root_entry_id_in
|
8215
8276
|
|
8216
8277
|
def search_in_tags=(val)
|
8217
8278
|
@search_in_tags = to_b(val)
|
@@ -8300,6 +8361,15 @@ module Kaltura
|
|
8300
8361
|
if xml_element.elements['entryIdIn'] != nil
|
8301
8362
|
self.entry_id_in = xml_element.elements['entryIdIn'].text
|
8302
8363
|
end
|
8364
|
+
if xml_element.elements['playbackTypeIn'] != nil
|
8365
|
+
self.playback_type_in = xml_element.elements['playbackTypeIn'].text
|
8366
|
+
end
|
8367
|
+
if xml_element.elements['playbackContextIdsIn'] != nil
|
8368
|
+
self.playback_context_ids_in = xml_element.elements['playbackContextIdsIn'].text
|
8369
|
+
end
|
8370
|
+
if xml_element.elements['rootEntryIdIn'] != nil
|
8371
|
+
self.root_entry_id_in = xml_element.elements['rootEntryIdIn'].text
|
8372
|
+
end
|
8303
8373
|
end
|
8304
8374
|
|
8305
8375
|
end
|
@@ -9234,6 +9304,8 @@ module Kaltura
|
|
9234
9304
|
attr_accessor :public_key
|
9235
9305
|
attr_accessor :pass_phrase
|
9236
9306
|
attr_accessor :should_export_thumbs
|
9307
|
+
attr_accessor :mapped_packager_url
|
9308
|
+
attr_accessor :regular_packager_url
|
9237
9309
|
|
9238
9310
|
def id=(val)
|
9239
9311
|
@id = val.to_i
|
@@ -9382,6 +9454,12 @@ module Kaltura
|
|
9382
9454
|
if xml_element.elements['shouldExportThumbs'] != nil
|
9383
9455
|
self.should_export_thumbs = xml_element.elements['shouldExportThumbs'].text
|
9384
9456
|
end
|
9457
|
+
if xml_element.elements['mappedPackagerUrl'] != nil
|
9458
|
+
self.mapped_packager_url = xml_element.elements['mappedPackagerUrl'].text
|
9459
|
+
end
|
9460
|
+
if xml_element.elements['regularPackagerUrl'] != nil
|
9461
|
+
self.regular_packager_url = xml_element.elements['regularPackagerUrl'].text
|
9462
|
+
end
|
9385
9463
|
end
|
9386
9464
|
|
9387
9465
|
end
|
@@ -18331,6 +18409,20 @@ module Kaltura
|
|
18331
18409
|
|
18332
18410
|
end
|
18333
18411
|
|
18412
|
+
class KalturaHttpHeaderCondition < KalturaRegexCondition
|
18413
|
+
# header name
|
18414
|
+
attr_accessor :header_name
|
18415
|
+
|
18416
|
+
|
18417
|
+
def from_xml(xml_element)
|
18418
|
+
super
|
18419
|
+
if xml_element.elements['headerName'] != nil
|
18420
|
+
self.header_name = xml_element.elements['headerName'].text
|
18421
|
+
end
|
18422
|
+
end
|
18423
|
+
|
18424
|
+
end
|
18425
|
+
|
18334
18426
|
class KalturaITunesSyndicationFeedBaseFilter < KalturaBaseSyndicationFeedFilter
|
18335
18427
|
|
18336
18428
|
|
data/test/configuration_test.rb
CHANGED
@@ -52,6 +52,7 @@ class ConfigurationTest < Test::Unit::TestCase
|
|
52
52
|
|
53
53
|
partner_id = config["test"]["partner_id"]
|
54
54
|
service_url = config["test"]["service_url"]
|
55
|
+
http_proxy = config["test"]["http_proxy"]
|
55
56
|
administrator_secret = config["test"]["administrator_secret"]
|
56
57
|
timeout = config["test"]["timeout"]
|
57
58
|
|
@@ -59,6 +60,7 @@ class ConfigurationTest < Test::Unit::TestCase
|
|
59
60
|
|
60
61
|
config = Kaltura::KalturaConfiguration.new()
|
61
62
|
config.service_url = service_url
|
63
|
+
config.http_proxy = http_proxy
|
62
64
|
config.logger = Logger.new(STDOUT)
|
63
65
|
config.timeout = timeout
|
64
66
|
|
data/test/test_helper.rb
CHANGED
@@ -44,11 +44,13 @@ class Test::Unit::TestCase
|
|
44
44
|
|
45
45
|
partner_id = config_file["test"]["partner_id"]
|
46
46
|
service_url = config_file["test"]["service_url"]
|
47
|
+
http_proxy = config_file["test"]["http_proxy"]
|
47
48
|
administrator_secret = config_file["test"]["administrator_secret"]
|
48
49
|
timeout = config_file["test"]["timeout"]
|
49
50
|
|
50
51
|
config = Kaltura::KalturaConfiguration.new()
|
51
52
|
config.service_url = service_url
|
53
|
+
config.http_proxy = http_proxy
|
52
54
|
config.logger = Logger.new(STDOUT)
|
53
55
|
config.timeout = timeout
|
54
56
|
|
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.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaltura Inc.
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb
|
43
43
|
- lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb
|
44
44
|
- lib/kaltura_plugins/kaltura_annotation_client_plugin.rb
|
45
|
-
- lib/kaltura_plugins/kaltura_ap_feed_drop_folder_client_plugin.rb
|
46
45
|
- lib/kaltura_plugins/kaltura_aspera_client_plugin.rb
|
47
46
|
- lib/kaltura_plugins/kaltura_attachment_client_plugin.rb
|
48
47
|
- lib/kaltura_plugins/kaltura_audit_client_plugin.rb
|
@@ -1,48 +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-2019 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_drop_folder_client_plugin.rb'
|
30
|
-
require File.dirname(__FILE__) + '/kaltura_feed_drop_folder_client_plugin.rb'
|
31
|
-
|
32
|
-
module Kaltura
|
33
|
-
|
34
|
-
class KalturaApFeedDropFolder < KalturaFeedDropFolder
|
35
|
-
attr_accessor :ap_api_key
|
36
|
-
|
37
|
-
|
38
|
-
def from_xml(xml_element)
|
39
|
-
super
|
40
|
-
if xml_element.elements['apApiKey'] != nil
|
41
|
-
self.ap_api_key = xml_element.elements['apApiKey'].text
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
|
48
|
-
end
|