aimastering 1.0.0 → 1.1.0

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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -5
  3. data/aimastering.gemspec +4 -4
  4. data/docs/AccessTokenApi.md +1 -1
  5. data/docs/AmazonSubscription.md +12 -0
  6. data/docs/AmazonSubscriptionApi.md +55 -0
  7. data/docs/Audio.md +4 -0
  8. data/docs/AudioApi.md +4 -2
  9. data/docs/Config.md +1 -0
  10. data/docs/ConfigApi.md +1 -1
  11. data/docs/{DateTime.md → ConfigVersion.md} +2 -1
  12. data/docs/ExternalSearchApi.md +1 -1
  13. data/docs/GroupBuyStatistics.md +8 -0
  14. data/docs/LibraryAudio.md +4 -0
  15. data/docs/LibraryAudioApi.md +1 -1
  16. data/docs/Mastering.md +9 -0
  17. data/docs/MasteringApi.md +151 -29
  18. data/docs/PaymentApi.md +3 -3
  19. data/docs/PaymentCustomerApi.md +1 -1
  20. data/docs/PlanApi.md +1 -1
  21. data/docs/SpSubscription.md +12 -0
  22. data/docs/SpSubscriptionApi.md +112 -0
  23. data/docs/StatisticsApi.md +48 -1
  24. data/docs/Subscription.md +1 -0
  25. data/docs/SubscriptionApi.md +4 -2
  26. data/docs/User.md +3 -0
  27. data/docs/UserApi.md +110 -1
  28. data/docs/UserStatistics.md +13 -0
  29. data/docs/VideoApi.md +1 -1
  30. data/lib/aimastering.rb +8 -1
  31. data/lib/aimastering/api/access_token_api.rb +1 -1
  32. data/lib/aimastering/api/amazon_subscription_api.rb +70 -0
  33. data/lib/aimastering/api/audio_api.rb +4 -1
  34. data/lib/aimastering/api/config_api.rb +1 -1
  35. data/lib/aimastering/api/external_search_api.rb +1 -1
  36. data/lib/aimastering/api/library_audio_api.rb +1 -1
  37. data/lib/aimastering/api/mastering_api.rb +162 -16
  38. data/lib/aimastering/api/payment_api.rb +1 -1
  39. data/lib/aimastering/api/payment_customer_api.rb +1 -1
  40. data/lib/aimastering/api/plan_api.rb +1 -1
  41. data/lib/aimastering/api/sp_subscription_api.rb +133 -0
  42. data/lib/aimastering/api/statistics_api.rb +48 -1
  43. data/lib/aimastering/api/subscription_api.rb +4 -1
  44. data/lib/aimastering/api/user_api.rb +112 -1
  45. data/lib/aimastering/api/video_api.rb +1 -1
  46. data/lib/aimastering/api_client.rb +1 -1
  47. data/lib/aimastering/api_error.rb +1 -1
  48. data/lib/aimastering/configuration.rb +3 -3
  49. data/lib/aimastering/models/access_token.rb +1 -1
  50. data/lib/aimastering/models/amazon_subscription.rb +257 -0
  51. data/lib/aimastering/models/anonymized_mastering.rb +5 -5
  52. data/lib/aimastering/models/audio.rb +38 -2
  53. data/lib/aimastering/models/audio_analysis.rb +1 -1
  54. data/lib/aimastering/models/audio_download_token.rb +1 -1
  55. data/lib/aimastering/models/config.rb +14 -5
  56. data/lib/aimastering/models/config_auth0.rb +1 -1
  57. data/lib/aimastering/models/config_paypal.rb +1 -1
  58. data/lib/aimastering/models/config_stripe.rb +1 -1
  59. data/lib/aimastering/models/{date_time.rb → config_version.rb} +14 -5
  60. data/lib/aimastering/models/external_search_result.rb +1 -1
  61. data/lib/aimastering/models/external_search_result_itunes.rb +1 -1
  62. data/lib/aimastering/models/external_search_result_youtube.rb +1 -1
  63. data/lib/aimastering/models/group_buy_statistics.rb +188 -0
  64. data/lib/aimastering/models/jwt.rb +1 -1
  65. data/lib/aimastering/models/kpi.rb +1 -1
  66. data/lib/aimastering/models/library_audio.rb +38 -2
  67. data/lib/aimastering/models/library_audio_analysis.rb +1 -1
  68. data/lib/aimastering/models/library_audio_like.rb +1 -1
  69. data/lib/aimastering/models/mastering.rb +123 -6
  70. data/lib/aimastering/models/payment.rb +1 -1
  71. data/lib/aimastering/models/payment_customer.rb +1 -1
  72. data/lib/aimastering/models/plan.rb +1 -1
  73. data/lib/aimastering/models/sp_subscription.rb +257 -0
  74. data/lib/aimastering/models/subscription.rb +11 -2
  75. data/lib/aimastering/models/user.rb +29 -2
  76. data/lib/aimastering/models/user_statistics.rb +233 -0
  77. data/lib/aimastering/models/video.rb +1 -1
  78. data/lib/aimastering/models/video_download_token.rb +1 -1
  79. data/lib/aimastering/version.rb +2 -2
  80. data/spec/api/access_token_api_spec.rb +1 -1
  81. data/spec/api/amazon_subscription_api_spec.rb +46 -0
  82. data/spec/api/audio_api_spec.rb +2 -1
  83. data/spec/api/config_api_spec.rb +1 -1
  84. data/spec/api/external_search_api_spec.rb +1 -1
  85. data/spec/api/library_audio_api_spec.rb +1 -1
  86. data/spec/api/mastering_api_spec.rb +35 -4
  87. data/spec/api/payment_api_spec.rb +1 -1
  88. data/spec/api/payment_customer_api_spec.rb +1 -1
  89. data/spec/api/plan_api_spec.rb +1 -1
  90. data/spec/api/sp_subscription_api_spec.rb +59 -0
  91. data/spec/api/statistics_api_spec.rb +12 -1
  92. data/spec/api/subscription_api_spec.rb +2 -1
  93. data/spec/api/user_api_spec.rb +26 -1
  94. data/spec/api/video_api_spec.rb +1 -1
  95. data/spec/api_client_spec.rb +1 -1
  96. data/spec/configuration_spec.rb +4 -4
  97. data/spec/models/access_token_spec.rb +1 -1
  98. data/spec/models/amazon_subscription_spec.rb +70 -0
  99. data/spec/models/anonymized_mastering_spec.rb +3 -3
  100. data/spec/models/audio_analysis_spec.rb +1 -1
  101. data/spec/models/audio_download_token_spec.rb +1 -1
  102. data/spec/models/audio_spec.rb +25 -1
  103. data/spec/models/config_auth0_spec.rb +1 -1
  104. data/spec/models/config_paypal_spec.rb +1 -1
  105. data/spec/models/config_spec.rb +7 -1
  106. data/spec/models/config_stripe_spec.rb +1 -1
  107. data/spec/models/config_version_spec.rb +42 -0
  108. data/spec/models/external_search_result_itunes_spec.rb +1 -1
  109. data/spec/models/external_search_result_spec.rb +1 -1
  110. data/spec/models/external_search_result_youtube_spec.rb +1 -1
  111. data/spec/models/group_buy_statistics_spec.rb +42 -0
  112. data/spec/models/jwt_spec.rb +1 -1
  113. data/spec/models/kpi_spec.rb +1 -1
  114. data/spec/models/library_audio_analysis_spec.rb +1 -1
  115. data/spec/models/library_audio_like_spec.rb +1 -1
  116. data/spec/models/library_audio_spec.rb +25 -1
  117. data/spec/models/mastering_spec.rb +69 -3
  118. data/spec/models/payment_customer_spec.rb +1 -1
  119. data/spec/models/payment_spec.rb +1 -1
  120. data/spec/models/plan_spec.rb +1 -1
  121. data/spec/models/sp_subscription_spec.rb +70 -0
  122. data/spec/models/subscription_spec.rb +7 -1
  123. data/spec/models/user_spec.rb +19 -1
  124. data/spec/models/user_statistics_spec.rb +72 -0
  125. data/spec/models/video_download_token_spec.rb +1 -1
  126. data/spec/models/video_spec.rb +1 -1
  127. data/spec/spec_helper.rb +1 -1
  128. metadata +46 -23
  129. data/spec/models/date_time_spec.rb +0 -36
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -47,6 +47,10 @@ module Aimastering
47
47
 
