songtradr_api_client_ruby 1.12.23 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +6 -5
  4. data/docs/AllowedValuesApi.md +2 -2
  5. data/docs/ApiKeyDTO.md +2 -2
  6. data/docs/CategoryMediumDTO.md +3 -3
  7. data/docs/FileSmallDTO.md +3 -3
  8. data/docs/MusicalFeaturesDTO.md +38 -38
  9. data/docs/PlaylistLargeDTO.md +2 -2
  10. data/docs/ProductMediumDTO.md +4 -4
  11. data/docs/RecordingApi.md +6 -0
  12. data/docs/RecordingLargeDTO.md +5 -5
  13. data/docs/RecordingMediumDTO.md +5 -3
  14. data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
  15. data/docs/RecordingSmallDTO.md +3 -3
  16. data/docs/TrackDTO.md +18 -0
  17. data/docs/UserApi.md +4 -0
  18. data/docs/UserDTO.md +18 -0
  19. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
  20. data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +1 -1
  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 +10 -1
  24. data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -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 +10 -8
  28. data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +13 -18
  29. data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +29 -28
  30. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +30 -31
  31. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
  32. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
  33. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
  34. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
  35. data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +13 -18
  36. data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
  37. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
  38. data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
  39. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
  40. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
  41. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +41 -36
  42. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
  43. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
  44. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
  45. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
  46. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
  47. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
  48. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
  49. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
  50. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
  51. data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
  52. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +354 -359
  53. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
  54. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
  55. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
  56. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +25 -28
  57. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +46 -39
  58. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +15 -18
  59. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
  60. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +19 -18
  61. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +57 -40
  62. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
  63. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +55 -31
  64. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
  65. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
  66. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
  67. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +15 -18
  68. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +13 -18
  69. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
  70. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
  71. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
  72. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
  73. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
  74. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
  75. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
  76. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
  77. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
  78. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
  79. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
  80. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
  81. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
  82. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
  83. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
  84. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
  85. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
  86. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
  87. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
  88. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
  89. data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
  90. data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
  91. data/lib/songtradr_api_client_ruby/models/track_dto.rb +215 -0
  92. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
  93. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
  94. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
  95. data/lib/songtradr_api_client_ruby/models/user_dto.rb +196 -19
  96. data/lib/songtradr_api_client_ruby/version.rb +2 -2
  97. data/lib/songtradr_api_client_ruby.rb +2 -1
  98. data/openapi-generator-config.yaml +1 -1
  99. data/songtradr_api_client_ruby.gemspec +1 -1
  100. data/spec/api/allowed_values_api_spec.rb +2 -2
  101. data/spec/api/api_keys_api_spec.rb +1 -1
  102. data/spec/api/party_api_spec.rb +1 -1
  103. data/spec/api/playlist_api_spec.rb +1 -1
  104. data/spec/api/recording_api_spec.rb +4 -1
  105. data/spec/api/user_api_spec.rb +3 -1
  106. data/spec/api_client_spec.rb +1 -1
  107. data/spec/configuration_spec.rb +1 -1
  108. data/spec/models/admin_api_user_dto_spec.rb +1 -1
  109. data/spec/models/api_key_dto_spec.rb +3 -3
  110. data/spec/models/category_medium_dto_spec.rb +3 -3
  111. data/spec/models/category_minimal_dto_spec.rb +1 -1
  112. data/spec/models/config_access_dto_spec.rb +1 -1
  113. data/spec/models/config_identifier_dto_spec.rb +1 -1
  114. data/spec/models/contributor_type_dto_spec.rb +1 -1
  115. data/spec/models/create_api_key_dto_spec.rb +1 -1
  116. data/spec/models/error_response_spec.rb +1 -1
  117. data/spec/models/field_summary_dto_spec.rb +1 -1
  118. data/spec/models/file_dto_spec.rb +1 -1
  119. data/spec/models/file_list_dto_spec.rb +1 -1
  120. data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
  121. data/spec/models/file_small_dto_spec.rb +7 -7
  122. data/spec/models/file_upload_dto_spec.rb +1 -1
  123. data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
  124. data/spec/models/files_summary_dto_spec.rb +1 -1
  125. data/spec/models/forgot_password_dto_spec.rb +1 -1
  126. data/spec/models/genre_dto_spec.rb +1 -1
  127. data/spec/models/genre_minimal_dto_spec.rb +1 -1
  128. data/spec/models/genres_summary_dto_spec.rb +1 -1
  129. data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
  130. data/spec/models/jwt_token_dto_spec.rb +1 -1
  131. data/spec/models/login_dto_spec.rb +1 -1
  132. data/spec/models/musical_features_dto_spec.rb +163 -163
  133. data/spec/models/p_line_dto_spec.rb +1 -1
  134. data/spec/models/party_large_dto_spec.rb +1 -1
  135. data/spec/models/party_small_dto_spec.rb +1 -1
  136. data/spec/models/playlist_large_dto_spec.rb +4 -4
  137. data/spec/models/product_medium_dto_spec.rb +7 -7
  138. data/spec/models/product_party_dto_spec.rb +1 -1
  139. data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
  140. data/spec/models/recording_genre_prediction_dto_spec.rb +1 -1
  141. data/spec/models/recording_large_dto_spec.rb +9 -9
  142. data/spec/models/recording_list_dto_spec.rb +1 -1
  143. data/spec/models/recording_medium_dto_spec.rb +10 -4
  144. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
  145. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
  146. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
  147. data/spec/models/recording_party_dto_spec.rb +1 -1
  148. data/spec/models/recording_playlist_dto_spec.rb +1 -1
  149. data/spec/models/recording_small_dto_spec.rb +4 -4
  150. data/spec/models/recording_tag_small_dto_spec.rb +1 -1
  151. data/spec/models/save_file_recording_dto_spec.rb +1 -1
  152. data/spec/models/save_playlist_dto_spec.rb +1 -1
  153. data/spec/models/save_recording_genre_dto_spec.rb +1 -1
  154. data/spec/models/save_recording_party_dto_spec.rb +1 -1
  155. data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
  156. data/spec/models/save_recording_tag_dto_spec.rb +1 -1
  157. data/spec/models/save_referrer_dto_spec.rb +1 -1
  158. data/spec/models/save_taggrams_dto_spec.rb +1 -1
  159. data/spec/models/save_user_dto_spec.rb +1 -1
  160. data/spec/models/search_filter_values_dto_spec.rb +1 -1
  161. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
  162. data/spec/models/search_recording_granular_dto_spec.rb +1 -1
  163. data/spec/models/sign_up_dto_spec.rb +1 -1
  164. data/spec/models/tag_dto_spec.rb +1 -1
  165. data/spec/models/tag_small_dto_spec.rb +1 -1
  166. data/spec/models/taggram_dto_spec.rb +1 -1
  167. data/spec/models/tags_summary_dto_spec.rb +1 -1
  168. data/spec/models/tagstrength_dto_spec.rb +1 -1
  169. data/spec/models/title_dto_spec.rb +1 -1
  170. data/spec/models/token_request_spec.rb +1 -1
  171. data/spec/models/track_dto_spec.rb +34 -0
  172. data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
  173. data/spec/models/update_password_dto_spec.rb +1 -1
  174. data/spec/models/usage_dto_spec.rb +1 -1
  175. data/spec/models/user_dto_spec.rb +55 -1
  176. data/spec/spec_helper.rb +1 -1
  177. metadata +62 -58
