songtradr_api_client_ruby 1.12.22 → 1.12.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +26 -12
  4. data/docs/APIKeysApi.md +217 -0
  5. data/docs/AdminApiUserDTO.md +70 -0
  6. data/docs/ApiKeyDTO.md +24 -0
  7. data/docs/CreateApiKeyDTO.md +18 -0
  8. data/docs/FileSmallDTO.md +3 -3
  9. data/docs/MusicalFeaturesDTO.md +32 -32
  10. data/docs/PlaylistLargeDTO.md +7 -7
  11. data/docs/ProductMediumDTO.md +7 -7
  12. data/docs/ProductPartyDTO.md +3 -3
  13. data/docs/RecordingGenrePredictionDTO.md +3 -3
  14. data/docs/RecordingLargeDTO.md +8 -8
  15. data/docs/RecordingMediumDTO.md +6 -6
  16. data/docs/RecordingPartyDTO.md +3 -3
  17. data/docs/RecordingPlaylistDTO.md +3 -3
  18. data/docs/UserDTO.md +2 -0
  19. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +1 -1
  20. data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +213 -0
  21. data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
  22. data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
  23. data/lib/songtradr_api_client_ruby/api/recording_api.rb +1 -1
  24. data/lib/songtradr_api_client_ruby/api/user_api.rb +1 -1
  25. data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
  26. data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
  27. data/lib/songtradr_api_client_ruby/configuration.rb +1 -1
  28. data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +453 -0
  29. data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +261 -0
  30. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +1 -1
  31. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +1 -1
  32. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +1 -1
  33. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +1 -1
  34. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +1 -1
  35. data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +219 -0
  36. data/lib/songtradr_api_client_ruby/models/error_response.rb +1 -1
  37. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +1 -1
  38. data/lib/songtradr_api_client_ruby/models/file_dto.rb +1 -1
  39. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +1 -1
  40. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +1 -1
  41. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +19 -19
  42. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +1 -1
  43. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +1 -1
  44. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +1 -1
  45. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +1 -1
  46. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +1 -1
  47. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +1 -1
  48. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +1 -1
  49. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +1 -1
  50. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +1 -1
  51. data/lib/songtradr_api_client_ruby/models/login_dto.rb +1 -1
  52. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +300 -300
  53. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +1 -1
  54. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +1 -1
  55. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +1 -1
  56. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +34 -34
  57. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +42 -42
  58. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +14 -14
  59. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +1 -1
  60. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +19 -19
  61. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +40 -40
  62. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
  63. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +20 -20
  64. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +1 -1
  65. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +1 -1
  66. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +1 -1
  67. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +14 -14
  68. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +14 -14
  69. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +1 -1
  70. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +1 -1
  71. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +1 -1
  72. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +1 -1
  73. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +1 -1
  74. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +1 -1
  75. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +1 -1
  76. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +1 -1
  77. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +1 -1
  78. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +1 -1
  79. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +1 -1
  80. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +1 -1
  81. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +1 -1
  82. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +1 -1
  83. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +1 -1
  84. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +1 -1
  85. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +1 -1
  86. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +1 -1
  87. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +1 -1
  88. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +1 -1
  89. data/lib/songtradr_api_client_ruby/models/title_dto.rb +1 -1
  90. data/lib/songtradr_api_client_ruby/models/token_request.rb +1 -1
  91. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +1 -1
  92. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +1 -1
  93. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +1 -1
  94. data/lib/songtradr_api_client_ruby/models/user_dto.rb +16 -2
  95. data/lib/songtradr_api_client_ruby/version.rb +2 -2
  96. data/lib/songtradr_api_client_ruby.rb +5 -1
  97. data/openapi-generator-config.yaml +1 -1
  98. data/songtradr_api_client_ruby.gemspec +1 -1
  99. data/spec/api/allowed_values_api_spec.rb +1 -1
  100. data/spec/api/api_keys_api_spec.rb +70 -0
  101. data/spec/api/party_api_spec.rb +1 -1
  102. data/spec/api/playlist_api_spec.rb +1 -1
  103. data/spec/api/recording_api_spec.rb +1 -1
  104. data/spec/api/user_api_spec.rb +1 -1
  105. data/spec/api_client_spec.rb +1 -1
  106. data/spec/configuration_spec.rb +1 -1
  107. data/spec/models/admin_api_user_dto_spec.rb +190 -0
  108. data/spec/models/api_key_dto_spec.rb +52 -0
  109. data/spec/models/category_medium_dto_spec.rb +1 -1
  110. data/spec/models/category_minimal_dto_spec.rb +1 -1
  111. data/spec/models/config_access_dto_spec.rb +1 -1
  112. data/spec/models/config_identifier_dto_spec.rb +1 -1
  113. data/spec/models/contributor_type_dto_spec.rb +1 -1
  114. data/spec/models/create_api_key_dto_spec.rb +34 -0
  115. data/spec/models/error_response_spec.rb +1 -1
  116. data/spec/models/field_summary_dto_spec.rb +1 -1
  117. data/spec/models/file_dto_spec.rb +1 -1
  118. data/spec/models/file_list_dto_spec.rb +1 -1
  119. data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
  120. data/spec/models/file_small_dto_spec.rb +7 -7
  121. data/spec/models/file_upload_dto_spec.rb +1 -1
  122. data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
  123. data/spec/models/files_summary_dto_spec.rb +1 -1
  124. data/spec/models/forgot_password_dto_spec.rb +1 -1
  125. data/spec/models/genre_dto_spec.rb +1 -1
  126. data/spec/models/genre_minimal_dto_spec.rb +1 -1
  127. data/spec/models/genres_summary_dto_spec.rb +1 -1
  128. data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
  129. data/spec/models/jwt_token_dto_spec.rb +1 -1
  130. data/spec/models/login_dto_spec.rb +1 -1
  131. data/spec/models/musical_features_dto_spec.rb +121 -121
  132. data/spec/models/p_line_dto_spec.rb +1 -1
  133. data/spec/models/party_large_dto_spec.rb +1 -1
  134. data/spec/models/party_small_dto_spec.rb +1 -1
  135. data/spec/models/playlist_large_dto_spec.rb +9 -9
  136. data/spec/models/product_medium_dto_spec.rb +9 -9
  137. data/spec/models/product_party_dto_spec.rb +3 -3
  138. data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
  139. data/spec/models/recording_genre_prediction_dto_spec.rb +4 -4
  140. data/spec/models/recording_large_dto_spec.rb +11 -11
  141. data/spec/models/recording_list_dto_spec.rb +1 -1
  142. data/spec/models/recording_medium_dto_spec.rb +4 -4
  143. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +1 -1
  144. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
  145. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
  146. data/spec/models/recording_party_dto_spec.rb +3 -3
  147. data/spec/models/recording_playlist_dto_spec.rb +4 -4
  148. data/spec/models/recording_small_dto_spec.rb +1 -1
  149. data/spec/models/recording_tag_small_dto_spec.rb +1 -1
  150. data/spec/models/save_file_recording_dto_spec.rb +1 -1
  151. data/spec/models/save_playlist_dto_spec.rb +1 -1
  152. data/spec/models/save_recording_genre_dto_spec.rb +1 -1
  153. data/spec/models/save_recording_party_dto_spec.rb +1 -1
  154. data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
  155. data/spec/models/save_recording_tag_dto_spec.rb +1 -1
  156. data/spec/models/save_referrer_dto_spec.rb +1 -1
  157. data/spec/models/save_taggrams_dto_spec.rb +1 -1
  158. data/spec/models/save_user_dto_spec.rb +1 -1
  159. data/spec/models/search_filter_values_dto_spec.rb +1 -1
  160. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
  161. data/spec/models/search_recording_granular_dto_spec.rb +1 -1
  162. data/spec/models/sign_up_dto_spec.rb +1 -1
  163. data/spec/models/tag_dto_spec.rb +1 -1
  164. data/spec/models/tag_small_dto_spec.rb +1 -1
  165. data/spec/models/taggram_dto_spec.rb +1 -1
  166. data/spec/models/tags_summary_dto_spec.rb +1 -1
  167. data/spec/models/tagstrength_dto_spec.rb +1 -1
  168. data/spec/models/title_dto_spec.rb +1 -1
  169. data/spec/models/token_request_spec.rb +1 -1
  170. data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
  171. data/spec/models/update_password_dto_spec.rb +1 -1
  172. data/spec/models/usage_dto_spec.rb +1 -1
  173. data/spec/models/user_dto_spec.rb +7 -1
  174. data/spec/spec_helper.rb +1 -1
  175. metadata +72 -56