48
48
  attr_accessor :peak
49
49
 
50
+ attr_accessor :true_peak
51
+
52
+ attr_accessor :lowpass_true_peak_15khz
53
+
50
54
  attr_accessor :loudness
51
55
 
52
56
  attr_accessor :dynamics
@@ -61,6 +65,10 @@ module Aimastering
61
65
 
62
66
  attr_accessor :sound_quality
63
67
 
68
+ attr_accessor :sound_quality2
69
+
70
+ attr_accessor :dissonance
71
+
64
72
  attr_accessor :frames
65
73
 
66
74
  attr_accessor :sample_rate
@@ -97,6 +105,8 @@ module Aimastering
97
105
  :'probe_json' => :'probe_json',
98
106
  :'rms' => :'rms',
99
107
  :'peak' => :'peak',
108
+ :'true_peak' => :'true_peak',
109
+ :'lowpass_true_peak_15khz' => :'lowpass_true_peak_15khz',
100
110
  :'loudness' => :'loudness',
101
111
  :'dynamics' => :'dynamics',
102
112
  :'sharpness' => :'sharpness',
@@ -104,6 +114,8 @@ module Aimastering
104
114
  :'loudness_range' => :'loudness_range',
105
115
  :'drr' => :'drr',
106
116
  :'sound_quality' => :'sound_quality',