@@ -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.23
6
+ The version of the OpenAPI document: 1.13.0
7
7
  Contact: info@songtradr.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.0-SNAPSHOT
@@ -21,6 +21,33 @@ module SongtradrApiClientRuby
21
21
 
22
22
  attr_accessor :language_of_performance
23
23
 
24
+ # Search for an arousal
25
+ attr_accessor :arousal
26
+
27
+ # Search for a dominant instrument
28
+ attr_accessor :dominant_instrument
29
+
30
+ # Search for energy
31
+ attr_accessor :energy
32
+
33
+ # Search for an engagement
34
+ attr_accessor :engagement
35
+
36
+ # Search for groovyness
37
+ attr_accessor :groovyness
38
+
39
+ # Search for a degree of harmoniousness
40
+ attr_accessor :harmony
41
+
42
+ # Search for pleasantness
43
+ attr_accessor :pleasantness
44
+
45
+ # Search for a language of the lyrics
46
+ attr_accessor :primary_mood_cluster
47
+
48
+ # Search for a sound character
49
+ attr_accessor :primary_sound_character
50
+
24
51
  # Search for rhythm
25
52
  attr_accessor :rhythm
26
53
 
@@ -63,6 +90,30 @@ module SongtradrApiClientRuby
63
90
  # Search for social media suitability
64
91
  attr_accessor :channel_suitability
65
92
 
93
+ attr_accessor :primary_mood_cluster_affinity
94
+
95
+ # Search for a language of the lyrics
96
+ attr_accessor :secondary_mood_cluster
97
+
98
+ attr_accessor :secondary_mood_cluster_affinity
99
+
100
+ # Search for a language of the lyrics
101
+ attr_accessor :tertiary_mood_cluster
102
+
103
+ attr_accessor :tertiary_mood_cluster_affinity
104
+
105
+ attr_accessor :vocals_affinity
106
+
107
+ attr_accessor :dominant_instrument_affinity
108
+
109
+ # Search for a dominant instrument
110
+ attr_accessor :secondary_instrument
111
+
112
+ attr_accessor :secondary_instrument_affinity
113
+
114
+ # Search for a dominant instrument
115
+ attr_accessor :tertiary_instrument
116
+
66
117
  attr_accessor :tertiary_instrument_affinity
67
118
 
