songtradr_api_client_ruby 1.13.3 → 1.13.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +48 -5
  4. data/docs/AdminApiCreateUserDTO.md +76 -0
  5. data/docs/AdminApiUpdateUserDTO.md +76 -0
  6. data/docs/AdminUsersControllerApi.md +355 -0
  7. data/docs/AgeRange.md +20 -0
  8. data/docs/Beard.md +20 -0
  9. data/docs/BoundingBox.md +24 -0
  10. data/docs/ContextValue.md +18 -0
  11. data/docs/CuratePlaylistDTO.md +26 -0
  12. data/docs/CuratePlaylistResponseDTO.md +18 -0
  13. data/docs/DominantColor.md +30 -0
  14. data/docs/Emotion.md +20 -0
  15. data/docs/EyeDirection.md +22 -0
  16. data/docs/EyeOpen.md +20 -0
  17. data/docs/Eyeglasses.md +20 -0
  18. data/docs/FaceDetail.md +50 -0
  19. data/docs/FaceDetection.md +20 -0
  20. data/docs/FaceOccluded.md +20 -0
  21. data/docs/FileSmallDTO.md +5 -5
  22. data/docs/Gender.md +20 -0
  23. data/docs/ImageQuality.md +20 -0
  24. data/docs/ImageRecognitionResponse.md +20 -0
  25. data/docs/Instance.md +22 -0
  26. data/docs/InternalApiApi.md +149 -0
  27. data/docs/Label.md +28 -0
  28. data/docs/LabelAlias.md +18 -0
  29. data/docs/LabelCategory.md +18 -0
  30. data/docs/LabelDetection.md +26 -0
  31. data/docs/Landmark.md +22 -0
  32. data/docs/MouthOpen.md +20 -0
  33. data/docs/MusicalFeaturesDTO.md +38 -38
  34. data/docs/Mustache.md +20 -0
  35. data/docs/Parent.md +18 -0
  36. data/docs/PlaylistApi.md +70 -0
  37. data/docs/PlaylistLargeDTO.md +5 -5
  38. data/docs/Pose.md +22 -0
  39. data/docs/ProductMediumDTO.md +3 -3
  40. data/docs/RecordingGenrePredictionDTO.md +4 -4
  41. data/docs/RecordingLargeDTO.md +5 -5
  42. data/docs/RecordingMediumDTO.md +2 -2
  43. data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
  44. data/docs/RecordingSmallDTO.md +3 -3
  45. data/docs/SaveFileDTO.md +42 -0
  46. data/docs/SaveFileRecordingDTO.md +5 -1
  47. data/docs/Smile.md +20 -0
  48. data/docs/Sunglasses.md +20 -0
  49. data/docs/UserApi.md +140 -0
  50. data/docs/VideoRecognitionResponse.md +20 -0
  51. data/lib/songtradr_api_client_ruby/api/admin_users_controller_api.rb +346 -0
  52. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
  53. data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +2 -2
  54. data/lib/songtradr_api_client_ruby/api/internal_api_api.rb +169 -0
  55. data/lib/songtradr_api_client_ruby/api/party_api.rb +2 -2
  56. data/lib/songtradr_api_client_ruby/api/playlist_api.rb +79 -2
  57. data/lib/songtradr_api_client_ruby/api/recording_api.rb +2 -2
  58. data/lib/songtradr_api_client_ruby/api/user_api.rb +138 -2
  59. data/lib/songtradr_api_client_ruby/api_client.rb +4 -3
  60. data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
  61. data/lib/songtradr_api_client_ruby/configuration.rb +3 -2
  62. data/lib/songtradr_api_client_ruby/models/admin_api_create_user_dto.rb +489 -0
  63. data/lib/songtradr_api_client_ruby/models/admin_api_update_user_dto.rb +475 -0
  64. data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +2 -2
  65. data/lib/songtradr_api_client_ruby/models/age_range.rb +223 -0
  66. data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +2 -2
  67. data/lib/songtradr_api_client_ruby/models/beard.rb +223 -0
  68. data/lib/songtradr_api_client_ruby/models/bounding_box.rb +241 -0
  69. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
  70. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
  71. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
  72. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
  73. data/lib/songtradr_api_client_ruby/models/context_value.rb +216 -0
  74. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
  75. data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +2 -2
  76. data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +256 -0
  77. data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +216 -0
  78. data/lib/songtradr_api_client_ruby/models/dominant_color.rb +268 -0
  79. data/lib/songtradr_api_client_ruby/models/emotion.rb +223 -0
  80. data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
  81. data/lib/songtradr_api_client_ruby/models/eye_direction.rb +232 -0
  82. data/lib/songtradr_api_client_ruby/models/eye_open.rb +223 -0
  83. data/lib/songtradr_api_client_ruby/models/eyeglasses.rb +223 -0
  84. data/lib/songtradr_api_client_ruby/models/face_detail.rb +362 -0
  85. data/lib/songtradr_api_client_ruby/models/face_detection.rb +223 -0
  86. data/lib/songtradr_api_client_ruby/models/face_occluded.rb +223 -0
  87. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
  88. data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
  89. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
  90. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +2 -2
  91. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +24 -24
  92. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
  93. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
  94. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
  95. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
  96. data/lib/songtradr_api_client_ruby/models/gender.rb +223 -0
  97. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
  98. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
  99. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
  100. data/lib/songtradr_api_client_ruby/models/image_quality.rb +223 -0
  101. data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +227 -0
  102. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
  103. data/lib/songtradr_api_client_ruby/models/instance.rb +234 -0
  104. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
  105. data/lib/songtradr_api_client_ruby/models/label.rb +267 -0
  106. data/lib/songtradr_api_client_ruby/models/label_alias.rb +214 -0
  107. data/lib/songtradr_api_client_ruby/models/label_category.rb +214 -0
  108. data/lib/songtradr_api_client_ruby/models/label_detection.rb +250 -0
  109. data/lib/songtradr_api_client_ruby/models/landmark.rb +232 -0
  110. data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
  111. data/lib/songtradr_api_client_ruby/models/mouth_open.rb +223 -0
  112. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +285 -285
  113. data/lib/songtradr_api_client_ruby/models/mustache.rb +223 -0
  114. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +2 -2
  115. data/lib/songtradr_api_client_ruby/models/parent.rb +214 -0
  116. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +2 -2
  117. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
  118. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +24 -24
  119. data/lib/songtradr_api_client_ruby/models/pose.rb +232 -0
  120. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +15 -15
  121. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +2 -2
  122. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
  123. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +23 -23
  124. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +26 -26
  125. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
  126. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +14 -14
  127. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +17 -17
  128. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
  129. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
  130. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +2 -2
  131. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +2 -2
  132. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +17 -17
  133. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
  134. data/lib/songtradr_api_client_ruby/models/save_file_dto.rb +323 -0
  135. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +30 -12
  136. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +2 -2
  137. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +2 -2
  138. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +2 -2
  139. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +2 -2
  140. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +2 -2
  141. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +2 -2
  142. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +2 -2
  143. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
  144. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +2 -2
  145. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +2 -2
  146. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +2 -2
  147. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
  148. data/lib/songtradr_api_client_ruby/models/smile.rb +223 -0
  149. data/lib/songtradr_api_client_ruby/models/sunglasses.rb +223 -0
  150. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
  151. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
  152. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
  153. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
  154. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
  155. data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
  156. data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
  157. data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
  158. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +2 -2
  159. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
  160. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +2 -2
  161. data/lib/songtradr_api_client_ruby/models/user_dto.rb +2 -2
  162. data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +227 -0
  163. data/lib/songtradr_api_client_ruby/version.rb +3 -3
  164. data/lib/songtradr_api_client_ruby.rb +37 -2
  165. data/openapi-generator-config.yaml +1 -1
  166. data/songtradr_api_client_ruby.gemspec +2 -2
  167. data/spec/api/admin_users_controller_api_spec.rb +93 -0
  168. data/spec/api/allowed_values_api_spec.rb +2 -2
  169. data/spec/api/api_keys_api_spec.rb +2 -2
  170. data/spec/api/internal_api_api_spec.rb +58 -0
  171. data/spec/api/party_api_spec.rb +2 -2
  172. data/spec/api/playlist_api_spec.rb +14 -2
  173. data/spec/api/recording_api_spec.rb +2 -2
  174. data/spec/api/user_api_spec.rb +26 -2
  175. data/spec/api_client_spec.rb +2 -2
  176. data/spec/configuration_spec.rb +2 -2
  177. data/spec/models/admin_api_create_user_dto_spec.rb +210 -0
  178. data/spec/models/admin_api_update_user_dto_spec.rb +210 -0
  179. data/spec/models/admin_api_user_dto_spec.rb +5 -3
  180. data/spec/models/age_range_spec.rb +42 -0
  181. data/spec/models/api_key_dto_spec.rb +5 -3
  182. data/spec/models/beard_spec.rb +42 -0
  183. data/spec/models/bounding_box_spec.rb +54 -0
  184. data/spec/models/category_medium_dto_spec.rb +5 -3
  185. data/spec/models/category_minimal_dto_spec.rb +5 -3
  186. data/spec/models/config_access_dto_spec.rb +5 -3
  187. data/spec/models/config_identifier_dto_spec.rb +5 -3
  188. data/spec/models/context_value_spec.rb +36 -0
  189. data/spec/models/contributor_type_dto_spec.rb +5 -3
  190. data/spec/models/create_api_key_dto_spec.rb +5 -3
  191. data/spec/models/curate_playlist_dto_spec.rb +60 -0
  192. data/spec/models/curate_playlist_response_dto_spec.rb +36 -0
  193. data/spec/models/dominant_color_spec.rb +72 -0
  194. data/spec/models/emotion_spec.rb +42 -0
  195. data/spec/models/error_response_spec.rb +5 -3
  196. data/spec/models/eye_direction_spec.rb +48 -0
  197. data/spec/models/eye_open_spec.rb +42 -0
  198. data/spec/models/eyeglasses_spec.rb +42 -0
  199. data/spec/models/face_detail_spec.rb +132 -0
  200. data/spec/models/face_detection_spec.rb +42 -0
  201. data/spec/models/face_occluded_spec.rb +42 -0
  202. data/spec/models/field_summary_dto_spec.rb +5 -3
  203. data/spec/models/file_dto_spec.rb +5 -3
  204. data/spec/models/file_list_dto_spec.rb +5 -3
  205. data/spec/models/file_minimal_with_url_dto_spec.rb +5 -3
  206. data/spec/models/file_small_dto_spec.rb +17 -15
  207. data/spec/models/file_upload_dto_spec.rb +5 -3
  208. data/spec/models/file_w_ith_url_dto_spec.rb +5 -3
  209. data/spec/models/files_summary_dto_spec.rb +5 -3
  210. data/spec/models/forgot_password_dto_spec.rb +5 -3
  211. data/spec/models/gender_spec.rb +42 -0
  212. data/spec/models/genre_dto_spec.rb +5 -3
  213. data/spec/models/genre_minimal_dto_spec.rb +5 -3
  214. data/spec/models/genres_summary_dto_spec.rb +5 -3
  215. data/spec/models/image_quality_spec.rb +42 -0
  216. data/spec/models/image_recognition_response_spec.rb +42 -0
  217. data/spec/models/init_put_recording_audio_dto_spec.rb +5 -3
  218. data/spec/models/instance_spec.rb +48 -0
  219. data/spec/models/jwt_token_dto_spec.rb +5 -3
  220. data/spec/models/label_alias_spec.rb +36 -0
  221. data/spec/models/label_category_spec.rb +36 -0
  222. data/spec/models/label_detection_spec.rb +60 -0
  223. data/spec/models/label_spec.rb +66 -0
  224. data/spec/models/landmark_spec.rb +48 -0
  225. data/spec/models/login_dto_spec.rb +5 -3
  226. data/spec/models/mouth_open_spec.rb +42 -0
  227. data/spec/models/musical_features_dto_spec.rb +114 -112
  228. data/spec/models/mustache_spec.rb +42 -0
  229. data/spec/models/p_line_dto_spec.rb +5 -3
  230. data/spec/models/parent_spec.rb +36 -0
  231. data/spec/models/party_large_dto_spec.rb +5 -3
  232. data/spec/models/party_small_dto_spec.rb +5 -3
  233. data/spec/models/playlist_large_dto_spec.rb +14 -12
  234. data/spec/models/pose_spec.rb +48 -0
  235. data/spec/models/product_medium_dto_spec.rb +11 -9
  236. data/spec/models/product_party_dto_spec.rb +5 -3
  237. data/spec/models/recording_for_similarity_search_dto_spec.rb +5 -3
  238. data/spec/models/recording_genre_prediction_dto_spec.rb +7 -5
  239. data/spec/models/recording_large_dto_spec.rb +13 -11
  240. data/spec/models/recording_list_dto_spec.rb +5 -3
  241. data/spec/models/recording_medium_dto_spec.rb +10 -8
  242. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +7 -5
  243. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +5 -3
  244. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +5 -3
  245. data/spec/models/recording_party_dto_spec.rb +5 -3
  246. data/spec/models/recording_playlist_dto_spec.rb +5 -3
  247. data/spec/models/recording_small_dto_spec.rb +8 -6
  248. data/spec/models/recording_tag_small_dto_spec.rb +5 -3
  249. data/spec/models/save_file_dto_spec.rb +108 -0
  250. data/spec/models/save_file_recording_dto_spec.rb +20 -6
  251. data/spec/models/save_playlist_dto_spec.rb +5 -3
  252. data/spec/models/save_recording_genre_dto_spec.rb +5 -3
  253. data/spec/models/save_recording_party_dto_spec.rb +5 -3
  254. data/spec/models/save_recording_playlist_dto_spec.rb +5 -3
  255. data/spec/models/save_recording_tag_dto_spec.rb +5 -3
  256. data/spec/models/save_referrer_dto_spec.rb +5 -3
  257. data/spec/models/save_taggrams_dto_spec.rb +5 -3
  258. data/spec/models/save_user_dto_spec.rb +5 -3
  259. data/spec/models/search_filter_values_dto_spec.rb +5 -3
  260. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +5 -3
  261. data/spec/models/search_recording_granular_dto_spec.rb +5 -3
  262. data/spec/models/sign_up_dto_spec.rb +5 -3
  263. data/spec/models/smile_spec.rb +42 -0
  264. data/spec/models/sunglasses_spec.rb +42 -0
  265. data/spec/models/tag_dto_spec.rb +5 -3
  266. data/spec/models/tag_small_dto_spec.rb +5 -3
  267. data/spec/models/taggram_dto_spec.rb +5 -3
  268. data/spec/models/tags_summary_dto_spec.rb +5 -3
  269. data/spec/models/tagstrength_dto_spec.rb +5 -3
  270. data/spec/models/title_dto_spec.rb +5 -3
  271. data/spec/models/token_request_spec.rb +5 -3
  272. data/spec/models/track_dto_spec.rb +5 -3
  273. data/spec/models/track_to_medium_product_dto_spec.rb +5 -3
  274. data/spec/models/update_password_dto_spec.rb +5 -3
  275. data/spec/models/usage_dto_spec.rb +5 -3
  276. data/spec/models/user_dto_spec.rb +5 -3
  277. data/spec/models/video_recognition_response_spec.rb +42 -0
  278. data/spec/spec_helper.rb +2 -2
  279. metadata +201 -61