117
+ :'sound_quality2' => :'sound_quality2',
118
+ :'dissonance' => :'dissonance',
107
119
  :'frames' => :'frames',
108
120
  :'sample_rate' => :'sample_rate',
109
121
  :'channels' => :'channels',
@@ -134,6 +146,8 @@ module Aimastering
134
146
  :'probe_json' => :'String',
135
147
  :'rms' => :'Float',
136
148
  :'peak' => :'Float',
149
+ :'true_peak' => :'Float',
150
+ :'lowpass_true_peak_15khz' => :'Float',
137
151
  :'loudness' => :'Float',
138
152
  :'dynamics' => :'Float',
139
153
  :'sharpness' => :'Float',
@@ -141,6 +155,8 @@ module Aimastering
141
155
  :'loudness_range' => :'Float',
142
156
  :'drr' => :'Float',
143
157
  :'sound_quality' => :'Float',
158
+ :'sound_quality2' => :'Float',
159
+ :'dissonance' => :'Float',
144
160
  :'frames' => :'Integer',
145
161
  :'sample_rate' => :'Integer',
146
162
  :'channels' => :'Integer',
@@ -224,6 +240,14 @@ module Aimastering
224
240
  self.peak = attributes[:'peak']
225
241
  end
226
242
 
243
+ if attributes.has_key?(:'true_peak')
244
+ self.true_peak = attributes[:'true_peak']
245
+ end
246
+
247
+ if attributes.has_key?(:'lowpass_true_peak_15khz')
248
+ self.lowpass_true_peak_15khz = attributes[:'lowpass_true_peak_15khz']
249
+ end
250
+
227
251
  if attributes.has_key?(:'loudness')
228
252
  self.loudness = attributes[:'loudness']
229
253
  end
@@ -252,6 +276,14 @@ module Aimastering
252
276
  self.sound_quality = attributes[:'sound_quality']
253
277
  end
254
278
 
279
+ if attributes.has_key?(:'sound_quality2')
280
+ self.sound_quality2 = attributes[:'sound_quality2']
281
+ end
282
+
283
+ if attributes.has_key?(:'dissonance')
284
+ self.dissonance = attributes[:'dissonance']
285
+ end
286
+
255
287
  if attributes.has_key?(:'frames')
256
288
  self.frames = attributes[:'frames']
257
289
  end