68
119
  attr_accessor :sound_generation_affinity
@@ -125,33 +176,6 @@ module SongtradrApiClientRuby
125
176
 
126
177
  attr_accessor :use_case_affinity
127
178
 
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
-
155
179
  # Search for Industry suitability
156
180
  attr_accessor :industry_suitability
157
181
 
@@ -159,30 +183,6 @@ module SongtradrApiClientRuby
159
183
 
160
184
  attr_accessor :audience_region
161
185
 
162
- attr_accessor :primary_mood_cluster_affinity
163
-
164
- # Search for a language of the lyrics
165
- attr_accessor :secondary_mood_cluster
166
-
167
- attr_accessor :secondary_mood_cluster_affinity
168
-
169
- # Search for a language of the lyrics
170
- attr_accessor :tertiary_mood_cluster
171
-
172
- attr_accessor :tertiary_mood_cluster_affinity
173
-
174
- attr_accessor :vocals_affinity
175
-
176
- attr_accessor :dominant_instrument_affinity
177
-
178
- # Search for a dominant instrument
179
- attr_accessor :secondary_instrument
180
-
181
- attr_accessor :secondary_instrument_affinity
182
-
183
- # Search for a dominant instrument
184
- attr_accessor :tertiary_instrument
185
-
186
186
  attr_accessor :valence_affinity
187
187
 
188
188
  attr_accessor :arousal_affinity
