kaltura-ruby-client 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +20 -0
- data/Rakefile +19 -0
- data/agpl.txt +674 -0
- data/kaltura.yml +7 -0
- data/lib/kaltura.rb +31 -0
- data/lib/kaltura_client.rb +14450 -0
- data/lib/kaltura_client_base.rb +432 -0
- data/lib/kaltura_plugins/kaltura_abc_screeners_watermark_access_control_client_plugin.rb +37 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +108 -0
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +237 -0
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +61 -0
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +227 -0
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +349 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +109 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +55 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +46 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +40 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +406 -0
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +138 -0
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +97 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1717 -0
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +290 -0
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +522 -0
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +204 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +810 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +39 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +276 -0
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +405 -0
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +203 -0
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +151 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +309 -0
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +72 -0
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +82 -0
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +788 -0
- data/lib/kaltura_plugins/kaltura_multi_centers_client_plugin.rb +45 -0
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +231 -0
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +145 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +238 -0
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +40 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +263 -0
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +121 -0
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +195 -0
- data/license.txt +674 -0
- data/test/access_control_service_test.rb +75 -0
- data/test/base_entry_service_test.rb +267 -0
- data/test/configuration_test.rb +178 -0
- data/test/cue_point_service_test.rb +67 -0
- data/test/data_service_test.rb +76 -0
- data/test/document_service_test.rb +41 -0
- data/test/media/test.mov +0 -0
- data/test/media/test.pdf +0 -0
- data/test/media/test.png +0 -0
- data/test/media/test.swf +0 -0
- data/test/media/test.wmv +0 -0
- data/test/media_service_test.rb +294 -0
- data/test/metadata_profile_service_test.rb +63 -0
- data/test/test_helper.rb +59 -0
- metadata +127 -0
@@ -0,0 +1,203 @@
|
|
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 KalturaExternalMediaEntryOrderBy
|
33
|
+
CREATED_AT_ASC = "+createdAt"
|
34
|
+
DURATION_ASC = "+duration"
|
35
|
+
END_DATE_ASC = "+endDate"
|
36
|
+
LAST_PLAYED_AT_ASC = "+lastPlayedAt"
|
37
|
+
MEDIA_TYPE_ASC = "+mediaType"
|
38
|
+
MODERATION_COUNT_ASC = "+moderationCount"
|
39
|
+
NAME_ASC = "+name"
|
40
|
+
PARTNER_SORT_VALUE_ASC = "+partnerSortValue"
|
41
|
+
PLAYS_ASC = "+plays"
|
42
|
+
RANK_ASC = "+rank"
|
43
|
+
RECENT_ASC = "+recent"
|
44
|
+
START_DATE_ASC = "+startDate"
|
45
|
+
TOTAL_RANK_ASC = "+totalRank"
|
46
|
+
UPDATED_AT_ASC = "+updatedAt"
|
47
|
+
VIEWS_ASC = "+views"
|
48
|
+
WEIGHT_ASC = "+weight"
|
49
|
+
CREATED_AT_DESC = "-createdAt"
|
50
|
+
DURATION_DESC = "-duration"
|
51
|
+
END_DATE_DESC = "-endDate"
|
52
|
+
LAST_PLAYED_AT_DESC = "-lastPlayedAt"
|
53
|
+
MEDIA_TYPE_DESC = "-mediaType"
|
54
|
+
MODERATION_COUNT_DESC = "-moderationCount"
|
55
|
+
NAME_DESC = "-name"
|
56
|
+
PARTNER_SORT_VALUE_DESC = "-partnerSortValue"
|
57
|
+
PLAYS_DESC = "-plays"
|
58
|
+
RANK_DESC = "-rank"
|
59
|
+
RECENT_DESC = "-recent"
|
60
|
+
START_DATE_DESC = "-startDate"
|
61
|
+
TOTAL_RANK_DESC = "-totalRank"
|
62
|
+
UPDATED_AT_DESC = "-updatedAt"
|
63
|
+
VIEWS_DESC = "-views"
|
64
|
+
WEIGHT_DESC = "-weight"
|
65
|
+
end
|
66
|
+
|
67
|
+
class KalturaExternalMediaSourceType
|
68
|
+
INTERCALL = "InterCall"
|
69
|
+
YOUTUBE = "YouTube"
|
70
|
+
end
|
71
|
+
|
72
|
+
class KalturaExternalMediaEntry < KalturaMediaEntry
|
73
|
+
# The source type of the external media
|
74
|
+
#
|
75
|
+
attr_accessor :external_source_type
|
76
|
+
# Comma separated asset params ids that exists for this external media entry
|
77
|
+
#
|
78
|
+
attr_accessor :asset_params_ids
|
79
|
+
|
80
|
+
end
|
81
|
+
|
82
|
+
class KalturaExternalMediaEntryListResponse < KalturaObjectBase
|
83
|
+
attr_accessor :objects
|
84
|
+
attr_accessor :total_count
|
85
|
+
|
86
|
+
def total_count=(val)
|
87
|
+
@total_count = val.to_i
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
class KalturaExternalMediaEntryBaseFilter < KalturaMediaEntryFilter
|
92
|
+
attr_accessor :external_source_type_equal
|
93
|
+
attr_accessor :external_source_type_in
|
94
|
+
attr_accessor :asset_params_ids_match_or
|
95
|
+
attr_accessor :asset_params_ids_match_and
|
96
|
+
|
97
|
+
end
|
98
|
+
|
99
|
+
class KalturaExternalMediaEntryFilter < KalturaExternalMediaEntryBaseFilter
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
# External media service lets you upload and manage embed codes and external playable content
|
105
|
+
#
|
106
|
+
class KalturaExternalMediaService < KalturaServiceBase
|
107
|
+
def initialize(client)
|
108
|
+
super(client)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Add external media entry
|
112
|
+
#
|
113
|
+
def add(entry)
|
114
|
+
kparams = {}
|
115
|
+
client.add_param(kparams, 'entry', entry);
|
116
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'add', kparams);
|
117
|
+
if (client.is_multirequest)
|
118
|
+
return nil;
|
119
|
+
end
|
120
|
+
return client.do_queue();
|
121
|
+
end
|
122
|
+
|
123
|
+
# Get external media entry by ID.
|
124
|
+
#
|
125
|
+
def get(id)
|
126
|
+
kparams = {}
|
127
|
+
# External media entry id
|
128
|
+
client.add_param(kparams, 'id', id);
|
129
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'get', kparams);
|
130
|
+
if (client.is_multirequest)
|
131
|
+
return nil;
|
132
|
+
end
|
133
|
+
return client.do_queue();
|
134
|
+
end
|
135
|
+
|
136
|
+
# Update external media entry. Only the properties that were set will be updated.
|
137
|
+
#
|
138
|
+
def update(id, entry)
|
139
|
+
kparams = {}
|
140
|
+
# External media entry id to update
|
141
|
+
client.add_param(kparams, 'id', id);
|
142
|
+
# External media entry object to update
|
143
|
+
client.add_param(kparams, 'entry', entry);
|
144
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'update', kparams);
|
145
|
+
if (client.is_multirequest)
|
146
|
+
return nil;
|
147
|
+
end
|
148
|
+
return client.do_queue();
|
149
|
+
end
|
150
|
+
|
151
|
+
# Delete a external media entry.
|
152
|
+
#
|
153
|
+
def delete(id)
|
154
|
+
kparams = {}
|
155
|
+
# External media entry id to delete
|
156
|
+
client.add_param(kparams, 'id', id);
|
157
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'delete', kparams);
|
158
|
+
if (client.is_multirequest)
|
159
|
+
return nil;
|
160
|
+
end
|
161
|
+
return client.do_queue();
|
162
|
+
end
|
163
|
+
|
164
|
+
# List media entries by filter with paging support.
|
165
|
+
#
|
166
|
+
def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
|
167
|
+
kparams = {}
|
168
|
+
# External media entry filter
|
169
|
+
client.add_param(kparams, 'filter', filter);
|
170
|
+
# Pager
|
171
|
+
client.add_param(kparams, 'pager', pager);
|
172
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'list', kparams);
|
173
|
+
if (client.is_multirequest)
|
174
|
+
return nil;
|
175
|
+
end
|
176
|
+
return client.do_queue();
|
177
|
+
end
|
178
|
+
|
179
|
+
# Count media entries by filter.
|
180
|
+
#
|
181
|
+
def count(filter=KalturaNotImplemented)
|
182
|
+
kparams = {}
|
183
|
+
# External media entry filter
|
184
|
+
client.add_param(kparams, 'filter', filter);
|
185
|
+
client.queue_service_action_call('externalmedia_externalmedia', 'count', kparams);
|
186
|
+
if (client.is_multirequest)
|
187
|
+
return nil;
|
188
|
+
end
|
189
|
+
return client.do_queue();
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class KalturaClient < KalturaClientBase
|
194
|
+
attr_reader :external_media_service
|
195
|
+
def external_media_service
|
196
|
+
if (@external_media_service == nil)
|
197
|
+
@external_media_service = KalturaExternalMediaService.new(self)
|
198
|
+
end
|
199
|
+
return @external_media_service
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
@@ -0,0 +1,151 @@
|
|
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 KalturaFileSyncStatus
|
33
|
+
ERROR = -1
|
34
|
+
PENDING = 1
|
35
|
+
READY = 2
|
36
|
+
DELETED = 3
|
37
|
+
PURGED = 4
|
38
|
+
end
|
39
|
+
|
40
|
+
class KalturaFileSyncType
|
41
|
+
FILE = 1
|
42
|
+
LINK = 2
|
43
|
+
URL = 3
|
44
|
+
end
|
45
|
+
|
46
|
+
class KalturaFileSyncOrderBy
|
47
|
+
CREATED_AT_ASC = "+createdAt"
|
48
|
+
FILE_SIZE_ASC = "+fileSize"
|
49
|
+
READY_AT_ASC = "+readyAt"
|
50
|
+
SYNC_TIME_ASC = "+syncTime"
|
51
|
+
UPDATED_AT_ASC = "+updatedAt"
|
52
|
+
CREATED_AT_DESC = "-createdAt"
|
53
|
+
FILE_SIZE_DESC = "-fileSize"
|
54
|
+
READY_AT_DESC = "-readyAt"
|
55
|
+
SYNC_TIME_DESC = "-syncTime"
|
56
|
+
UPDATED_AT_DESC = "-updatedAt"
|
57
|
+
end
|
58
|
+
|
59
|
+
class KalturaFileSyncBaseFilter < KalturaFilter
|
60
|
+
attr_accessor :partner_id_equal
|
61
|
+
attr_accessor :file_object_type_equal
|
62
|
+
attr_accessor :file_object_type_in
|
63
|
+
attr_accessor :object_id_equal
|
64
|
+
attr_accessor :object_id_in
|
65
|
+
attr_accessor :version_equal
|
66
|
+
attr_accessor :version_in
|
67
|
+
attr_accessor :object_sub_type_equal
|
68
|
+
attr_accessor :object_sub_type_in
|
69
|
+
attr_accessor :dc_equal
|
70
|
+
attr_accessor :dc_in
|
71
|
+
attr_accessor :original_equal
|
72
|
+
attr_accessor :created_at_greater_than_or_equal
|
73
|
+
attr_accessor :created_at_less_than_or_equal
|
74
|
+
attr_accessor :updated_at_greater_than_or_equal
|
75
|
+
attr_accessor :updated_at_less_than_or_equal
|
76
|
+
attr_accessor :ready_at_greater_than_or_equal
|
77
|
+
attr_accessor :ready_at_less_than_or_equal
|
78
|
+
attr_accessor :sync_time_greater_than_or_equal
|
79
|
+
attr_accessor :sync_time_less_than_or_equal
|
80
|
+
attr_accessor :status_equal
|
81
|
+
attr_accessor :status_in
|
82
|
+
attr_accessor :file_type_equal
|
83
|
+
attr_accessor :file_type_in
|
84
|
+
attr_accessor :linked_id_equal
|
85
|
+
attr_accessor :link_count_greater_than_or_equal
|
86
|
+
attr_accessor :link_count_less_than_or_equal
|
87
|
+
attr_accessor :file_size_greater_than_or_equal
|
88
|
+
attr_accessor :file_size_less_than_or_equal
|
89
|
+
|
90
|
+
def partner_id_equal=(val)
|
91
|
+
@partner_id_equal = val.to_i
|
92
|
+
end
|
93
|
+
def object_sub_type_equal=(val)
|
94
|
+
@object_sub_type_equal = val.to_i
|
95
|
+
end
|
96
|
+
def original_equal=(val)
|
97
|
+
@original_equal = val.to_i
|
98
|
+
end
|
99
|
+
def created_at_greater_than_or_equal=(val)
|
100
|
+
@created_at_greater_than_or_equal = val.to_i
|
101
|
+
end
|
102
|
+
def created_at_less_than_or_equal=(val)
|
103
|
+
@created_at_less_than_or_equal = val.to_i
|
104
|
+
end
|
105
|
+
def updated_at_greater_than_or_equal=(val)
|
106
|
+
@updated_at_greater_than_or_equal = val.to_i
|
107
|
+
end
|
108
|
+
def updated_at_less_than_or_equal=(val)
|
109
|
+
@updated_at_less_than_or_equal = val.to_i
|
110
|
+
end
|
111
|
+
def ready_at_greater_than_or_equal=(val)
|
112
|
+
@ready_at_greater_than_or_equal = val.to_i
|
113
|
+
end
|
114
|
+
def ready_at_less_than_or_equal=(val)
|
115
|
+
@ready_at_less_than_or_equal = val.to_i
|
116
|
+
end
|
117
|
+
def sync_time_greater_than_or_equal=(val)
|
118
|
+
@sync_time_greater_than_or_equal = val.to_i
|
119
|
+
end
|
120
|
+
def sync_time_less_than_or_equal=(val)
|
121
|
+
@sync_time_less_than_or_equal = val.to_i
|
122
|
+
end
|
123
|
+
def status_equal=(val)
|
124
|
+
@status_equal = val.to_i
|
125
|
+
end
|
126
|
+
def file_type_equal=(val)
|
127
|
+
@file_type_equal = val.to_i
|
128
|
+
end
|
129
|
+
def linked_id_equal=(val)
|
130
|
+
@linked_id_equal = val.to_i
|
131
|
+
end
|
132
|
+
def link_count_greater_than_or_equal=(val)
|
133
|
+
@link_count_greater_than_or_equal = val.to_i
|
134
|
+
end
|
135
|
+
def link_count_less_than_or_equal=(val)
|
136
|
+
@link_count_less_than_or_equal = val.to_i
|
137
|
+
end
|
138
|
+
def file_size_greater_than_or_equal=(val)
|
139
|
+
@file_size_greater_than_or_equal = val.to_f
|
140
|
+
end
|
141
|
+
def file_size_less_than_or_equal=(val)
|
142
|
+
@file_size_less_than_or_equal = val.to_f
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
class KalturaFileSyncFilter < KalturaFileSyncBaseFilter
|
147
|
+
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
end
|
@@ -0,0 +1,309 @@
|
|
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
|
+
require File.dirname(__FILE__) + '/kaltura_event_notification_client_plugin.rb'
|
30
|
+
|
31
|
+
module Kaltura
|
32
|
+
|
33
|
+
class KalturaHttpNotificationAuthenticationMethod
|
34
|
+
ANYSAFE = -18
|
35
|
+
ANY = -17
|
36
|
+
BASIC = 1
|
37
|
+
DIGEST = 2
|
38
|
+
GSSNEGOTIATE = 4
|
39
|
+
NTLM = 8
|
40
|
+
end
|
41
|
+
|
42
|
+
class KalturaHttpNotificationMethod
|
43
|
+
GET = 1
|
44
|
+
POST = 2
|
45
|
+
PUT = 3
|
46
|
+
DELETE = 4
|
47
|
+
end
|
48
|
+
|
49
|
+
class KalturaHttpNotificationSslVersion
|
50
|
+
V2 = 2
|
51
|
+
V3 = 3
|
52
|
+
end
|
53
|
+
|
54
|
+
class KalturaHttpNotificationCertificateType
|
55
|
+
DER = "DER"
|
56
|
+
ENG = "ENG"
|
57
|
+
PEM = "PEM"
|
58
|
+
end
|
59
|
+
|
60
|
+
class KalturaHttpNotificationSslKeyType
|
61
|
+
DER = "DER"
|
62
|
+
ENG = "ENG"
|
63
|
+
PEM = "PEM"
|
64
|
+
end
|
65
|
+
|
66
|
+
class KalturaHttpNotificationTemplateOrderBy
|
67
|
+
CREATED_AT_ASC = "+createdAt"
|
68
|
+
ID_ASC = "+id"
|
69
|
+
UPDATED_AT_ASC = "+updatedAt"
|
70
|
+
CREATED_AT_DESC = "-createdAt"
|
71
|
+
ID_DESC = "-id"
|
72
|
+
UPDATED_AT_DESC = "-updatedAt"
|
73
|
+
end
|
74
|
+
|
75
|
+
# Wrapper for sent notifications
|
76
|
+
#
|
77
|
+
class KalturaHttpNotification < KalturaObjectBase
|
78
|
+
# Object that triggered the notification
|
79
|
+
#
|
80
|
+
attr_accessor :object
|
81
|
+
# Object type that triggered the notification
|
82
|
+
#
|
83
|
+
attr_accessor :event_object_type
|
84
|
+
# ID of the batch job that execute the notification
|
85
|
+
#
|
86
|
+
attr_accessor :event_notification_job_id
|
87
|
+
# ID of the template that triggered the notification
|
88
|
+
#
|
89
|
+
attr_accessor :template_id
|
90
|
+
# Name of the template that triggered the notification
|
91
|
+
#
|
92
|
+
attr_accessor :template_name
|
93
|
+
# System name of the template that triggered the notification
|
94
|
+
#
|
95
|
+
attr_accessor :template_system_name
|
96
|
+
# Ecent type that triggered the notification
|
97
|
+
#
|
98
|
+
attr_accessor :event_type
|
99
|
+
|
100
|
+
def event_notification_job_id=(val)
|
101
|
+
@event_notification_job_id = val.to_i
|
102
|
+
end
|
103
|
+
def template_id=(val)
|
104
|
+
@template_id = val.to_i
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
class KalturaHttpNotificationData < KalturaObjectBase
|
109
|
+
|
110
|
+
end
|
111
|
+
|
112
|
+
# If this class used as the template data, the fields will be taken from the content parameters
|
113
|
+
#
|
114
|
+
class KalturaHttpNotificationDataFields < KalturaHttpNotificationData
|
115
|
+
|
116
|
+
end
|
117
|
+
|
118
|
+
class KalturaHttpNotificationDataText < KalturaHttpNotificationData
|
119
|
+
attr_accessor :content
|
120
|
+
|
121
|
+
end
|
122
|
+
|
123
|
+
# Evaluates PHP statement, depends on the execution context
|
124
|
+
#
|
125
|
+
class KalturaHttpNotificationObjectData < KalturaHttpNotificationData
|
126
|
+
# Kaltura API object type
|
127
|
+
#
|
128
|
+
attr_accessor :api_object_type
|
129
|
+
# Data format
|
130
|
+
#
|
131
|
+
attr_accessor :format
|
132
|
+
# Ignore null attributes during serialization
|
133
|
+
#
|
134
|
+
attr_accessor :ignore_null
|
135
|
+
# PHP code
|
136
|
+
#
|
137
|
+
attr_accessor :code
|
138
|
+
|
139
|
+
def format=(val)
|
140
|
+
@format = val.to_i
|
141
|
+
end
|
142
|
+
def ignore_null=(val)
|
143
|
+
@ignore_null = to_b(val)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class KalturaHttpNotificationTemplate < KalturaEventNotificationTemplate
|
148
|
+
# Remote server URL
|
149
|
+
#
|
150
|
+
attr_accessor :url
|
151
|
+
# Request method.
|
152
|
+
#
|
153
|
+
attr_accessor :method
|
154
|
+
# Data to send.
|
155
|
+
#
|
156
|
+
attr_accessor :data
|
157
|
+
# The maximum number of seconds to allow cURL functions to execute.
|
158
|
+
#
|
159
|
+
attr_accessor :timeout
|
160
|
+
# The number of seconds to wait while trying to connect.
|
161
|
+
# Must be larger than zero.
|
162
|
+
#
|
163
|
+
attr_accessor :connect_timeout
|
164
|
+
# A username to use for the connection.
|
165
|
+
#
|
166
|
+
attr_accessor :username
|
167
|
+
# A password to use for the connection.
|
168
|
+
#
|
169
|
+
attr_accessor :password
|
170
|
+
# The HTTP authentication method to use.
|
171
|
+
#
|
172
|
+
attr_accessor :authentication_method
|
173
|
+
# The SSL version (2 or 3) to use.
|
174
|
+
# By default PHP will try to determine this itself, although in some cases this must be set manually.
|
175
|
+
#
|
176
|
+
attr_accessor :ssl_version
|
177
|
+
# SSL certificate to verify the peer with.
|
178
|
+
#
|
179
|
+
attr_accessor :ssl_certificate
|
180
|
+
# The format of the certificate.
|
181
|
+
#
|
182
|
+
attr_accessor :ssl_certificate_type
|
183
|
+
# The password required to use the certificate.
|
184
|
+
#
|
185
|
+
attr_accessor :ssl_certificate_password
|
186
|
+
# The identifier for the crypto engine of the private SSL key specified in ssl key.
|
187
|
+
#
|
188
|
+
attr_accessor :ssl_engine
|
189
|
+
# The identifier for the crypto engine used for asymmetric crypto operations.
|
190
|
+
#
|
191
|
+
attr_accessor :ssl_engine_default
|
192
|
+
# The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
|
193
|
+
#
|
194
|
+
attr_accessor :ssl_key_type
|
195
|
+
# Private SSL key.
|
196
|
+
#
|
197
|
+
attr_accessor :ssl_key
|
198
|
+
# The secret password needed to use the private SSL key specified in ssl key.
|
199
|
+
#
|
200
|
+
attr_accessor :ssl_key_password
|
201
|
+
# Adds a e-mail custom header
|
202
|
+
#
|
203
|
+
attr_accessor :custom_headers
|
204
|
+
|
205
|
+
def method=(val)
|
206
|
+
@method = val.to_i
|
207
|
+
end
|
208
|
+
def timeout=(val)
|
209
|
+
@timeout = val.to_i
|
210
|
+
end
|
211
|
+
def connect_timeout=(val)
|
212
|
+
@connect_timeout = val.to_i
|
213
|
+
end
|
214
|
+
def authentication_method=(val)
|
215
|
+
@authentication_method = val.to_i
|
216
|
+
end
|
217
|
+
def ssl_version=(val)
|
218
|
+
@ssl_version = val.to_i
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class KalturaHttpNotificationDispatchJobData < KalturaEventNotificationDispatchJobData
|
223
|
+
# Remote server URL
|
224
|
+
#
|
225
|
+
attr_accessor :url
|
226
|
+
# Request method.
|
227
|
+
#
|
228
|
+
attr_accessor :method
|
229
|
+
# Data to send.
|
230
|
+
#
|
231
|
+
attr_accessor :data
|
232
|
+
# The maximum number of seconds to allow cURL functions to execute.
|
233
|
+
#
|
234
|
+
attr_accessor :timeout
|
235
|
+
# The number of seconds to wait while trying to connect.
|
236
|
+
# Must be larger than zero.
|
237
|
+
#
|
238
|
+
attr_accessor :connect_timeout
|
239
|
+
# A username to use for the connection.
|
240
|
+
#
|
241
|
+
attr_accessor :username
|
242
|
+
# A password to use for the connection.
|
243
|
+
#
|
244
|
+
attr_accessor :password
|
245
|
+
# The HTTP authentication method to use.
|
246
|
+
#
|
247
|
+
attr_accessor :authentication_method
|
248
|
+
# The SSL version (2 or 3) to use.
|
249
|
+
# By default PHP will try to determine this itself, although in some cases this must be set manually.
|
250
|
+
#
|
251
|
+
attr_accessor :ssl_version
|
252
|
+
# SSL certificate to verify the peer with.
|
253
|
+
#
|
254
|
+
attr_accessor :ssl_certificate
|
255
|
+
# The format of the certificate.
|
256
|
+
#
|
257
|
+
attr_accessor :ssl_certificate_type
|
258
|
+
# The password required to use the certificate.
|
259
|
+
#
|
260
|
+
attr_accessor :ssl_certificate_password
|
261
|
+
# The identifier for the crypto engine of the private SSL key specified in ssl key.
|
262
|
+
#
|
263
|
+
attr_accessor :ssl_engine
|
264
|
+
# The identifier for the crypto engine used for asymmetric crypto operations.
|
265
|
+
#
|
266
|
+
attr_accessor :ssl_engine_default
|
267
|
+
# The key type of the private SSL key specified in ssl key - PEM / DER / ENG.
|
268
|
+
#
|
269
|
+
attr_accessor :ssl_key_type
|
270
|
+
# Private SSL key.
|
271
|
+
#
|
272
|
+
attr_accessor :ssl_key
|
273
|
+
# The secret password needed to use the private SSL key specified in ssl key.
|
274
|
+
#
|
275
|
+
attr_accessor :ssl_key_password
|
276
|
+
# Adds a e-mail custom header
|
277
|
+
#
|
278
|
+
attr_accessor :custom_headers
|
279
|
+
# Define the content dynamic parameters
|
280
|
+
#
|
281
|
+
attr_accessor :content_parameters
|
282
|
+
|
283
|
+
def method=(val)
|
284
|
+
@method = val.to_i
|
285
|
+
end
|
286
|
+
def timeout=(val)
|
287
|
+
@timeout = val.to_i
|
288
|
+
end
|
289
|
+
def connect_timeout=(val)
|
290
|
+
@connect_timeout = val.to_i
|
291
|
+
end
|
292
|
+
def authentication_method=(val)
|
293
|
+
@authentication_method = val.to_i
|
294
|
+
end
|
295
|
+
def ssl_version=(val)
|
296
|
+
@ssl_version = val.to_i
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class KalturaHttpNotificationTemplateBaseFilter < KalturaEventNotificationTemplateFilter
|
301
|
+
|
302
|
+
end
|
303
|
+
|
304
|
+
class KalturaHttpNotificationTemplateFilter < KalturaHttpNotificationTemplateBaseFilter
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
|
309
|
+
end
|