kaltura-client 15.20.0 → 16.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fe21f9c1c398cb40a83d57bac471e0d02bf746808ed6039988412533fa18273
4
- data.tar.gz: 47cec5f1324c478dea7a54e2af4f687c2eacf50600b292a3ee6894bbf6516038
3
+ metadata.gz: 9ce7ad2c1ba3b0fbce5a83b65cf61c50391dd211265efbec4d7cf01456908283
4
+ data.tar.gz: fbdd2afb79433ee1eff09bd9a501aff19a44f886e118fd821ddf39aa42e88cbb
5
5
  SHA512:
6
- metadata.gz: e51efccb3749c5e23169419f7e7f46b94a674efde6d59cfe00f9b808ea2d897877e2459e981ad70945fdde34cffa564e9196f4ada8fc5d15e93efb3d72bdfac7
7
- data.tar.gz: 259230a283b5782fbdf933d7926073e6b673c36ec2b9ace7415e8b8450153a9db21b7ca9c6c5da01e1a722fdc852619d5a414284fccb544c5e23225d684f6c14
6
+ metadata.gz: 61fd5f35db2ff11daffc2361af4b89444966b29f91351560a260d27e135824e7ff01716283355df3b67071ce738fdb82c50fcd0fd900e0312bc5f37b9b993b0a
7
+ data.tar.gz: 23742d7ec237aa96a8220feea82ec02834598dd7041f3a07d7c95d124de53e3d907aa41cb02fc0a71062ff04b093f0d53baa66c7e77c798a9fa3a0c032fb61d3
data/README CHANGED
@@ -1,5 +1,5 @@
1
1
  Kaltura Ruby API Client Library.
2
- Compatible with Kaltura server version 15.20.0 and above.
2
+ Compatible with Kaltura server version 16.8.0 and above.
3
3
 
4
4
  This source contains:
5
5
  - The Kaltura client library (kaltura_client_base.rb)
@@ -2479,6 +2479,19 @@ module Kaltura
2479
2479
  return client.do_queue()
2480
2480
  end
2481
2481
 
2482
+ # Allocates a conference room or returns ones that has already been allocated
2483
+ # @return [KalturaRoomDetails]
2484
+ def allocate_conference_room(entry_id, env='')
2485
+ kparams = {}
2486
+ client.add_param(kparams, 'entryId', entry_id)
2487
+ client.add_param(kparams, 'env', env)
2488
+ client.queue_service_action_call('livestream', 'allocateConferenceRoom', 'KalturaRoomDetails', kparams)
2489
+ if (client.is_multirequest)
2490
+ return nil
2491
+ end
2492
+ return client.do_queue()
2493
+ end
2494
+
2482
2495
  # Append recorded video to live entry
2483
2496
  # @return [KalturaLiveEntry]
2484
2497
  def append_recording(entry_id, asset_id, media_server_index, resource, duration, is_last_chunk=false)
@@ -2565,6 +2578,19 @@ module Kaltura
2565
2578
  return client.do_queue()
2566
2579
  end
2567
2580
 
2581
+ # When the conf is finished this API should be called.
2582
+ # @return [bool]
2583
+ def finish_conf(entry_id, server_node_id=KalturaNotImplemented)
2584
+ kparams = {}
2585
+ client.add_param(kparams, 'entryId', entry_id)
2586
+ client.add_param(kparams, 'serverNodeId', server_node_id)
2587
+ client.queue_service_action_call('livestream', 'finishConf', 'bool', kparams)
2588
+ if (client.is_multirequest)
2589
+ return nil
2590
+ end
2591
+ return client.do_queue()
2592
+ end
2593
+
2568
2594
  # Get live stream entry by ID.
2569
2595
  # @return [KalturaLiveStreamEntry]
2570
2596
  def get(entry_id, version=-1)
@@ -2628,6 +2654,18 @@ module Kaltura
2628
2654
  return client.do_queue()
2629
2655
  end
2630
2656
 