@@ -243,6 +243,15 @@ module SongtradrApiClientRuby
243
243
  {
244
244
  :'space' => :'space',
245
245
  :'language_of_performance' => :'languageOfPerformance',
246
+ :'arousal' => :'arousal',
247
+ :'dominant_instrument' => :'dominantInstrument',
248
+ :'energy' => :'energy',
249
+ :'engagement' => :'engagement',
250
+ :'groovyness' => :'groovyness',
251
+ :'harmony' => :'harmony',
252
+ :'pleasantness' => :'pleasantness',
253
+ :'primary_mood_cluster' => :'primaryMoodCluster',
254
+ :'primary_sound_character' => :'primarySoundCharacter',
246
255
  :'rhythm' => :'rhythm',
247
256
  :'roughness' => :'roughness',
248
257
  :'scale' => :'scale',
@@ -257,6 +266,16 @@ module SongtradrApiClientRuby
257
266
  :'curateability' => :'curateability',
258
267
  :'use_case' => :'useCase',
259
268
  :'channel_suitability' => :'channelSuitability',
269
+ :'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
270
+ :'secondary_mood_cluster' => :'secondaryMoodCluster',
271
+ :'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
272
+ :'tertiary_mood_cluster' => :'tertiaryMoodCluster',
273
+ :'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
274
+ :'vocals_affinity' => :'vocalsAffinity',
275
+ :'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
276
+ :'secondary_instrument' => :'secondaryInstrument',
277
+ :'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
278
+ :'tertiary_instrument' => :'tertiaryInstrument',
260
279
  :'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
261
280
  :'sound_generation_affinity' => :'soundGenerationAffinity',
262
281
  :'rhythm_affinity' => :'rhythmAffinity',
@@ -288,28 +307,9 @@ module SongtradrApiClientRuby
288
307
  :'language_of_performance_affinity' => :'languageOfPerformanceAffinity',
289
308
  :'curateability_affinity' => :'curateabilityAffinity',
290
309
  :'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',
300
310
  :'industry_suitability' => :'industrySuitability',
301
311
  :'industry_suitability_affinity' => :'industrySuitabilityAffinity',
302
312
  :'audience_region' => :'audienceRegion',
303
- :'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
304
- :'secondary_mood_cluster' => :'secondaryMoodCluster',
305
- :'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
306
- :'tertiary_mood_cluster' => :'tertiaryMoodCluster',
307
- :'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
308
- :'vocals_affinity' => :'vocalsAffinity',
309
- :'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
310
- :'secondary_instrument' => :'secondaryInstrument',
311
- :'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
312
- :'tertiary_instrument' => :'tertiaryInstrument',
313
313
  :'valence_affinity' => :'valenceAffinity',
314
314
  :'arousal_affinity' => :'arousalAffinity',
315
315
  :'pleasantness_affinity' => :'pleasantnessAffinity',
@@ -339,6 +339,15 @@ module SongtradrApiClientRuby
339
339
  {
340
340
  :'space' => :'String',
341
341
  :'language_of_performance' => :'String',
342
+ :'arousal' => :'String',
343
+ :'dominant_instrument' => :'String',
344
+ :'energy' => :'String',
345
+ :'engagement' => :'String',
346
+ :'groovyness' => :'String',
347
+ :'harmony' => :'String',
348
+ :'pleasantness' => :'String',
349
+ :'primary_mood_cluster' => :'String',
350
+ :'primary_sound_character' => :'String',
342
351
  :'rhythm' => :'String',
343
352
  :'roughness' => :'String',
344
353
  :'scale' => :'String',
@@ -353,6 +362,16 @@ module SongtradrApiClientRuby
353
362
  :'curateability' => :'String',
354
363
  :'use_case' => :'String',
355
364
  :'channel_suitability' => :'String',
365
+ :'primary_mood_cluster_affinity' => :'Float',
366
+ :'secondary_mood_cluster' => :'String',
367
+ :'secondary_mood_cluster_affinity' => :'Float',
368
+ :'tertiary_mood_cluster' => :'String',
369
+ :'tertiary_mood_cluster_affinity' => :'Float',
370
+ :'vocals_affinity' => :'Float',
371
+ :'dominant_instrument_affinity' => :'Float',
372
+ :'secondary_instrument' => :'String',
373
+ :'secondary_instrument_affinity' => :'Float',
374
+ :'tertiary_instrument' => :'String',
356
375
  :'tertiary_instrument_affinity' => :'Float',
357
376
  :'sound_generation_affinity' => :'Float',
358
377
  :'rhythm_affinity' => :'Float',
@@ -384,28 +403,9 @@ module SongtradrApiClientRuby
384
403
  :'language_of_performance_affinity' => :'Float',
385
404
  :'curateability_affinity' => :'Float',
386
405
  :'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',
396
406
  :'industry_suitability' => :'String',
397
407
  :'industry_suitability_affinity' => :'Float',
398
408
  :'audience_region' => :'String',
399
- :'primary_mood_cluster_affinity' => :'Float',
400
- :'secondary_mood_cluster' => :'String',
401
- :'secondary_mood_cluster_affinity' => :'Float',
402
- :'tertiary_mood_cluster' => :'String',
403
- :'tertiary_mood_cluster_affinity' => :'Float',
404
- :'vocals_affinity' => :'Float',
405
- :'dominant_instrument_affinity' => :'Float',
406
- :'secondary_instrument' => :'String',
407
- :'secondary_instrument_affinity' => :'Float',
408
- :'tertiary_instrument' => :'String',
409
409
  :'valence_affinity' => :'Float',
410
410
  :'arousal_affinity' => :'Float',
411
411
  :'pleasantness_affinity' => :'Float',
@@ -454,6 +454,42 @@ module SongtradrApiClientRuby
454
454
  self.language_of_performance = attributes[:'language_of_performance']
455
455
  end
456
456
 
457
+ if attributes.key?(:'arousal')
458
+ self.arousal = attributes[:'arousal']
459
+ end
460
+
461
+ if attributes.key?(:'dominant_instrument')
462
+ self.dominant_instrument = attributes[:'dominant_instrument']
463
+ end
464
+
465
+ if attributes.key?(:'energy')
466
+ self.energy = attributes[:'energy']
467
+ end
468
+
469
+ if attributes.key?(:'engagement')
470
+ self.engagement = attributes[:'engagement']
471
+ end
472
+
473
+ if attributes.key?(:'groovyness')
474
+ self.groovyness = attributes[:'groovyness']
475
+ end
476
+
477
+ if attributes.key?(:'harmony')
478
+ self.harmony = attributes[:'harmony']
479
+ end
480
+
481
+ if attributes.key?(:'pleasantness')
482
+ self.pleasantness = attributes[:'pleasantness']
483
+ end
484
+
485
+ if attributes.key?(:'primary_mood_cluster')
486
+ self.primary_mood_cluster = attributes[:'primary_mood_cluster']
487
+ end
488
+
489
+ if attributes.key?(:'primary_sound_character')
490
+ self.primary_sound_character = attributes[:'primary_sound_character']
491
+ end
492
+
457
493
  if attributes.key?(:'rhythm')
458
494
  self.rhythm = attributes[:'rhythm']
459
495
  end
@@ -510,6 +546,46 @@ module SongtradrApiClientRuby
510
546
  self.channel_suitability = attributes[:'channel_suitability']
511
547
  end
512
548
 
549
+ if attributes.key?(:'primary_mood_cluster_affinity')
550
+ self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
551
+ end
552
+
553
+ if attributes.key?(:'secondary_mood_cluster')
554
+ self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
555
+ end
556
+
557
+ if attributes.key?(:'secondary_mood_cluster_affinity')
558
+ self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
559
+ end
560
+
561
+ if attributes.key?(:'tertiary_mood_cluster')
562
+ self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
563
+ end
564
+
565
+ if attributes.key?(:'tertiary_mood_cluster_affinity')
566
+ self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
567
+ end
568
+
569
+ if attributes.key?(:'vocals_affinity')
570
+ self.vocals_affinity = attributes[:'vocals_affinity']
571
+ end
572
+
573
+ if attributes.key?(:'dominant_instrument_affinity')
574
+ self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
575
+ end
576
+
577
+ if attributes.key?(:'secondary_instrument')
578
+ self.secondary_instrument = attributes[:'secondary_instrument']
579
+ end
580
+
581
+ if attributes.key?(:'secondary_instrument_affinity')
582
+ self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
583
+ end
584
+
585
+ if attributes.key?(:'tertiary_instrument')
586
+ self.tertiary_instrument = attributes[:'tertiary_instrument']
587
+ end
588
+
513
589
  if attributes.key?(:'tertiary_instrument_affinity')
514
590
  self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
515
591
  end
@@ -634,42 +710,6 @@ module SongtradrApiClientRuby
634
710
  self.use_case_affinity = attributes[:'use_case_affinity']
635
711
  end
636
712
 
637
- if attributes.key?(:'arousal')
638
- self.arousal = attributes[:'arousal']
639
- end
640
-
641
- if attributes.key?(:'dominant_instrument')
642
- self.dominant_instrument = attributes[:'dominant_instrument']
643
- end
644
-
645
- if attributes.key?(:'energy')
646
- self.energy = attributes[:'energy']
647
- end
648
-
649
- if attributes.key?(:'engagement')
650
- self.engagement = attributes[:'engagement']
651
- end
652
-
653
- if attributes.key?(:'groovyness')
654
- self.groovyness = attributes[:'groovyness']
655
- end
656
-
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
713
  if attributes.key?(:'industry_suitability')
674
714
  self.industry_suitability = attributes[:'industry_suitability']
675
715
  end
@@ -682,46 +722,6 @@ module SongtradrApiClientRuby
682
722
  self.audience_region = attributes[:'audience_region']
683
723
  end
684
724
 
685
- if attributes.key?(:'primary_mood_cluster_affinity')
686
- self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
687
- end
688
-
689
- if attributes.key?(:'secondary_mood_cluster')
690
- self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
691
- end
692
-
693
- if attributes.key?(:'secondary_mood_cluster_affinity')
694
- self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
695
- end
696
-
697
- if attributes.key?(:'tertiary_mood_cluster')
698
- self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
699
- end
700
-
701
- if attributes.key?(:'tertiary_mood_cluster_affinity')
702
- self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
703
- end
704
-
705
- if attributes.key?(:'vocals_affinity')
706
- self.vocals_affinity = attributes[:'vocals_affinity']
707
- end
708
-
709
- if attributes.key?(:'dominant_instrument_affinity')
710
- self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
711
- end
712
-
713
- if attributes.key?(:'secondary_instrument')
714
- self.secondary_instrument = attributes[:'secondary_instrument']
715
- end
716
-
717
- if attributes.key?(:'secondary_instrument_affinity')
718
- self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
719
- end
720
-
721
- if attributes.key?(:'tertiary_instrument')
722
- self.tertiary_instrument = attributes[:'tertiary_instrument']
723
- end
724
-
725
725
  if attributes.key?(:'valence_affinity')
726
726
  self.valence_affinity = attributes[:'valence_affinity']
727
727
  end
@@ -790,6 +790,7 @@ module SongtradrApiClientRuby
790
790
  # Show invalid properties with the reasons. Usually used together with valid?
791
791
  # @return Array for valid properties with the reasons
792
792
  def list_invalid_properties
793
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
793
794
  invalid_properties = Array.new
794
795
  invalid_properties
795
796
  end
@@ -797,10 +798,29 @@ module SongtradrApiClientRuby
797
798
  # Check to see if the all the properties in the model are valid
798
799
  # @return true if the model is valid
799
800
  def valid?
801
+ warn '[DEPRECATED] the `valid?` method is obsolete'
800
802
  space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
801
803
  return false unless space_validator.valid?(@space)
802
804
  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
805
  return false unless language_of_performance_validator.valid?(@language_of_performance)
806
+ arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
807
+ return false unless arousal_validator.valid?(@arousal)
808
+ 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"])
809
+ return false unless dominant_instrument_validator.valid?(@dominant_instrument)
810
+ energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
811
+ return false unless energy_validator.valid?(@energy)
812
+ engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
813
+ return false unless engagement_validator.valid?(@engagement)
814
+ groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
815
+ return false unless groovyness_validator.valid?(@groovyness)
816
+ harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
817
+ return false unless harmony_validator.valid?(@harmony)
818
+ pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
819
+ return false unless pleasantness_validator.valid?(@pleasantness)
820
+ primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
821
+ return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
822
+ primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
823
+ return false unless primary_sound_character_validator.valid?(@primary_sound_character)
804
824
  rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
805
825
  return false unless rhythm_validator.valid?(@rhythm)
806
826
  roughness_validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
@@ -829,6 +849,14 @@ module SongtradrApiClientRuby
829
849
  return false unless use_case_validator.valid?(@use_case)
830
850
  channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
831
851
  return false unless channel_suitability_validator.valid?(@channel_suitability)
852
+ secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
853
+ return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
854
+ tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
855
+ return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
856
+ secondary_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"])
857
+ return false unless secondary_instrument_validator.valid?(@secondary_instrument)
858
+ tertiary_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"])
859
+ return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
832
860
  production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
833
861
  return false unless production_rating_validator.valid?(@production_rating)
834
862
  performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
@@ -849,36 +877,10 @@ module SongtradrApiClientRuby
849
877
  return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
850
878
  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"])
851
879
  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)
870
880
  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"])
871
881
  return false unless industry_suitability_validator.valid?(@industry_suitability)
872
882
  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"])
873
883
  return false unless audience_region_validator.valid?(@audience_region)
874
- secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
875
- return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
876
- tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
877
- return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
878
- secondary_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"])
879
- return false unless secondary_instrument_validator.valid?(@secondary_instrument)
880
- tertiary_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"])
881
- return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
882
884
  key_validator = EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
883
885
  return false unless key_validator.valid?(@key)
884
886
  true
@@ -904,6 +906,96 @@ module SongtradrApiClientRuby
904
906
  @language_of_performance = language_of_performance
905
907
  end
906
908
 
909
+ # Custom attribute writer method checking allowed values (enum).
910
+ # @param [Object] arousal Object to be assigned
911
+ def arousal=(arousal)
912
+ validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
913
+ unless validator.valid?(arousal)
914
+ fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
915
+ end
916
+ @arousal = arousal
917
+ end
918
+
919
+ # Custom attribute writer method checking allowed values (enum).
920
+ # @param [Object] dominant_instrument Object to be assigned
921
+ def dominant_instrument=(dominant_instrument)
922
+ 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"])
923
+ unless validator.valid?(dominant_instrument)
924
+ fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
925
+ end
926
+ @dominant_instrument = dominant_instrument
927
+ end
928
+
929
+ # Custom attribute writer method checking allowed values (enum).
930
+ # @param [Object] energy Object to be assigned
931
+ def energy=(energy)
932
+ validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
933
+ unless validator.valid?(energy)
934
+ fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
935
+ end
936
+ @energy = energy
937
+ end
938
+
939
+ # Custom attribute writer method checking allowed values (enum).
940
+ # @param [Object] engagement Object to be assigned
941
+ def engagement=(engagement)
942
+ validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
943
+ unless validator.valid?(engagement)
944
+ fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
945
+ end
946
+ @engagement = engagement
947
+ end
948
+
949
+ # Custom attribute writer method checking allowed values (enum).
950
+ # @param [Object] groovyness Object to be assigned
951
+ def groovyness=(groovyness)
952
+ validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
953
+ unless validator.valid?(groovyness)
954
+ fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
955
+ end
956
+ @groovyness = groovyness
957
+ end
958
+
959
+ # Custom attribute writer method checking allowed values (enum).
960
+ # @param [Object] harmony Object to be assigned
961
+ def harmony=(harmony)
962
+ validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
963
+ unless validator.valid?(harmony)
964
+ fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
965
+ end
966
+ @harmony = harmony
967
+ end
968
+
969
+ # Custom attribute writer method checking allowed values (enum).
970
+ # @param [Object] pleasantness Object to be assigned
971
+ def pleasantness=(pleasantness)
972
+ validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
973
+ unless validator.valid?(pleasantness)
974
+ fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
975
+ end
976
+ @pleasantness = pleasantness
977
+ end
978
+
979
+ # Custom attribute writer method checking allowed values (enum).
980
+ # @param [Object] primary_mood_cluster Object to be assigned
981
+ def primary_mood_cluster=(primary_mood_cluster)
982
+ validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
983
+ unless validator.valid?(primary_mood_cluster)
984
+ fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
985
+ end
986
+ @primary_mood_cluster = primary_mood_cluster
987
+ end
988
+
989
+ # Custom attribute writer method checking allowed values (enum).
990
+ # @param [Object] primary_sound_character Object to be assigned
991
+ def primary_sound_character=(primary_sound_character)
992
+ validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
993
+ unless validator.valid?(primary_sound_character)
994
+ fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
995
+ end
996
+ @primary_sound_character = primary_sound_character
997
+ end
998
+
907
999
  # Custom attribute writer method checking allowed values (enum).
908
1000
  # @param [Object] rhythm Object to be assigned
909
1001
  def rhythm=(rhythm)
@@ -1044,6 +1136,46 @@ module SongtradrApiClientRuby
1044
1136
  @channel_suitability = channel_suitability
1045
1137
  end
1046
1138
 
1139
+ # Custom attribute writer method checking allowed values (enum).
1140
+ # @param [Object] secondary_mood_cluster Object to be assigned
1141
+ def secondary_mood_cluster=(secondary_mood_cluster)
1142
+ validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
1143
+ unless validator.valid?(secondary_mood_cluster)
1144
+ fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
1145
+ end
1146
+ @secondary_mood_cluster = secondary_mood_cluster
1147
+ end
1148
+
1149
+ # Custom attribute writer method checking allowed values (enum).
1150
+ # @param [Object] tertiary_mood_cluster Object to be assigned
1151
+ def tertiary_mood_cluster=(tertiary_mood_cluster)
1152
+ validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
1153
+ unless validator.valid?(tertiary_mood_cluster)
1154
+ fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
1155
+ end
1156
+ @tertiary_mood_cluster = tertiary_mood_cluster
1157
+ end
1158
+
1159
+ # Custom attribute writer method checking allowed values (enum).
1160
+ # @param [Object] secondary_instrument Object to be assigned
1161
+ def secondary_instrument=(secondary_instrument)
1162
+ 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"])
1163
+ unless validator.valid?(secondary_instrument)
1164
+ fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
1165
+ end
1166
+ @secondary_instrument = secondary_instrument
1167
+ end
1168
+
1169
+ # Custom attribute writer method checking allowed values (enum).
1170
+ # @param [Object] tertiary_instrument Object to be assigned
1171
+ def tertiary_instrument=(tertiary_instrument)
1172
+ 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"])
1173
+ unless validator.valid?(tertiary_instrument)
1174
+ fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
1175
+ end
1176
+ @tertiary_instrument = tertiary_instrument
1177
+ end
1178
+
1047
1179
  # Custom attribute writer method checking allowed values (enum).
1048
1180
  # @param [Object] production_rating Object to be assigned
1049
1181
  def production_rating=(production_rating)
@@ -1144,96 +1276,6 @@ module SongtradrApiClientRuby
1144
1276
  @origin_region = origin_region
1145
1277
  end
1146
1278
 
1147
- # Custom attribute writer method checking allowed values (enum).
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}."
1153
- end
1154
- @arousal = arousal
1155
- end
1156
-
1157
- # Custom attribute writer method checking allowed values (enum).
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}."
1163
- end
1164
- @dominant_instrument = dominant_instrument
1165
- end
1166
-
1167
- # Custom attribute writer method checking allowed values (enum).
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}."
1173
- end
1174
- @energy = energy
1175
- end
1176
-
1177
- # Custom attribute writer method checking allowed values (enum).
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}."
1183
- end
1184
- @engagement = engagement
1185
- end
1186
-
1187
- # Custom attribute writer method checking allowed values (enum).
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}."
1193
- end
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
1279
  # Custom attribute writer method checking allowed values (enum).