@@ -320,6 +352,8 @@ module Aimastering
320
352
  probe_json == o.probe_json &&
321
353
  rms == o.rms &&
322
354
  peak == o.peak &&
355
+ true_peak == o.true_peak &&
356
+ lowpass_true_peak_15khz == o.lowpass_true_peak_15khz &&
323
357
  loudness == o.loudness &&
324
358
  dynamics == o.dynamics &&
325
359
  sharpness == o.sharpness &&
@@ -327,6 +361,8 @@ module Aimastering
327
361
  loudness_range == o.loudness_range &&
328
362
  drr == o.drr &&
329
363
  sound_quality == o.sound_quality &&
364
+ sound_quality2 == o.sound_quality2 &&
365
+ dissonance == o.dissonance &&
330
366
  frames == o.frames &&
331
367
  sample_rate == o.sample_rate &&
332
368
  channels == o.channels &&
@@ -346,7 +382,7 @@ module Aimastering
346
382
  # Calculates hash code according to all attributes.
347
383
  # @return [Fixnum] Hash code
348
384
  def hash
349
- [id, user_id, name, album, album_artist, artist, genre, track, publisher, file_hash, size, status, failure_reason, probe_json, rms, peak, loudness, dynamics, sharpness, space, loudness_range, drr, sound_quality, frames, sample_rate, channels, is_public, liked_by_self, like_count, created_at, updated_at].hash
385
+ [id, user_id, name, album, album_artist, artist, genre, track, publisher, file_hash, size, status, failure_reason, probe_json, rms, peak, true_peak, lowpass_true_peak_15khz, loudness, dynamics, sharpness, space, loudness_range, drr, sound_quality, sound_quality2, dissonance, frames, sample_rate, channels, is_public, liked_by_self, like_count, created_at, updated_at].hash
350
386
  end
351
387
 
352
388
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -33,6 +33,8 @@ module Aimastering
33
33
 
34
34
  attr_accessor :failure_reason
35
35
 
36
+ attr_accessor :target_loudness_mode
37
+
36
38
  attr_accessor :target_loudness
37
39
 
38
40
  attr_accessor :output_format
@@ -55,6 +57,10 @@ module Aimastering
55
57
 
56
58
  attr_accessor :mastering
57
59
 
60
+ attr_accessor :mastering_algorithm
61
+
62
+ attr_accessor :preserved
63
+
58
64
  attr_accessor :retry_count
59
65
 
60
66
  attr_accessor :mastering_reverb
@@ -65,6 +71,18 @@ module Aimastering
65
71
 
66
72
  attr_accessor :high_cut_freq
67
73
 
74
+ attr_accessor :ceiling
75
+
76
+ attr_accessor :ceiling_mode
77
+
78
+ attr_accessor :oversample
79
+
80
+ attr_accessor :limiting_error
81
+
82
+ attr_accessor :video_title
83
+
84
+ attr_accessor :video_status
85
+
68
86
  attr_accessor :expire_at
69
87
 
70
88
  attr_accessor :created_at
@@ -105,6 +123,7 @@ module Aimastering
105
123
  :'mode' => :'mode',
106
124
  :'status' => :'status',
107
125
  :'failure_reason' => :'failure_reason',
126
+ :'target_loudness_mode' => :'target_loudness_mode',
108
127
  :'target_loudness' => :'target_loudness',
109
128
  :'output_format' => :'output_format',
110
129
  :'preset' => :'preset',
@@ -116,11 +135,19 @@ module Aimastering
116
135
  :'progression' => :'progression',
117
136
  :'bass_preservation' => :'bass_preservation',
118
137
  :'mastering' => :'mastering',
138
+ :'mastering_algorithm' => :'mastering_algorithm',
139
+ :'preserved' => :'preserved',
119
140
  :'retry_count' => :'retry_count',
120
141
  :'mastering_reverb' => :'mastering_reverb',
121
142
  :'mastering_reverb_gain' => :'mastering_reverb_gain',
122
143
  :'low_cut_freq' => :'low_cut_freq',
123
144
  :'high_cut_freq' => :'high_cut_freq',
