kaltura-client 3.3.0 → 14.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +23 -23
- data/lib/kaltura_client.rb +2054 -1860
- data/lib/kaltura_client_base.rb +4 -1
- data/lib/kaltura_enums.rb +612 -36
- data/lib/kaltura_plugins/kaltura_activiti_business_process_notification_client_plugin.rb +96 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +46 -17
- data/lib/kaltura_plugins/kaltura_admin_console_client_plugin.rb +61 -251
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +131 -60
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +83 -55
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +613 -0
- data/lib/kaltura_plugins/kaltura_avn_distribution_client_plugin.rb +109 -0
- data/lib/kaltura_plugins/kaltura_bpm_event_notification_integration_client_plugin.rb +61 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +17 -19
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +7 -6
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +33 -13
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +1 -2
- data/lib/kaltura_plugins/kaltura_business_process_notification_client_plugin.rb +545 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +235 -114
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +86 -29
- data/lib/kaltura_plugins/kaltura_cielo24client_plugin.rb +39 -17
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +49 -18
- data/lib/kaltura_plugins/kaltura_comcast_mrss_distribution_client_plugin.rb +163 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +846 -439
- data/lib/kaltura_plugins/kaltura_cross_kaltura_distribution_client_plugin.rb +232 -0
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +229 -74
- data/lib/kaltura_plugins/kaltura_dailymotion_distribution_client_plugin.rb +199 -0
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +140 -97
- data/lib/kaltura_plugins/kaltura_double_click_distribution_client_plugin.rb +142 -0
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +635 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +485 -196
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +19 -1
- data/lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb +1228 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +178 -89
- data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +205 -95
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +43 -32
- data/lib/kaltura_plugins/kaltura_facebook_distribution_client_plugin.rb +183 -0
- data/lib/kaltura_plugins/kaltura_fairplay_client_plugin.rb +62 -0
- data/lib/kaltura_plugins/kaltura_feed_drop_folder_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +182 -67
- data/lib/kaltura_plugins/kaltura_freewheel_distribution_client_plugin.rb +157 -0
- data/lib/kaltura_plugins/kaltura_freewheel_generic_distribution_client_plugin.rb +172 -0
- data/lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb +258 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +154 -102
- data/lib/kaltura_plugins/kaltura_hulu_distribution_client_plugin.rb +213 -0
- data/lib/kaltura_plugins/kaltura_idetic_distribution_client_plugin.rb +131 -0
- data/lib/kaltura_plugins/kaltura_integration_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb +1 -87
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +19 -10
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +45 -25
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +435 -213
- data/lib/kaltura_plugins/kaltura_metro_pcs_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_msn_distribution_client_plugin.rb +186 -0
- data/lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb +482 -0
- data/lib/kaltura_plugins/kaltura_poll_client_plugin.rb +116 -0
- data/lib/kaltura_plugins/kaltura_push_notification_client_plugin.rb +154 -0
- data/lib/kaltura_plugins/kaltura_quick_play_distribution_client_plugin.rb +187 -0
- data/lib/kaltura_plugins/kaltura_quiz_client_plugin.rb +155 -58
- data/lib/kaltura_plugins/kaltura_schedule_bulk_upload_client_plugin.rb +107 -0
- data/lib/kaltura_plugins/kaltura_schedule_client_plugin.rb +1580 -0
- data/lib/kaltura_plugins/kaltura_schedule_drop_folder_client_plugin.rb +52 -0
- data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +277 -71
- data/lib/kaltura_plugins/kaltura_scheduled_task_content_distribution_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +4 -3
- data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +10 -7
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +113 -66
- data/lib/kaltura_plugins/kaltura_system_partner_client_plugin.rb +81 -517
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +63 -30
- data/lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb +40 -16
- data/lib/kaltura_plugins/kaltura_transcript_client_plugin.rb +44 -8
- data/lib/kaltura_plugins/kaltura_unicorn_distribution_client_plugin.rb +212 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +75 -74
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +10 -4
- data/lib/kaltura_plugins/kaltura_view_history_client_plugin.rb +112 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +119 -59
- data/lib/kaltura_plugins/kaltura_voicebase_client_plugin.rb +34 -19
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +207 -0
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +299 -0
- data/lib/kaltura_plugins/kaltura_wowza_client_plugin.rb +22 -13
- data/lib/kaltura_plugins/kaltura_yahoo_distribution_client_plugin.rb +155 -0
- data/lib/kaltura_plugins/kaltura_you_tube_distribution_client_plugin.rb +382 -0
- data/lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb +219 -0
- data/lib/kaltura_types.rb +10305 -4858
- data/test/access_control_service_test.rb +43 -20
- data/test/base_entry_service_test.rb +57 -67
- data/test/configuration_test.rb +2 -34
- data/test/cue_point_service_test.rb +1 -1
- data/test/data_service_test.rb +19 -5
- data/test/document_service_test.rb +1 -1
- data/test/media_service_test.rb +296 -296
- data/test/metadata_profile_service_test.rb +1 -1
- metadata +52 -21
@@ -0,0 +1,258 @@
|
|
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_content_distribution_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaFtpDistributionProfileOrderBy
|
34
|
+
CREATED_AT_ASC = "+createdAt"
|
35
|
+
UPDATED_AT_ASC = "+updatedAt"
|
36
|
+
CREATED_AT_DESC = "-createdAt"
|
37
|
+
UPDATED_AT_DESC = "-updatedAt"
|
38
|
+
end
|
39
|
+
|
40
|
+
class KalturaFtpDistributionProviderOrderBy
|
41
|
+
end
|
42
|
+
|
43
|
+
class KalturaFtpScheduledDistributionProviderOrderBy
|
44
|
+
end
|
45
|
+
|
46
|
+
class KalturaFtpDistributionFile < KalturaObjectBase
|
47
|
+
attr_accessor :asset_id
|
48
|
+
attr_accessor :filename
|
49
|
+
attr_accessor :contents
|
50
|
+
attr_accessor :local_file_path
|
51
|
+
attr_accessor :version
|
52
|
+
attr_accessor :hash
|
53
|
+
|
54
|
+
|
55
|
+
def from_xml(xml_element)
|
56
|
+
super
|
57
|
+
if xml_element.elements['assetId'] != nil
|
58
|
+
self.asset_id = xml_element.elements['assetId'].text
|
59
|
+
end
|
60
|
+
if xml_element.elements['filename'] != nil
|
61
|
+
self.filename = xml_element.elements['filename'].text
|
62
|
+
end
|
63
|
+
if xml_element.elements['contents'] != nil
|
64
|
+
self.contents = xml_element.elements['contents'].text
|
65
|
+
end
|
66
|
+
if xml_element.elements['localFilePath'] != nil
|
67
|
+
self.local_file_path = xml_element.elements['localFilePath'].text
|
68
|
+
end
|
69
|
+
if xml_element.elements['version'] != nil
|
70
|
+
self.version = xml_element.elements['version'].text
|
71
|
+
end
|
72
|
+
if xml_element.elements['hash'] != nil
|
73
|
+
self.hash = xml_element.elements['hash'].text
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
79
|
+
class KalturaFtpDistributionProvider < KalturaDistributionProvider
|
80
|
+
|
81
|
+
|
82
|
+
def from_xml(xml_element)
|
83
|
+
super
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
class KalturaFtpDistributionJobProviderData < KalturaConfigurableDistributionJobProviderData
|
89
|
+
attr_accessor :files_for_distribution
|
90
|
+
|
91
|
+
|
92
|
+
def from_xml(xml_element)
|
93
|
+
super
|
94
|
+
if xml_element.elements['filesForDistribution'] != nil
|
95
|
+
self.files_for_distribution = KalturaClientBase.object_from_xml(xml_element.elements['filesForDistribution'], 'KalturaFtpDistributionFile')
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
|
101
|
+
class KalturaFtpDistributionProfile < KalturaConfigurableDistributionProfile
|
102
|
+
attr_accessor :protocol
|
103
|
+
attr_accessor :host
|
104
|
+
attr_accessor :port
|
105
|
+
attr_accessor :base_path
|
106
|
+
attr_accessor :username
|
107
|
+
attr_accessor :password
|
108
|
+
attr_accessor :passphrase
|
109
|
+
attr_accessor :sftp_public_key
|
110
|
+
attr_accessor :sftp_private_key
|
111
|
+
attr_accessor :disable_metadata
|
112
|
+
attr_accessor :metadata_xslt
|
113
|
+
attr_accessor :metadata_filename_xslt
|
114
|
+
attr_accessor :flavor_asset_filename_xslt
|
115
|
+
attr_accessor :thumbnail_asset_filename_xslt
|
116
|
+
attr_accessor :asset_filename_xslt
|
117
|
+
attr_accessor :aspera_public_key
|
118
|
+
attr_accessor :aspera_private_key
|
119
|
+
attr_accessor :send_metadata_after_assets
|
120
|
+
|
121
|
+
def protocol=(val)
|
122
|
+
@protocol = val.to_i
|
123
|
+
end
|
124
|
+
def port=(val)
|
125
|
+
@port = val.to_i
|
126
|
+
end
|
127
|
+
def disable_metadata=(val)
|
128
|
+
@disable_metadata = to_b(val)
|
129
|
+
end
|
130
|
+
def send_metadata_after_assets=(val)
|
131
|
+
@send_metadata_after_assets = to_b(val)
|
132
|
+
end
|
133
|
+
|
134
|
+
def from_xml(xml_element)
|
135
|
+
super
|
136
|
+
if xml_element.elements['protocol'] != nil
|
137
|
+
self.protocol = xml_element.elements['protocol'].text
|
138
|
+
end
|
139
|
+
if xml_element.elements['host'] != nil
|
140
|
+
self.host = xml_element.elements['host'].text
|
141
|
+
end
|
142
|
+
if xml_element.elements['port'] != nil
|
143
|
+
self.port = xml_element.elements['port'].text
|
144
|
+
end
|
145
|
+
if xml_element.elements['basePath'] != nil
|
146
|
+
self.base_path = xml_element.elements['basePath'].text
|
147
|
+
end
|
148
|
+
if xml_element.elements['username'] != nil
|
149
|
+
self.username = xml_element.elements['username'].text
|
150
|
+
end
|
151
|
+
if xml_element.elements['password'] != nil
|
152
|
+
self.password = xml_element.elements['password'].text
|
153
|
+
end
|
154
|
+
if xml_element.elements['passphrase'] != nil
|
155
|
+
self.passphrase = xml_element.elements['passphrase'].text
|
156
|
+
end
|
157
|
+
if xml_element.elements['sftpPublicKey'] != nil
|
158
|
+
self.sftp_public_key = xml_element.elements['sftpPublicKey'].text
|
159
|
+
end
|
160
|
+
if xml_element.elements['sftpPrivateKey'] != nil
|
161
|
+
self.sftp_private_key = xml_element.elements['sftpPrivateKey'].text
|
162
|
+
end
|
163
|
+
if xml_element.elements['disableMetadata'] != nil
|
164
|
+
self.disable_metadata = xml_element.elements['disableMetadata'].text
|
165
|
+
end
|
166
|
+
if xml_element.elements['metadataXslt'] != nil
|
167
|
+
self.metadata_xslt = xml_element.elements['metadataXslt'].text
|
168
|
+
end
|
169
|
+
if xml_element.elements['metadataFilenameXslt'] != nil
|
170
|
+
self.metadata_filename_xslt = xml_element.elements['metadataFilenameXslt'].text
|
171
|
+
end
|
172
|
+
if xml_element.elements['flavorAssetFilenameXslt'] != nil
|
173
|
+
self.flavor_asset_filename_xslt = xml_element.elements['flavorAssetFilenameXslt'].text
|
174
|
+
end
|
175
|
+
if xml_element.elements['thumbnailAssetFilenameXslt'] != nil
|
176
|
+
self.thumbnail_asset_filename_xslt = xml_element.elements['thumbnailAssetFilenameXslt'].text
|
177
|
+
end
|
178
|
+
if xml_element.elements['assetFilenameXslt'] != nil
|
179
|
+
self.asset_filename_xslt = xml_element.elements['assetFilenameXslt'].text
|
180
|
+
end
|
181
|
+
if xml_element.elements['asperaPublicKey'] != nil
|
182
|
+
self.aspera_public_key = xml_element.elements['asperaPublicKey'].text
|
183
|
+
end
|
184
|
+
if xml_element.elements['asperaPrivateKey'] != nil
|
185
|
+
self.aspera_private_key = xml_element.elements['asperaPrivateKey'].text
|
186
|
+
end
|
187
|
+
if xml_element.elements['sendMetadataAfterAssets'] != nil
|
188
|
+
self.send_metadata_after_assets = xml_element.elements['sendMetadataAfterAssets'].text
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
|
194
|
+
class KalturaFtpScheduledDistributionProvider < KalturaFtpDistributionProvider
|
195
|
+
|
196
|
+
|
197
|
+
def from_xml(xml_element)
|
198
|
+
super
|
199
|
+
end
|
200
|
+
|
201
|
+
end
|
202
|
+
|
203
|
+
class KalturaFtpDistributionProviderBaseFilter < KalturaDistributionProviderFilter
|
204
|
+
|
205
|
+
|
206
|
+
def from_xml(xml_element)
|
207
|
+
super
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
|
212
|
+
class KalturaFtpDistributionProviderFilter < KalturaFtpDistributionProviderBaseFilter
|
213
|
+
|
214
|
+
|
215
|
+
def from_xml(xml_element)
|
216
|
+
super
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
class KalturaFtpDistributionProfileBaseFilter < KalturaConfigurableDistributionProfileFilter
|
222
|
+
|
223
|
+
|
224
|
+
def from_xml(xml_element)
|
225
|
+
super
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
229
|
+
|
230
|
+
class KalturaFtpScheduledDistributionProviderBaseFilter < KalturaFtpDistributionProviderFilter
|
231
|
+
|
232
|
+
|
233
|
+
def from_xml(xml_element)
|
234
|
+
super
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
238
|
+
|
239
|
+
class KalturaFtpDistributionProfileFilter < KalturaFtpDistributionProfileBaseFilter
|
240
|
+
|
241
|
+
|
242
|
+
def from_xml(xml_element)
|
243
|
+
super
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
247
|
+
|
248
|
+
class KalturaFtpScheduledDistributionProviderFilter < KalturaFtpScheduledDistributionProviderBaseFilter
|
249
|
+
|
250
|
+
|
251
|
+
def from_xml(xml_element)
|
252
|
+
super
|
253
|
+
end
|
254
|
+
|
255
|
+
end
|
256
|
+
|
257
|
+
|
258
|
+
end
|
@@ -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-2019 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
|
@@ -72,29 +72,21 @@ module Kaltura
|
|
72
72
|
UPDATED_AT_DESC = "-updatedAt"
|
73
73
|
end
|
74
74
|
|
75
|
-
# Wrapper for sent notifications
|
76
|
-
#
|
75
|
+
# Wrapper for sent notifications
|
77
76
|
class KalturaHttpNotification < KalturaObjectBase
|
78
77
|
# Object that triggered the notification
|
79
|
-
#
|
80
78
|
attr_accessor :object
|
81
79
|
# Object type that triggered the notification
|
82
|
-
#
|
83
80
|
attr_accessor :event_object_type
|
84
81
|
# ID of the batch job that execute the notification
|
85
|
-
#
|
86
82
|
attr_accessor :event_notification_job_id
|
87
83
|
# ID of the template that triggered the notification
|
88
|
-
#
|
89
84
|
attr_accessor :template_id
|
90
85
|
# Name of the template that triggered the notification
|
91
|
-
#
|
92
86
|
attr_accessor :template_name
|
93
87
|
# System name of the template that triggered the notification
|
94
|
-
#
|
95
88
|
attr_accessor :template_system_name
|
96
89
|
# Ecent type that triggered the notification
|
97
|
-
#
|
98
90
|
attr_accessor :event_type
|
99
91
|
|
100
92
|
def event_notification_job_id=(val)
|
@@ -106,13 +98,27 @@ module Kaltura
|
|
106
98
|
|
107
99
|
def from_xml(xml_element)
|
108
100
|
super
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
101
|
+
if xml_element.elements['object'] != nil
|
102
|
+
self.object = KalturaClientBase.object_from_xml(xml_element.elements['object'], 'KalturaObjectBase')
|
103
|
+
end
|
104
|
+
if xml_element.elements['eventObjectType'] != nil
|
105
|
+
self.event_object_type = xml_element.elements['eventObjectType'].text
|
106
|
+
end
|
107
|
+
if xml_element.elements['eventNotificationJobId'] != nil
|
108
|
+
self.event_notification_job_id = xml_element.elements['eventNotificationJobId'].text
|
109
|
+
end
|
110
|
+
if xml_element.elements['templateId'] != nil
|
111
|
+
self.template_id = xml_element.elements['templateId'].text
|
112
|
+
end
|
113
|
+
if xml_element.elements['templateName'] != nil
|
114
|
+
self.template_name = xml_element.elements['templateName'].text
|
115
|
+
end
|
116
|
+
if xml_element.elements['templateSystemName'] != nil
|
117
|
+
self.template_system_name = xml_element.elements['templateSystemName'].text
|
118
|
+
end
|
119
|
+
if xml_element.elements['eventType'] != nil
|
120
|
+
self.event_type = xml_element.elements['eventType'].text
|
121
|
+
end
|
116
122
|
end
|
117
123
|
|
118
124
|
end
|
@@ -127,7 +133,6 @@ module Kaltura
|
|
127
133
|
end
|
128
134
|
|
129
135
|
# If this class used as the template data, the fields will be taken from the content parameters
|
130
|
-
#
|
131
136
|
class KalturaHttpNotificationDataFields < KalturaHttpNotificationData
|
132
137
|
|
133
138
|
|
@@ -143,26 +148,25 @@ module Kaltura
|
|
143
148
|
|
144
149
|
def from_xml(xml_element)
|
145
150
|
super
|
146
|
-
|
151
|
+
if xml_element.elements['content'] != nil
|
152
|
+
self.content = KalturaClientBase.object_from_xml(xml_element.elements['content'], 'KalturaStringValue')
|
153
|
+
end
|
147
154
|
end
|
148
155
|
|
149
156
|
end
|
150
157
|
|
151
158
|
# Evaluates PHP statement, depends on the execution context
|
152
|
-
#
|
153
159
|
class KalturaHttpNotificationObjectData < KalturaHttpNotificationData
|
154
160
|
# Kaltura API object type
|
155
|
-
#
|
156
161
|
attr_accessor :api_object_type
|
157
162
|
# Data format
|
158
|
-
#
|
159
163
|
attr_accessor :format
|
160
164
|
# Ignore null attributes during serialization
|
161
|
-
#
|
162
165
|
attr_accessor :ignore_null
|
163
166
|
# PHP code
|
164
|
-
#
|
165
167
|
attr_accessor :code
|
168
|
+
# An array of pattern-replacement pairs used for data string regex replacements
|
169
|
+
attr_accessor :data_string_replacements
|
166
170
|
|
167
171
|
def format=(val)
|
168
172
|
@format = val.to_i
|
@@ -173,70 +177,63 @@ module Kaltura
|
|
173
177
|
|
174
178
|
def from_xml(xml_element)
|
175
179
|
super
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
+
if xml_element.elements['apiObjectType'] != nil
|
181
|
+
self.api_object_type = xml_element.elements['apiObjectType'].text
|
182
|
+
end
|
183
|
+
if xml_element.elements['format'] != nil
|
184
|
+
self.format = xml_element.elements['format'].text
|
185
|
+
end
|
186
|
+
if xml_element.elements['ignoreNull'] != nil
|
187
|
+
self.ignore_null = xml_element.elements['ignoreNull'].text
|
188
|
+
end
|
189
|
+
if xml_element.elements['code'] != nil
|
190
|
+
self.code = xml_element.elements['code'].text
|
191
|
+
end
|
192
|
+
if xml_element.elements['dataStringReplacements'] != nil
|
193
|
+
self.data_string_replacements = KalturaClientBase.object_from_xml(xml_element.elements['dataStringReplacements'], 'KalturaKeyValue')
|
194
|
+
end
|
180
195
|
end
|
181
196
|
|
182
197
|
end
|
183
198
|
|
184
199
|
class KalturaHttpNotificationTemplate < KalturaEventNotificationTemplate
|
185
200
|
# Remote server URL
|
186
|
-
#
|
187
201
|
attr_accessor :url
|
188
202
|
# Request method.
|
189
|
-
#
|
190
203
|
attr_accessor :method
|
191
204
|
# Data to send.
|
192
|
-
#
|
193
205
|
attr_accessor :data
|
194
206
|
# The maximum number of seconds to allow cURL functions to execute.
|
195
|
-
#
|
196
207
|
attr_accessor :timeout
|
197
208
|
# The number of seconds to wait while trying to connect.
|
198
209
|
# Must be larger than zero.
|
199
|
-
#
|
200
210
|
attr_accessor :connect_timeout
|
201
211
|
# A username to use for the connection.
|
202
|
-
#
|
203
212
|
attr_accessor :username
|
204
213
|
# A password to use for the connection.
|
205
|
-
#
|
206
214
|
attr_accessor :password
|
207
215
|
# The HTTP authentication method to use.
|
208
|
-
#
|
209
216
|
attr_accessor :authentication_method
|
210
217
|
# The SSL version (2 or 3) to use.
|
211
218
|
# By default PHP will try to determine this itself, although in some cases this must be set manually.
|
212
|
-
#
|
213
219
|
attr_accessor :ssl_version
|
214
220
|
# SSL certificate to verify the peer with.
|
215
|
-
#
|
216
221
|
attr_accessor :ssl_certificate
|
217
222
|
# The format of the certificate.
|
218
|
-
#
|
219
223
|
attr_accessor :ssl_certificate_type
|
220
224
|
# The password required to use the certificate.
|
221
|
-
#
|
222
225
|
attr_accessor :ssl_certificate_password
|
223
226
|
# The identifier for the crypto engine of the private SSL key specified in ssl key.
|
224
|
-
#
|
225
227
|
attr_accessor :ssl_engine
|
226
228
|
# The identifier for the crypto engine used for asymmetric crypto operations.
|
227
|
-
#
|
228
229
|
attr_accessor :ssl_engine_default
|
229
230
|
# The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
|
230
|
-
#
|
231
231
|
attr_accessor :ssl_key_type
|
232
232
|
# Private SSL key.
|
233
|
-
#
|
234
233
|
attr_accessor :ssl_key
|
235
234
|
# The secret password needed to use the private SSL key specified in ssl key.
|
236
|
-
#
|
237
235
|
attr_accessor :ssl_key_password
|
238
236
|
# Adds a e-mail custom header
|
239
|
-
#
|
240
237
|
attr_accessor :custom_headers
|
241
238
|
|
242
239
|
def method=(val)
|
@@ -257,87 +254,104 @@ module Kaltura
|
|
257
254
|
|
258
255
|
def from_xml(xml_element)
|
259
256
|
super
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
257
|
+
if xml_element.elements['url'] != nil
|
258
|
+
self.url = xml_element.elements['url'].text
|
259
|
+
end
|
260
|
+
if xml_element.elements['method'] != nil
|
261
|
+
self.method = xml_element.elements['method'].text
|
262
|
+
end
|
263
|
+
if xml_element.elements['data'] != nil
|
264
|
+
self.data = KalturaClientBase.object_from_xml(xml_element.elements['data'], 'KalturaHttpNotificationData')
|
265
|
+
end
|
266
|
+
if xml_element.elements['timeout'] != nil
|
267
|
+
self.timeout = xml_element.elements['timeout'].text
|
268
|
+
end
|
269
|
+
if xml_element.elements['connectTimeout'] != nil
|
270
|
+
self.connect_timeout = xml_element.elements['connectTimeout'].text
|
271
|
+
end
|
272
|
+
if xml_element.elements['username'] != nil
|
273
|
+
self.username = xml_element.elements['username'].text
|
274
|
+
end
|
275
|
+
if xml_element.elements['password'] != nil
|
276
|
+
self.password = xml_element.elements['password'].text
|
277
|
+
end
|
278
|
+
if xml_element.elements['authenticationMethod'] != nil
|
279
|
+
self.authentication_method = xml_element.elements['authenticationMethod'].text
|
280
|
+
end
|
281
|
+
if xml_element.elements['sslVersion'] != nil
|
282
|
+
self.ssl_version = xml_element.elements['sslVersion'].text
|
283
|
+
end
|
284
|
+
if xml_element.elements['sslCertificate'] != nil
|
285
|
+
self.ssl_certificate = xml_element.elements['sslCertificate'].text
|
286
|
+
end
|
287
|
+
if xml_element.elements['sslCertificateType'] != nil
|
288
|
+
self.ssl_certificate_type = xml_element.elements['sslCertificateType'].text
|
289
|
+
end
|
290
|
+
if xml_element.elements['sslCertificatePassword'] != nil
|
291
|
+
self.ssl_certificate_password = xml_element.elements['sslCertificatePassword'].text
|
292
|
+
end
|
293
|
+
if xml_element.elements['sslEngine'] != nil
|
294
|
+
self.ssl_engine = xml_element.elements['sslEngine'].text
|
295
|
+
end
|
296
|
+
if xml_element.elements['sslEngineDefault'] != nil
|
297
|
+
self.ssl_engine_default = xml_element.elements['sslEngineDefault'].text
|
298
|
+
end
|
299
|
+
if xml_element.elements['sslKeyType'] != nil
|
300
|
+
self.ssl_key_type = xml_element.elements['sslKeyType'].text
|
301
|
+
end
|
302
|
+
if xml_element.elements['sslKey'] != nil
|
303
|
+
self.ssl_key = xml_element.elements['sslKey'].text
|
304
|
+
end
|
305
|
+
if xml_element.elements['sslKeyPassword'] != nil
|
306
|
+
self.ssl_key_password = xml_element.elements['sslKeyPassword'].text
|
307
|
+
end
|
308
|
+
if xml_element.elements['customHeaders'] != nil
|
309
|
+
self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue')
|
310
|
+
end
|
278
311
|
end
|
279
312
|
|
280
313
|
end
|
281
314
|
|
282
315
|
class KalturaHttpNotificationDispatchJobData < KalturaEventNotificationDispatchJobData
|
283
316
|
# Remote server URL
|
284
|
-
#
|
285
317
|
attr_accessor :url
|
286
318
|
# Request method.
|
287
|
-
#
|
288
319
|
attr_accessor :method
|
289
320
|
# Data to send.
|
290
|
-
#
|
291
321
|
attr_accessor :data
|
292
322
|
# The maximum number of seconds to allow cURL functions to execute.
|
293
|
-
#
|
294
323
|
attr_accessor :timeout
|
295
324
|
# The number of seconds to wait while trying to connect.
|
296
325
|
# Must be larger than zero.
|
297
|
-
#
|
298
326
|
attr_accessor :connect_timeout
|
299
327
|
# A username to use for the connection.
|
300
|
-
#
|
301
328
|
attr_accessor :username
|
302
329
|
# A password to use for the connection.
|
303
|
-
#
|
304
330
|
attr_accessor :password
|
305
331
|
# The HTTP authentication method to use.
|
306
|
-
#
|
307
332
|
attr_accessor :authentication_method
|
308
333
|
# The SSL version (2 or 3) to use.
|
309
334
|
# By default PHP will try to determine this itself, although in some cases this must be set manually.
|
310
|
-
#
|
311
335
|
attr_accessor :ssl_version
|
312
336
|
# SSL certificate to verify the peer with.
|
313
|
-
#
|
314
337
|
attr_accessor :ssl_certificate
|
315
338
|
# The format of the certificate.
|
316
|
-
#
|
317
339
|
attr_accessor :ssl_certificate_type
|
318
340
|
# The password required to use the certificate.
|
319
|
-
#
|
320
341
|
attr_accessor :ssl_certificate_password
|
321
342
|
# The identifier for the crypto engine of the private SSL key specified in ssl key.
|
322
|
-
#
|
323
343
|
attr_accessor :ssl_engine
|
324
344
|
# The identifier for the crypto engine used for asymmetric crypto operations.
|
325
|
-
#
|
326
345
|
attr_accessor :ssl_engine_default
|
327
346
|
# The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
|
328
|
-
#
|
329
347
|
attr_accessor :ssl_key_type
|
330
348
|
# Private SSL key.
|
331
|
-
#
|
332
349
|
attr_accessor :ssl_key
|
333
350
|
# The secret password needed to use the private SSL key specified in ssl key.
|
334
|
-
#
|
335
351
|
attr_accessor :ssl_key_password
|
336
352
|
# Adds a e-mail custom header
|
337
|
-
#
|
338
353
|
attr_accessor :custom_headers
|
339
354
|
# The secret to sign the notification with
|
340
|
-
#
|
341
355
|
attr_accessor :sign_secret
|
342
356
|
|
343
357
|
def method=(val)
|
@@ -358,25 +372,63 @@ module Kaltura
|
|
358
372
|
|
359
373
|
def from_xml(xml_element)
|
360
374
|
super
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
375
|
+
if xml_element.elements['url'] != nil
|
376
|
+
self.url = xml_element.elements['url'].text
|
377
|
+
end
|
378
|
+
if xml_element.elements['method'] != nil
|
379
|
+
self.method = xml_element.elements['method'].text
|
380
|
+
end
|
381
|
+
if xml_element.elements['data'] != nil
|
382
|
+
self.data = xml_element.elements['data'].text
|
383
|
+
end
|
384
|
+
if xml_element.elements['timeout'] != nil
|
385
|
+
self.timeout = xml_element.elements['timeout'].text
|
386
|
+
end
|
387
|
+
if xml_element.elements['connectTimeout'] != nil
|
388
|
+
self.connect_timeout = xml_element.elements['connectTimeout'].text
|
389
|
+
end
|
390
|
+
if xml_element.elements['username'] != nil
|
391
|
+
self.username = xml_element.elements['username'].text
|
392
|
+
end
|
393
|
+
if xml_element.elements['password'] != nil
|
394
|
+
self.password = xml_element.elements['password'].text
|
395
|
+
end
|
396
|
+
if xml_element.elements['authenticationMethod'] != nil
|
397
|
+
self.authentication_method = xml_element.elements['authenticationMethod'].text
|
398
|
+
end
|
399
|
+
if xml_element.elements['sslVersion'] != nil
|
400
|
+
self.ssl_version = xml_element.elements['sslVersion'].text
|
401
|
+
end
|
402
|
+
if xml_element.elements['sslCertificate'] != nil
|
403
|
+
self.ssl_certificate = xml_element.elements['sslCertificate'].text
|
404
|
+
end
|
405
|
+
if xml_element.elements['sslCertificateType'] != nil
|
406
|
+
self.ssl_certificate_type = xml_element.elements['sslCertificateType'].text
|
407
|
+
end
|
408
|
+
if xml_element.elements['sslCertificatePassword'] != nil
|
409
|
+
self.ssl_certificate_password = xml_element.elements['sslCertificatePassword'].text
|
410
|
+
end
|
411
|
+
if xml_element.elements['sslEngine'] != nil
|
412
|
+
self.ssl_engine = xml_element.elements['sslEngine'].text
|
413
|
+
end
|
414
|
+
if xml_element.elements['sslEngineDefault'] != nil
|
415
|
+
self.ssl_engine_default = xml_element.elements['sslEngineDefault'].text
|
416
|
+
end
|
417
|
+
if xml_element.elements['sslKeyType'] != nil
|
418
|
+
self.ssl_key_type = xml_element.elements['sslKeyType'].text
|
419
|
+
end
|
420
|
+
if xml_element.elements['sslKey'] != nil
|
421
|
+
self.ssl_key = xml_element.elements['sslKey'].text
|
422
|
+
end
|
423
|
+
if xml_element.elements['sslKeyPassword'] != nil
|
424
|
+
self.ssl_key_password = xml_element.elements['sslKeyPassword'].text
|
425
|
+
end
|
426
|
+
if xml_element.elements['customHeaders'] != nil
|
427
|
+
self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue')
|
428
|
+
end
|
429
|
+
if xml_element.elements['signSecret'] != nil
|
430
|
+
self.sign_secret = xml_element.elements['signSecret'].text
|
431
|
+
end
|
380
432
|
end
|
381
433
|
|
382
434
|
end
|