1238
1280
  # @param [Object] industry_suitability Object to be assigned
1239
1281
  def industry_suitability=(industry_suitability)
@@ -1254,46 +1296,6 @@ module SongtradrApiClientRuby
1254
1296
  @audience_region = audience_region
1255
1297
  end
1256
1298
 
1257
- # Custom attribute writer method checking allowed values (enum).
1258
- # @param [Object] secondary_mood_cluster Object to be assigned
1259
- def secondary_mood_cluster=(secondary_mood_cluster)
1260
- validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
1261
- unless validator.valid?(secondary_mood_cluster)
1262
- fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
1263
- end
1264
- @secondary_mood_cluster = secondary_mood_cluster
1265
- end
1266
-
1267
- # Custom attribute writer method checking allowed values (enum).
1268
- # @param [Object] tertiary_mood_cluster Object to be assigned
1269
- def tertiary_mood_cluster=(tertiary_mood_cluster)
1270
- validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
1271
- unless validator.valid?(tertiary_mood_cluster)
1272
- fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
1273
- end
1274
- @tertiary_mood_cluster = tertiary_mood_cluster
1275
- end
1276
-
1277
- # Custom attribute writer method checking allowed values (enum).
1278
- # @param [Object] secondary_instrument Object to be assigned
1279
- def secondary_instrument=(secondary_instrument)
1280
- 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"])
1281
- unless validator.valid?(secondary_instrument)
1282
- fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
1283
- end
1284
- @secondary_instrument = secondary_instrument
1285
- end
1286
-
1287
- # Custom attribute writer method checking allowed values (enum).
1288
- # @param [Object] tertiary_instrument Object to be assigned
1289
- def tertiary_instrument=(tertiary_instrument)
1290
- 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"])
1291
- unless validator.valid?(tertiary_instrument)
1292
- fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
1293
- end
1294
- @tertiary_instrument = tertiary_instrument
1295
- end
1296
-
1297
1299
  # Custom attribute writer method checking allowed values (enum).