145
+ :'ceiling' => :'ceiling',
146
+ :'ceiling_mode' => :'ceiling_mode',
147
+ :'oversample' => :'oversample',
148
+ :'limiting_error' => :'limiting_error',
149
+ :'video_title' => :'video_title',
150
+ :'video_status' => :'video_status',
124
151
  :'expire_at' => :'expire_at',
125
152
  :'created_at' => :'created_at',
126
153
  :'updated_at' => :'updated_at'
@@ -139,6 +166,7 @@ module Aimastering
139
166
  :'mode' => :'String',
140
167
  :'status' => :'String',
141
168
  :'failure_reason' => :'String',
169
+ :'target_loudness_mode' => :'String',
142
170
  :'target_loudness' => :'Float',
143
171
  :'output_format' => :'String',
144
172
  :'preset' => :'String',
@@ -150,11 +178,19 @@ module Aimastering
150
178
  :'progression' => :'Float',
151
179
  :'bass_preservation' => :'BOOLEAN',
152
180
  :'mastering' => :'BOOLEAN',
181
+ :'mastering_algorithm' => :'String',
182
+ :'preserved' => :'BOOLEAN',
153
183
  :'retry_count' => :'Integer',
154
184
  :'mastering_reverb' => :'BOOLEAN',
155
185
  :'mastering_reverb_gain' => :'Float',
156
186
  :'low_cut_freq' => :'Float',
157
187
  :'high_cut_freq' => :'Float',
188
+ :'ceiling' => :'Float',
189
+ :'ceiling_mode' => :'String',
190
+ :'oversample' => :'Integer',
191
+ :'limiting_error' => :'Float',
192
+ :'video_title' => :'String',
193
+ :'video_status' => :'String',
158
194
  :'expire_at' => :'DateTime',
159
195
  :'created_at' => :'DateTime',
160
196
  :'updated_at' => :'DateTime'
@@ -205,6 +241,10 @@ module Aimastering
205
241
  self.failure_reason = attributes[:'failure_reason']
206
242
  end
207
243
 
244
+ if attributes.has_key?(:'target_loudness_mode')
245
+ self.target_loudness_mode = attributes[:'target_loudness_mode']
246
+ end
247
+
208
248
  if attributes.has_key?(:'target_loudness')
209
249
  self.target_loudness = attributes[:'target_loudness']
210
250
  end
@@ -249,6 +289,14 @@ module Aimastering
249
289
  self.mastering = attributes[:'mastering']
250
290
  end
251
291
 
292
+ if attributes.has_key?(:'mastering_algorithm')
293
+ self.mastering_algorithm = attributes[:'mastering_algorithm']
294
+ end
295
+
296
+ if attributes.has_key?(:'preserved')
297
+ self.preserved = attributes[:'preserved']
298
+ end
299
+
252
300
  if attributes.has_key?(:'retry_count')
253
301
  self.retry_count = attributes[:'retry_count']
254
302
  end
@@ -269,6 +317,30 @@ module Aimastering
269
317
  self.high_cut_freq = attributes[:'high_cut_freq']
270
318
  end
271
319
 
320
+ if attributes.has_key?(:'ceiling')
321
+ self.ceiling = attributes[:'ceiling']
322
+ end
323
+
324
+ if attributes.has_key?(:'ceiling_mode')
325
+ self.ceiling_mode = attributes[:'ceiling_mode']
326
+ end
327
+
328
+ if attributes.has_key?(:'oversample')
329
+ self.oversample = attributes[:'oversample']
330
+ end
331
+
332
+ if attributes.has_key?(:'limiting_error')
333
+ self.limiting_error = attributes[:'limiting_error']
334
+ end
335
+
336
+ if attributes.has_key?(:'video_title')
337
+ self.video_title = attributes[:'video_title']
338
+ end
339
+
340
+ if attributes.has_key?(:'video_status')
341
+ self.video_status = attributes[:'video_status']
342
+ end
343
+
272
344
  if attributes.has_key?(:'expire_at')
273
345
  self.expire_at = attributes[:'expire_at']
274
346
  end