2657
+ # Mark that the conference has actually started
2658
+ # @return [bool]
2659
+ def register_conf(entry_id)
2660
+ kparams = {}
2661
+ client.add_param(kparams, 'entryId', entry_id)
2662
+ client.queue_service_action_call('livestream', 'registerConf', 'bool', kparams)
2663
+ if (client.is_multirequest)
2664
+ return nil
2665
+ end
2666
+ return client.do_queue()
2667
+ end
2668
+
2631
2669
  # Register media server to live entry
2632
2670
  # @return [KalturaLiveEntry]
2633
2671
  def register_media_server(entry_id, hostname, media_server_index, application_name=KalturaNotImplemented, live_entry_status=1, should_create_recorded_entry=true)
@@ -5661,9 +5699,10 @@ module Kaltura
5661
5699
 
5662
5700
  # Reset user's password and send the user an email to generate a new one.
5663
5701
  # @return []
5664
- def reset_password(email)
5702
+ def reset_password(email, link_type=KalturaNotImplemented)
5665
5703
  kparams = {}
5666
5704
  client.add_param(kparams, 'email', email)
5705
+ client.add_param(kparams, 'linkType', link_type)
5667
5706
  client.queue_service_action_call('user', 'resetPassword', '', kparams)
5668
5707
  if (client.is_multirequest)
5669
5708
  return nil
@@ -5727,6 +5766,18 @@ module Kaltura
5727
5766
  end
5728
5767
  return client.do_queue()
5729
5768
  end
5769
+
5770
+ # Validate hash key
5771
+ # @return [KalturaAuthentication]
5772
+ def validate_hash_key(hash_key)
5773
+ kparams = {}
5774
+ client.add_param(kparams, 'hashKey', hash_key)
5775
+ client.queue_service_action_call('user', 'validateHashKey', 'KalturaAuthentication', kparams)
5776
+ if (client.is_multirequest)
5777
+ return nil
5778
+ end
5779
+ return client.do_queue()
5780
+ end
5730
5781
  end
5731
5782
 
5732
5783
  # widget service for full widget management
@@ -6243,8 +6294,8 @@ module Kaltura
6243
6294
 
6244
6295
  def initialize(client)
6245
6296
  super(client)
6246
- self.client_tag = 'ruby:20-03-31'
6247
- self.api_version = '15.20.0'
6297
+ self.client_tag = 'ruby:20-09-24'
6298
+ self.api_version = '16.8.0'
6248
6299
  end
6249
6300
 
6250
6301
  def client_tag=(value)
@@ -448,6 +448,7 @@ module Kaltura
448
448
  STATIC_LIST = 3
449
449
  DYNAMIC = 10
450
450
  EXTERNAL = 101
451
+ PATH = 102
451
452
  end
452
453
 
453
454
  class KalturaPrivacyType
@@ -1131,6 +1132,10 @@ module Kaltura
1131
1132
  REPORT_EXPORT = "50"
1132
1133
  LIVE_ENTRY_ARCHIVE = "51"
1133
1134
  STORAGE_UPDATE = "52"
1135
+ STORAGE_PERIODIC_EXPORT = "53"
1136
+ STORAGE_PERIODIC_PURGE = "54"
1137
+ STORAGE_PERIODIC_DELETE_LOCAL = "55"
1138
+ REACH_JOB_CLEANER = "56"
1134
1139
  end
1135
1140
 
1136
1141
  class KalturaBulkUploadAction
@@ -1143,6 +1148,7 @@ module Kaltura
1143
1148
  ADD_OR_UPDATE = "6"
1144
1149
  ACTIVATE = "7"
1145
1150
  REJECT = "8"
1151
+ UPDATE_STATUS = "9"
1146
1152
  end
1147
1153
 
1148
1154
  class KalturaBulkUploadObjectType
@@ -1155,6 +1161,7 @@ module Kaltura
1155
1161
  CATEGORY_USER = "4"
1156
1162
  CATEGORY_ENTRY = "5"
1157
1163
  USER_ENTRY = "6"
1164
+ VENDOR_CATALOG_ITEM = "7"
1158
1165
  end
1159
1166
 
1160
1167
  class KalturaBulkUploadOrderBy
@@ -1616,6 +1623,17 @@ module Kaltura
1616
1623
  UPDATED_AT_DESC = "-updatedAt"