@@ -3,10 +3,10 @@
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.13.3
6
+ The version of the OpenAPI document: 1.13.5
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -19,8 +19,6 @@ module SongtradrApiClientRuby
19
19
  # Search for space
20
20
  attr_accessor :space
21
21
 
22
- attr_accessor :harmony_affinity
23
-
24
22
  attr_accessor :language_of_performance
25
23
 
26
24
  # Search for an arousal
@@ -65,33 +63,6 @@ module SongtradrApiClientRuby
65
63
  # Search for tempo
66
64
  attr_accessor :tempo
67
65
 
68
- # Search for texture
69
- attr_accessor :texture
70
-
71
- # Search for timbre
72
- attr_accessor :timbre
73
-
74
- # Search for tonality
75
- attr_accessor :tonality
76
-
77
- # Search for a valence
78
- attr_accessor :valence
79
-
80
- # Search for a vocal gender or instrumental songs
81
- attr_accessor :vocals
82
-
83
- # Search for origin decade
84
- attr_accessor :origin_decade
85
-
86
- # Search for curatebility
87
- attr_accessor :curateability
88
-
89
- # Search for use case
90
- attr_accessor :use_case
91
-
92
- # Search for social media suitability
93
- attr_accessor :channel_suitability
94
-
95
66
  attr_accessor :primary_mood_cluster_affinity