@@ -3,7 +3,7 @@
3
3
 
4
4
  #This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
5
5
 
6
- The version of the OpenAPI document: 1.12.22
6
+ The version of the OpenAPI document: 1.12.23
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.0-SNAPSHOT
@@ -19,32 +19,7 @@ module SongtradrApiClientRuby
19
19
  # Search for space
20
20
  attr_accessor :space
21
21
 
22
- # Search for an arousal
23
- attr_accessor :arousal
24
-
25
- # Search for a dominant instrument
26
- attr_accessor :dominant_instrument
27
-
28
- # Search for energy
29
- attr_accessor :energy
30
-
31
- # Search for an engagement
32
- attr_accessor :engagement
33
-
34
- # Search for groovyness
35
- attr_accessor :groovyness
36
-
37
- # Search for a degree of harmoniousness
38
- attr_accessor :harmony
39
-
40
- # Search for pleasantness
41
- attr_accessor :pleasantness
42
-
43
- # Search for a language of the lyrics
44
- attr_accessor :primary_mood_cluster
45
-
46
- # Search for a sound character
47
- attr_accessor :primary_sound_character
22
+ attr_accessor :language_of_performance
48
23
 
49
24
  # Search for rhythm
50
25
  attr_accessor :rhythm
@@ -79,7 +54,20 @@ module SongtradrApiClientRuby
79
54
  # Search for origin decade
80
55
  attr_accessor :origin_decade
81
56
 
82
- attr_accessor :language_of_performance
57
+ # Search for curatebility
58
+ attr_accessor :curateability
59
+
60
+ # Search for use case
61
+ attr_accessor :use_case
62
+
63
+ # Search for social media suitability
64
+ attr_accessor :channel_suitability
65
+
66
+ attr_accessor :tertiary_instrument_affinity
67
+
68
+ attr_accessor :sound_generation_affinity
69
+
70
+ attr_accessor :rhythm_affinity
83
71
 
84
72
  attr_accessor :primary_sound_character_affinity
85
73
 
@@ -137,6 +125,33 @@ module SongtradrApiClientRuby
137
125
 