1617
1624
  end
1618
1625
 
1626
+ class KalturaEntryApplication
1627
+ KMC = "0"
1628
+ KMS = "1"
1629
+ KAF = "2"
1630
+ PITCH = "3"
1631
+ KMS_GO = "4"
1632
+ WEBCAST_APP = "5"
1633
+ PERSONAL_CAPTURE = "6"
1634
+ KALTURA_MEETING = "7"
1635
+ end
1636
+
1619
1637
  class KalturaEntryIdentifierField
1620
1638
  ID = "id"
1621
1639
  REFERENCE_ID = "referenceId"
@@ -1659,7 +1677,9 @@ module Kaltura
1659
1677
 
1660
1678
  class KalturaEntryType
1661
1679
  AUTOMATIC = "-1"
1680
+ CONFERENCE_ENTRY_SERVER = "conference.CONFERENCE_ENTRY_SERVER"
1662
1681
  EXTERNAL_MEDIA = "externalMedia.externalMedia"
1682
+ SIP_ENTRY_SERVER = "sip.SIP_ENTRY_SERVER"
1663
1683
  MEDIA_CLIP = "1"
1664
1684
  MIX = "2"
1665
1685
  PLAYLIST = "5"
@@ -3518,6 +3538,13 @@ module Kaltura
3518
3538
  INTERACTIVE_VIDEO_TOP_NODES = "50"
3519
3539
  LATEST_PLAYED_ENTRIES = "51"
3520
3540
  CATEGORY_HIGHLIGHTS = "52"
3541
+ SUB_CATEGORIES = "53"
3542
+ INTERACTIVE_VIDEO_NODE_TOP_HOTSPOTS = "54"
3543
+ INTERCATIVE_VIDEO_NODE_SWITCH_TOP_HOTSPOTS = "55"
3544
+ INTERACTIVE_VIDEO_HOTSPOT_CLICKED_PERCENTILES = "56"
3545
+ INTERACTIVE_VIDEO_NODE_SWITCH_HOTSPOT_CLICKED_PERCENTILES = "57"
3546
+ TOP_CUSTOM_VAR2 = "58"
3547
+ TOP_CUSTOM_VAR3 = "59"
3521
3548
  PARTNER_USAGE = "201"
3522
3549
  MAP_OVERLAY_COUNTRY_REALTIME = "10001"
3523
3550
  MAP_OVERLAY_REGION_REALTIME = "10002"
@@ -3532,6 +3559,8 @@ module Kaltura
3532
3559
  PLAYBACK_TYPE_REALTIME = "10011"
3533
3560
  CONTENT_REALTIME = "10012"
3534
3561
  DISCOVERY_VIEW_REALTIME = "10013"
3562
+ TOP_ENDED_BROADCAST_ENTRIES = "10014"
3563
+ TOP_LIVE_NOW_ENTRIES = "10015"
3535
3564
  CONTENT_DROPOFF_VPAAS = "20001"
3536
3565
  TOP_SYNDICATION_VPAAS = "20002"
3537
3566
  USER_TOP_CONTENT_VPAAS = "20003"
@@ -3620,6 +3649,11 @@ module Kaltura
3620
3649
  QOE_ERROR_TRACKING_APPLICATION_VERSION = "30064"
3621
3650
  end
3622
3651
 
3652
+ class KalturaResetPassLinkType
3653
+ KMC = "1"
3654
+ KMS = "2"
3655
+ end
3656
+
3623
3657
  class KalturaResponseProfileOrderBy
3624
3658
  CREATED_AT_ASC = "+createdAt"
3625
3659
  UPDATED_AT_ASC = "+updatedAt"
@@ -3668,6 +3702,9 @@ module Kaltura
3668
3702
  end
3669
3703
 
3670
3704
  class KalturaServerNodeType
3705
+ CONFERENCE_SERVER = "conference.CONFERENCE_SERVER"
3706
+ LIVE_CLUSTER_MEDIA_SERVER = "liveCluster.LIVE_CLUSTER_MEDIA_SERVER"
3707
+ SIP_SERVER = "sip.SIP_SERVER"
3671
3708
  WOWZA_MEDIA_SERVER = "wowza.WOWZA_MEDIA_SERVER"