96
67
 
97
68
  # Search for a language of the lyrics
@@ -185,36 +156,65 @@ module SongtradrApiClientRuby
185
156
 
186
157
  attr_accessor :audience_region
187
158
 
188
- attr_accessor :arousal_affinity
159
+ # Search for texture
160
+ attr_accessor :texture
189
161
 
190
- attr_accessor :channel_suitability_affinity
162
+ # Search for timbre
163
+ attr_accessor :timbre
191
164
 
192
- # Search for a harmonic key
193
- attr_accessor :key
165
+ # Search for tonality
166
+ attr_accessor :tonality
194
167
 
195
- attr_accessor :energy_affinity
168
+ # Search for a valence
169
+ attr_accessor :valence
196
170
 
197
- attr_accessor :key_affinity
171
+ # Search for a vocal gender or instrumental songs
172
+ attr_accessor :vocals
173
+
174
+ # Search for origin decade
175
+ attr_accessor :origin_decade
176
+
177
+ # Search for curatebility
178
+ attr_accessor :curateability
179
+
180
+ # Search for use case
181
+ attr_accessor :use_case
182
+
183
+ # Search for social media suitability
184
+ attr_accessor :channel_suitability
185
+
186
+ attr_accessor :valence_affinity
187
+
188
+ attr_accessor :arousal_affinity
198
189
 