1298
1300
  # @param [Object] key Object to be assigned
1299
1301
  def key=(key)
@@ -1311,6 +1313,15 @@ module SongtradrApiClientRuby
1311
1313
  self.class == o.class &&
1312
1314
  space == o.space &&
1313
1315
  language_of_performance == o.language_of_performance &&
1316
+ arousal == o.arousal &&
1317
+ dominant_instrument == o.dominant_instrument &&
1318
+ energy == o.energy &&
1319
+ engagement == o.engagement &&
1320
+ groovyness == o.groovyness &&
1321
+ harmony == o.harmony &&
1322
+ pleasantness == o.pleasantness &&
1323
+ primary_mood_cluster == o.primary_mood_cluster &&
1324
+ primary_sound_character == o.primary_sound_character &&
1314
1325
  rhythm == o.rhythm &&
1315
1326
  roughness == o.roughness &&
1316
1327
  scale == o.scale &&
@@ -1325,6 +1336,16 @@ module SongtradrApiClientRuby
1325
1336
  curateability == o.curateability &&
1326
1337
  use_case == o.use_case &&
1327
1338
  channel_suitability == o.channel_suitability &&
1339
+ primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
1340
+ secondary_mood_cluster == o.secondary_mood_cluster &&
1341
+ secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
1342
+ tertiary_mood_cluster == o.tertiary_mood_cluster &&
1343
+ tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
1344
+ vocals_affinity == o.vocals_affinity &&
1345
+ dominant_instrument_affinity == o.dominant_instrument_affinity &&
1346
+ secondary_instrument == o.secondary_instrument &&
1347
+ secondary_instrument_affinity == o.secondary_instrument_affinity &&
1348
+ tertiary_instrument == o.tertiary_instrument &&
1328
1349
  tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