3672
3709
  EDGE = "1"
3673
3710
  end
@@ -3799,6 +3836,7 @@ module Kaltura
3799
3836
 
3800
3837
  class KalturaUserEntryType
3801
3838
  QUIZ = "quiz.QUIZ"
3839
+ REGISTRATION = "registration.REGISTRATION"
3802
3840
  VIEW_HISTORY = "viewHistory.VIEW_HISTORY"
3803
3841
  WATCH_LATER = "watchLater.WATCH_LATER"
3804
3842
  end
@@ -75,6 +75,7 @@ module Kaltura
75
75
  METADATA_PROFILE = "MetadataProfile"
76
76
  PARTNER = "Partner"
77
77
  PERMISSION = "Permission"
78
+ REACH_PROFILE = "ReachProfile"
78
79
  UPLOAD_TOKEN = "UploadToken"
79
80
  USER_LOGIN_DATA = "UserLoginData"
80
81
  USER_ROLE = "UserRole"
@@ -434,6 +434,19 @@ module Kaltura
434
434
  return client.do_queue()
435
435
  end
436
436
 
437
+ # manually export an asset
438
+ # @return [KalturaFlavorAsset]
439
+ def export(asset_id, storage_profile_id)
440
+ kparams = {}
441
+ client.add_param(kparams, 'assetId', asset_id)
442
+ client.add_param(kparams, 'storageProfileId', storage_profile_id)
443
+ client.queue_service_action_call('caption_captionasset', 'export', 'KalturaFlavorAsset', kparams)
444
+ if (client.is_multirequest)
445
+ return nil
446
+ end
447
+ return client.do_queue()
448
+ end
449
+
437
450
  # @return [KalturaCaptionAsset]
438
451
  def get(caption_asset_id)
439
452
  kparams = {}