199
190
  attr_accessor :pleasantness_affinity
200
191
 
201
192
  attr_accessor :engagement_affinity
202
193
 
203
- attr_accessor :roughness_affinity
194
+ attr_accessor :energy_affinity
195
+
196
+ attr_accessor :tempo_affinity
197
+
198
+ attr_accessor :scale_affinity
204
199
 
205
200
  attr_accessor :timbre_affinity
206
201
 
207
- attr_accessor :texture_affinity
202
+ attr_accessor :roughness_affinity
208
203
 
209
- attr_accessor :space_affinity
204
+ attr_accessor :harmony_affinity
205
+
206
+ attr_accessor :texture_affinity
210
207
 
211
208
  attr_accessor :groovyness_affinity
212
209
 
213
- attr_accessor :valence_affinity
210
+ attr_accessor :space_affinity
214
211
 
215
- attr_accessor :tempo_affinity
212
+ attr_accessor :key_affinity
216
213
 
217
- attr_accessor :scale_affinity
214
+ attr_accessor :channel_suitability_affinity
215
+
216
+ # Search for a harmonic key
217
+ attr_accessor :key
218
218
 
219
219
  class EnumAttributeValidator
220
220
  attr_reader :datatype
@@ -242,7 +242,6 @@ module SongtradrApiClientRuby
242
242
  def self.attribute_map
243
243
  {
244
244
  :'space' => :'space',
245
- :'harmony_affinity' => :'harmonyAffinity',
246
245
  :'language_of_performance' => :'languageOfPerformance',
247
246
  :'arousal' => :'arousal',
248
247
  :'dominant_instrument' => :'dominantInstrument',
@@ -258,15 +257,6 @@ module SongtradrApiClientRuby
258
257
  :'scale' => :'scale',
259
258
  :'sound_generation' => :'soundGeneration',
260
259
  :'tempo' => :'tempo',
261
- :'texture' => :'texture',
262
- :'timbre' => :'timbre',
263
- :'tonality' => :'tonality',
264
- :'valence' => :'valence',
265
- :'vocals' => :'vocals',
266
- :'origin_decade' => :'originDecade',
267
- :'curateability' => :'curateability',
268
- :'use_case' => :'useCase',
269
- :'channel_suitability' => :'channelSuitability',
270
260
  :'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
271
261
  :'secondary_mood_cluster' => :'secondaryMoodCluster',
272
262
  :'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
@@ -311,21 +301,31 @@ module SongtradrApiClientRuby
311
301
  :'industry_suitability' => :'industrySuitability',
312
302
  :'industry_suitability_affinity' => :'industrySuitabilityAffinity',
313
303
  :'audience_region' => :'audienceRegion',
304
+ :'texture' => :'texture',
305
+ :'timbre' => :'timbre',
306
+ :'tonality' => :'tonality',
307
+ :'valence' => :'valence',
308
+ :'vocals' => :'vocals',
309
+ :'origin_decade' => :'originDecade',
310
+ :'curateability' => :'curateability',
311
+ :'use_case' => :'useCase',
312
+ :'channel_suitability' => :'channelSuitability',
313
+ :'valence_affinity' => :'valenceAffinity',
314
314
  :'arousal_affinity' => :'arousalAffinity',
315
- :'channel_suitability_affinity' => :'channelSuitabilityAffinity',
316
- :'key' => :'key',
317
- :'energy_affinity' => :'energyAffinity',
318
- :'key_affinity' => :'keyAffinity',
319
315
  :'pleasantness_affinity' => :'pleasantnessAffinity',
320
316
  :'engagement_affinity' => :'engagementAffinity',
321
- :'roughness_affinity' => :'roughnessAffinity',
317
+ :'energy_affinity' => :'energyAffinity',
318
+ :'tempo_affinity' => :'tempoAffinity',
319
+ :'scale_affinity' => :'scaleAffinity',
322
320
  :'timbre_affinity' => :'timbreAffinity',
321
+ :'roughness_affinity' => :'roughnessAffinity',
322
+ :'harmony_affinity' => :'harmonyAffinity',
323
323
  :'texture_affinity' => :'textureAffinity',
324
- :'space_affinity' => :'spaceAffinity',
325
324
  :'groovyness_affinity' => :'groovynessAffinity',
326
- :'valence_affinity' => :'valenceAffinity',
327
- :'tempo_affinity' => :'tempoAffinity',
328
- :'scale_affinity' => :'scaleAffinity'
325
+ :'space_affinity' => :'spaceAffinity',
326
+ :'key_affinity' => :'keyAffinity',
327
+ :'channel_suitability_affinity' => :'channelSuitabilityAffinity',
328
+ :'key' => :'key'
329
329
  }
330
330
  end
331
331
 
@@ -338,7 +338,6 @@ module SongtradrApiClientRuby
338
338
  def self.openapi_types