1329
1350
  sound_generation_affinity == o.sound_generation_affinity &&
1330
1351
  rhythm_affinity == o.rhythm_affinity &&
@@ -1356,28 +1377,9 @@ module SongtradrApiClientRuby
1356
1377
  language_of_performance_affinity == o.language_of_performance_affinity &&
1357
1378
  curateability_affinity == o.curateability_affinity &&
1358
1379
  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 &&
1368
1380
  industry_suitability == o.industry_suitability &&
1369
1381
  industry_suitability_affinity == o.industry_suitability_affinity &&
1370
1382
  audience_region == o.audience_region &&
1371
- primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
1372
- secondary_mood_cluster == o.secondary_mood_cluster &&
1373
- secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
1374
- tertiary_mood_cluster == o.tertiary_mood_cluster &&
1375
- tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
1376
- vocals_affinity == o.vocals_affinity &&
1377
- dominant_instrument_affinity == o.dominant_instrument_affinity &&
1378
- secondary_instrument == o.secondary_instrument &&
1379
- secondary_instrument_affinity == o.secondary_instrument_affinity &&
1380
- tertiary_instrument == o.tertiary_instrument &&
1381
1383
  valence_affinity == o.valence_affinity &&
1382
1384
  arousal_affinity == o.arousal_affinity &&
