kaltura-client 1.2

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.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/README +21 -0
  3. data/Rakefile +19 -0
  4. data/agpl.txt +674 -0
  5. data/kaltura.yml +7 -0
  6. data/lib/kaltura.rb +31 -0
  7. data/lib/kaltura_client.rb +15649 -0
  8. data/lib/kaltura_client_base.rb +432 -0
  9. data/lib/kaltura_plugins/kaltura_abc_screeners_watermark_access_control_client_plugin.rb +37 -0
  10. data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +110 -0
  11. data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +239 -0
  12. data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +61 -0
  13. data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +227 -0
  14. data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +349 -0
  15. data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +116 -0
  16. data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +55 -0
  17. data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +58 -0
  18. data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +40 -0
  19. data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +406 -0
  20. data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +138 -0
  21. data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +99 -0
  22. data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1725 -0
  23. data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +312 -0
  24. data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +522 -0
  25. data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +401 -0
  26. data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +827 -0
  27. data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +39 -0
  28. data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +273 -0
  29. data/lib/kaltura_plugins/kaltura_event_cue_point_client_plugin.rb +67 -0
  30. data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +415 -0
  31. data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +203 -0
  32. data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +157 -0
  33. data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +309 -0
  34. data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +72 -0
  35. data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +82 -0
  36. data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +785 -0
  37. data/lib/kaltura_plugins/kaltura_multi_centers_client_plugin.rb +45 -0
  38. data/lib/kaltura_plugins/kaltura_play_ready_client_plugin.rb +347 -0
  39. data/lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb +347 -0
  40. data/lib/kaltura_plugins/kaltura_scheduled_task_event_notification_client_plugin.rb +45 -0
  41. data/lib/kaltura_plugins/kaltura_scheduled_task_metadata_client_plugin.rb +51 -0
  42. data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +231 -0
  43. data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +145 -0
  44. data/lib/kaltura_plugins/kaltura_thumb_cue_point_client_plugin.rb +105 -0
  45. data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +238 -0
  46. data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +40 -0
  47. data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +263 -0
  48. data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +111 -0
  49. data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +195 -0
  50. data/test/access_control_service_test.rb +75 -0
  51. data/test/base_entry_service_test.rb +267 -0
  52. data/test/configuration_test.rb +178 -0
  53. data/test/cue_point_service_test.rb +67 -0
  54. data/test/data_service_test.rb +76 -0
  55. data/test/document_service_test.rb +41 -0
  56. data/test/media/test.mov +0 -0
  57. data/test/media/test.pdf +0 -0
  58. data/test/media/test.png +0 -0
  59. data/test/media/test.swf +0 -0
  60. data/test/media/test.wmv +0 -0
  61. data/test/media_service_test.rb +294 -0
  62. data/test/metadata_profile_service_test.rb +63 -0
  63. data/test/test_helper.rb +59 -0
  64. metadata +132 -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,157 @@
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
+ VERSION_ASC = "+version"
53
+ CREATED_AT_DESC = "-createdAt"
54
+ FILE_SIZE_DESC = "-fileSize"
55
+ READY_AT_DESC = "-readyAt"
56
+ SYNC_TIME_DESC = "-syncTime"
57
+ UPDATED_AT_DESC = "-updatedAt"
58
+ VERSION_DESC = "-version"
59
+ end
60
+
61
+ class KalturaFileSyncBaseFilter < KalturaFilter
62
+ attr_accessor :partner_id_equal
63
+ attr_accessor :file_object_type_equal
64
+ attr_accessor :file_object_type_in
65
+ attr_accessor :object_id_equal
66
+ attr_accessor :object_id_in
67
+ attr_accessor :version_equal
68
+ attr_accessor :version_in
69
+ attr_accessor :object_sub_type_equal
70
+ attr_accessor :object_sub_type_in
71
+ attr_accessor :dc_equal
72
+ attr_accessor :dc_in
73
+ attr_accessor :original_equal
74
+ attr_accessor :created_at_greater_than_or_equal
75
+ attr_accessor :created_at_less_than_or_equal
76
+ attr_accessor :updated_at_greater_than_or_equal
77
+ attr_accessor :updated_at_less_than_or_equal
78
+ attr_accessor :ready_at_greater_than_or_equal
79
+ attr_accessor :ready_at_less_than_or_equal
80
+ attr_accessor :sync_time_greater_than_or_equal
81
+ attr_accessor :sync_time_less_than_or_equal
82
+ attr_accessor :status_equal
83
+ attr_accessor :status_in
84
+ attr_accessor :file_type_equal
85
+ attr_accessor :file_type_in
86
+ attr_accessor :linked_id_equal
87
+ attr_accessor :link_count_greater_than_or_equal
88
+ attr_accessor :link_count_less_than_or_equal
89
+ attr_accessor :file_size_greater_than_or_equal
90
+ attr_accessor :file_size_less_than_or_equal
91
+
92
+ def partner_id_equal=(val)
93
+ @partner_id_equal = val.to_i
94
+ end
95
+ def object_sub_type_equal=(val)
96
+ @object_sub_type_equal = val.to_i
97
+ end
98
+ def original_equal=(val)
99
+ @original_equal = val.to_i
100
+ end
101
+ def created_at_greater_than_or_equal=(val)
102
+ @created_at_greater_than_or_equal = val.to_i
103
+ end
104
+ def created_at_less_than_or_equal=(val)
105
+ @created_at_less_than_or_equal = val.to_i
106
+ end
107
+ def updated_at_greater_than_or_equal=(val)
108
+ @updated_at_greater_than_or_equal = val.to_i
109
+ end
110
+ def updated_at_less_than_or_equal=(val)
111
+ @updated_at_less_than_or_equal = val.to_i
112
+ end
113
+ def ready_at_greater_than_or_equal=(val)
114
+ @ready_at_greater_than_or_equal = val.to_i
115
+ end
116
+ def ready_at_less_than_or_equal=(val)
117
+ @ready_at_less_than_or_equal = val.to_i
118
+ end
119
+ def sync_time_greater_than_or_equal=(val)
120
+ @sync_time_greater_than_or_equal = val.to_i
121
+ end
122
+ def sync_time_less_than_or_equal=(val)
123
+ @sync_time_less_than_or_equal = val.to_i
124
+ end
125
+ def status_equal=(val)
126
+ @status_equal = val.to_i
127
+ end
128
+ def file_type_equal=(val)
129
+ @file_type_equal = val.to_i
130
+ end
131
+ def linked_id_equal=(val)
132
+ @linked_id_equal = val.to_i
133
+ end
134
+ def link_count_greater_than_or_equal=(val)
135
+ @link_count_greater_than_or_equal = val.to_i
136
+ end
137
+ def link_count_less_than_or_equal=(val)
138
+ @link_count_less_than_or_equal = val.to_i
139
+ end
140
+ def file_size_greater_than_or_equal=(val)
141
+ @file_size_greater_than_or_equal = val.to_f
142
+ end
143
+ def file_size_less_than_or_equal=(val)
144
+ @file_size_less_than_or_equal = val.to_f
145
+ end
146
+ end
147
+
148
+ class KalturaFileSyncFilter < KalturaFileSyncBaseFilter
149
+ attr_accessor :current_dc
150
+
151
+ def current_dc=(val)
152
+ @current_dc = val.to_i
153
+ end
154
+ end
155
+
156
+
157
+ 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
+ # The secret to sign the notification with
280
+ #
281
+ attr_accessor :sign_secret
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