339
339
  {
340
340
  :'space' => :'String',
341
- :'harmony_affinity' => :'Float',
342
341
  :'language_of_performance' => :'String',
343
342
  :'arousal' => :'String',
344
343
  :'dominant_instrument' => :'String',
@@ -354,15 +353,6 @@ module SongtradrApiClientRuby
354
353
  :'scale' => :'String',
355
354
  :'sound_generation' => :'String',
356
355
  :'tempo' => :'String',
357
- :'texture' => :'String',
358
- :'timbre' => :'String',
359
- :'tonality' => :'String',
360
- :'valence' => :'String',
361
- :'vocals' => :'String',
362
- :'origin_decade' => :'String',
363
- :'curateability' => :'String',
364
- :'use_case' => :'String',
365
- :'channel_suitability' => :'String',
366
356
  :'primary_mood_cluster_affinity' => :'Float',
367
357
  :'secondary_mood_cluster' => :'String',
368
358
  :'secondary_mood_cluster_affinity' => :'Float',
@@ -407,21 +397,31 @@ module SongtradrApiClientRuby
407
397
  :'industry_suitability' => :'String',
408
398
  :'industry_suitability_affinity' => :'Float',
409
399
  :'audience_region' => :'String',
400
+ :'texture' => :'String',
401
+ :'timbre' => :'String',
402
+ :'tonality' => :'String',
403
+ :'valence' => :'String',
404
+ :'vocals' => :'String',
405
+ :'origin_decade' => :'String',
406
+ :'curateability' => :'String',
407
+ :'use_case' => :'String',
408
+ :'channel_suitability' => :'String',
409
+ :'valence_affinity' => :'Float',
410
410
  :'arousal_affinity' => :'Float',
411
- :'channel_suitability_affinity' => :'Float',
412
- :'key' => :'String',
413
- :'energy_affinity' => :'Float',
414
- :'key_affinity' => :'Float',
415
411
  :'pleasantness_affinity' => :'Float',
416
412
  :'engagement_affinity' => :'Float',
417
- :'roughness_affinity' => :'Float',
413
+ :'energy_affinity' => :'Float',
414
+ :'tempo_affinity' => :'Float',
415
+ :'scale_affinity' => :'Float',
418
416
  :'timbre_affinity' => :'Float',
417
+ :'roughness_affinity' => :'Float',
418
+ :'harmony_affinity' => :'Float',
419
419
  :'texture_affinity' => :'Float',
420
- :'space_affinity' => :'Float',
421
420
  :'groovyness_affinity' => :'Float',
422
- :'valence_affinity' => :'Float',
423
- :'tempo_affinity' => :'Float',
424
- :'scale_affinity' => :'Float'
421
+ :'space_affinity' => :'Float',
422
+ :'key_affinity' => :'Float',
423
+ :'channel_suitability_affinity' => :'Float',
424
+ :'key' => :'String'
425
425
  }
426
426
  end
427
427
 
@@ -450,10 +450,6 @@ module SongtradrApiClientRuby
450
450
  self.space = attributes[:'space']
451
451
  end
452
452
 
453
- if attributes.key?(:'harmony_affinity')
454
- self.harmony_affinity = attributes[:'harmony_affinity']
455
- end
456
-
457
453
  if attributes.key?(:'language_of_performance')
458
454
  self.language_of_performance = attributes[:'language_of_performance']
459
455
  end
@@ -514,42 +510,6 @@ module SongtradrApiClientRuby
514
510
  self.tempo = attributes[:'tempo']
515
511
  end
516
512
 
517
- if attributes.key?(:'texture')
518
- self.texture = attributes[:'texture']
519
- end
520
-
521
- if attributes.key?(:'timbre')
522
- self.timbre = attributes[:'timbre']
523
- end
524
-
525
- if attributes.key?(:'tonality')
526
- self.tonality = attributes[:'tonality']
527
- end
528
-
529
- if attributes.key?(:'valence')
530
- self.valence = attributes[:'valence']
531
- end
532
-
533
- if attributes.key?(:'vocals')
534
- self.vocals = attributes[:'vocals']
535
- end
536
-
537
- if attributes.key?(:'origin_decade')
538
- self.origin_decade = attributes[:'origin_decade']
539
- end
540
-
541
- if attributes.key?(:'curateability')
542
- self.curateability = attributes[:'curateability']
543
- end
544
-
545
- if attributes.key?(:'use_case')
546
- self.use_case = attributes[:'use_case']
547
- end
548
-
549
- if attributes.key?(:'channel_suitability')
550
- self.channel_suitability = attributes[:'channel_suitability']
551
- end
552
-
553
513
  if attributes.key?(:'primary_mood_cluster_affinity')
554
514
  self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
555
515
  end
@@ -726,56 +686,60 @@ module SongtradrApiClientRuby
726
686
  self.audience_region = attributes[:'audience_region']
727
687
  end
728
688
 
729
- if attributes.key?(:'arousal_affinity')
730
- self.arousal_affinity = attributes[:'arousal_affinity']
689
+ if attributes.key?(:'texture')
690
+ self.texture = attributes[:'texture']
731
691
  end
732
692
 
733
- if attributes.key?(:'channel_suitability_affinity')
734
- self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
693
+ if attributes.key?(:'timbre')
694
+ self.timbre = attributes[:'timbre']
735
695
  end
736
696
 
737
- if attributes.key?(:'key')
738
- self.key = attributes[:'key']
697
+ if attributes.key?(:'tonality')
698
+ self.tonality = attributes[:'tonality']
739
699
  end
740
700
 
741
- if attributes.key?(:'energy_affinity')
742
- self.energy_affinity = attributes[:'energy_affinity']
701
+ if attributes.key?(:'valence')
702
+ self.valence = attributes[:'valence']
743
703
  end
744
704
 
745
- if attributes.key?(:'key_affinity')
746
- self.key_affinity = attributes[:'key_affinity']
705
+ if attributes.key?(:'vocals')
706
+ self.vocals = attributes[:'vocals']
747
707
  end
748
708
 
749
- if attributes.key?(:'pleasantness_affinity')
750
- self.pleasantness_affinity = attributes[:'pleasantness_affinity']
709
+ if attributes.key?(:'origin_decade')
710
+ self.origin_decade = attributes[:'origin_decade']
751
711
  end
752
712
 
753
- if attributes.key?(:'engagement_affinity')
754
- self.engagement_affinity = attributes[:'engagement_affinity']
713
+ if attributes.key?(:'curateability')
714
+ self.curateability = attributes[:'curateability']
755
715
  end
756
716
 
757
- if attributes.key?(:'roughness_affinity')
758
- self.roughness_affinity = attributes[:'roughness_affinity']
717
+ if attributes.key?(:'use_case')
718
+ self.use_case = attributes[:'use_case']
759
719
  end