1383
1385
  pleasantness_affinity == o.pleasantness_affinity &&
@@ -1405,44 +1407,37 @@ module SongtradrApiClientRuby
1405
1407
  # Calculates hash code according to all attributes.
1406
1408
  # @return [Integer] Hash code
1407
1409
  def 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
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, 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, 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
1411
  end
1410
1412
 
1411
1413
  # Builds the object from hash
1412
1414
  # @param [Hash] attributes Model attributes in the form of hash
1413
1415
  # @return [Object] Returns the model itself
1414
1416
  def self.build_from_hash(attributes)
1415
- new.build_from_hash(attributes)
1416
- end
1417
-
1418
- # Builds the object from hash
1419
- # @param [Hash] attributes Model attributes in the form of hash
1420
- # @return [Object] Returns the model itself
1421
- def build_from_hash(attributes)
1422
1417
  return nil unless attributes.is_a?(Hash)
1423
1418
  attributes = attributes.transform_keys(&:to_sym)
1424
- self.class.openapi_types.each_pair do |key, type|
1425
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
1426
- self.send("#{key}=", nil)
1419
+ transformed_hash = {}
1420
+ openapi_types.each_pair do |key, type|
1421
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
1422
+ transformed_hash["#{key}"] = nil
1427
1423
  elsif type =~ /\AArray<(.*)>/i
1428
1424
  # check to ensure the input is an array given that the attribute
1429
1425
  # is documented as an array but the input is not
1430
- if attributes[self.class.attribute_map[key]].is_a?(Array)
1431
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1426
+ if attributes[attribute_map[key]].is_a?(Array)
1427
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
1432
1428
  end
1433
- elsif !attributes[self.class.attribute_map[key]].nil?
1434
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1429
+ elsif !attributes[attribute_map[key]].nil?
1430
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
1435
1431
  end
1436
1432
  end
1437
-
1438
- self
1433
+ new(transformed_hash)
1439
1434
  end
1440
1435
 
1441
1436
  # Deserializes the data based on type
1442
1437
  # @param string type Data type
1443
1438
  # @param string value Value to be deserialized
1444
1439
  # @return [Object] Deserialized data
1445
- def _deserialize(type, value)
1440
+ def self._deserialize(type, value)
1446
1441
  case type.to_sym
1447
1442
  when :Time
1448
1443
  Time.parse(value)