@@ -0,0 +1,36 @@
1
+ # ===================================================================================================
2
+ # _ __ _ _
3
+ # | |/ /__ _| | |_ _ _ _ _ __ _
4
+ # | ' </ _` | | _| || | '_/ _` |
5
+ # |_|\_\__,_|_|\__|\_,_|_| \__,_|
6
+ #
7
+ # This file is part of the Kaltura Collaborative Media Suite which allows users
8
+ # to do with audio, video, and animation what Wiki platfroms allow them to do with
9
+ # text.
10
+ #
11
+ # Copyright (C) 2006-2020 Kaltura Inc.
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as
15
+ # published by the Free Software Foundation, either version 3 of the
16
+ # License, or (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <http:#www.gnu.org/licenses/>.
25
+ #
26
+ # @ignore
27
+ # ===================================================================================================
28
+ require 'kaltura_client.rb'
29
+
30
+ module Kaltura
31
+
32
+
33
+ class KalturaClient < KalturaClientBase
34
+ end
35
+
36
+ end
@@ -0,0 +1,152 @@
1
+ # ===================================================================================================
2
+ # _ __ _ _
3
+ # | |/ /__ _| | |_ _ _ _ _ __ _
4
+ # | ' </ _` | | _| || | '_/ _` |
5
+ # |_|\_\__,_|_|\__|\_,_|_| \__,_|
6
+ #
7
+ # This file is part of the Kaltura Collaborative Media Suite which allows users
8
+ # to do with audio, video, and animation what Wiki platfroms allow them to do with
9
+ # text.
10
+ #
11
+ # Copyright (C) 2006-2020 Kaltura Inc.
12
+ #
13
+ # This program is free software: you can redistribute it and/or modify
14
+ # it under the terms of the GNU Affero General Public License as
15
+ # published by the Free Software Foundation, either version 3 of the
16
+ # License, or (at your option) any later version.
17
+ #
18
+ # This program is distributed in the hope that it will be useful,
19
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ # GNU Affero General Public License for more details.
22
+ #
23
+ # You should have received a copy of the GNU Affero General Public License
24
+ # along with this program. If not, see <http:#www.gnu.org/licenses/>.
25
+ #
26
+ # @ignore
27
+ # ===================================================================================================
28
+ require 'kaltura_client.rb'
29
+
30
+ module Kaltura
31
+
32
+ class KalturaConferenceRoomStatus
33
+ CREATED = 1
34
+ READY = 2
35
+ ENDED = 3
36
+ end
37
+
38
+ class KalturaConferenceServerNodeOrderBy
39
+ CREATED_AT_ASC = "+createdAt"
40
+ HEARTBEAT_TIME_ASC = "+heartbeatTime"
41
+ UPDATED_AT_ASC = "+updatedAt"
42
+ CREATED_AT_DESC = "-createdAt"
43
+ HEARTBEAT_TIME_DESC = "-heartbeatTime"
44
+ UPDATED_AT_DESC = "-updatedAt"
45
+ end
46
+
47
+ class KalturaRoomDetails < KalturaObjectBase
48
+ attr_accessor :server_url
49
+ attr_accessor :entry_id
50
+ attr_accessor :token
51
+ attr_accessor :expiry
52
+ attr_accessor :server_name
53
+
54
+ def expiry=(val)
55
+ @expiry = val.to_i
56
+ end
57
+
58
+ def from_xml(xml_element)
59
+ super
60
+ if xml_element.elements['serverUrl'] != nil
61
+ self.server_url = xml_element.elements['serverUrl'].text
62
+ end
63
+ if xml_element.elements['entryId'] != nil
64
+ self.entry_id = xml_element.elements['entryId'].text
65
+ end
66
+ if xml_element.elements['token'] != nil
67
+ self.token = xml_element.elements['token'].text
68
+ end
69
+ if xml_element.elements['expiry'] != nil
70
+ self.expiry = xml_element.elements['expiry'].text
71
+ end
72
+ if xml_element.elements['serverName'] != nil
73
+ self.server_name = xml_element.elements['serverName'].text
74
+ end
75
+ end
76
+
77
+ end
78
+
79
+ class KalturaConferenceEntryServerNode < KalturaEntryServerNode
80
+ attr_accessor :conf_room_status
81
+ attr_accessor :registered
82
+
83
+ def conf_room_status=(val)
84
+ @conf_room_status = val.to_i
85
+ end
86
+ def registered=(val)
87
+ @registered = val.to_i
88
+ end
89
+
90
+ def from_xml(xml_element)
91
+ super
92
+ if xml_element.elements['confRoomStatus'] != nil
93
+ self.conf_room_status = xml_element.elements['confRoomStatus'].text
94
+ end
95
+ if xml_element.elements['registered'] != nil
96
+ self.registered = xml_element.elements['registered'].text
97
+ end
98
+ end
99
+
100
+ end
101
+
102
+ class KalturaConferenceServerNode < KalturaServerNode
103
+ attr_accessor :service_base_url
104
+
105
+
106
+ def from_xml(xml_element)
107
+ super
108
+ if xml_element.elements['serviceBaseUrl'] != nil
109
+ self.service_base_url = xml_element.elements['serviceBaseUrl'].text
110
+ end
111
+ end
112
+
113
+ end
114
+
115
+ class KalturaConferenceEntryServerNodeBaseFilter < KalturaEntryServerNodeFilter
116
+
117
+
118
+ def from_xml(xml_element)
119
+ super
120
+ end
121
+
122
+ end
123
+
124
+ class KalturaConferenceServerNodeBaseFilter < KalturaServerNodeFilter
125
+
126
+
127
+ def from_xml(xml_element)
128
+ super
129
+ end
130
+
131
+ end
132
+
133
+ class KalturaConferenceEntryServerNodeFilter < KalturaConferenceEntryServerNodeBaseFilter
134
+
135
+
136
+ def from_xml(xml_element)
137
+ super
138
+ end
139
+
140
+ end
141
+
142
+ class KalturaConferenceServerNodeFilter < KalturaConferenceServerNodeBaseFilter
143
+
144
+
145
+ def from_xml(xml_element)
146
+ super
147
+ end
148
+
149
+ end
150
+
151
+
152
+ end