760
720
 
761
- if attributes.key?(:'timbre_affinity')
762
- self.timbre_affinity = attributes[:'timbre_affinity']
721
+ if attributes.key?(:'channel_suitability')
722
+ self.channel_suitability = attributes[:'channel_suitability']
763
723
  end
764
724
 
765
- if attributes.key?(:'texture_affinity')
766
- self.texture_affinity = attributes[:'texture_affinity']
725
+ if attributes.key?(:'valence_affinity')
726
+ self.valence_affinity = attributes[:'valence_affinity']
767
727
  end
768
728
 
769
- if attributes.key?(:'space_affinity')
770
- self.space_affinity = attributes[:'space_affinity']
729
+ if attributes.key?(:'arousal_affinity')
730
+ self.arousal_affinity = attributes[:'arousal_affinity']
771
731
  end
772
732
 
773
- if attributes.key?(:'groovyness_affinity')
774
- self.groovyness_affinity = attributes[:'groovyness_affinity']
733
+ if attributes.key?(:'pleasantness_affinity')
734
+ self.pleasantness_affinity = attributes[:'pleasantness_affinity']
775
735
  end
776
736
 
777
- if attributes.key?(:'valence_affinity')
778
- self.valence_affinity = attributes[:'valence_affinity']
737
+ if attributes.key?(:'engagement_affinity')
738
+ self.engagement_affinity = attributes[:'engagement_affinity']
739
+ end
740
+
741
+ if attributes.key?(:'energy_affinity')
742
+ self.energy_affinity = attributes[:'energy_affinity']
779
743
  end
780
744
 
781
745
  if attributes.key?(:'tempo_affinity')
@@ -785,17 +749,53 @@ module SongtradrApiClientRuby
785
749
  if attributes.key?(:'scale_affinity')
786
750
  self.scale_affinity = attributes[:'scale_affinity']
787
751
  end
788
- end
789
-
790
- # Show invalid properties with the reasons. Usually used together with valid?
791
- # @return Array for valid properties with the reasons
792
- def list_invalid_properties
793
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
794
- invalid_properties = Array.new
795
- invalid_properties
796
- end
797
752
 
798
- # Check to see if the all the properties in the model are valid
753
+ if attributes.key?(:'timbre_affinity')
754
+ self.timbre_affinity = attributes[:'timbre_affinity']
755
+ end
756
+
757
+ if attributes.key?(:'roughness_affinity')
758
+ self.roughness_affinity = attributes[:'roughness_affinity']
759
+ end
760
+
761
+ if attributes.key?(:'harmony_affinity')
762
+ self.harmony_affinity = attributes[:'harmony_affinity']
763
+ end
764
+
765
+ if attributes.key?(:'texture_affinity')
766
+ self.texture_affinity = attributes[:'texture_affinity']
767
+ end
768
+
769
+ if attributes.key?(:'groovyness_affinity')
770
+ self.groovyness_affinity = attributes[:'groovyness_affinity']
771
+ end
772
+
773
+ if attributes.key?(:'space_affinity')
774
+ self.space_affinity = attributes[:'space_affinity']
775
+ end
776
+
777
+ if attributes.key?(:'key_affinity')
778
+ self.key_affinity = attributes[:'key_affinity']
779
+ end
780
+
781
+ if attributes.key?(:'channel_suitability_affinity')
782
+ self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
783
+ end
784
+
785
+ if attributes.key?(:'key')
786
+ self.key = attributes[:'key']
787
+ end
788
+ end
789
+
790
+ # Show invalid properties with the reasons. Usually used together with valid?
791
+ # @return Array for valid properties with the reasons
792
+ def list_invalid_properties
793
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
794
+ invalid_properties = Array.new
795
+ invalid_properties
796
+ end
797
+
798
+ # Check to see if the all the properties in the model are valid
799
799
  # @return true if the model is valid
800
800
  def valid?
801
801
  warn '[DEPRECATED] the `valid?` method is obsolete'
@@ -831,24 +831,6 @@ module SongtradrApiClientRuby
831
831
  return false unless sound_generation_validator.valid?(@sound_generation)
832
832
  tempo_validator = EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
833
833
  return false unless tempo_validator.valid?(@tempo)
834
- texture_validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
835
- return false unless texture_validator.valid?(@texture)
836
- timbre_validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
837
- return false unless timbre_validator.valid?(@timbre)
838
- tonality_validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
839
- return false unless tonality_validator.valid?(@tonality)
840
- valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
841
- return false unless valence_validator.valid?(@valence)
842
- vocals_validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
843
- return false unless vocals_validator.valid?(@vocals)
844
- origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
845
- return false unless origin_decade_validator.valid?(@origin_decade)
846
- curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
847
- return false unless curateability_validator.valid?(@curateability)
848
- use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
849
- return false unless use_case_validator.valid?(@use_case)
850
- channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
851
- return false unless channel_suitability_validator.valid?(@channel_suitability)
852
834
  secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
853
835
  return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
854
836
  tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
@@ -881,6 +863,24 @@ module SongtradrApiClientRuby
881
863
  return false unless industry_suitability_validator.valid?(@industry_suitability)
882
864
  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"])
883
865
  return false unless audience_region_validator.valid?(@audience_region)
866
+ texture_validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
867
+ return false unless texture_validator.valid?(@texture)
868
+ timbre_validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
869
+ return false unless timbre_validator.valid?(@timbre)
870
+ tonality_validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
871
+ return false unless tonality_validator.valid?(@tonality)
872
+ valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
873
+ return false unless valence_validator.valid?(@valence)
874
+ vocals_validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
875
+ return false unless vocals_validator.valid?(@vocals)
876
+ origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
877
+ return false unless origin_decade_validator.valid?(@origin_decade)
878
+ curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
879
+ return false unless curateability_validator.valid?(@curateability)
880
+ use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
881
+ return false unless use_case_validator.valid?(@use_case)
882
+ channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
883
+ return false unless channel_suitability_validator.valid?(@channel_suitability)
884
884
  key_validator = EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
