kaltura-ruby-client 1.0

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