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,138 @@
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_caption_client_plugin.rb'
30
+
31
+ module Kaltura
32
+
33
+ class KalturaCaptionAssetItem < KalturaObjectBase
34
+ # The Caption Asset object
35
+ #
36
+ attr_accessor :asset
37
+ # The entry object
38
+ #
39
+ attr_accessor :entry
40
+ attr_accessor :start_time
41
+ attr_accessor :end_time
42
+ attr_accessor :content
43
+
44
+ def start_time=(val)
45
+ @start_time = val.to_i
46
+ end
47
+ def end_time=(val)
48
+ @end_time = val.to_i
49
+ end
50
+ end
51
+
52
+ class KalturaCaptionAssetItemListResponse < KalturaObjectBase
53
+ attr_accessor :objects
54
+ attr_accessor :total_count
55
+
56
+ def total_count=(val)
57
+ @total_count = val.to_i
58
+ end
59
+ end
60
+
61
+ class KalturaCaptionAssetItemFilter < KalturaCaptionAssetFilter
62
+ attr_accessor :content_like
63
+ attr_accessor :content_multi_like_or
64
+ attr_accessor :content_multi_like_and
65
+ attr_accessor :partner_description_like
66
+ attr_accessor :partner_description_multi_like_or
67
+ attr_accessor :partner_description_multi_like_and
68
+ attr_accessor :language_equal
69
+ attr_accessor :language_in
70
+ attr_accessor :label_equal
71
+ attr_accessor :label_in
72
+ attr_accessor :start_time_greater_than_or_equal
73
+ attr_accessor :start_time_less_than_or_equal
74
+ attr_accessor :end_time_greater_than_or_equal
75
+ attr_accessor :end_time_less_than_or_equal
76
+
77
+ def start_time_greater_than_or_equal=(val)
78
+ @start_time_greater_than_or_equal = val.to_i
79
+ end
80
+ def start_time_less_than_or_equal=(val)
81
+ @start_time_less_than_or_equal = val.to_i
82
+ end
83
+ def end_time_greater_than_or_equal=(val)
84
+ @end_time_greater_than_or_equal = val.to_i
85
+ end
86
+ def end_time_less_than_or_equal=(val)
87
+ @end_time_less_than_or_equal = val.to_i
88
+ end
89
+ end
90
+
91
+
92
+ # Search caption asset items
93
+ #
94
+ class KalturaCaptionAssetItemService < KalturaServiceBase
95
+ def initialize(client)
96
+ super(client)
97
+ end
98
+
99
+ # Search caption asset items by filter, pager and free text
100
+ #
101
+ def search(entry_filter=KalturaNotImplemented, caption_asset_item_filter=KalturaNotImplemented, caption_asset_item_pager=KalturaNotImplemented)
102
+ kparams = {}
103
+ client.add_param(kparams, 'entryFilter', entry_filter);
104
+ client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter);
105
+ client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager);
106
+ client.queue_service_action_call('captionsearch_captionassetitem', 'search', kparams);
107
+ if (client.is_multirequest)
108
+ return nil;
109
+ end
110
+ return client.do_queue();
111
+ end
112
+
113
+ # Search caption asset items by filter, pager and free text
114
+ #
115
+ def search_entries(entry_filter=KalturaNotImplemented, caption_asset_item_filter=KalturaNotImplemented, caption_asset_item_pager=KalturaNotImplemented)
116
+ kparams = {}
117
+ client.add_param(kparams, 'entryFilter', entry_filter);
118
+ client.add_param(kparams, 'captionAssetItemFilter', caption_asset_item_filter);
119
+ client.add_param(kparams, 'captionAssetItemPager', caption_asset_item_pager);
120
+ client.queue_service_action_call('captionsearch_captionassetitem', 'searchEntries', kparams);
121
+ if (client.is_multirequest)
122
+ return nil;
123
+ end
124
+ return client.do_queue();
125
+ end
126
+ end
127
+
128
+ class KalturaClient < KalturaClientBase
129
+ attr_reader :caption_asset_item_service
130
+ def caption_asset_item_service
131
+ if (@caption_asset_item_service == nil)
132
+ @caption_asset_item_service = KalturaCaptionAssetItemService.new(self)
133
+ end
134
+ return @caption_asset_item_service
135
+ end
136
+ end
137
+
138
+ end
@@ -0,0 +1,99 @@
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_cue_point_client_plugin.rb'
30
+
31
+ module Kaltura
32
+
33
+ class KalturaCodeCuePointOrderBy
34
+ CREATED_AT_ASC = "+createdAt"
35
+ DURATION_ASC = "+duration"
36
+ END_TIME_ASC = "+endTime"
37
+ PARTNER_SORT_VALUE_ASC = "+partnerSortValue"
38
+ START_TIME_ASC = "+startTime"
39
+ TRIGGERED_AT_ASC = "+triggeredAt"
40
+ UPDATED_AT_ASC = "+updatedAt"
41
+ CREATED_AT_DESC = "-createdAt"
42
+ DURATION_DESC = "-duration"
43
+ END_TIME_DESC = "-endTime"
44
+ PARTNER_SORT_VALUE_DESC = "-partnerSortValue"
45
+ START_TIME_DESC = "-startTime"
46
+ TRIGGERED_AT_DESC = "-triggeredAt"
47
+ UPDATED_AT_DESC = "-updatedAt"
48
+ end
49
+
50
+ class KalturaCodeCuePoint < KalturaCuePoint
51
+ attr_accessor :code
52
+ attr_accessor :description
53
+ attr_accessor :end_time
54
+ # Duration in milliseconds
55
+ #
56
+ attr_accessor :duration
57
+
58
+ def end_time=(val)
59
+ @end_time = val.to_i
60
+ end
61
+ def duration=(val)
62
+ @duration = val.to_i
63
+ end
64
+ end
65
+
66
+ class KalturaCodeCuePointBaseFilter < KalturaCuePointFilter
67
+ attr_accessor :code_like
68
+ attr_accessor :code_multi_like_or
69
+ attr_accessor :code_multi_like_and
70
+ attr_accessor :code_equal
71
+ attr_accessor :code_in
72
+ attr_accessor :description_like
73
+ attr_accessor :description_multi_like_or
74
+ attr_accessor :description_multi_like_and
75
+ attr_accessor :end_time_greater_than_or_equal
76
+ attr_accessor :end_time_less_than_or_equal
77
+ attr_accessor :duration_greater_than_or_equal
78
+ attr_accessor :duration_less_than_or_equal
79
+
80
+ def end_time_greater_than_or_equal=(val)
81
+ @end_time_greater_than_or_equal = val.to_i
82
+ end
83
+ def end_time_less_than_or_equal=(val)
84
+ @end_time_less_than_or_equal = val.to_i
85
+ end
86
+ def duration_greater_than_or_equal=(val)
87
+ @duration_greater_than_or_equal = val.to_i
88
+ end
89
+ def duration_less_than_or_equal=(val)
90
+ @duration_less_than_or_equal = val.to_i
91
+ end
92
+ end
93
+
94
+ class KalturaCodeCuePointFilter < KalturaCodeCuePointBaseFilter
95
+
96
+ end
97
+
98
+
99
+ end
@@ -0,0 +1,1725 @@
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_metadata_client_plugin.rb'
30
+
31
+ module Kaltura
32
+
33
+ class KalturaDistributionAction
34
+ SUBMIT = 1
35
+ UPDATE = 2
36
+ DELETE = 3
37
+ FETCH_REPORT = 4
38
+ end
39
+
40
+ class KalturaDistributionErrorType
41
+ MISSING_FLAVOR = 1
42
+ MISSING_THUMBNAIL = 2
43
+ MISSING_METADATA = 3
44
+ INVALID_DATA = 4
45
+ MISSING_ASSET = 5
46
+ CONDITION_NOT_MET = 6
47
+ end
48
+
49
+ class KalturaDistributionFieldRequiredStatus
50
+ NOT_REQUIRED = 0
51
+ REQUIRED_BY_PROVIDER = 1
52
+ REQUIRED_BY_PARTNER = 2
53
+ REQUIRED_FOR_AUTOMATIC_DISTRIBUTION = 3
54
+ end
55
+
56
+ class KalturaDistributionProfileActionStatus
57
+ DISABLED = 1
58
+ AUTOMATIC = 2
59
+ MANUAL = 3
60
+ end
61
+
62
+ class KalturaDistributionProfileStatus
63
+ DISABLED = 1
64
+ ENABLED = 2
65
+ DELETED = 3
66
+ end
67
+
68
+ class KalturaDistributionProtocol
69
+ FTP = 1
70
+ SCP = 2
71
+ SFTP = 3
72
+ HTTP = 4
73
+ HTTPS = 5
74
+ ASPERA = 10
75
+ end
76
+
77
+ class KalturaDistributionValidationErrorType
78
+ CUSTOM_ERROR = 0
79
+ STRING_EMPTY = 1
80
+ STRING_TOO_LONG = 2
81
+ STRING_TOO_SHORT = 3
82
+ INVALID_FORMAT = 4
83
+ end
84
+
85
+ class KalturaEntryDistributionFlag
86
+ NONE = 0
87
+ SUBMIT_REQUIRED = 1
88
+ DELETE_REQUIRED = 2
89
+ UPDATE_REQUIRED = 3
90
+ ENABLE_REQUIRED = 4
91
+ DISABLE_REQUIRED = 5
92
+ end
93
+
94
+ class KalturaEntryDistributionStatus
95
+ PENDING = 0
96
+ QUEUED = 1
97
+ READY = 2
98
+ DELETED = 3
99
+ SUBMITTING = 4
100
+ UPDATING = 5
101
+ DELETING = 6
102
+ ERROR_SUBMITTING = 7
103
+ ERROR_UPDATING = 8
104
+ ERROR_DELETING = 9
105
+ REMOVED = 10
106
+ IMPORT_SUBMITTING = 11
107
+ IMPORT_UPDATING = 12
108
+ end
109
+
110
+ class KalturaEntryDistributionSunStatus
111
+ BEFORE_SUNRISE = 1
112
+ AFTER_SUNRISE = 2
113
+ AFTER_SUNSET = 3
114
+ end
115
+
116
+ class KalturaGenericDistributionProviderParser
117
+ XSL = 1
118
+ XPATH = 2
119
+ REGEX = 3
120
+ end
121
+
122
+ class KalturaGenericDistributionProviderStatus
123
+ ACTIVE = 2
124
+ DELETED = 3
125
+ end
126
+
127
+ class KalturaConfigurableDistributionProfileOrderBy
128
+ CREATED_AT_ASC = "+createdAt"
129
+ UPDATED_AT_ASC = "+updatedAt"
130
+ CREATED_AT_DESC = "-createdAt"
131
+ UPDATED_AT_DESC = "-updatedAt"
132
+ end
133
+
134
+ class KalturaDistributionProfileOrderBy
135
+ CREATED_AT_ASC = "+createdAt"
136
+ UPDATED_AT_ASC = "+updatedAt"
137
+ CREATED_AT_DESC = "-createdAt"
138
+ UPDATED_AT_DESC = "-updatedAt"
139
+ end
140
+
141
+ class KalturaDistributionProviderOrderBy
142
+ end
143
+
144
+ class KalturaDistributionProviderType
145
+ ATT_UVERSE = "attUverseDistribution.ATT_UVERSE"
146
+ AVN = "avnDistribution.AVN"
147
+ COMCAST_MRSS = "comcastMrssDistribution.COMCAST_MRSS"
148
+ CROSS_KALTURA = "crossKalturaDistribution.CROSS_KALTURA"
149
+ DAILYMOTION = "dailymotionDistribution.DAILYMOTION"
150
+ DOUBLECLICK = "doubleClickDistribution.DOUBLECLICK"
151
+ FREEWHEEL = "freewheelDistribution.FREEWHEEL"
152
+ FREEWHEEL_GENERIC = "freewheelGenericDistribution.FREEWHEEL_GENERIC"
153
+ FTP = "ftpDistribution.FTP"
154
+ FTP_SCHEDULED = "ftpDistribution.FTP_SCHEDULED"
155
+ HULU = "huluDistribution.HULU"
156
+ IDETIC = "ideticDistribution.IDETIC"
157
+ METRO_PCS = "metroPcsDistribution.METRO_PCS"
158
+ MSN = "msnDistribution.MSN"
159
+ NDN = "ndnDistribution.NDN"
160
+ PODCAST = "podcastDistribution.PODCAST"
161
+ QUICKPLAY = "quickPlayDistribution.QUICKPLAY"
162
+ SYNACOR_HBO = "synacorHboDistribution.SYNACOR_HBO"
163
+ TIME_WARNER = "timeWarnerDistribution.TIME_WARNER"
164
+ TVCOM = "tvComDistribution.TVCOM"
165
+ TVINCI = "tvinciDistribution.TVINCI"
166
+ UVERSE_CLICK_TO_ORDER = "uverseClickToOrderDistribution.UVERSE_CLICK_TO_ORDER"
167
+ UVERSE = "uverseDistribution.UVERSE"
168
+ VERIZON_VCAST = "verizonVcastDistribution.VERIZON_VCAST"
169
+ YAHOO = "yahooDistribution.YAHOO"
170
+ YOUTUBE = "youTubeDistribution.YOUTUBE"
171
+ YOUTUBE_API = "youtubeApiDistribution.YOUTUBE_API"
172
+ GENERIC = "1"
173
+ SYNDICATION = "2"
174
+ end
175
+
176
+ class KalturaEntryDistributionOrderBy
177
+ CREATED_AT_ASC = "+createdAt"
178
+ SUBMITTED_AT_ASC = "+submittedAt"
179
+ SUNRISE_ASC = "+sunrise"
180
+ SUNSET_ASC = "+sunset"
181
+ UPDATED_AT_ASC = "+updatedAt"
182
+ CREATED_AT_DESC = "-createdAt"
183
+ SUBMITTED_AT_DESC = "-submittedAt"
184
+ SUNRISE_DESC = "-sunrise"
185
+ SUNSET_DESC = "-sunset"
186
+ UPDATED_AT_DESC = "-updatedAt"
187
+ end
188
+
189
+ class KalturaGenericDistributionProfileOrderBy
190
+ CREATED_AT_ASC = "+createdAt"
191
+ UPDATED_AT_ASC = "+updatedAt"
192
+ CREATED_AT_DESC = "-createdAt"
193
+ UPDATED_AT_DESC = "-updatedAt"
194
+ end
195
+
196
+ class KalturaGenericDistributionProviderActionOrderBy
197
+ CREATED_AT_ASC = "+createdAt"
198
+ UPDATED_AT_ASC = "+updatedAt"
199
+ CREATED_AT_DESC = "-createdAt"
200
+ UPDATED_AT_DESC = "-updatedAt"
201
+ end
202
+
203
+ class KalturaGenericDistributionProviderOrderBy
204
+ CREATED_AT_ASC = "+createdAt"
205
+ UPDATED_AT_ASC = "+updatedAt"
206
+ CREATED_AT_DESC = "-createdAt"
207
+ UPDATED_AT_DESC = "-updatedAt"
208
+ end
209
+
210
+ class KalturaSyndicationDistributionProfileOrderBy
211
+ CREATED_AT_ASC = "+createdAt"
212
+ UPDATED_AT_ASC = "+updatedAt"
213
+ CREATED_AT_DESC = "-createdAt"
214
+ UPDATED_AT_DESC = "-updatedAt"
215
+ end
216
+
217
+ class KalturaSyndicationDistributionProviderOrderBy
218
+ end
219
+
220
+ # Abstract class for asset distribution condition
221
+ #
222
+ class KalturaAssetDistributionCondition < KalturaObjectBase
223
+
224
+ end
225
+
226
+ class KalturaAssetDistributionRule < KalturaObjectBase
227
+ # The validation error description that will be set on the "data" property on KalturaDistributionValidationErrorMissingAsset if rule was not fulfilled
228
+ #
229
+ attr_accessor :validation_error
230
+ # An array of asset distribution conditions
231
+ #
232
+ attr_accessor :asset_distribution_conditions
233
+
234
+ end
235
+
236
+ class KalturaDistributionFieldConfig < KalturaObjectBase
237
+ # A value taken from a connector field enum which associates the current configuration to that connector field
238
+ # Field enum class should be returned by the provider's getFieldEnumClass function.
239
+ #
240
+ attr_accessor :field_name
241
+ # A string that will be shown to the user as the field name in error messages related to the current field
242
+ #
243
+ attr_accessor :user_friendly_field_name
244
+ # An XSLT string that extracts the right value from the Kaltura entry MRSS XML.
245
+ # The value of the current connector field will be the one that is returned from transforming the Kaltura entry MRSS XML using this XSLT string.
246
+ #
247
+ attr_accessor :entry_mrss_xslt
248
+ # Is the field required to have a value for submission ?
249
+ #
250
+ attr_accessor :is_required
251
+ # Trigger distribution update when this field changes or not ?
252
+ #
253
+ attr_accessor :update_on_change
254
+ # Entry column or metadata xpath that should trigger an update
255
+ #
256
+ attr_accessor :update_params
257
+ # Is this field config is the default for the distribution provider?
258
+ #
259
+ attr_accessor :is_default
260
+
261
+ def is_required=(val)
262
+ @is_required = val.to_i
263
+ end
264
+ def update_on_change=(val)
265
+ @update_on_change = to_b(val)
266
+ end
267
+ def is_default=(val)
268
+ @is_default = to_b(val)
269
+ end
270
+ end
271
+
272
+ class KalturaDistributionJobProviderData < KalturaObjectBase
273
+
274
+ end
275
+
276
+ class KalturaDistributionThumbDimensions < KalturaObjectBase
277
+ attr_accessor :width
278
+ attr_accessor :height
279
+
280
+ def width=(val)
281
+ @width = val.to_i
282
+ end
283
+ def height=(val)
284
+ @height = val.to_i
285
+ end
286
+ end
287
+
288
+ class KalturaDistributionProfile < KalturaObjectBase
289
+ # Auto generated unique id
290
+ #
291
+ attr_accessor :id
292
+ # Profile creation date as Unix timestamp (In seconds)
293
+ #
294
+ attr_accessor :created_at
295
+ # Profile last update date as Unix timestamp (In seconds)
296
+ #
297
+ attr_accessor :updated_at
298
+ attr_accessor :partner_id
299
+ attr_accessor :provider_type
300
+ attr_accessor :name
301
+ attr_accessor :status
302
+ attr_accessor :submit_enabled
303
+ attr_accessor :update_enabled
304
+ attr_accessor :delete_enabled
305
+ attr_accessor :report_enabled
306
+ # Comma separated flavor params ids that should be auto converted
307
+ #
308
+ attr_accessor :auto_create_flavors
309
+ # Comma separated thumbnail params ids that should be auto generated
310
+ #
311
+ attr_accessor :auto_create_thumb
312
+ # Comma separated flavor params ids that should be submitted if ready
313
+ #
314
+ attr_accessor :optional_flavor_params_ids
315
+ # Comma separated flavor params ids that required to be ready before submission
316
+ #
317
+ attr_accessor :required_flavor_params_ids
318
+ # Thumbnail dimensions that should be submitted if ready
319
+ #
320
+ attr_accessor :optional_thumb_dimensions
321
+ # Thumbnail dimensions that required to be readt before submission
322
+ #
323
+ attr_accessor :required_thumb_dimensions
324
+ # Asset Distribution Rules for assets that should be submitted if ready
325
+ #
326
+ attr_accessor :optional_asset_distribution_rules
327
+ # Assets Asset Distribution Rules for assets that are required to be ready before submission
328
+ #
329
+ attr_accessor :required_asset_distribution_rules
330
+ # If entry distribution sunrise not specified that will be the default since entry creation time, in seconds
331
+ #
332
+ attr_accessor :sunrise_default_offset
333
+ # If entry distribution sunset not specified that will be the default since entry creation time, in seconds
334
+ #
335
+ attr_accessor :sunset_default_offset
336
+ # The best external storage to be used to download the asset files from
337
+ #
338
+ attr_accessor :recommended_storage_profile_for_download
339
+ # The best Kaltura data center to be used to download the asset files to
340
+ #
341
+ attr_accessor :recommended_dc_for_download
342
+ # The best Kaltura data center to be used to execute the distribution job
343
+ #
344
+ attr_accessor :recommended_dc_for_execute
345
+
346
+ def id=(val)
347
+ @id = val.to_i
348
+ end
349
+ def created_at=(val)
350
+ @created_at = val.to_i
351
+ end
352
+ def updated_at=(val)
353
+ @updated_at = val.to_i
354
+ end
355
+ def partner_id=(val)
356
+ @partner_id = val.to_i
357
+ end
358
+ def status=(val)
359
+ @status = val.to_i
360
+ end
361
+ def submit_enabled=(val)
362
+ @submit_enabled = val.to_i
363
+ end
364
+ def update_enabled=(val)
365
+ @update_enabled = val.to_i
366
+ end
367
+ def delete_enabled=(val)
368
+ @delete_enabled = val.to_i
369
+ end
370
+ def report_enabled=(val)
371
+ @report_enabled = val.to_i
372
+ end
373
+ def sunrise_default_offset=(val)
374
+ @sunrise_default_offset = val.to_i
375
+ end
376
+ def sunset_default_offset=(val)
377
+ @sunset_default_offset = val.to_i
378
+ end
379
+ def recommended_storage_profile_for_download=(val)
380
+ @recommended_storage_profile_for_download = val.to_i
381
+ end
382
+ def recommended_dc_for_download=(val)
383
+ @recommended_dc_for_download = val.to_i
384
+ end
385
+ def recommended_dc_for_execute=(val)
386
+ @recommended_dc_for_execute = val.to_i
387
+ end
388
+ end
389
+
390
+ class KalturaDistributionProfileListResponse < KalturaObjectBase
391
+ attr_accessor :objects
392
+ attr_accessor :total_count
393
+
394
+ def total_count=(val)
395
+ @total_count = val.to_i
396
+ end
397
+ end
398
+
399
+ class KalturaDistributionProvider < KalturaObjectBase
400
+ attr_accessor :type
401
+ attr_accessor :name
402
+ attr_accessor :schedule_update_enabled
403
+ attr_accessor :availability_update_enabled
404
+ attr_accessor :delete_instead_update
405
+ attr_accessor :interval_before_sunrise
406
+ attr_accessor :interval_before_sunset
407
+ attr_accessor :update_required_entry_fields
408
+ attr_accessor :update_required_metadata_xpaths
409
+
410
+ def schedule_update_enabled=(val)
411
+ @schedule_update_enabled = to_b(val)
412
+ end
413
+ def availability_update_enabled=(val)
414
+ @availability_update_enabled = to_b(val)
415
+ end
416
+ def delete_instead_update=(val)
417
+ @delete_instead_update = to_b(val)
418
+ end
419
+ def interval_before_sunrise=(val)
420
+ @interval_before_sunrise = val.to_i
421
+ end
422
+ def interval_before_sunset=(val)
423
+ @interval_before_sunset = val.to_i
424
+ end
425
+ end
426
+
427
+ class KalturaDistributionProviderListResponse < KalturaObjectBase
428
+ attr_accessor :objects
429
+ attr_accessor :total_count
430
+
431
+ def total_count=(val)
432
+ @total_count = val.to_i
433
+ end
434
+ end
435
+
436
+ class KalturaDistributionRemoteMediaFile < KalturaObjectBase
437
+ attr_accessor :version
438
+ attr_accessor :asset_id
439
+ attr_accessor :remote_id
440
+
441
+ end
442
+
443
+ class KalturaDistributionValidationError < KalturaObjectBase
444
+ attr_accessor :action
445
+ attr_accessor :error_type
446
+ attr_accessor :description
447
+
448
+ def action=(val)
449
+ @action = val.to_i
450
+ end
451
+ def error_type=(val)
452
+ @error_type = val.to_i
453
+ end
454
+ end
455
+
456
+ class KalturaEntryDistribution < KalturaObjectBase
457
+ # Auto generated unique id
458
+ #
459
+ attr_accessor :id
460
+ # Entry distribution creation date as Unix timestamp (In seconds)
461
+ #
462
+ attr_accessor :created_at
463
+ # Entry distribution last update date as Unix timestamp (In seconds)
464
+ #
465
+ attr_accessor :updated_at
466
+ # Entry distribution submission date as Unix timestamp (In seconds)
467
+ #
468
+ attr_accessor :submitted_at
469
+ attr_accessor :entry_id
470
+ attr_accessor :partner_id
471
+ attr_accessor :distribution_profile_id
472
+ attr_accessor :status
473
+ attr_accessor :sun_status
474
+ attr_accessor :dirty_status
475
+ # Comma separated thumbnail asset ids
476
+ #
477
+ attr_accessor :thumb_asset_ids
478
+ # Comma separated flavor asset ids
479
+ #
480
+ attr_accessor :flavor_asset_ids
481
+ # Comma separated asset ids
482
+ #
483
+ attr_accessor :asset_ids
484
+ # Entry distribution publish time as Unix timestamp (In seconds)
485
+ #
486
+ attr_accessor :sunrise
487
+ # Entry distribution un-publish time as Unix timestamp (In seconds)
488
+ #
489
+ attr_accessor :sunset
490
+ # The id as returned from the distributed destination
491
+ #
492
+ attr_accessor :remote_id
493
+ # The plays as retrieved from the remote destination reports
494
+ #
495
+ attr_accessor :plays
496
+ # The views as retrieved from the remote destination reports
497
+ #
498
+ attr_accessor :views
499
+ attr_accessor :validation_errors
500
+ attr_accessor :error_type
501
+ attr_accessor :error_number
502
+ attr_accessor :error_description
503
+ attr_accessor :has_submit_results_log
504
+ attr_accessor :has_submit_sent_data_log
505
+ attr_accessor :has_update_results_log
506
+ attr_accessor :has_update_sent_data_log
507
+ attr_accessor :has_delete_results_log
508
+ attr_accessor :has_delete_sent_data_log
509
+
510
+ def id=(val)
511
+ @id = val.to_i
512
+ end
513
+ def created_at=(val)
514
+ @created_at = val.to_i
515
+ end
516
+ def updated_at=(val)
517
+ @updated_at = val.to_i
518
+ end
519
+ def submitted_at=(val)
520
+ @submitted_at = val.to_i
521
+ end
522
+ def partner_id=(val)
523
+ @partner_id = val.to_i
524
+ end
525
+ def distribution_profile_id=(val)
526
+ @distribution_profile_id = val.to_i
527
+ end
528
+ def status=(val)
529
+ @status = val.to_i
530
+ end
531
+ def sun_status=(val)
532
+ @sun_status = val.to_i
533
+ end
534
+ def dirty_status=(val)
535
+ @dirty_status = val.to_i
536
+ end
537
+ def sunrise=(val)
538
+ @sunrise = val.to_i
539
+ end
540
+ def sunset=(val)
541
+ @sunset = val.to_i
542
+ end
543
+ def plays=(val)
544
+ @plays = val.to_i
545
+ end
546
+ def views=(val)
547
+ @views = val.to_i
548
+ end
549
+ def error_type=(val)
550
+ @error_type = val.to_i
551
+ end
552
+ def error_number=(val)
553
+ @error_number = val.to_i
554
+ end
555
+ def has_submit_results_log=(val)
556
+ @has_submit_results_log = val.to_i
557
+ end
558
+ def has_submit_sent_data_log=(val)
559
+ @has_submit_sent_data_log = val.to_i
560
+ end
561
+ def has_update_results_log=(val)
562
+ @has_update_results_log = val.to_i
563
+ end
564
+ def has_update_sent_data_log=(val)
565
+ @has_update_sent_data_log = val.to_i
566
+ end
567
+ def has_delete_results_log=(val)
568
+ @has_delete_results_log = val.to_i
569
+ end
570
+ def has_delete_sent_data_log=(val)
571
+ @has_delete_sent_data_log = val.to_i
572
+ end
573
+ end
574
+
575
+ class KalturaEntryDistributionListResponse < KalturaObjectBase
576
+ attr_accessor :objects
577
+ attr_accessor :total_count
578
+
579
+ def total_count=(val)
580
+ @total_count = val.to_i
581
+ end
582
+ end
583
+
584
+ class KalturaGenericDistributionProfileAction < KalturaObjectBase
585
+ attr_accessor :protocol
586
+ attr_accessor :server_url
587
+ attr_accessor :server_path
588
+ attr_accessor :username
589
+ attr_accessor :password
590
+ attr_accessor :ftp_passive_mode
591
+ attr_accessor :http_field_name
592
+ attr_accessor :http_file_name
593
+
594
+ def protocol=(val)
595
+ @protocol = val.to_i
596
+ end
597
+ def ftp_passive_mode=(val)
598
+ @ftp_passive_mode = to_b(val)
599
+ end
600
+ end
601
+
602
+ class KalturaGenericDistributionProviderAction < KalturaObjectBase
603
+ # Auto generated
604
+ #
605
+ attr_accessor :id
606
+ # Generic distribution provider action creation date as Unix timestamp (In seconds)
607
+ #
608
+ attr_accessor :created_at
609
+ # Generic distribution provider action last update date as Unix timestamp (In seconds)
610
+ #
611
+ attr_accessor :updated_at
612
+ attr_accessor :generic_distribution_provider_id
613
+ attr_accessor :action
614
+ attr_accessor :status
615
+ attr_accessor :results_parser
616
+ attr_accessor :protocol
617
+ attr_accessor :server_address
618
+ attr_accessor :remote_path
619
+ attr_accessor :remote_username
620
+ attr_accessor :remote_password
621
+ attr_accessor :editable_fields
622
+ attr_accessor :mandatory_fields
623
+ attr_accessor :mrss_transformer
624
+ attr_accessor :mrss_validator
625
+ attr_accessor :results_transformer
626
+
627
+ def id=(val)
628
+ @id = val.to_i
629
+ end
630
+ def created_at=(val)
631
+ @created_at = val.to_i
632
+ end
633
+ def updated_at=(val)
634
+ @updated_at = val.to_i
635
+ end
636
+ def generic_distribution_provider_id=(val)
637
+ @generic_distribution_provider_id = val.to_i
638
+ end
639
+ def action=(val)
640
+ @action = val.to_i
641
+ end
642
+ def status=(val)
643
+ @status = val.to_i
644
+ end
645
+ def results_parser=(val)
646
+ @results_parser = val.to_i
647
+ end
648
+ def protocol=(val)
649
+ @protocol = val.to_i
650
+ end
651
+ end
652
+
653
+ class KalturaGenericDistributionProviderActionListResponse < KalturaObjectBase
654
+ attr_accessor :objects
655
+ attr_accessor :total_count
656
+
657
+ def total_count=(val)
658
+ @total_count = val.to_i
659
+ end
660
+ end
661
+
662
+ class KalturaGenericDistributionProvider < KalturaDistributionProvider
663
+ # Auto generated
664
+ #
665
+ attr_accessor :id
666
+ # Generic distribution provider creation date as Unix timestamp (In seconds)
667
+ #
668
+ attr_accessor :created_at
669
+ # Generic distribution provider last update date as Unix timestamp (In seconds)
670
+ #
671
+ attr_accessor :updated_at
672
+ attr_accessor :partner_id
673
+ attr_accessor :is_default
674
+ attr_accessor :status
675
+ attr_accessor :optional_flavor_params_ids
676
+ attr_accessor :required_flavor_params_ids
677
+ attr_accessor :optional_thumb_dimensions
678
+ attr_accessor :required_thumb_dimensions
679
+ attr_accessor :editable_fields
680
+ attr_accessor :mandatory_fields
681
+
682
+ def id=(val)
683
+ @id = val.to_i
684
+ end
685
+ def created_at=(val)
686
+ @created_at = val.to_i
687
+ end
688
+ def updated_at=(val)
689
+ @updated_at = val.to_i
690
+ end
691
+ def partner_id=(val)
692
+ @partner_id = val.to_i
693
+ end
694
+ def is_default=(val)
695
+ @is_default = to_b(val)
696
+ end
697
+ def status=(val)
698
+ @status = val.to_i
699
+ end
700
+ end
701
+
702
+ class KalturaGenericDistributionProviderListResponse < KalturaObjectBase
703
+ attr_accessor :objects
704
+ attr_accessor :total_count
705
+
706
+ def total_count=(val)
707
+ @total_count = val.to_i
708
+ end
709
+ end
710
+
711
+ # Defines the condition to match a property and value on core asset object (or one if its inherited objects)
712
+ #
713
+ class KalturaAssetDistributionPropertyCondition < KalturaAssetDistributionCondition
714
+ # The property name to look for, this will match to a getter on the asset object.
715
+ # Should be camelCase naming convention (defining "myPropertyName" will look for getMyPropertyName())
716
+ #
717
+ attr_accessor :property_name
718
+ # The value to compare
719
+ #
720
+ attr_accessor :property_value
721
+
722
+ end
723
+
724
+ class KalturaConfigurableDistributionJobProviderData < KalturaDistributionJobProviderData
725
+ attr_accessor :field_values
726
+
727
+ end
728
+
729
+ class KalturaConfigurableDistributionProfile < KalturaDistributionProfile
730
+ attr_accessor :field_config_array
731
+ attr_accessor :item_xpaths_to_extend
732
+
733
+ end
734
+
735
+ class KalturaContentDistributionSearchItem < KalturaSearchItem
736
+ attr_accessor :no_distribution_profiles
737
+ attr_accessor :distribution_profile_id
738
+ attr_accessor :distribution_sun_status
739
+ attr_accessor :entry_distribution_flag
740
+ attr_accessor :entry_distribution_status
741
+ attr_accessor :has_entry_distribution_validation_errors
742
+ # Comma seperated validation error types
743
+ #
744
+ attr_accessor :entry_distribution_validation_errors
745
+
746
+ def no_distribution_profiles=(val)
747
+ @no_distribution_profiles = to_b(val)
748
+ end
749
+ def distribution_profile_id=(val)
750
+ @distribution_profile_id = val.to_i
751
+ end
752
+ def distribution_sun_status=(val)
753
+ @distribution_sun_status = val.to_i
754
+ end
755
+ def entry_distribution_flag=(val)
756
+ @entry_distribution_flag = val.to_i
757
+ end
758
+ def entry_distribution_status=(val)
759
+ @entry_distribution_status = val.to_i
760
+ end
761
+ def has_entry_distribution_validation_errors=(val)
762
+ @has_entry_distribution_validation_errors = to_b(val)
763
+ end
764
+ end
765
+
766
+ class KalturaDistributionJobData < KalturaJobData
767
+ attr_accessor :distribution_profile_id
768
+ attr_accessor :distribution_profile
769
+ attr_accessor :entry_distribution_id
770
+ attr_accessor :entry_distribution
771
+ # Id of the media in the remote system
772
+ #
773
+ attr_accessor :remote_id
774
+ attr_accessor :provider_type
775
+ # Additional data that relevant for the provider only
776
+ #
777
+ attr_accessor :provider_data
778
+ # The results as returned from the remote destination
779
+ #
780
+ attr_accessor :results
781
+ # The data as sent to the remote destination
782
+ #
783
+ attr_accessor :sent_data
784
+ # Stores array of media files that submitted to the destination site
785
+ # Could be used later for media update
786
+ #
787
+ attr_accessor :media_files
788
+
789
+ def distribution_profile_id=(val)
790
+ @distribution_profile_id = val.to_i
791
+ end
792
+ def entry_distribution_id=(val)
793
+ @entry_distribution_id = val.to_i
794
+ end
795
+ end
796
+
797
+ class KalturaDistributionProfileBaseFilter < KalturaFilter
798
+ attr_accessor :id_equal
799
+ attr_accessor :id_in
800
+ attr_accessor :created_at_greater_than_or_equal
801
+ attr_accessor :created_at_less_than_or_equal
802
+ attr_accessor :updated_at_greater_than_or_equal
803
+ attr_accessor :updated_at_less_than_or_equal
804
+ attr_accessor :status_equal
805
+ attr_accessor :status_in
806
+
807
+ def id_equal=(val)
808
+ @id_equal = val.to_i
809
+ end
810
+ def created_at_greater_than_or_equal=(val)
811
+ @created_at_greater_than_or_equal = val.to_i
812
+ end
813
+ def created_at_less_than_or_equal=(val)
814
+ @created_at_less_than_or_equal = val.to_i
815
+ end
816
+ def updated_at_greater_than_or_equal=(val)
817
+ @updated_at_greater_than_or_equal = val.to_i
818
+ end
819
+ def updated_at_less_than_or_equal=(val)
820
+ @updated_at_less_than_or_equal = val.to_i
821
+ end
822
+ def status_equal=(val)
823
+ @status_equal = val.to_i
824
+ end
825
+ end
826
+
827
+ class KalturaDistributionProviderBaseFilter < KalturaFilter
828
+ attr_accessor :type_equal
829
+ attr_accessor :type_in
830
+
831
+ end
832
+
833
+ class KalturaDistributionValidationErrorConditionNotMet < KalturaDistributionValidationError
834
+ attr_accessor :condition_name
835
+
836
+ end
837
+
838
+ class KalturaDistributionValidationErrorInvalidData < KalturaDistributionValidationError
839
+ attr_accessor :field_name
840
+ attr_accessor :validation_error_type
841
+ # Parameter of the validation error
842
+ # For example, minimum value for KalturaDistributionValidationErrorType::STRING_TOO_SHORT validation error
843
+ #
844
+ attr_accessor :validation_error_param
845
+
846
+ def validation_error_type=(val)
847
+ @validation_error_type = val.to_i
848
+ end
849
+ end
850
+
851
+ class KalturaDistributionValidationErrorMissingAsset < KalturaDistributionValidationError
852
+ attr_accessor :data
853
+
854
+ end
855
+
856
+ class KalturaDistributionValidationErrorMissingFlavor < KalturaDistributionValidationError
857
+ attr_accessor :flavor_params_id
858
+
859
+ end
860
+
861
+ class KalturaDistributionValidationErrorMissingMetadata < KalturaDistributionValidationError
862
+ attr_accessor :field_name
863
+
864
+ end
865
+
866
+ class KalturaDistributionValidationErrorMissingThumbnail < KalturaDistributionValidationError
867
+ attr_accessor :dimensions
868
+
869
+ end
870
+
871
+ class KalturaEntryDistributionBaseFilter < KalturaFilter
872
+ attr_accessor :id_equal
873
+ attr_accessor :id_in
874
+ attr_accessor :created_at_greater_than_or_equal
875
+ attr_accessor :created_at_less_than_or_equal
876
+ attr_accessor :updated_at_greater_than_or_equal
877
+ attr_accessor :updated_at_less_than_or_equal
878
+ attr_accessor :submitted_at_greater_than_or_equal
879
+ attr_accessor :submitted_at_less_than_or_equal
880
+ attr_accessor :entry_id_equal
881
+ attr_accessor :entry_id_in
882
+ attr_accessor :distribution_profile_id_equal
883
+ attr_accessor :distribution_profile_id_in
884
+ attr_accessor :status_equal
885
+ attr_accessor :status_in
886
+ attr_accessor :dirty_status_equal
887
+ attr_accessor :dirty_status_in
888
+ attr_accessor :sunrise_greater_than_or_equal
889
+ attr_accessor :sunrise_less_than_or_equal
890
+ attr_accessor :sunset_greater_than_or_equal
891
+ attr_accessor :sunset_less_than_or_equal
892
+
893
+ def id_equal=(val)
894
+ @id_equal = val.to_i
895
+ end
896
+ def created_at_greater_than_or_equal=(val)
897
+ @created_at_greater_than_or_equal = val.to_i
898
+ end
899
+ def created_at_less_than_or_equal=(val)
900
+ @created_at_less_than_or_equal = val.to_i
901
+ end
902
+ def updated_at_greater_than_or_equal=(val)
903
+ @updated_at_greater_than_or_equal = val.to_i
904
+ end
905
+ def updated_at_less_than_or_equal=(val)
906
+ @updated_at_less_than_or_equal = val.to_i
907
+ end
908
+ def submitted_at_greater_than_or_equal=(val)
909
+ @submitted_at_greater_than_or_equal = val.to_i
910
+ end
911
+ def submitted_at_less_than_or_equal=(val)
912
+ @submitted_at_less_than_or_equal = val.to_i
913
+ end
914
+ def distribution_profile_id_equal=(val)
915
+ @distribution_profile_id_equal = val.to_i
916
+ end
917
+ def status_equal=(val)
918
+ @status_equal = val.to_i
919
+ end
920
+ def dirty_status_equal=(val)
921
+ @dirty_status_equal = val.to_i
922
+ end
923
+ def sunrise_greater_than_or_equal=(val)
924
+ @sunrise_greater_than_or_equal = val.to_i
925
+ end
926
+ def sunrise_less_than_or_equal=(val)
927
+ @sunrise_less_than_or_equal = val.to_i
928
+ end
929
+ def sunset_greater_than_or_equal=(val)
930
+ @sunset_greater_than_or_equal = val.to_i
931
+ end
932
+ def sunset_less_than_or_equal=(val)
933
+ @sunset_less_than_or_equal = val.to_i
934
+ end
935
+ end
936
+
937
+ class KalturaGenericDistributionJobProviderData < KalturaDistributionJobProviderData
938
+ attr_accessor :xml
939
+ attr_accessor :result_parse_data
940
+ attr_accessor :result_parser_type
941
+
942
+ def result_parser_type=(val)
943
+ @result_parser_type = val.to_i
944
+ end
945
+ end
946
+
947
+ class KalturaGenericDistributionProfile < KalturaDistributionProfile
948
+ attr_accessor :generic_provider_id
949
+ attr_accessor :submit_action
950
+ attr_accessor :update_action
951
+ attr_accessor :delete_action
952
+ attr_accessor :fetch_report_action
953
+ attr_accessor :update_required_entry_fields
954
+ attr_accessor :update_required_metadata_xpaths
955
+
956
+ def generic_provider_id=(val)
957
+ @generic_provider_id = val.to_i
958
+ end
959
+ end
960
+
961
+ class KalturaGenericDistributionProviderActionBaseFilter < KalturaFilter
962
+ attr_accessor :id_equal
963
+ attr_accessor :id_in
964
+ attr_accessor :created_at_greater_than_or_equal
965
+ attr_accessor :created_at_less_than_or_equal
966
+ attr_accessor :updated_at_greater_than_or_equal
967
+ attr_accessor :updated_at_less_than_or_equal
968
+ attr_accessor :generic_distribution_provider_id_equal
969
+ attr_accessor :generic_distribution_provider_id_in
970
+ attr_accessor :action_equal
971
+ attr_accessor :action_in
972
+
973
+ def id_equal=(val)
974
+ @id_equal = val.to_i
975
+ end
976
+ def created_at_greater_than_or_equal=(val)
977
+ @created_at_greater_than_or_equal = val.to_i
978
+ end
979
+ def created_at_less_than_or_equal=(val)
980
+ @created_at_less_than_or_equal = val.to_i
981
+ end
982
+ def updated_at_greater_than_or_equal=(val)
983
+ @updated_at_greater_than_or_equal = val.to_i
984
+ end
985
+ def updated_at_less_than_or_equal=(val)
986
+ @updated_at_less_than_or_equal = val.to_i
987
+ end
988
+ def generic_distribution_provider_id_equal=(val)
989
+ @generic_distribution_provider_id_equal = val.to_i
990
+ end
991
+ def action_equal=(val)
992
+ @action_equal = val.to_i
993
+ end
994
+ end
995
+
996
+ class KalturaSyndicationDistributionProfile < KalturaDistributionProfile
997
+ attr_accessor :xsl
998
+ attr_accessor :feed_id
999
+
1000
+ end
1001
+
1002
+ class KalturaSyndicationDistributionProvider < KalturaDistributionProvider
1003
+
1004
+ end
1005
+
1006
+ class KalturaDistributionDeleteJobData < KalturaDistributionJobData
1007
+
1008
+ end
1009
+
1010
+ class KalturaDistributionFetchReportJobData < KalturaDistributionJobData
1011
+ attr_accessor :plays
1012
+ attr_accessor :views
1013
+
1014
+ def plays=(val)
1015
+ @plays = val.to_i
1016
+ end
1017
+ def views=(val)
1018
+ @views = val.to_i
1019
+ end
1020
+ end
1021
+
1022
+ class KalturaDistributionProfileFilter < KalturaDistributionProfileBaseFilter
1023
+
1024
+ end
1025
+
1026
+ class KalturaDistributionProviderFilter < KalturaDistributionProviderBaseFilter
1027
+
1028
+ end
1029
+
1030
+ class KalturaDistributionSubmitJobData < KalturaDistributionJobData
1031
+
1032
+ end
1033
+
1034
+ class KalturaDistributionUpdateJobData < KalturaDistributionJobData
1035
+
1036
+ end
1037
+
1038
+ class KalturaDistributionValidationErrorInvalidMetadata < KalturaDistributionValidationErrorInvalidData
1039
+ attr_accessor :metadata_profile_id
1040
+
1041
+ def metadata_profile_id=(val)
1042
+ @metadata_profile_id = val.to_i
1043
+ end
1044
+ end
1045
+
1046
+ class KalturaEntryDistributionFilter < KalturaEntryDistributionBaseFilter
1047
+
1048
+ end
1049
+
1050
+ class KalturaGenericDistributionProviderActionFilter < KalturaGenericDistributionProviderActionBaseFilter
1051
+
1052
+ end
1053
+
1054
+ class KalturaConfigurableDistributionProfileBaseFilter < KalturaDistributionProfileFilter
1055
+
1056
+ end
1057
+
1058
+ class KalturaDistributionDisableJobData < KalturaDistributionUpdateJobData
1059
+
1060
+ end
1061
+
1062
+ class KalturaDistributionEnableJobData < KalturaDistributionUpdateJobData
1063
+
1064
+ end
1065
+
1066
+ class KalturaGenericDistributionProfileBaseFilter < KalturaDistributionProfileFilter
1067
+
1068
+ end
1069
+
1070
+ class KalturaGenericDistributionProviderBaseFilter < KalturaDistributionProviderFilter
1071
+ attr_accessor :id_equal
1072
+ attr_accessor :id_in
1073
+ attr_accessor :created_at_greater_than_or_equal
1074
+ attr_accessor :created_at_less_than_or_equal
1075
+ attr_accessor :updated_at_greater_than_or_equal
1076
+ attr_accessor :updated_at_less_than_or_equal
1077
+ attr_accessor :partner_id_equal
1078
+ attr_accessor :partner_id_in
1079
+ attr_accessor :is_default_equal
1080
+ attr_accessor :is_default_in
1081
+ attr_accessor :status_equal
1082
+ attr_accessor :status_in
1083
+
1084
+ def id_equal=(val)
1085
+ @id_equal = val.to_i
1086
+ end
1087
+ def created_at_greater_than_or_equal=(val)
1088
+ @created_at_greater_than_or_equal = val.to_i
1089
+ end
1090
+ def created_at_less_than_or_equal=(val)
1091
+ @created_at_less_than_or_equal = val.to_i
1092
+ end
1093
+ def updated_at_greater_than_or_equal=(val)
1094
+ @updated_at_greater_than_or_equal = val.to_i
1095
+ end
1096
+ def updated_at_less_than_or_equal=(val)
1097
+ @updated_at_less_than_or_equal = val.to_i
1098
+ end
1099
+ def partner_id_equal=(val)
1100
+ @partner_id_equal = val.to_i
1101
+ end
1102
+ def is_default_equal=(val)
1103
+ @is_default_equal = val.to_i
1104
+ end
1105
+ def status_equal=(val)
1106
+ @status_equal = val.to_i
1107
+ end
1108
+ end
1109
+
1110
+ class KalturaSyndicationDistributionProfileBaseFilter < KalturaDistributionProfileFilter
1111
+
1112
+ end
1113
+
1114
+ class KalturaSyndicationDistributionProviderBaseFilter < KalturaDistributionProviderFilter
1115
+
1116
+ end
1117
+
1118
+ class KalturaConfigurableDistributionProfileFilter < KalturaConfigurableDistributionProfileBaseFilter
1119
+
1120
+ end
1121
+
1122
+ class KalturaGenericDistributionProfileFilter < KalturaGenericDistributionProfileBaseFilter
1123
+
1124
+ end
1125
+
1126
+ class KalturaGenericDistributionProviderFilter < KalturaGenericDistributionProviderBaseFilter
1127
+
1128
+ end
1129
+
1130
+ class KalturaSyndicationDistributionProfileFilter < KalturaSyndicationDistributionProfileBaseFilter
1131
+
1132
+ end
1133
+
1134
+ class KalturaSyndicationDistributionProviderFilter < KalturaSyndicationDistributionProviderBaseFilter
1135
+
1136
+ end
1137
+
1138
+
1139
+ # Distribution Profile service
1140
+ #
1141
+ class KalturaDistributionProfileService < KalturaServiceBase
1142
+ def initialize(client)
1143
+ super(client)
1144
+ end
1145
+
1146
+ # Add new Distribution Profile
1147
+ #
1148
+ def add(distribution_profile)
1149
+ kparams = {}
1150
+ client.add_param(kparams, 'distributionProfile', distribution_profile);
1151
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'add', kparams);
1152
+ if (client.is_multirequest)
1153
+ return nil;
1154
+ end
1155
+ return client.do_queue();
1156
+ end
1157
+
1158
+ # Get Distribution Profile by id
1159
+ #
1160
+ def get(id)
1161
+ kparams = {}
1162
+ client.add_param(kparams, 'id', id);
1163
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'get', kparams);
1164
+ if (client.is_multirequest)
1165
+ return nil;
1166
+ end
1167
+ return client.do_queue();
1168
+ end
1169
+
1170
+ # Update Distribution Profile by id
1171
+ #
1172
+ def update(id, distribution_profile)
1173
+ kparams = {}
1174
+ client.add_param(kparams, 'id', id);
1175
+ client.add_param(kparams, 'distributionProfile', distribution_profile);
1176
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'update', kparams);
1177
+ if (client.is_multirequest)
1178
+ return nil;
1179
+ end
1180
+ return client.do_queue();
1181
+ end
1182
+
1183
+ # Update Distribution Profile status by id
1184
+ #
1185
+ def update_status(id, status)
1186
+ kparams = {}
1187
+ client.add_param(kparams, 'id', id);
1188
+ client.add_param(kparams, 'status', status);
1189
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'updateStatus', kparams);
1190
+ if (client.is_multirequest)
1191
+ return nil;
1192
+ end
1193
+ return client.do_queue();
1194
+ end
1195
+
1196
+ # Delete Distribution Profile by id
1197
+ #
1198
+ def delete(id)
1199
+ kparams = {}
1200
+ client.add_param(kparams, 'id', id);
1201
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'delete', kparams);
1202
+ if (client.is_multirequest)
1203
+ return nil;
1204
+ end
1205
+ return client.do_queue();
1206
+ end
1207
+
1208
+ # List all distribution providers
1209
+ #
1210
+ def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1211
+ kparams = {}
1212
+ client.add_param(kparams, 'filter', filter);
1213
+ client.add_param(kparams, 'pager', pager);
1214
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'list', kparams);
1215
+ if (client.is_multirequest)
1216
+ return nil;
1217
+ end
1218
+ return client.do_queue();
1219
+ end
1220
+
1221
+ def list_by_partner(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1222
+ kparams = {}
1223
+ client.add_param(kparams, 'filter', filter);
1224
+ client.add_param(kparams, 'pager', pager);
1225
+ client.queue_service_action_call('contentdistribution_distributionprofile', 'listByPartner', kparams);
1226
+ if (client.is_multirequest)
1227
+ return nil;
1228
+ end
1229
+ return client.do_queue();
1230
+ end
1231
+ end
1232
+
1233
+ # Entry Distribution service
1234
+ #
1235
+ class KalturaEntryDistributionService < KalturaServiceBase
1236
+ def initialize(client)
1237
+ super(client)
1238
+ end
1239
+
1240
+ # Add new Entry Distribution
1241
+ #
1242
+ def add(entry_distribution)
1243
+ kparams = {}
1244
+ client.add_param(kparams, 'entryDistribution', entry_distribution);
1245
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'add', kparams);
1246
+ if (client.is_multirequest)
1247
+ return nil;
1248
+ end
1249
+ return client.do_queue();
1250
+ end
1251
+
1252
+ # Get Entry Distribution by id
1253
+ #
1254
+ def get(id)
1255
+ kparams = {}
1256
+ client.add_param(kparams, 'id', id);
1257
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'get', kparams);
1258
+ if (client.is_multirequest)
1259
+ return nil;
1260
+ end
1261
+ return client.do_queue();
1262
+ end
1263
+
1264
+ # Validates Entry Distribution by id for submission
1265
+ #
1266
+ def validate(id)
1267
+ kparams = {}
1268
+ client.add_param(kparams, 'id', id);
1269
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', kparams);
1270
+ if (client.is_multirequest)
1271
+ return nil;
1272
+ end
1273
+ return client.do_queue();
1274
+ end
1275
+
1276
+ # Update Entry Distribution by id
1277
+ #
1278
+ def update(id, entry_distribution)
1279
+ kparams = {}
1280
+ client.add_param(kparams, 'id', id);
1281
+ client.add_param(kparams, 'entryDistribution', entry_distribution);
1282
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'update', kparams);
1283
+ if (client.is_multirequest)
1284
+ return nil;
1285
+ end
1286
+ return client.do_queue();
1287
+ end
1288
+
1289
+ # Delete Entry Distribution by id
1290
+ #
1291
+ def delete(id)
1292
+ kparams = {}
1293
+ client.add_param(kparams, 'id', id);
1294
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'delete', kparams);
1295
+ if (client.is_multirequest)
1296
+ return nil;
1297
+ end
1298
+ return client.do_queue();
1299
+ end
1300
+
1301
+ # List all distribution providers
1302
+ #
1303
+ def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1304
+ kparams = {}
1305
+ client.add_param(kparams, 'filter', filter);
1306
+ client.add_param(kparams, 'pager', pager);
1307
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'list', kparams);
1308
+ if (client.is_multirequest)
1309
+ return nil;
1310
+ end
1311
+ return client.do_queue();
1312
+ end
1313
+
1314
+ # Submits Entry Distribution to the remote destination
1315
+ #
1316
+ def submit_add(id, submit_when_ready=false)
1317
+ kparams = {}
1318
+ client.add_param(kparams, 'id', id);
1319
+ client.add_param(kparams, 'submitWhenReady', submit_when_ready);
1320
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'submitAdd', kparams);
1321
+ if (client.is_multirequest)
1322
+ return nil;
1323
+ end
1324
+ return client.do_queue();
1325
+ end
1326
+
1327
+ # Submits Entry Distribution changes to the remote destination
1328
+ #
1329
+ def submit_update(id)
1330
+ kparams = {}
1331
+ client.add_param(kparams, 'id', id);
1332
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', kparams);
1333
+ if (client.is_multirequest)
1334
+ return nil;
1335
+ end
1336
+ return client.do_queue();
1337
+ end
1338
+
1339
+ # Submits Entry Distribution report request
1340
+ #
1341
+ def submit_fetch_report(id)
1342
+ kparams = {}
1343
+ client.add_param(kparams, 'id', id);
1344
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'submitFetchReport', kparams);
1345
+ if (client.is_multirequest)
1346
+ return nil;
1347
+ end
1348
+ return client.do_queue();
1349
+ end
1350
+
1351
+ # Deletes Entry Distribution from the remote destination
1352
+ #
1353
+ def submit_delete(id)
1354
+ kparams = {}
1355
+ client.add_param(kparams, 'id', id);
1356
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', kparams);
1357
+ if (client.is_multirequest)
1358
+ return nil;
1359
+ end
1360
+ return client.do_queue();
1361
+ end
1362
+
1363
+ # Retries last submit action
1364
+ #
1365
+ def retry_submit(id)
1366
+ kparams = {}
1367
+ client.add_param(kparams, 'id', id);
1368
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', kparams);
1369
+ if (client.is_multirequest)
1370
+ return nil;
1371
+ end
1372
+ return client.do_queue();
1373
+ end
1374
+
1375
+ # Serves entry distribution sent data
1376
+ #
1377
+ def serve_sent_data(id, action_type)
1378
+ kparams = {}
1379
+ client.add_param(kparams, 'id', id);
1380
+ client.add_param(kparams, 'actionType', action_type);
1381
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'serveSentData', kparams);
1382
+ return client.get_serve_url();
1383
+ end
1384
+
1385
+ # Serves entry distribution returned data
1386
+ #
1387
+ def serve_returned_data(id, action_type)
1388
+ kparams = {}
1389
+ client.add_param(kparams, 'id', id);
1390
+ client.add_param(kparams, 'actionType', action_type);
1391
+ client.queue_service_action_call('contentdistribution_entrydistribution', 'serveReturnedData', kparams);
1392
+ return client.get_serve_url();
1393
+ end
1394
+ end
1395
+
1396
+ # Distribution Provider service
1397
+ #
1398
+ class KalturaDistributionProviderService < KalturaServiceBase
1399
+ def initialize(client)
1400
+ super(client)
1401
+ end
1402
+
1403
+ # List all distribution providers
1404
+ #
1405
+ def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1406
+ kparams = {}
1407
+ client.add_param(kparams, 'filter', filter);
1408
+ client.add_param(kparams, 'pager', pager);
1409
+ client.queue_service_action_call('contentdistribution_distributionprovider', 'list', kparams);
1410
+ if (client.is_multirequest)
1411
+ return nil;
1412
+ end
1413
+ return client.do_queue();
1414
+ end
1415
+ end
1416
+
1417
+ # Generic Distribution Provider service
1418
+ #
1419
+ class KalturaGenericDistributionProviderService < KalturaServiceBase
1420
+ def initialize(client)
1421
+ super(client)
1422
+ end
1423
+
1424
+ # Add new Generic Distribution Provider
1425
+ #
1426
+ def add(generic_distribution_provider)
1427
+ kparams = {}
1428
+ client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider);
1429
+ client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'add', kparams);
1430
+ if (client.is_multirequest)
1431
+ return nil;
1432
+ end
1433
+ return client.do_queue();
1434
+ end
1435
+
1436
+ # Get Generic Distribution Provider by id
1437
+ #
1438
+ def get(id)
1439
+ kparams = {}
1440
+ client.add_param(kparams, 'id', id);
1441
+ client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', kparams);
1442
+ if (client.is_multirequest)
1443
+ return nil;
1444
+ end
1445
+ return client.do_queue();
1446
+ end
1447
+
1448
+ # Update Generic Distribution Provider by id
1449
+ #
1450
+ def update(id, generic_distribution_provider)
1451
+ kparams = {}
1452
+ client.add_param(kparams, 'id', id);
1453
+ client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider);
1454
+ client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', kparams);
1455
+ if (client.is_multirequest)
1456
+ return nil;
1457
+ end
1458
+ return client.do_queue();
1459
+ end
1460
+
1461
+ # Delete Generic Distribution Provider by id
1462
+ #
1463
+ def delete(id)
1464
+ kparams = {}
1465
+ client.add_param(kparams, 'id', id);
1466
+ client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'delete', kparams);
1467
+ if (client.is_multirequest)
1468
+ return nil;
1469
+ end
1470
+ return client.do_queue();
1471
+ end
1472
+
1473
+ # List all distribution providers
1474
+ #
1475
+ def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1476
+ kparams = {}
1477
+ client.add_param(kparams, 'filter', filter);
1478
+ client.add_param(kparams, 'pager', pager);
1479
+ client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'list', kparams);
1480
+ if (client.is_multirequest)
1481
+ return nil;
1482
+ end
1483
+ return client.do_queue();
1484
+ end
1485
+ end
1486
+
1487
+ # Generic Distribution Provider Actions service
1488
+ #
1489
+ class KalturaGenericDistributionProviderActionService < KalturaServiceBase
1490
+ def initialize(client)
1491
+ super(client)
1492
+ end
1493
+
1494
+ # Add new Generic Distribution Provider Action
1495
+ #
1496
+ def add(generic_distribution_provider_action)
1497
+ kparams = {}
1498
+ client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action);
1499
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'add', kparams);
1500
+ if (client.is_multirequest)
1501
+ return nil;
1502
+ end
1503
+ return client.do_queue();
1504
+ end
1505
+
1506
+ # Add MRSS transform file to generic distribution provider action
1507
+ #
1508
+ def add_mrss_transform(id, xsl_data)
1509
+ kparams = {}
1510
+ # the id of the generic distribution provider action
1511
+ client.add_param(kparams, 'id', id);
1512
+ # XSL MRSS transformation data
1513
+ client.add_param(kparams, 'xslData', xsl_data);
1514
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransform', kparams);
1515
+ if (client.is_multirequest)
1516
+ return nil;
1517
+ end
1518
+ return client.do_queue();
1519
+ end
1520
+
1521
+ # Add MRSS transform file to generic distribution provider action
1522
+ #
1523
+ def add_mrss_transform_from_file(id, xsl_file)
1524
+ kparams = {}
1525
+ # the id of the generic distribution provider action
1526
+ client.add_param(kparams, 'id', id);
1527
+ # XSL MRSS transformation file
1528
+ client.add_param(kparams, 'xslFile', xsl_file);
1529
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransformFromFile', kparams);
1530
+ if (client.is_multirequest)
1531
+ return nil;
1532
+ end
1533
+ return client.do_queue();
1534
+ end
1535
+
1536
+ # Add MRSS validate file to generic distribution provider action
1537
+ #
1538
+ def add_mrss_validate(id, xsd_data)
1539
+ kparams = {}
1540
+ # the id of the generic distribution provider action
1541
+ client.add_param(kparams, 'id', id);
1542
+ # XSD MRSS validatation data
1543
+ client.add_param(kparams, 'xsdData', xsd_data);
1544
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidate', kparams);
1545
+ if (client.is_multirequest)
1546
+ return nil;
1547
+ end
1548
+ return client.do_queue();
1549
+ end
1550
+
1551
+ # Add MRSS validate file to generic distribution provider action
1552
+ #
1553
+ def add_mrss_validate_from_file(id, xsd_file)
1554
+ kparams = {}
1555
+ # the id of the generic distribution provider action
1556
+ client.add_param(kparams, 'id', id);
1557
+ # XSD MRSS validatation file
1558
+ client.add_param(kparams, 'xsdFile', xsd_file);
1559
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidateFromFile', kparams);
1560
+ if (client.is_multirequest)
1561
+ return nil;
1562
+ end
1563
+ return client.do_queue();
1564
+ end
1565
+
1566
+ # Add results transform file to generic distribution provider action
1567
+ #
1568
+ def add_results_transform(id, transform_data)
1569
+ kparams = {}
1570
+ # the id of the generic distribution provider action
1571
+ client.add_param(kparams, 'id', id);
1572
+ # transformation data xsl, xPath or regex
1573
+ client.add_param(kparams, 'transformData', transform_data);
1574
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransform', kparams);
1575
+ if (client.is_multirequest)
1576
+ return nil;
1577
+ end
1578
+ return client.do_queue();
1579
+ end
1580
+
1581
+ # Add MRSS transform file to generic distribution provider action
1582
+ #
1583
+ def add_results_transform_from_file(id, transform_file)
1584
+ kparams = {}
1585
+ # the id of the generic distribution provider action
1586
+ client.add_param(kparams, 'id', id);
1587
+ # transformation file xsl, xPath or regex
1588
+ client.add_param(kparams, 'transformFile', transform_file);
1589
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransformFromFile', kparams);
1590
+ if (client.is_multirequest)
1591
+ return nil;
1592
+ end
1593
+ return client.do_queue();
1594
+ end
1595
+
1596
+ # Get Generic Distribution Provider Action by id
1597
+ #
1598
+ def get(id)
1599
+ kparams = {}
1600
+ client.add_param(kparams, 'id', id);
1601
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'get', kparams);
1602
+ if (client.is_multirequest)
1603
+ return nil;
1604
+ end
1605
+ return client.do_queue();
1606
+ end
1607
+
1608
+ # Get Generic Distribution Provider Action by provider id
1609
+ #
1610
+ def get_by_provider_id(generic_distribution_provider_id, action_type)
1611
+ kparams = {}
1612
+ client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id);
1613
+ client.add_param(kparams, 'actionType', action_type);
1614
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'getByProviderId', kparams);
1615
+ if (client.is_multirequest)
1616
+ return nil;
1617
+ end
1618
+ return client.do_queue();
1619
+ end
1620
+
1621
+ # Update Generic Distribution Provider Action by provider id
1622
+ #
1623
+ def update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action)
1624
+ kparams = {}
1625
+ client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id);
1626
+ client.add_param(kparams, 'actionType', action_type);
1627
+ client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action);
1628
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', kparams);
1629
+ if (client.is_multirequest)
1630
+ return nil;
1631
+ end
1632
+ return client.do_queue();
1633
+ end
1634
+
1635
+ # Update Generic Distribution Provider Action by id
1636
+ #
1637
+ def update(id, generic_distribution_provider_action)
1638
+ kparams = {}
1639
+ client.add_param(kparams, 'id', id);
1640
+ client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action);
1641
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'update', kparams);
1642
+ if (client.is_multirequest)
1643
+ return nil;
1644
+ end
1645
+ return client.do_queue();
1646
+ end
1647
+
1648
+ # Delete Generic Distribution Provider Action by id
1649
+ #
1650
+ def delete(id)
1651
+ kparams = {}
1652
+ client.add_param(kparams, 'id', id);
1653
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'delete', kparams);
1654
+ if (client.is_multirequest)
1655
+ return nil;
1656
+ end
1657
+ return client.do_queue();
1658
+ end
1659
+
1660
+ # Delete Generic Distribution Provider Action by provider id
1661
+ #
1662
+ def delete_by_provider_id(generic_distribution_provider_id, action_type)
1663
+ kparams = {}
1664
+ client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id);
1665
+ client.add_param(kparams, 'actionType', action_type);
1666
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'deleteByProviderId', kparams);
1667
+ if (client.is_multirequest)
1668
+ return nil;
1669
+ end
1670
+ return client.do_queue();
1671
+ end
1672
+
1673
+ # List all distribution providers
1674
+ #
1675
+ def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
1676
+ kparams = {}
1677
+ client.add_param(kparams, 'filter', filter);
1678
+ client.add_param(kparams, 'pager', pager);
1679
+ client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'list', kparams);
1680
+ if (client.is_multirequest)
1681
+ return nil;
1682
+ end
1683
+ return client.do_queue();
1684
+ end
1685
+ end
1686
+
1687
+ class KalturaClient < KalturaClientBase
1688
+ attr_reader :distribution_profile_service
1689
+ def distribution_profile_service
1690
+ if (@distribution_profile_service == nil)
1691
+ @distribution_profile_service = KalturaDistributionProfileService.new(self)
1692
+ end
1693
+ return @distribution_profile_service
1694
+ end
1695
+ attr_reader :entry_distribution_service
1696
+ def entry_distribution_service
1697
+ if (@entry_distribution_service == nil)
1698
+ @entry_distribution_service = KalturaEntryDistributionService.new(self)
1699
+ end
1700
+ return @entry_distribution_service
1701
+ end
1702
+ attr_reader :distribution_provider_service
1703
+ def distribution_provider_service
1704
+ if (@distribution_provider_service == nil)
1705
+ @distribution_provider_service = KalturaDistributionProviderService.new(self)
1706
+ end
1707
+ return @distribution_provider_service
1708
+ end
1709
+ attr_reader :generic_distribution_provider_service
1710
+ def generic_distribution_provider_service
1711
+ if (@generic_distribution_provider_service == nil)
1712
+ @generic_distribution_provider_service = KalturaGenericDistributionProviderService.new(self)
1713
+ end
1714
+ return @generic_distribution_provider_service
1715
+ end
1716
+ attr_reader :generic_distribution_provider_action_service
1717
+ def generic_distribution_provider_action_service
1718
+ if (@generic_distribution_provider_action_service == nil)
1719
+ @generic_distribution_provider_action_service = KalturaGenericDistributionProviderActionService.new(self)
1720
+ end
1721
+ return @generic_distribution_provider_action_service
1722
+ end
1723
+ end
1724
+
1725
+ end