885
885
  return false unless key_validator.valid?(@key)
886
886
  true
@@ -1046,96 +1046,6 @@ module SongtradrApiClientRuby
1046
1046
  @tempo = tempo
1047
1047
  end
1048
1048
 
1049
- # Custom attribute writer method checking allowed values (enum).
1050
- # @param [Object] texture Object to be assigned
1051
- def texture=(texture)
1052
- validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
1053
- unless validator.valid?(texture)
1054
- fail ArgumentError, "invalid value for \"texture\", must be one of #{validator.allowable_values}."
1055
- end
1056
- @texture = texture
1057
- end
1058
-
1059
- # Custom attribute writer method checking allowed values (enum).
1060
- # @param [Object] timbre Object to be assigned
1061
- def timbre=(timbre)
1062
- validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
1063
- unless validator.valid?(timbre)
1064
- fail ArgumentError, "invalid value for \"timbre\", must be one of #{validator.allowable_values}."
1065
- end
1066
- @timbre = timbre
1067
- end
1068
-
1069
- # Custom attribute writer method checking allowed values (enum).
1070
- # @param [Object] tonality Object to be assigned
1071
- def tonality=(tonality)
1072
- validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
1073
- unless validator.valid?(tonality)
1074
- fail ArgumentError, "invalid value for \"tonality\", must be one of #{validator.allowable_values}."
1075
- end
1076
- @tonality = tonality
1077
- end
1078
-
1079
- # Custom attribute writer method checking allowed values (enum).
1080
- # @param [Object] valence Object to be assigned
1081
- def valence=(valence)
1082
- validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
1083
- unless validator.valid?(valence)
1084
- fail ArgumentError, "invalid value for \"valence\", must be one of #{validator.allowable_values}."
1085
- end
1086
- @valence = valence
1087
- end
1088
-
1089
- # Custom attribute writer method checking allowed values (enum).
1090
- # @param [Object] vocals Object to be assigned
1091
- def vocals=(vocals)
1092
- validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
1093
- unless validator.valid?(vocals)
1094
- fail ArgumentError, "invalid value for \"vocals\", must be one of #{validator.allowable_values}."
1095
- end
1096
- @vocals = vocals
1097
- end
1098
-
1099
- # Custom attribute writer method checking allowed values (enum).
1100
- # @param [Object] origin_decade Object to be assigned
1101
- def origin_decade=(origin_decade)
1102
- validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
1103
- unless validator.valid?(origin_decade)
1104
- fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{validator.allowable_values}."
1105
- end
1106
- @origin_decade = origin_decade
1107
- end
1108
-
1109
- # Custom attribute writer method checking allowed values (enum).
1110
- # @param [Object] curateability Object to be assigned
1111
- def curateability=(curateability)
1112
- validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
1113
- unless validator.valid?(curateability)
1114
- fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
1115
- end
1116
- @curateability = curateability
1117
- end
1118
-
1119
- # Custom attribute writer method checking allowed values (enum).
1120
- # @param [Object] use_case Object to be assigned
1121
- def use_case=(use_case)
1122
- validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
1123
- unless validator.valid?(use_case)
1124
- fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
1125
- end
1126
- @use_case = use_case
1127
- end
1128
-
1129
- # Custom attribute writer method checking allowed values (enum).
1130
- # @param [Object] channel_suitability Object to be assigned
1131
- def channel_suitability=(channel_suitability)
1132
- validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
1133
- unless validator.valid?(channel_suitability)
1134
- fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
1135
- end
1136
- @channel_suitability = channel_suitability
1137
- end
1138
-
1139
1049
  # Custom attribute writer method checking allowed values (enum).
1140
1050
  # @param [Object] secondary_mood_cluster Object to be assigned
1141
1051
  def secondary_mood_cluster=(secondary_mood_cluster)
@@ -1296,6 +1206,96 @@ module SongtradrApiClientRuby
1296
1206
  @audience_region = audience_region
1297
1207
  end
1298
1208
 
1209
+ # Custom attribute writer method checking allowed values (enum).
1210
+ # @param [Object] texture Object to be assigned
1211
+ def texture=(texture)
1212
+ validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
1213
+ unless validator.valid?(texture)
1214
+ fail ArgumentError, "invalid value for \"texture\", must be one of #{validator.allowable_values}."
1215
+ end
1216
+ @texture = texture
1217
+ end
1218
+
1219
+ # Custom attribute writer method checking allowed values (enum).
1220
+ # @param [Object] timbre Object to be assigned
1221
+ def timbre=(timbre)
1222
+ validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
1223
+ unless validator.valid?(timbre)
1224
+ fail ArgumentError, "invalid value for \"timbre\", must be one of #{validator.allowable_values}."
1225
+ end
1226
+ @timbre = timbre
1227
+ end
1228
+
1229
+ # Custom attribute writer method checking allowed values (enum).
1230
+ # @param [Object] tonality Object to be assigned
1231
+ def tonality=(tonality)
1232
+ validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
1233
+ unless validator.valid?(tonality)
1234
+ fail ArgumentError, "invalid value for \"tonality\", must be one of #{validator.allowable_values}."
1235
+ end
1236
+ @tonality = tonality
1237
+ end
1238
+
1239
+ # Custom attribute writer method checking allowed values (enum).
1240
+ # @param [Object] valence Object to be assigned
1241
+ def valence=(valence)
1242
+ validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
1243
+ unless validator.valid?(valence)
1244
+ fail ArgumentError, "invalid value for \"valence\", must be one of #{validator.allowable_values}."
1245
+ end
1246
+ @valence = valence
1247
+ end
1248
+
1249
+ # Custom attribute writer method checking allowed values (enum).
1250
+ # @param [Object] vocals Object to be assigned
1251
+ def vocals=(vocals)
1252
+ validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
1253
+ unless validator.valid?(vocals)
1254
+ fail ArgumentError, "invalid value for \"vocals\", must be one of #{validator.allowable_values}."
1255
+ end
1256
+ @vocals = vocals
1257
+ end
1258
+
1259
+ # Custom attribute writer method checking allowed values (enum).
1260
+ # @param [Object] origin_decade Object to be assigned
1261
+ def origin_decade=(origin_decade)
1262
+ validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
1263
+ unless validator.valid?(origin_decade)
1264
+ fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{validator.allowable_values}."
1265
+ end
1266
+ @origin_decade = origin_decade
1267
+ end
1268
+
1269
+ # Custom attribute writer method checking allowed values (enum).
1270
+ # @param [Object] curateability Object to be assigned
1271
+ def curateability=(curateability)
1272
+ validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
1273
+ unless validator.valid?(curateability)
1274
+ fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
1275
+ end
1276
+ @curateability = curateability
1277
+ end
1278
+
1279
+ # Custom attribute writer method checking allowed values (enum).
1280
+ # @param [Object] use_case Object to be assigned
1281
+ def use_case=(use_case)
1282
+ validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
1283
+ unless validator.valid?(use_case)
1284
+ fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
1285
+ end
1286
+ @use_case = use_case
1287
+ end
1288
+
1289
+ # Custom attribute writer method checking allowed values (enum).
1290
+ # @param [Object] channel_suitability Object to be assigned
1291
+ def channel_suitability=(channel_suitability)
1292
+ validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
1293
+ unless validator.valid?(channel_suitability)
1294
+ fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
1295
+ end
1296
+ @channel_suitability = channel_suitability
1297
+ end
1298
+
1299
1299
  # Custom attribute writer method checking allowed values (enum).