138
126
  attr_accessor :use_case_affinity
139
127
 
128
+ # Search for an arousal
129
+ attr_accessor :arousal
130
+
131
+ # Search for a dominant instrument
132
+ attr_accessor :dominant_instrument
133
+
134
+ # Search for energy
135
+ attr_accessor :energy
136
+
137
+ # Search for an engagement
138
+ attr_accessor :engagement
139
+
140
+ # Search for groovyness
141
+ attr_accessor :groovyness
142
+
143
+ # Search for a degree of harmoniousness
144
+ attr_accessor :harmony
145
+
146
+ # Search for pleasantness
147
+ attr_accessor :pleasantness
148
+
149
+ # Search for a language of the lyrics
150
+ attr_accessor :primary_mood_cluster
151
+
152
+ # Search for a sound character
153
+ attr_accessor :primary_sound_character
154
+
140
155
  # Search for Industry suitability
141
156
  attr_accessor :industry_suitability
142
157
 
@@ -144,15 +159,6 @@ module SongtradrApiClientRuby
144
159
 
145
160
  attr_accessor :audience_region
146
161
 
147
- # Search for curatebility
148
- attr_accessor :curateability
149
-
150
- # Search for use case
151
- attr_accessor :use_case
152
-
153
- # Search for social media suitability
154
- attr_accessor :channel_suitability
155
-
156
162
  attr_accessor :primary_mood_cluster_affinity
157
163
 
158
164
  # Search for a language of the lyrics
@@ -177,12 +183,6 @@ module SongtradrApiClientRuby
177
183
  # Search for a dominant instrument
178
184
  attr_accessor :tertiary_instrument
179
185
 
180
- attr_accessor :tertiary_instrument_affinity
181
-
182
- attr_accessor :sound_generation_affinity
183
-
184
- attr_accessor :rhythm_affinity
185
-
186
186
  attr_accessor :valence_affinity
187
187
 
188
188
  attr_accessor :arousal_affinity
@@ -242,15 +242,7 @@ module SongtradrApiClientRuby
242
242
  def self.attribute_map