@@ -317,12 +389,14 @@ module Aimastering
317
389
  # Check to see if the all the properties in the model are valid
318
390
  # @return true if the model is valid
319
391
  def valid?
320
- mode_validator = EnumAttributeValidator.new('String', ["default", "custom", "preset"])
392
+ mode_validator = EnumAttributeValidator.new('String', ["default", "custom"])
321
393
  return false unless mode_validator.valid?(@mode)
322
394
  status_validator = EnumAttributeValidator.new('String', ["waiting", "processing", "canceled", "failed", "succeeded"])
323
395
  return false unless status_validator.valid?(@status)
324
- failure_reason_validator = EnumAttributeValidator.new('String', ["unknown", "expired", "failed_to_prepare", "job_queue"])
396
+ failure_reason_validator = EnumAttributeValidator.new('String', ["unknown", "expired", "failed_to_prepare"])
325
397
  return false unless failure_reason_validator.valid?(@failure_reason)
398
+ target_loudness_mode_validator = EnumAttributeValidator.new('String', ["loudness", "rms", "peak", "youtube_loudness"])
399
+ return false unless target_loudness_mode_validator.valid?(@target_loudness_mode)
326
400
  output_format_validator = EnumAttributeValidator.new('String', ["wav", "mp3"])
327
401
  return false unless output_format_validator.valid?(@output_format)
328
402
  preset_validator = EnumAttributeValidator.new('String', ["general", "pop", "jazz", "classical"])
@@ -333,13 +407,17 @@ module Aimastering
333
407
  return false if !@mastering_matching_level.nil? && @mastering_matching_level < 0
334
408
  return false if !@progression.nil? && @progression > 1
335
409
  return false if !@progression.nil? && @progression < 0
410
+ mastering_algorithm_validator = EnumAttributeValidator.new('String', ["v1", "v2"])
411
+ return false unless mastering_algorithm_validator.valid?(@mastering_algorithm)
412
+ video_status_validator = EnumAttributeValidator.new('String', ["waiting", "failed", "succeeded"])
413
+ return false unless video_status_validator.valid?(@video_status)
336
414
  return true
337
415
  end
338
416
 
339
417
  # Custom attribute writer method checking allowed values (enum).
340
418
  # @param [Object] mode Object to be assigned
341
419
  def mode=(mode)
342
- validator = EnumAttributeValidator.new('String', ["default", "custom", "preset"])
420
+ validator = EnumAttributeValidator.new('String', ["default", "custom"])
343
421
  unless validator.valid?(mode)
344
422
  fail ArgumentError, "invalid value for 'mode', must be one of #{validator.allowable_values}."
345
423
  end
@@ -359,13 +437,23 @@ module Aimastering
359
437
  # Custom attribute writer method checking allowed values (enum).
360
438
  # @param [Object] failure_reason Object to be assigned
361
439
  def failure_reason=(failure_reason)
362
- validator = EnumAttributeValidator.new('String', ["unknown", "expired", "failed_to_prepare", "job_queue"])
440
+ validator = EnumAttributeValidator.new('String', ["unknown", "expired", "failed_to_prepare"])
363
441
  unless validator.valid?(failure_reason)
364
442
  fail ArgumentError, "invalid value for 'failure_reason', must be one of #{validator.allowable_values}."
365
443
  end
366
444
  @failure_reason = failure_reason
367
445
  end
368
446
 
447
+ # Custom attribute writer method checking allowed values (enum).
448
+ # @param [Object] target_loudness_mode Object to be assigned
449
+ def target_loudness_mode=(target_loudness_mode)
450
+ validator = EnumAttributeValidator.new('String', ["loudness", "rms", "peak", "youtube_loudness"])
451
+ unless validator.valid?(target_loudness_mode)
452
+ fail ArgumentError, "invalid value for 'target_loudness_mode', must be one of #{validator.allowable_values}."
453
+ end
454
+ @target_loudness_mode = target_loudness_mode
455
+ end
456
+
369
457
  # Custom attribute writer method checking allowed values (enum).
370
458
  # @param [Object] output_format Object to be assigned
371
459
  def output_format=(output_format)