1300
1300
  # @param [Object] key Object to be assigned
1301
1301
  def key=(key)
@@ -1312,7 +1312,6 @@ module SongtradrApiClientRuby
1312
1312
  return true if self.equal?(o)
1313
1313
  self.class == o.class &&
1314
1314
  space == o.space &&
1315
- harmony_affinity == o.harmony_affinity &&
1316
1315
  language_of_performance == o.language_of_performance &&
1317
1316
  arousal == o.arousal &&
1318
1317
  dominant_instrument == o.dominant_instrument &&
@@ -1328,15 +1327,6 @@ module SongtradrApiClientRuby
1328
1327
  scale == o.scale &&
1329
1328
  sound_generation == o.sound_generation &&
1330
1329
  tempo == o.tempo &&
1331
- texture == o.texture &&
1332
- timbre == o.timbre &&
1333
- tonality == o.tonality &&
1334
- valence == o.valence &&
1335
- vocals == o.vocals &&
1336
- origin_decade == o.origin_decade &&
1337
- curateability == o.curateability &&
1338
- use_case == o.use_case &&
1339
- channel_suitability == o.channel_suitability &&
1340
1330
  primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
1341
1331
  secondary_mood_cluster == o.secondary_mood_cluster &&
1342
1332
  secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
@@ -1381,21 +1371,31 @@ module SongtradrApiClientRuby
1381
1371
  industry_suitability == o.industry_suitability &&
1382
1372
  industry_suitability_affinity == o.industry_suitability_affinity &&
1383
1373
  audience_region == o.audience_region &&
1374
+ texture == o.texture &&
1375
+ timbre == o.timbre &&
1376
+ tonality == o.tonality &&
1377
+ valence == o.valence &&
1378
+ vocals == o.vocals &&
1379
+ origin_decade == o.origin_decade &&
1380
+ curateability == o.curateability &&
1381
+ use_case == o.use_case &&
1382
+ channel_suitability == o.channel_suitability &&
1383
+ valence_affinity == o.valence_affinity &&
1384
1384
  arousal_affinity == o.arousal_affinity &&
1385
- channel_suitability_affinity == o.channel_suitability_affinity &&
1386
- key == o.key &&
1387
- energy_affinity == o.energy_affinity &&
1388
- key_affinity == o.key_affinity &&
1389
1385
  pleasantness_affinity == o.pleasantness_affinity &&
1390
1386
  engagement_affinity == o.engagement_affinity &&
1391
- roughness_affinity == o.roughness_affinity &&
1387
+ energy_affinity == o.energy_affinity &&
1388
+ tempo_affinity == o.tempo_affinity &&
1389
+ scale_affinity == o.scale_affinity &&
1392
1390
  timbre_affinity == o.timbre_affinity &&
1391
+ roughness_affinity == o.roughness_affinity &&
1392
+ harmony_affinity == o.harmony_affinity &&
1393
1393
  texture_affinity == o.texture_affinity &&
1394
- space_affinity == o.space_affinity &&
1395
1394
  groovyness_affinity == o.groovyness_affinity &&
1396
- valence_affinity == o.valence_affinity &&
1397
- tempo_affinity == o.tempo_affinity &&
1398
- scale_affinity == o.scale_affinity
1395
+ space_affinity == o.space_affinity &&
1396
+ key_affinity == o.key_affinity &&
1397
+ channel_suitability_affinity == o.channel_suitability_affinity &&
1398
+ key == o.key
1399
1399
  end
1400
1400
 
1401
1401
  # @see the `==` method
@@ -1407,7 +1407,7 @@ module SongtradrApiClientRuby
1407
1407
  # Calculates hash code according to all attributes.
1408
1408
  # @return [Integer] Hash code
1409
1409
  def hash
1410
- [space, harmony_affinity, language_of_performance, 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, 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, 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, arousal_affinity, channel_suitability_affinity, key, energy_affinity, key_affinity, pleasantness_affinity, engagement_affinity, roughness_affinity, timbre_affinity, texture_affinity, space_affinity, groovyness_affinity, valence_affinity, tempo_affinity, scale_affinity].hash
1410
+ [space, language_of_performance, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, 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, 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, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, 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
1411
1411
  end
1412
1412
 
1413
1413
  # Builds the object from hash