243
243
  {
244
244
  :'space' => :'space',
245
- :'arousal' => :'arousal',
246
- :'dominant_instrument' => :'dominantInstrument',
247
- :'energy' => :'energy',
248
- :'engagement' => :'engagement',
249
- :'groovyness' => :'groovyness',
250
- :'harmony' => :'harmony',
251
- :'pleasantness' => :'pleasantness',
252
- :'primary_mood_cluster' => :'primaryMoodCluster',
253
- :'primary_sound_character' => :'primarySoundCharacter',
245
+ :'language_of_performance' => :'languageOfPerformance',
254
246
  :'rhythm' => :'rhythm',
255
247
  :'roughness' => :'roughness',
256
248
  :'scale' => :'scale',
@@ -262,7 +254,12 @@ module SongtradrApiClientRuby
262
254
  :'valence' => :'valence',
263
255
  :'vocals' => :'vocals',
264
256
  :'origin_decade' => :'originDecade',
265
- :'language_of_performance' => :'languageOfPerformance',
257
+ :'curateability' => :'curateability',
258
+ :'use_case' => :'useCase',
259
+ :'channel_suitability' => :'channelSuitability',
260
+ :'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
261
+ :'sound_generation_affinity' => :'soundGenerationAffinity',
262
+ :'rhythm_affinity' => :'rhythmAffinity',
266
263
  :'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
267
264
  :'tonality_affinity' => :'tonalityAffinity',
268
265
  :'bpm' => :'bpm',
@@ -291,12 +288,18 @@ module SongtradrApiClientRuby
291
288
  :'language_of_performance_affinity' => :'languageOfPerformanceAffinity',
292
289
  :'curateability_affinity' => :'curateabilityAffinity',
293
290
  :'use_case_affinity' => :'useCaseAffinity',
291
+ :'arousal' => :'arousal',
292
+ :'dominant_instrument' => :'dominantInstrument',
293
+ :'energy' => :'energy',
294
+ :'engagement' => :'engagement',
295
+ :'groovyness' => :'groovyness',
296
+ :'harmony' => :'harmony',
297
+ :'pleasantness' => :'pleasantness',
298
+ :'primary_mood_cluster' => :'primaryMoodCluster',
299
+ :'primary_sound_character' => :'primarySoundCharacter',
294
300
  :'industry_suitability' => :'industrySuitability',
295
301
  :'industry_suitability_affinity' => :'industrySuitabilityAffinity',
296
302
  :'audience_region' => :'audienceRegion',
297
- :'curateability' => :'curateability',
298
- :'use_case' => :'useCase',
299
- :'channel_suitability' => :'channelSuitability',
300
303
  :'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
301
304
  :'secondary_mood_cluster' => :'secondaryMoodCluster',
302
305
  :'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
@@ -307,9 +310,6 @@ module SongtradrApiClientRuby
307
310
  :'secondary_instrument' => :'secondaryInstrument',
308
311
  :'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
309
312
  :'tertiary_instrument' => :'tertiaryInstrument',
310
- :'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
311
- :'sound_generation_affinity' => :'soundGenerationAffinity',
312
- :'rhythm_affinity' => :'rhythmAffinity',
313
313
  :'valence_affinity' => :'valenceAffinity',
314
314
  :'arousal_affinity' => :'arousalAffinity',
315
315
  :'pleasantness_affinity' => :'pleasantnessAffinity',
@@ -338,15 +338,7 @@ module SongtradrApiClientRuby
338
338
  def self.openapi_types
339
339
  {
340
340
  :'space' => :'String',
341
- :'arousal' => :'String',
342
- :'dominant_instrument' => :'String',
343
- :'energy' => :'String',
344
- :'engagement' => :'String',
345
- :'groovyness' => :'String',
346
- :'harmony' => :'String',
347
- :'pleasantness' => :'String',
348
- :'primary_mood_cluster' => :'String',
349
- :'primary_sound_character' => :'String',
341
+ :'language_of_performance' => :'String',
350
342
  :'rhythm' => :'String',
351
343
  :'roughness' => :'String',
352
344
  :'scale' => :'String',
@@ -358,7 +350,12 @@ module SongtradrApiClientRuby
358
350
  :'valence' => :'String',
359
351
  :'vocals' => :'String',
360
352
  :'origin_decade' => :'String',
361
- :'language_of_performance' => :'String',
353
+ :'curateability' => :'String',
354
+ :'use_case' => :'String',
355
+ :'channel_suitability' => :'String',
356
+ :'tertiary_instrument_affinity' => :'Float',
357
+ :'sound_generation_affinity' => :'Float',
358
+ :'rhythm_affinity' => :'Float',
362
359
  :'primary_sound_character_affinity' => :'Float',
363
360
  :'tonality_affinity' => :'Float',
364
361
  :'bpm' => :'Float',
@@ -387,12 +384,18 @@ module SongtradrApiClientRuby
387
384
  :'language_of_performance_affinity' => :'Float',
388
385
  :'curateability_affinity' => :'Float',
389
386
  :'use_case_affinity' => :'Float',
387
+ :'arousal' => :'String',
388
+ :'dominant_instrument' => :'String',
389
+ :'energy' => :'String',
390
+ :'engagement' => :'String',
391
+ :'groovyness' => :'String',
392
+ :'harmony' => :'String',
393
+ :'pleasantness' => :'String',
394
+ :'primary_mood_cluster' => :'String',
395
+ :'primary_sound_character' => :'String',
390
396
  :'industry_suitability' => :'String',
391
397
  :'industry_suitability_affinity' => :'Float',
392
398
  :'audience_region' => :'String',
393
- :'curateability' => :'String',
394
- :'use_case' => :'String',
395
- :'channel_suitability' => :'String',
396
399
  :'primary_mood_cluster_affinity' => :'Float',
397
400
  :'secondary_mood_cluster' => :'String',
398
401
  :'secondary_mood_cluster_affinity' => :'Float',
@@ -403,9 +406,6 @@ module SongtradrApiClientRuby
403
406
  :'secondary_instrument' => :'String',
404
407
  :'secondary_instrument_affinity' => :'Float',
405
408
  :'tertiary_instrument' => :'String',
406
- :'tertiary_instrument_affinity' => :'Float',
407
- :'sound_generation_affinity' => :'Float',
408
- :'rhythm_affinity' => :'Float',
409
409
  :'valence_affinity' => :'Float',
410
410
  :'arousal_affinity' => :'Float',
411
411
  :'pleasantness_affinity' => :'Float',
@@ -450,40 +450,8 @@ module SongtradrApiClientRuby
450
450
  self.space = attributes[:'space']
451
451
  end
452
452
 
453
- if attributes.key?(:'arousal')
454
- self.arousal = attributes[:'arousal']
455
- end
456
-
457
- if attributes.key?(:'dominant_instrument')
458
- self.dominant_instrument = attributes[:'dominant_instrument']
459
- end
460
-
461
- if attributes.key?(:'energy')
462
- self.energy = attributes[:'energy']
463
- end
464
-
465
- if attributes.key?(:'engagement')
466
- self.engagement = attributes[:'engagement']
467
- end
468
-
469
- if attributes.key?(:'groovyness')
470
- self.groovyness = attributes[:'groovyness']
471
- end
472
-
473
- if attributes.key?(:'harmony')
474
- self.harmony = attributes[:'harmony']
475
- end
476
-
477
- if attributes.key?(:'pleasantness')
478
- self.pleasantness = attributes[:'pleasantness']
479
- end
480
-
481
- if attributes.key?(:'primary_mood_cluster')
482
- self.primary_mood_cluster = attributes[:'primary_mood_cluster']
483
- end
484
-
485
- if attributes.key?(:'primary_sound_character')
486
- self.primary_sound_character = attributes[:'primary_sound_character']
453
+ if attributes.key?(:'language_of_performance')
454
+ self.language_of_performance = attributes[:'language_of_performance']
487
455
  end
488
456
 
489
457
  if attributes.key?(:'rhythm')
@@ -530,8 +498,28 @@ module SongtradrApiClientRuby
530
498
  self.origin_decade = attributes[:'origin_decade']
531
499
  end
532
500
 
533
- if attributes.key?(:'language_of_performance')
534
- self.language_of_performance = attributes[:'language_of_performance']
501
+ if attributes.key?(:'curateability')
502
+ self.curateability = attributes[:'curateability']
503
+ end
504
+
505
+ if attributes.key?(:'use_case')
506
+ self.use_case = attributes[:'use_case']
507
+ end
508
+
509
+ if attributes.key?(:'channel_suitability')
510
+ self.channel_suitability = attributes[:'channel_suitability']
511
+ end
512
+
513
+ if attributes.key?(:'tertiary_instrument_affinity')
514
+ self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
515
+ end
516
+
517
+ if attributes.key?(:'sound_generation_affinity')
518
+ self.sound_generation_affinity = attributes[:'sound_generation_affinity']
519
+ end
520
+
521
+ if attributes.key?(:'rhythm_affinity')
522
+ self.rhythm_affinity = attributes[:'rhythm_affinity']
535
523
  end
536
524
 
537
525
  if attributes.key?(:'primary_sound_character_affinity')
@@ -646,28 +634,52 @@ module SongtradrApiClientRuby
646
634
  self.use_case_affinity = attributes[:'use_case_affinity']
647
635
  end
648
636
 
649
- if attributes.key?(:'industry_suitability')
650
- self.industry_suitability = attributes[:'industry_suitability']
637
+ if attributes.key?(:'arousal')
638
+ self.arousal = attributes[:'arousal']
651
639
  end
652
640
 
653
- if attributes.key?(:'industry_suitability_affinity')
654
- self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
641
+ if attributes.key?(:'dominant_instrument')
642
+ self.dominant_instrument = attributes[:'dominant_instrument']
655
643
  end
656
644
 
657
- if attributes.key?(:'audience_region')
658
- self.audience_region = attributes[:'audience_region']
645
+ if attributes.key?(:'energy')
646
+ self.energy = attributes[:'energy']
659
647
  end
660
648
 
661
- if attributes.key?(:'curateability')
662
- self.curateability = attributes[:'curateability']
649
+ if attributes.key?(:'engagement')
650
+ self.engagement = attributes[:'engagement']
663
651
  end
664
652
 
665
- if attributes.key?(:'use_case')
666
- self.use_case = attributes[:'use_case']
653
+ if attributes.key?(:'groovyness')
654
+ self.groovyness = attributes[:'groovyness']
667
655
  end
668
656
 
669
- if attributes.key?(:'channel_suitability')
670
- self.channel_suitability = attributes[:'channel_suitability']
657
+ if attributes.key?(:'harmony')
658
+ self.harmony = attributes[:'harmony']
659
+ end
660
+
661
+ if attributes.key?(:'pleasantness')
662
+ self.pleasantness = attributes[:'pleasantness']
663
+ end
664
+
665
+ if attributes.key?(:'primary_mood_cluster')
666
+ self.primary_mood_cluster = attributes[:'primary_mood_cluster']
667
+ end
668
+
669
+ if attributes.key?(:'primary_sound_character')
670
+ self.primary_sound_character = attributes[:'primary_sound_character']
671
+ end
672
+
673
+ if attributes.key?(:'industry_suitability')
674
+ self.industry_suitability = attributes[:'industry_suitability']
675
+ end
676
+
677
+ if attributes.key?(:'industry_suitability_affinity')
678
+ self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
679
+ end
680
+
681
+ if attributes.key?(:'audience_region')
682
+ self.audience_region = attributes[:'audience_region']
671
683
  end
672
684
 
673
685
  if attributes.key?(:'primary_mood_cluster_affinity')
@@ -710,18 +722,6 @@ module SongtradrApiClientRuby
710
722
  self.tertiary_instrument = attributes[:'tertiary_instrument']
711
723
  end
712
724
 
713
- if attributes.key?(:'tertiary_instrument_affinity')
714
- self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
715
- end
716
-
717
- if attributes.key?(:'sound_generation_affinity')
718
- self.sound_generation_affinity = attributes[:'sound_generation_affinity']
719
- end
720
-
721
- if attributes.key?(:'rhythm_affinity')
722
- self.rhythm_affinity = attributes[:'rhythm_affinity']
723
- end
724
-
725
725
  if attributes.key?(:'valence_affinity')
726
726
  self.valence_affinity = attributes[:'valence_affinity']
727
727
  end
@@ -799,24 +799,8 @@ module SongtradrApiClientRuby
799
799
  def valid?
800
800
  space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
801
801
  return false unless space_validator.valid?(@space)
802
- arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
803
- return false unless arousal_validator.valid?(@arousal)
804
- dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
805
- return false unless dominant_instrument_validator.valid?(@dominant_instrument)
806
- energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
807
- return false unless energy_validator.valid?(@energy)
808
- engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
809
- return false unless engagement_validator.valid?(@engagement)
810
- groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
811
- return false unless groovyness_validator.valid?(@groovyness)
812
- harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
813
- return false unless harmony_validator.valid?(@harmony)
814
- pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
815
- return false unless pleasantness_validator.valid?(@pleasantness)
816
- primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
817
- return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
818
- primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
819
- return false unless primary_sound_character_validator.valid?(@primary_sound_character)
802
+ language_of_performance_validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
803
+ return false unless language_of_performance_validator.valid?(@language_of_performance)
820
804
  rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
821
805
  return false unless rhythm_validator.valid?(@rhythm)
822
806
  roughness_validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
@@ -839,8 +823,12 @@ module SongtradrApiClientRuby
839
823
  return false unless vocals_validator.valid?(@vocals)
840
824
  origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
841
825
  return false unless origin_decade_validator.valid?(@origin_decade)
842
- language_of_performance_validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
843
- return false unless language_of_performance_validator.valid?(@language_of_performance)
826
+ curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
827
+ return false unless curateability_validator.valid?(@curateability)
828
+ use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
829
+ return false unless use_case_validator.valid?(@use_case)
830
+ channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
831
+ return false unless channel_suitability_validator.valid?(@channel_suitability)
844
832
  production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
845
833
  return false unless production_rating_validator.valid?(@production_rating)
846
834
  performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
@@ -861,16 +849,28 @@ module SongtradrApiClientRuby
861
849
  return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
862
850
  origin_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
863
851
  return false unless origin_region_validator.valid?(@origin_region)
852
+ arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
853
+ return false unless arousal_validator.valid?(@arousal)
854
+ dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
855
+ return false unless dominant_instrument_validator.valid?(@dominant_instrument)
856
+ energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
857
+ return false unless energy_validator.valid?(@energy)
858
+ engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
859
+ return false unless engagement_validator.valid?(@engagement)
860
+ groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
861
+ return false unless groovyness_validator.valid?(@groovyness)
862
+ harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
863
+ return false unless harmony_validator.valid?(@harmony)
864
+ pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
865
+ return false unless pleasantness_validator.valid?(@pleasantness)
866
+ primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
867
+ return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
868
+ primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
869
+ return false unless primary_sound_character_validator.valid?(@primary_sound_character)
864
870
  industry_suitability_validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
865
871
  return false unless industry_suitability_validator.valid?(@industry_suitability)
866
872
  audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
867
873
  return false unless audience_region_validator.valid?(@audience_region)
868
- curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
869
- return false unless curateability_validator.valid?(@curateability)
870
- use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
871
- return false unless use_case_validator.valid?(@use_case)
872
- channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
873
- return false unless channel_suitability_validator.valid?(@channel_suitability)
874
874
  secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
875
875
  return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
876
876
  tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
@@ -895,93 +895,13 @@ module SongtradrApiClientRuby
895
895
  end
896
896
 
897
897
  # Custom attribute writer method checking allowed values (enum).
898
- # @param [Object] arousal Object to be assigned
899
- def arousal=(arousal)
900
- validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
901
- unless validator.valid?(arousal)
902
- fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
903
- end
904
- @arousal = arousal
905
- end
906
-
907
- # Custom attribute writer method checking allowed values (enum).
908
- # @param [Object] dominant_instrument Object to be assigned
909
- def dominant_instrument=(dominant_instrument)
910
- validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
911
- unless validator.valid?(dominant_instrument)
912
- fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
913
- end
914
- @dominant_instrument = dominant_instrument
915
- end
916
-
917
- # Custom attribute writer method checking allowed values (enum).
918
- # @param [Object] energy Object to be assigned
919
- def energy=(energy)
920
- validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
921
- unless validator.valid?(energy)
922
- fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
923
- end
924
- @energy = energy
925
- end
926
-
927
- # Custom attribute writer method checking allowed values (enum).
928
- # @param [Object] engagement Object to be assigned
929
- def engagement=(engagement)
930
- validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
931
- unless validator.valid?(engagement)
932
- fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
933
- end
934
- @engagement = engagement
935
- end
936
-
937
- # Custom attribute writer method checking allowed values (enum).
938
- # @param [Object] groovyness Object to be assigned
939
- def groovyness=(groovyness)
940
- validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
941
- unless validator.valid?(groovyness)
942
- fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
943
- end
944
- @groovyness = groovyness
945
- end
946
-
947
- # Custom attribute writer method checking allowed values (enum).
948
- # @param [Object] harmony Object to be assigned
949
- def harmony=(harmony)
950
- validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
951
- unless validator.valid?(harmony)
952
- fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
953
- end
954
- @harmony = harmony
955
- end
956
-
957
- # Custom attribute writer method checking allowed values (enum).
958
- # @param [Object] pleasantness Object to be assigned
959
- def pleasantness=(pleasantness)
960
- validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
961
- unless validator.valid?(pleasantness)
962
- fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
963
- end
964
- @pleasantness = pleasantness
965
- end
966
-
967
- # Custom attribute writer method checking allowed values (enum).
968
- # @param [Object] primary_mood_cluster Object to be assigned
969
- def primary_mood_cluster=(primary_mood_cluster)
970
- validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
971
- unless validator.valid?(primary_mood_cluster)
972
- fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
973
- end
974
- @primary_mood_cluster = primary_mood_cluster
975
- end
976
-
977
- # Custom attribute writer method checking allowed values (enum).
978
- # @param [Object] primary_sound_character Object to be assigned
979
- def primary_sound_character=(primary_sound_character)
980
- validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
981
- unless validator.valid?(primary_sound_character)
982
- fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
898
+ # @param [Object] language_of_performance Object to be assigned
899
+ def language_of_performance=(language_of_performance)
900
+ validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
901
+ unless validator.valid?(language_of_performance)
902
+ fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
983
903
  end
984
- @primary_sound_character = primary_sound_character
904
+ @language_of_performance = language_of_performance
985
905
  end
986
906
 
987
907
  # Custom attribute writer method checking allowed values (enum).
@@ -1095,13 +1015,33 @@ module SongtradrApiClientRuby
1095
1015
  end
1096
1016
 
1097
1017
  # Custom attribute writer method checking allowed values (enum).
1098
- # @param [Object] language_of_performance Object to be assigned
1099
- def language_of_performance=(language_of_performance)
1100
- validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
1101
- unless validator.valid?(language_of_performance)
1102
- fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
1018
+ # @param [Object] curateability Object to be assigned
1019
+ def curateability=(curateability)
1020
+ validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
1021
+ unless validator.valid?(curateability)
1022
+ fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
1103
1023
  end
1104
- @language_of_performance = language_of_performance
1024
+ @curateability = curateability
1025
+ end
1026
+
1027
+ # Custom attribute writer method checking allowed values (enum).
1028
+ # @param [Object] use_case Object to be assigned
1029
+ def use_case=(use_case)
1030
+ validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
1031
+ unless validator.valid?(use_case)
1032
+ fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
1033
+ end
1034
+ @use_case = use_case
1035
+ end
1036
+
1037
+ # Custom attribute writer method checking allowed values (enum).
1038
+ # @param [Object] channel_suitability Object to be assigned
1039
+ def channel_suitability=(channel_suitability)
1040
+ validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
1041
+ unless validator.valid?(channel_suitability)
1042
+ fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
1043
+ end
1044
+ @channel_suitability = channel_suitability
1105
1045
  end
1106
1046
 
1107
1047
  # Custom attribute writer method checking allowed values (enum).
@@ -1205,53 +1145,113 @@ module SongtradrApiClientRuby
1205
1145
  end
1206
1146
 
1207
1147
  # Custom attribute writer method checking allowed values (enum).
1208
- # @param [Object] industry_suitability Object to be assigned
1209
- def industry_suitability=(industry_suitability)
1210
- validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
1211
- unless validator.valid?(industry_suitability)
1212
- fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
1148
+ # @param [Object] arousal Object to be assigned
1149
+ def arousal=(arousal)
1150
+ validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
1151
+ unless validator.valid?(arousal)
1152
+ fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
1213
1153
  end
1214
- @industry_suitability = industry_suitability
1154
+ @arousal = arousal
1215
1155
  end
1216
1156
 
1217
1157
  # Custom attribute writer method checking allowed values (enum).
1218
- # @param [Object] audience_region Object to be assigned
1219
- def audience_region=(audience_region)
1220
- validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
1221
- unless validator.valid?(audience_region)
1222
- fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
1158
+ # @param [Object] dominant_instrument Object to be assigned
1159
+ def dominant_instrument=(dominant_instrument)
1160
+ validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
1161
+ unless validator.valid?(dominant_instrument)
1162
+ fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
1223
1163
  end
1224
- @audience_region = audience_region
1164
+ @dominant_instrument = dominant_instrument
1225
1165
  end
1226
1166
 
1227
1167
  # Custom attribute writer method checking allowed values (enum).
1228
- # @param [Object] curateability Object to be assigned
1229
- def curateability=(curateability)
1230
- validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
1231
- unless validator.valid?(curateability)
1232
- fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
1168
+ # @param [Object] energy Object to be assigned
1169
+ def energy=(energy)
1170
+ validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
1171
+ unless validator.valid?(energy)
1172
+ fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
1233
1173
  end
1234
- @curateability = curateability
1174
+ @energy = energy
1235
1175
  end
1236
1176
 
1237
1177
  # Custom attribute writer method checking allowed values (enum).
1238
- # @param [Object] use_case Object to be assigned
1239
- def use_case=(use_case)
1240
- validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
1241
- unless validator.valid?(use_case)
1242
- fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
1178
+ # @param [Object] engagement Object to be assigned
1179
+ def engagement=(engagement)
1180
+ validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
1181
+ unless validator.valid?(engagement)
1182
+ fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
1243
1183
  end
1244
- @use_case = use_case
1184
+ @engagement = engagement
1245
1185
  end
1246
1186
 
1247
1187
  # Custom attribute writer method checking allowed values (enum).
1248
- # @param [Object] channel_suitability Object to be assigned
1249
- def channel_suitability=(channel_suitability)
1250
- validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
1251
- unless validator.valid?(channel_suitability)
1252
- fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
1188
+ # @param [Object] groovyness Object to be assigned
1189
+ def groovyness=(groovyness)
1190
+ validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
1191
+ unless validator.valid?(groovyness)
1192
+ fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
1253
1193
  end
1254
- @channel_suitability = channel_suitability
1194
+ @groovyness = groovyness
1195
+ end
1196
+
1197
+ # Custom attribute writer method checking allowed values (enum).
1198
+ # @param [Object] harmony Object to be assigned
1199
+ def harmony=(harmony)
1200
+ validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
1201
+ unless validator.valid?(harmony)
1202
+ fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
1203
+ end
1204
+ @harmony = harmony
1205
+ end
1206
+
1207
+ # Custom attribute writer method checking allowed values (enum).
1208
+ # @param [Object] pleasantness Object to be assigned
1209
+ def pleasantness=(pleasantness)
1210
+ validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
1211
+ unless validator.valid?(pleasantness)
1212
+ fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
1213
+ end
1214
+ @pleasantness = pleasantness
1215
+ end
1216
+
1217
+ # Custom attribute writer method checking allowed values (enum).
1218
+ # @param [Object] primary_mood_cluster Object to be assigned
1219
+ def primary_mood_cluster=(primary_mood_cluster)
1220
+ validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
1221
+ unless validator.valid?(primary_mood_cluster)
1222
+ fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
1223
+ end
1224
+ @primary_mood_cluster = primary_mood_cluster
1225
+ end
1226
+
1227
+ # Custom attribute writer method checking allowed values (enum).
1228
+ # @param [Object] primary_sound_character Object to be assigned
1229
+ def primary_sound_character=(primary_sound_character)
1230
+ validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
1231
+ unless validator.valid?(primary_sound_character)
1232
+ fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
1233
+ end
1234
+ @primary_sound_character = primary_sound_character
1235
+ end
1236
+
1237
+ # Custom attribute writer method checking allowed values (enum).
1238
+ # @param [Object] industry_suitability Object to be assigned
1239
+ def industry_suitability=(industry_suitability)
1240
+ validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
1241
+ unless validator.valid?(industry_suitability)
1242
+ fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
1243
+ end
1244
+ @industry_suitability = industry_suitability
1245
+ end
1246
+
1247
+ # Custom attribute writer method checking allowed values (enum).
1248
+ # @param [Object] audience_region Object to be assigned
1249
+ def audience_region=(audience_region)
1250
+ validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
1251
+ unless validator.valid?(audience_region)
1252
+ fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
1253
+ end
1254
+ @audience_region = audience_region
1255
1255
  end
1256
1256
 
1257
1257
  # Custom attribute writer method checking allowed values (enum).
@@ -1310,15 +1310,7 @@ module SongtradrApiClientRuby
1310
1310
  return true if self.equal?(o)
1311
1311
  self.class == o.class &&
1312
1312
  space == o.space &&
1313
- arousal == o.arousal &&
1314
- dominant_instrument == o.dominant_instrument &&
1315
- energy == o.energy &&
1316
- engagement == o.engagement &&
1317
- groovyness == o.groovyness &&
1318
- harmony == o.harmony &&
1319
- pleasantness == o.pleasantness &&
1320
- primary_mood_cluster == o.primary_mood_cluster &&
1321
- primary_sound_character == o.primary_sound_character &&
1313
+ language_of_performance == o.language_of_performance &&
1322
1314
  rhythm == o.rhythm &&
1323
1315
  roughness == o.roughness &&
1324
1316
  scale == o.scale &&
@@ -1330,7 +1322,12 @@ module SongtradrApiClientRuby
1330
1322
  valence == o.valence &&
1331
1323
  vocals == o.vocals &&
1332
1324
  origin_decade == o.origin_decade &&
1333
- language_of_performance == o.language_of_performance &&
1325
+ curateability == o.curateability &&
1326
+ use_case == o.use_case &&
1327
+ channel_suitability == o.channel_suitability &&
1328
+ tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
1329
+ sound_generation_affinity == o.sound_generation_affinity &&
1330
+ rhythm_affinity == o.rhythm_affinity &&
1334
1331
  primary_sound_character_affinity == o.primary_sound_character_affinity &&
1335
1332
  tonality_affinity == o.tonality_affinity &&
1336
1333
  bpm == o.bpm &&
@@ -1359,12 +1356,18 @@ module SongtradrApiClientRuby
1359
1356
  language_of_performance_affinity == o.language_of_performance_affinity &&
1360
1357
  curateability_affinity == o.curateability_affinity &&
1361
1358
  use_case_affinity == o.use_case_affinity &&
1359
+ arousal == o.arousal &&
1360
+ dominant_instrument == o.dominant_instrument &&
1361
+ energy == o.energy &&
1362
+ engagement == o.engagement &&
1363
+ groovyness == o.groovyness &&
1364
+ harmony == o.harmony &&
1365
+ pleasantness == o.pleasantness &&
1366
+ primary_mood_cluster == o.primary_mood_cluster &&
1367
+ primary_sound_character == o.primary_sound_character &&
1362
1368
  industry_suitability == o.industry_suitability &&
1363
1369
  industry_suitability_affinity == o.industry_suitability_affinity &&
1364
1370
  audience_region == o.audience_region &&
1365
- curateability == o.curateability &&
1366
- use_case == o.use_case &&
1367
- channel_suitability == o.channel_suitability &&
1368
1371
  primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
1369
1372
  secondary_mood_cluster == o.secondary_mood_cluster &&
1370
1373
  secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
@@ -1375,9 +1378,6 @@ module SongtradrApiClientRuby
1375
1378
  secondary_instrument == o.secondary_instrument &&
1376
1379
  secondary_instrument_affinity == o.secondary_instrument_affinity &&
1377
1380
  tertiary_instrument == o.tertiary_instrument &&
1378
- tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
1379
- sound_generation_affinity == o.sound_generation_affinity &&
1380
- rhythm_affinity == o.rhythm_affinity &&
1381
1381
  valence_affinity == o.valence_affinity &&
1382
1382
  arousal_affinity == o.arousal_affinity &&
1383
1383
  pleasantness_affinity == o.pleasantness_affinity &&
@@ -1405,7 +1405,7 @@ module SongtradrApiClientRuby
1405
1405
  # Calculates hash code according to all attributes.
1406
1406
  # @return [Integer] Hash code
1407
1407
  def hash
1408
- [space, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, language_of_performance, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity, audience_region, curateability, use_case, channel_suitability, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
1408
+ [space, language_of_performance, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, industry_suitability, industry_suitability_affinity, audience_region, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
1409
1409
  end
1410
1410
 
1411
1411
  # Builds the object from hash