@@ -431,6 +519,26 @@ module Aimastering
431
519
  @progression = progression
432
520
  end
433
521
 
522
+ # Custom attribute writer method checking allowed values (enum).
523
+ # @param [Object] mastering_algorithm Object to be assigned
524
+ def mastering_algorithm=(mastering_algorithm)
525
+ validator = EnumAttributeValidator.new('String', ["v1", "v2"])
526
+ unless validator.valid?(mastering_algorithm)
527
+ fail ArgumentError, "invalid value for 'mastering_algorithm', must be one of #{validator.allowable_values}."
528
+ end
529
+ @mastering_algorithm = mastering_algorithm
530
+ end
531
+
532
+ # Custom attribute writer method checking allowed values (enum).
533
+ # @param [Object] video_status Object to be assigned
534
+ def video_status=(video_status)
535
+ validator = EnumAttributeValidator.new('String', ["waiting", "failed", "succeeded"])
536
+ unless validator.valid?(video_status)
537
+ fail ArgumentError, "invalid value for 'video_status', must be one of #{validator.allowable_values}."
538
+ end
539
+ @video_status = video_status
540
+ end
541
+
434
542
  # Checks equality by comparing each attribute.
435
543
  # @param [Object] Object to be compared
436
544
  def ==(o)
@@ -445,6 +553,7 @@ module Aimastering
445
553
  mode == o.mode &&
446
554
  status == o.status &&
447
555
  failure_reason == o.failure_reason &&
556
+ target_loudness_mode == o.target_loudness_mode &&
448
557
  target_loudness == o.target_loudness &&
449
558
  output_format == o.output_format &&
450
559
  preset == o.preset &&
@@ -456,11 +565,19 @@ module Aimastering
456
565
  progression == o.progression &&
457
566
  bass_preservation == o.bass_preservation &&
458
567
  mastering == o.mastering &&
568
+ mastering_algorithm == o.mastering_algorithm &&
569
+ preserved == o.preserved &&
459
570
  retry_count == o.retry_count &&
460
571
  mastering_reverb == o.mastering_reverb &&
461
572
  mastering_reverb_gain == o.mastering_reverb_gain &&
462
573
  low_cut_freq == o.low_cut_freq &&
463
574
  high_cut_freq == o.high_cut_freq &&
575
+ ceiling == o.ceiling &&
576
+ ceiling_mode == o.ceiling_mode &&
577
+ oversample == o.oversample &&
578
+ limiting_error == o.limiting_error &&
579
+ video_title == o.video_title &&
580
+ video_status == o.video_status &&
464
581
  expire_at == o.expire_at &&
465
582
  created_at == o.created_at &&
466
583
  updated_at == o.updated_at
@@ -475,7 +592,7 @@ module Aimastering
475
592
  # Calculates hash code according to all attributes.
476
593
  # @return [Fixnum] Hash code
477
594
  def hash
478
- [id, user_id, input_audio_id, output_audio_id, output_video_id, reference_audio_id, mode, status, failure_reason, target_loudness, output_format, preset, bit_depth, sample_rate, review_comment, review_score, mastering_matching_level, progression, bass_preservation, mastering, retry_count, mastering_reverb, mastering_reverb_gain, low_cut_freq, high_cut_freq, expire_at, created_at, updated_at].hash
595
+ [id, user_id, input_audio_id, output_audio_id, output_video_id, reference_audio_id, mode, status, failure_reason, target_loudness_mode, target_loudness, output_format, preset, bit_depth, sample_rate, review_comment, review_score, mastering_matching_level, progression, bass_preservation, mastering, mastering_algorithm, preserved, retry_count, mastering_reverb, mastering_reverb_gain, low_cut_freq, high_cut_freq, ceiling, ceiling_mode, oversample, limiting_error, video_title, video_status, expire_at, created_at, updated_at].hash
479
596
  end
480
597
 
481
598
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #This is a AI Mastering API document. You can use the mastering feature of [AI Mastering](https://aimastering.com) through this API.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
- Contact: aimasteringcom@gmail.com
7
+ Contact: info@bakuage.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
10
10