songtradr_api_client_ruby 1.12.23 → 1.12.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +2 -2
- data/docs/FileSmallDTO.md +15 -15
- data/docs/MusicalFeaturesDTO.md +68 -68
- data/docs/PlaylistLargeDTO.md +7 -7
- data/docs/ProductMediumDTO.md +7 -7
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingApi.md +2 -0
- data/docs/RecordingGenrePredictionDTO.md +4 -4
- data/docs/RecordingLargeDTO.md +8 -8
- data/docs/RecordingMediumDTO.md +6 -6
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/UserApi.md +4 -0
- data/docs/UserDTO.md +18 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +4 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -1
- data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +10 -8
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +29 -28
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +84 -79
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +448 -453
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +45 -48
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +66 -59
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +38 -37
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +74 -57
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +61 -48
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +196 -19
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +1 -1
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +1 -1
- data/spec/api/party_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +1 -1
- data/spec/api/recording_api_spec.rb +2 -1
- data/spec/api/user_api_spec.rb +3 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_api_user_dto_spec.rb +1 -1
- data/spec/models/api_key_dto_spec.rb +3 -3
- data/spec/models/category_medium_dto_spec.rb +1 -1
- data/spec/models/category_minimal_dto_spec.rb +1 -1
- data/spec/models/config_access_dto_spec.rb +1 -1
- data/spec/models/config_identifier_dto_spec.rb +1 -1
- data/spec/models/contributor_type_dto_spec.rb +1 -1
- data/spec/models/create_api_key_dto_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/field_summary_dto_spec.rb +1 -1
- data/spec/models/file_dto_spec.rb +1 -1
- data/spec/models/file_list_dto_spec.rb +1 -1
- data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
- data/spec/models/file_small_dto_spec.rb +19 -19
- data/spec/models/file_upload_dto_spec.rb +1 -1
- data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
- data/spec/models/files_summary_dto_spec.rb +1 -1
- data/spec/models/forgot_password_dto_spec.rb +1 -1
- data/spec/models/genre_dto_spec.rb +1 -1
- data/spec/models/genre_minimal_dto_spec.rb +1 -1
- data/spec/models/genres_summary_dto_spec.rb +1 -1
- data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
- data/spec/models/jwt_token_dto_spec.rb +1 -1
- data/spec/models/login_dto_spec.rb +1 -1
- data/spec/models/musical_features_dto_spec.rb +121 -121
- data/spec/models/p_line_dto_spec.rb +1 -1
- data/spec/models/party_large_dto_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/playlist_large_dto_spec.rb +10 -10
- data/spec/models/product_medium_dto_spec.rb +9 -9
- data/spec/models/product_party_dto_spec.rb +3 -3
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +3 -3
- data/spec/models/recording_large_dto_spec.rb +12 -12
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +9 -9
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
- data/spec/models/recording_party_dto_spec.rb +3 -3
- data/spec/models/recording_playlist_dto_spec.rb +1 -1
- data/spec/models/recording_small_dto_spec.rb +4 -4
- data/spec/models/recording_tag_small_dto_spec.rb +1 -1
- data/spec/models/save_file_recording_dto_spec.rb +1 -1
- data/spec/models/save_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_genre_dto_spec.rb +1 -1
- data/spec/models/save_recording_party_dto_spec.rb +1 -1
- data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_tag_dto_spec.rb +1 -1
- data/spec/models/save_referrer_dto_spec.rb +1 -1
- data/spec/models/save_taggrams_dto_spec.rb +1 -1
- data/spec/models/save_user_dto_spec.rb +1 -1
- data/spec/models/search_filter_values_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_dto_spec.rb +1 -1
- data/spec/models/sign_up_dto_spec.rb +1 -1
- data/spec/models/tag_dto_spec.rb +1 -1
- data/spec/models/tag_small_dto_spec.rb +1 -1
- data/spec/models/taggram_dto_spec.rb +1 -1
- data/spec/models/tags_summary_dto_spec.rb +1 -1
- data/spec/models/tagstrength_dto_spec.rb +1 -1
- data/spec/models/title_dto_spec.rb +1 -1
- data/spec/models/token_request_spec.rb +1 -1
- data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +55 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
@@ -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.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -21,47 +21,29 @@ module SongtradrApiClientRuby
|
|
21
21
|
|
22
22
|
attr_accessor :language_of_performance
|
23
23
|
|
24
|
-
|
25
|
-
attr_accessor :rhythm
|
26
|
-
|
27
|
-
# Search for roughness
|
28
|
-
attr_accessor :roughness
|
29
|
-
|
30
|
-
# Search for a tonal scale
|
31
|
-
attr_accessor :scale
|
32
|
-
|
33
|
-
# Search for type of sound generation
|
34
|
-
attr_accessor :sound_generation
|
35
|
-
|
36
|
-
# Search for tempo
|
37
|
-
attr_accessor :tempo
|
24
|
+
attr_accessor :primary_mood_cluster_affinity
|
38
25
|
|
39
|
-
# Search for
|
40
|
-
attr_accessor :
|
26
|
+
# Search for a language of the lyrics
|
27
|
+
attr_accessor :secondary_mood_cluster
|
41
28
|
|
42
|
-
|
43
|
-
attr_accessor :timbre
|
29
|
+
attr_accessor :secondary_mood_cluster_affinity
|
44
30
|
|
45
|
-
# Search for
|
46
|
-
attr_accessor :
|
31
|
+
# Search for a language of the lyrics
|
32
|
+
attr_accessor :tertiary_mood_cluster
|
47
33
|
|
48
|
-
|
49
|
-
attr_accessor :valence
|
34
|
+
attr_accessor :tertiary_mood_cluster_affinity
|
50
35
|
|
51
|
-
|
52
|
-
attr_accessor :vocals
|
36
|
+
attr_accessor :vocals_affinity
|
53
37
|
|
54
|
-
|
55
|
-
attr_accessor :origin_decade
|
38
|
+
attr_accessor :dominant_instrument_affinity
|
56
39
|
|
57
|
-
# Search for
|
58
|
-
attr_accessor :
|
40
|
+
# Search for a dominant instrument
|
41
|
+
attr_accessor :secondary_instrument
|
59
42
|
|
60
|
-
|
61
|
-
attr_accessor :use_case
|
43
|
+
attr_accessor :secondary_instrument_affinity
|
62
44
|
|
63
|
-
# Search for
|
64
|
-
attr_accessor :
|
45
|
+
# Search for a dominant instrument
|
46
|
+
attr_accessor :tertiary_instrument
|
65
47
|
|
66
48
|
attr_accessor :tertiary_instrument_affinity
|
67
49
|
|
@@ -125,6 +107,11 @@ module SongtradrApiClientRuby
|
|
125
107
|
|
126
108
|
attr_accessor :use_case_affinity
|
127
109
|
|
110
|
+
# Search for Industry suitability
|
111
|
+
attr_accessor :industry_suitability
|
112
|
+
|
113
|
+
attr_accessor :industry_suitability_affinity
|
114
|
+
|
128
115
|
# Search for an arousal
|
129
116
|
attr_accessor :arousal
|
130
117
|
|
@@ -152,46 +139,56 @@ module SongtradrApiClientRuby
|
|
152
139
|
# Search for a sound character
|
153
140
|
attr_accessor :primary_sound_character
|
154
141
|
|
155
|
-
# Search for
|
156
|
-
attr_accessor :
|
142
|
+
# Search for rhythm
|
143
|
+
attr_accessor :rhythm
|
157
144
|
|
158
|
-
|
145
|
+
# Search for roughness
|
146
|
+
attr_accessor :roughness
|
159
147
|
|
160
|
-
|
148
|
+
# Search for a tonal scale
|
149
|
+
attr_accessor :scale
|
161
150
|
|
162
|
-
|
151
|
+
# Search for type of sound generation
|
152
|
+
attr_accessor :sound_generation
|
163
153
|
|
164
|
-
# Search for
|
165
|
-
attr_accessor :
|
154
|
+
# Search for tempo
|
155
|
+
attr_accessor :tempo
|
166
156
|
|
167
|
-
|
157
|
+
# Search for texture
|
158
|
+
attr_accessor :texture
|
168
159
|
|
169
|
-
# Search for
|
170
|
-
attr_accessor :
|
160
|
+
# Search for timbre
|
161
|
+
attr_accessor :timbre
|
171
162
|
|
172
|
-
|
163
|
+
# Search for tonality
|
164
|
+
attr_accessor :tonality
|
173
165
|
|
174
|
-
|
166
|
+
# Search for a valence
|
167
|
+
attr_accessor :valence
|
175
168
|
|
176
|
-
attr_accessor :
|
169
|
+
attr_accessor :audience_region
|
177
170
|
|
178
|
-
# Search for a
|
179
|
-
attr_accessor :
|
171
|
+
# Search for a vocal gender or instrumental songs
|
172
|
+
attr_accessor :vocals
|
180
173
|
|
181
|
-
|
174
|
+
# Search for origin decade
|
175
|
+
attr_accessor :origin_decade
|
182
176
|
|
183
|
-
# Search for
|
184
|
-
attr_accessor :
|
177
|
+
# Search for curatebility
|
178
|
+
attr_accessor :curateability
|
185
179
|
|
186
|
-
|
180
|
+
# Search for use case
|
181
|
+
attr_accessor :use_case
|
187
182
|
|
188
|
-
|
183
|
+
# Search for social media suitability
|
184
|
+
attr_accessor :channel_suitability
|
189
185
|
|
190
|
-
|
186
|
+
# Search for a harmonic key
|
187
|
+
attr_accessor :key
|
191
188
|
|
192
|
-
attr_accessor :
|
189
|
+
attr_accessor :channel_suitability_affinity
|
193
190
|
|
194
|
-
attr_accessor :
|
191
|
+
attr_accessor :pleasantness_affinity
|
195
192
|
|
196
193
|
attr_accessor :tempo_affinity
|
197
194
|
|
@@ -199,22 +196,25 @@ module SongtradrApiClientRuby
|
|
199
196
|
|
200
197
|
attr_accessor :timbre_affinity
|
201
198
|
|
202
|
-
attr_accessor :
|
199
|
+
attr_accessor :engagement_affinity
|
203
200
|
|
204
|
-
attr_accessor :
|
201
|
+
attr_accessor :energy_affinity
|
205
202
|
|
206
203
|
attr_accessor :texture_affinity
|
207
204
|
|
208
205
|
attr_accessor :groovyness_affinity
|
209
206
|
|
207
|
+
attr_accessor :valence_affinity
|
208
|
+
|
209
|
+
attr_accessor :arousal_affinity
|
210
|
+
|
210
211
|
attr_accessor :space_affinity
|
211
212
|
|
212
213
|
attr_accessor :key_affinity
|
213
214
|
|
214
|
-
attr_accessor :
|
215
|
+
attr_accessor :roughness_affinity
|
215
216
|
|
216
|
-
|
217
|
-
attr_accessor :key
|
217
|
+
attr_accessor :harmony_affinity
|
218
218
|
|
219
219
|
class EnumAttributeValidator
|
220
220
|
attr_reader :datatype
|
@@ -243,20 +243,16 @@ module SongtradrApiClientRuby
|
|
243
243
|
{
|
244
244
|
:'space' => :'space',
|
245
245
|
:'language_of_performance' => :'languageOfPerformance',
|
246
|
-
:'
|
247
|
-
:'
|
248
|
-
:'
|
249
|
-
:'
|
250
|
-
:'
|
251
|
-
:'
|
252
|
-
:'
|
253
|
-
:'
|
254
|
-
:'
|
255
|
-
:'
|
256
|
-
:'origin_decade' => :'originDecade',
|
257
|
-
:'curateability' => :'curateability',
|
258
|
-
:'use_case' => :'useCase',
|
259
|
-
:'channel_suitability' => :'channelSuitability',
|
246
|
+
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
247
|
+
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
248
|
+
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
249
|
+
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
250
|
+
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
251
|
+
:'vocals_affinity' => :'vocalsAffinity',
|
252
|
+
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
253
|
+
:'secondary_instrument' => :'secondaryInstrument',
|
254
|
+
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
255
|
+
:'tertiary_instrument' => :'tertiaryInstrument',
|
260
256
|
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
261
257
|
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
262
258
|
:'rhythm_affinity' => :'rhythmAffinity',
|
@@ -288,6 +284,8 @@ module SongtradrApiClientRuby
|
|
288
284
|
:'language_of_performance_affinity' => :'languageOfPerformanceAffinity',
|
289
285
|
:'curateability_affinity' => :'curateabilityAffinity',
|
290
286
|
:'use_case_affinity' => :'useCaseAffinity',
|
287
|
+
:'industry_suitability' => :'industrySuitability',
|
288
|
+
:'industry_suitability_affinity' => :'industrySuitabilityAffinity',
|
291
289
|
:'arousal' => :'arousal',
|
292
290
|
:'dominant_instrument' => :'dominantInstrument',
|
293
291
|
:'energy' => :'energy',
|
@@ -297,35 +295,37 @@ module SongtradrApiClientRuby
|
|
297
295
|
:'pleasantness' => :'pleasantness',
|
298
296
|
:'primary_mood_cluster' => :'primaryMoodCluster',
|
299
297
|
:'primary_sound_character' => :'primarySoundCharacter',
|
300
|
-
:'
|
301
|
-
:'
|
298
|
+
:'rhythm' => :'rhythm',
|
299
|
+
:'roughness' => :'roughness',
|
300
|
+
:'scale' => :'scale',
|
301
|
+
:'sound_generation' => :'soundGeneration',
|
302
|
+
:'tempo' => :'tempo',
|
303
|
+
:'texture' => :'texture',
|
304
|
+
:'timbre' => :'timbre',
|
305
|
+
:'tonality' => :'tonality',
|
306
|
+
:'valence' => :'valence',
|
302
307
|
:'audience_region' => :'audienceRegion',
|
303
|
-
:'
|
304
|
-
:'
|
305
|
-
:'
|
306
|
-
:'
|
307
|
-
:'
|
308
|
-
:'
|
309
|
-
:'
|
310
|
-
:'secondary_instrument' => :'secondaryInstrument',
|
311
|
-
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
312
|
-
:'tertiary_instrument' => :'tertiaryInstrument',
|
313
|
-
:'valence_affinity' => :'valenceAffinity',
|
314
|
-
:'arousal_affinity' => :'arousalAffinity',
|
308
|
+
:'vocals' => :'vocals',
|
309
|
+
:'origin_decade' => :'originDecade',
|
310
|
+
:'curateability' => :'curateability',
|
311
|
+
:'use_case' => :'useCase',
|
312
|
+
:'channel_suitability' => :'channelSuitability',
|
313
|
+
:'key' => :'key',
|
314
|
+
:'channel_suitability_affinity' => :'channelSuitabilityAffinity',
|
315
315
|
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
316
|
-
:'engagement_affinity' => :'engagementAffinity',
|
317
|
-
:'energy_affinity' => :'energyAffinity',
|
318
316
|
:'tempo_affinity' => :'tempoAffinity',
|
319
317
|
:'scale_affinity' => :'scaleAffinity',
|
320
318
|
:'timbre_affinity' => :'timbreAffinity',
|
321
|
-
:'
|
322
|
-
:'
|
319
|
+
:'engagement_affinity' => :'engagementAffinity',
|
320
|
+
:'energy_affinity' => :'energyAffinity',
|
323
321
|
:'texture_affinity' => :'textureAffinity',
|
324
322
|
:'groovyness_affinity' => :'groovynessAffinity',
|
323
|
+
:'valence_affinity' => :'valenceAffinity',
|
324
|
+
:'arousal_affinity' => :'arousalAffinity',
|
325
325
|
:'space_affinity' => :'spaceAffinity',
|
326
326
|
:'key_affinity' => :'keyAffinity',
|
327
|
-
:'
|
328
|
-
:'
|
327
|
+
:'roughness_affinity' => :'roughnessAffinity',
|
328
|
+
:'harmony_affinity' => :'harmonyAffinity'
|
329
329
|
}
|
330
330
|
end
|
331
331
|
|
@@ -339,20 +339,16 @@ module SongtradrApiClientRuby
|
|
339
339
|
{
|
340
340
|
:'space' => :'String',
|
341
341
|
:'language_of_performance' => :'String',
|
342
|
-
:'
|
343
|
-
:'
|
344
|
-
:'
|
345
|
-
:'
|
346
|
-
:'
|
347
|
-
:'
|
348
|
-
:'
|
349
|
-
:'
|
350
|
-
:'
|
351
|
-
:'
|
352
|
-
:'origin_decade' => :'String',
|
353
|
-
:'curateability' => :'String',
|
354
|
-
:'use_case' => :'String',
|
355
|
-
:'channel_suitability' => :'String',
|
342
|
+
:'primary_mood_cluster_affinity' => :'Float',
|
343
|
+
:'secondary_mood_cluster' => :'String',
|
344
|
+
:'secondary_mood_cluster_affinity' => :'Float',
|
345
|
+
:'tertiary_mood_cluster' => :'String',
|
346
|
+
:'tertiary_mood_cluster_affinity' => :'Float',
|
347
|
+
:'vocals_affinity' => :'Float',
|
348
|
+
:'dominant_instrument_affinity' => :'Float',
|
349
|
+
:'secondary_instrument' => :'String',
|
350
|
+
:'secondary_instrument_affinity' => :'Float',
|
351
|
+
:'tertiary_instrument' => :'String',
|
356
352
|
:'tertiary_instrument_affinity' => :'Float',
|
357
353
|
:'sound_generation_affinity' => :'Float',
|
358
354
|
:'rhythm_affinity' => :'Float',
|
@@ -384,6 +380,8 @@ module SongtradrApiClientRuby
|
|
384
380
|
:'language_of_performance_affinity' => :'Float',
|
385
381
|
:'curateability_affinity' => :'Float',
|
386
382
|
:'use_case_affinity' => :'Float',
|
383
|
+
:'industry_suitability' => :'String',
|
384
|
+
:'industry_suitability_affinity' => :'Float',
|
387
385
|
:'arousal' => :'String',
|
388
386
|
:'dominant_instrument' => :'String',
|
389
387
|
:'energy' => :'String',
|
@@ -393,35 +391,37 @@ module SongtradrApiClientRuby
|
|
393
391
|
:'pleasantness' => :'String',
|
394
392
|
:'primary_mood_cluster' => :'String',
|
395
393
|
:'primary_sound_character' => :'String',
|
396
|
-
:'
|
397
|
-
:'
|
394
|
+
:'rhythm' => :'String',
|
395
|
+
:'roughness' => :'String',
|
396
|
+
:'scale' => :'String',
|
397
|
+
:'sound_generation' => :'String',
|
398
|
+
:'tempo' => :'String',
|
399
|
+
:'texture' => :'String',
|
400
|
+
:'timbre' => :'String',
|
401
|
+
:'tonality' => :'String',
|
402
|
+
:'valence' => :'String',
|
398
403
|
:'audience_region' => :'String',
|
399
|
-
:'
|
400
|
-
:'
|
401
|
-
:'
|
402
|
-
:'
|
403
|
-
:'
|
404
|
-
:'
|
405
|
-
:'
|
406
|
-
:'secondary_instrument' => :'String',
|
407
|
-
:'secondary_instrument_affinity' => :'Float',
|
408
|
-
:'tertiary_instrument' => :'String',
|
409
|
-
:'valence_affinity' => :'Float',
|
410
|
-
:'arousal_affinity' => :'Float',
|
404
|
+
:'vocals' => :'String',
|
405
|
+
:'origin_decade' => :'String',
|
406
|
+
:'curateability' => :'String',
|
407
|
+
:'use_case' => :'String',
|
408
|
+
:'channel_suitability' => :'String',
|
409
|
+
:'key' => :'String',
|
410
|
+
:'channel_suitability_affinity' => :'Float',
|
411
411
|
:'pleasantness_affinity' => :'Float',
|
412
|
-
:'engagement_affinity' => :'Float',
|
413
|
-
:'energy_affinity' => :'Float',
|
414
412
|
:'tempo_affinity' => :'Float',
|
415
413
|
:'scale_affinity' => :'Float',
|
416
414
|
:'timbre_affinity' => :'Float',
|
417
|
-
:'
|
418
|
-
:'
|
415
|
+
:'engagement_affinity' => :'Float',
|
416
|
+
:'energy_affinity' => :'Float',
|
419
417
|
:'texture_affinity' => :'Float',
|
420
418
|
:'groovyness_affinity' => :'Float',
|
419
|
+
:'valence_affinity' => :'Float',
|
420
|
+
:'arousal_affinity' => :'Float',
|
421
421
|
:'space_affinity' => :'Float',
|
422
422
|
:'key_affinity' => :'Float',
|
423
|
-
:'
|
424
|
-
:'
|
423
|
+
:'roughness_affinity' => :'Float',
|
424
|
+
:'harmony_affinity' => :'Float'
|
425
425
|
}
|
426
426
|
end
|
427
427
|
|
@@ -454,60 +454,44 @@ module SongtradrApiClientRuby
|
|
454
454
|
self.language_of_performance = attributes[:'language_of_performance']
|
455
455
|
end
|
456
456
|
|
457
|
-
if attributes.key?(:'
|
458
|
-
self.
|
457
|
+
if attributes.key?(:'primary_mood_cluster_affinity')
|
458
|
+
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
459
459
|
end
|
460
460
|
|
461
|
-
if attributes.key?(:'
|
462
|
-
self.
|
461
|
+
if attributes.key?(:'secondary_mood_cluster')
|
462
|
+
self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
|
463
463
|
end
|
464
464
|
|
465
|
-
if attributes.key?(:'
|
466
|
-
self.
|
467
|
-
end
|
468
|
-
|
469
|
-
if attributes.key?(:'sound_generation')
|
470
|
-
self.sound_generation = attributes[:'sound_generation']
|
471
|
-
end
|
472
|
-
|
473
|
-
if attributes.key?(:'tempo')
|
474
|
-
self.tempo = attributes[:'tempo']
|
475
|
-
end
|
476
|
-
|
477
|
-
if attributes.key?(:'texture')
|
478
|
-
self.texture = attributes[:'texture']
|
479
|
-
end
|
480
|
-
|
481
|
-
if attributes.key?(:'timbre')
|
482
|
-
self.timbre = attributes[:'timbre']
|
465
|
+
if attributes.key?(:'secondary_mood_cluster_affinity')
|
466
|
+
self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
|
483
467
|
end
|
484
468
|
|
485
|
-
if attributes.key?(:'
|
486
|
-
self.
|
469
|
+
if attributes.key?(:'tertiary_mood_cluster')
|
470
|
+
self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
|
487
471
|
end
|
488
472
|
|
489
|
-
if attributes.key?(:'
|
490
|
-
self.
|
473
|
+
if attributes.key?(:'tertiary_mood_cluster_affinity')
|
474
|
+
self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
|
491
475
|
end
|
492
476
|
|
493
|
-
if attributes.key?(:'
|
494
|
-
self.
|
477
|
+
if attributes.key?(:'vocals_affinity')
|
478
|
+
self.vocals_affinity = attributes[:'vocals_affinity']
|
495
479
|
end
|
496
480
|
|
497
|
-
if attributes.key?(:'
|
498
|
-
self.
|
481
|
+
if attributes.key?(:'dominant_instrument_affinity')
|
482
|
+
self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
|
499
483
|
end
|
500
484
|
|
501
|
-
if attributes.key?(:'
|
502
|
-
self.
|
485
|
+
if attributes.key?(:'secondary_instrument')
|
486
|
+
self.secondary_instrument = attributes[:'secondary_instrument']
|
503
487
|
end
|
504
488
|
|
505
|
-
if attributes.key?(:'
|
506
|
-
self.
|
489
|
+
if attributes.key?(:'secondary_instrument_affinity')
|
490
|
+
self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
|
507
491
|
end
|
508
492
|
|
509
|
-
if attributes.key?(:'
|
510
|
-
self.
|
493
|
+
if attributes.key?(:'tertiary_instrument')
|
494
|
+
self.tertiary_instrument = attributes[:'tertiary_instrument']
|
511
495
|
end
|
512
496
|
|
513
497
|
if attributes.key?(:'tertiary_instrument_affinity')
|
@@ -634,6 +618,14 @@ module SongtradrApiClientRuby
|
|
634
618
|
self.use_case_affinity = attributes[:'use_case_affinity']
|
635
619
|
end
|
636
620
|
|
621
|
+
if attributes.key?(:'industry_suitability')
|
622
|
+
self.industry_suitability = attributes[:'industry_suitability']
|
623
|
+
end
|
624
|
+
|
625
|
+
if attributes.key?(:'industry_suitability_affinity')
|
626
|
+
self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
|
627
|
+
end
|
628
|
+
|
637
629
|
if attributes.key?(:'arousal')
|
638
630
|
self.arousal = attributes[:'arousal']
|
639
631
|
end
|
@@ -670,76 +662,76 @@ module SongtradrApiClientRuby
|
|
670
662
|
self.primary_sound_character = attributes[:'primary_sound_character']
|
671
663
|
end
|
672
664
|
|
673
|
-
if attributes.key?(:'
|
674
|
-
self.
|
665
|
+
if attributes.key?(:'rhythm')
|
666
|
+
self.rhythm = attributes[:'rhythm']
|
675
667
|
end
|
676
668
|
|
677
|
-
if attributes.key?(:'
|
678
|
-
self.
|
669
|
+
if attributes.key?(:'roughness')
|
670
|
+
self.roughness = attributes[:'roughness']
|
679
671
|
end
|
680
672
|
|
681
|
-
if attributes.key?(:'
|
682
|
-
self.
|
673
|
+
if attributes.key?(:'scale')
|
674
|
+
self.scale = attributes[:'scale']
|
683
675
|
end
|
684
676
|
|
685
|
-
if attributes.key?(:'
|
686
|
-
self.
|
677
|
+
if attributes.key?(:'sound_generation')
|
678
|
+
self.sound_generation = attributes[:'sound_generation']
|
687
679
|
end
|
688
680
|
|
689
|
-
if attributes.key?(:'
|
690
|
-
self.
|
681
|
+
if attributes.key?(:'tempo')
|
682
|
+
self.tempo = attributes[:'tempo']
|
691
683
|
end
|
692
684
|
|
693
|
-
if attributes.key?(:'
|
694
|
-
self.
|
685
|
+
if attributes.key?(:'texture')
|
686
|
+
self.texture = attributes[:'texture']
|
695
687
|
end
|
696
688
|
|
697
|
-
if attributes.key?(:'
|
698
|
-
self.
|
689
|
+
if attributes.key?(:'timbre')
|
690
|
+
self.timbre = attributes[:'timbre']
|
699
691
|
end
|
700
692
|
|
701
|
-
if attributes.key?(:'
|
702
|
-
self.
|
693
|
+
if attributes.key?(:'tonality')
|
694
|
+
self.tonality = attributes[:'tonality']
|
703
695
|
end
|
704
696
|
|
705
|
-
if attributes.key?(:'
|
706
|
-
self.
|
697
|
+
if attributes.key?(:'valence')
|
698
|
+
self.valence = attributes[:'valence']
|
707
699
|
end
|
708
700
|
|
709
|
-
if attributes.key?(:'
|
710
|
-
self.
|
701
|
+
if attributes.key?(:'audience_region')
|
702
|
+
self.audience_region = attributes[:'audience_region']
|
711
703
|
end
|
712
704
|
|
713
|
-
if attributes.key?(:'
|
714
|
-
self.
|
705
|
+
if attributes.key?(:'vocals')
|
706
|
+
self.vocals = attributes[:'vocals']
|
715
707
|
end
|
716
708
|
|
717
|
-
if attributes.key?(:'
|
718
|
-
self.
|
709
|
+
if attributes.key?(:'origin_decade')
|
710
|
+
self.origin_decade = attributes[:'origin_decade']
|
719
711
|
end
|
720
712
|
|
721
|
-
if attributes.key?(:'
|
722
|
-
self.
|
713
|
+
if attributes.key?(:'curateability')
|
714
|
+
self.curateability = attributes[:'curateability']
|
723
715
|
end
|
724
716
|
|
725
|
-
if attributes.key?(:'
|
726
|
-
self.
|
717
|
+
if attributes.key?(:'use_case')
|
718
|
+
self.use_case = attributes[:'use_case']
|
727
719
|
end
|
728
720
|
|
729
|
-
if attributes.key?(:'
|
730
|
-
self.
|
721
|
+
if attributes.key?(:'channel_suitability')
|
722
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
731
723
|
end
|
732
724
|
|
733
|
-
if attributes.key?(:'
|
734
|
-
self.
|
725
|
+
if attributes.key?(:'key')
|
726
|
+
self.key = attributes[:'key']
|
735
727
|
end
|
736
728
|
|
737
|
-
if attributes.key?(:'
|
738
|
-
self.
|
729
|
+
if attributes.key?(:'channel_suitability_affinity')
|
730
|
+
self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
|
739
731
|
end
|
740
732
|
|
741
|
-
if attributes.key?(:'
|
742
|
-
self.
|
733
|
+
if attributes.key?(:'pleasantness_affinity')
|
734
|
+
self.pleasantness_affinity = attributes[:'pleasantness_affinity']
|
743
735
|
end
|
744
736
|
|
745
737
|
if attributes.key?(:'tempo_affinity')
|
@@ -754,12 +746,12 @@ module SongtradrApiClientRuby
|
|
754
746
|
self.timbre_affinity = attributes[:'timbre_affinity']
|
755
747
|
end
|
756
748
|
|
757
|
-
if attributes.key?(:'
|
758
|
-
self.
|
749
|
+
if attributes.key?(:'engagement_affinity')
|
750
|
+
self.engagement_affinity = attributes[:'engagement_affinity']
|
759
751
|
end
|
760
752
|
|
761
|
-
if attributes.key?(:'
|
762
|
-
self.
|
753
|
+
if attributes.key?(:'energy_affinity')
|
754
|
+
self.energy_affinity = attributes[:'energy_affinity']
|
763
755
|
end
|
764
756
|
|
765
757
|
if attributes.key?(:'texture_affinity')
|
@@ -770,6 +762,14 @@ module SongtradrApiClientRuby
|
|
770
762
|
self.groovyness_affinity = attributes[:'groovyness_affinity']
|
771
763
|
end
|
772
764
|
|
765
|
+
if attributes.key?(:'valence_affinity')
|
766
|
+
self.valence_affinity = attributes[:'valence_affinity']
|
767
|
+
end
|
768
|
+
|
769
|
+
if attributes.key?(:'arousal_affinity')
|
770
|
+
self.arousal_affinity = attributes[:'arousal_affinity']
|
771
|
+
end
|
772
|
+
|
773
773
|
if attributes.key?(:'space_affinity')
|
774
774
|
self.space_affinity = attributes[:'space_affinity']
|
775
775
|
end
|
@@ -778,18 +778,19 @@ module SongtradrApiClientRuby
|
|
778
778
|
self.key_affinity = attributes[:'key_affinity']
|
779
779
|
end
|
780
780
|
|
781
|
-
if attributes.key?(:'
|
782
|
-
self.
|
781
|
+
if attributes.key?(:'roughness_affinity')
|
782
|
+
self.roughness_affinity = attributes[:'roughness_affinity']
|
783
783
|
end
|
784
784
|
|
785
|
-
if attributes.key?(:'
|
786
|
-
self.
|
785
|
+
if attributes.key?(:'harmony_affinity')
|
786
|
+
self.harmony_affinity = attributes[:'harmony_affinity']
|
787
787
|
end
|
788
788
|
end
|
789
789
|
|
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,38 +798,19 @@ 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)
|
804
|
-
|
805
|
-
return false unless
|
806
|
-
|
807
|
-
return false unless
|
808
|
-
|
809
|
-
return false unless
|
810
|
-
|
811
|
-
return false unless
|
812
|
-
tempo_validator = EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
|
813
|
-
return false unless tempo_validator.valid?(@tempo)
|
814
|
-
texture_validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
|
815
|
-
return false unless texture_validator.valid?(@texture)
|
816
|
-
timbre_validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
817
|
-
return false unless timbre_validator.valid?(@timbre)
|
818
|
-
tonality_validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
|
819
|
-
return false unless tonality_validator.valid?(@tonality)
|
820
|
-
valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
821
|
-
return false unless valence_validator.valid?(@valence)
|
822
|
-
vocals_validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
|
823
|
-
return false unless vocals_validator.valid?(@vocals)
|
824
|
-
origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
825
|
-
return false unless origin_decade_validator.valid?(@origin_decade)
|
826
|
-
curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
827
|
-
return false unless curateability_validator.valid?(@curateability)
|
828
|
-
use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
829
|
-
return false unless use_case_validator.valid?(@use_case)
|
830
|
-
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
831
|
-
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
806
|
+
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
807
|
+
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
808
|
+
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
809
|
+
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
810
|
+
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"])
|
811
|
+
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
812
|
+
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"])
|
813
|
+
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
832
814
|
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
833
815
|
return false unless production_rating_validator.valid?(@production_rating)
|
834
816
|
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
@@ -849,6 +831,8 @@ module SongtradrApiClientRuby
|
|
849
831
|
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
850
832
|
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
833
|
return false unless origin_region_validator.valid?(@origin_region)
|
834
|
+
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"])
|
835
|
+
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
852
836
|
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
853
837
|
return false unless arousal_validator.valid?(@arousal)
|
854
838
|
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"])
|
@@ -867,18 +851,36 @@ module SongtradrApiClientRuby
|
|
867
851
|
return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
|
868
852
|
primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
869
853
|
return false unless primary_sound_character_validator.valid?(@primary_sound_character)
|
870
|
-
|
871
|
-
return false unless
|
854
|
+
rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
855
|
+
return false unless rhythm_validator.valid?(@rhythm)
|
856
|
+
roughness_validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
857
|
+
return false unless roughness_validator.valid?(@roughness)
|
858
|
+
scale_validator = EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
859
|
+
return false unless scale_validator.valid?(@scale)
|
860
|
+
sound_generation_validator = EnumAttributeValidator.new('String', ["acoustic", "electric", "electronic", "mixed sound generation"])
|
861
|
+
return false unless sound_generation_validator.valid?(@sound_generation)
|
862
|
+
tempo_validator = EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
|
863
|
+
return false unless tempo_validator.valid?(@tempo)
|
864
|
+
texture_validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
|
865
|
+
return false unless texture_validator.valid?(@texture)
|
866
|
+
timbre_validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
867
|
+
return false unless timbre_validator.valid?(@timbre)
|
868
|
+
tonality_validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
|
869
|
+
return false unless tonality_validator.valid?(@tonality)
|
870
|
+
valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
871
|
+
return false unless valence_validator.valid?(@valence)
|
872
872
|
audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
873
873
|
return false unless audience_region_validator.valid?(@audience_region)
|
874
|
-
|
875
|
-
return false unless
|
876
|
-
|
877
|
-
return false unless
|
878
|
-
|
879
|
-
return false unless
|
880
|
-
|
881
|
-
return false unless
|
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)
|
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
|
@@ -905,143 +907,43 @@ module SongtradrApiClientRuby
|
|
905
907
|
end
|
906
908
|
|
907
909
|
# Custom attribute writer method checking allowed values (enum).
|
908
|
-
# @param [Object]
|
909
|
-
def
|
910
|
-
validator = EnumAttributeValidator.new('String', ["
|
911
|
-
unless validator.valid?(
|
912
|
-
fail ArgumentError, "invalid value for \"
|
913
|
-
end
|
914
|
-
@rhythm = rhythm
|
915
|
-
end
|
916
|
-
|
917
|
-
# Custom attribute writer method checking allowed values (enum).
|
918
|
-
# @param [Object] roughness Object to be assigned
|
919
|
-
def roughness=(roughness)
|
920
|
-
validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
921
|
-
unless validator.valid?(roughness)
|
922
|
-
fail ArgumentError, "invalid value for \"roughness\", must be one of #{validator.allowable_values}."
|
923
|
-
end
|
924
|
-
@roughness = roughness
|
925
|
-
end
|
926
|
-
|
927
|
-
# Custom attribute writer method checking allowed values (enum).
|
928
|
-
# @param [Object] scale Object to be assigned
|
929
|
-
def scale=(scale)
|
930
|
-
validator = EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
931
|
-
unless validator.valid?(scale)
|
932
|
-
fail ArgumentError, "invalid value for \"scale\", must be one of #{validator.allowable_values}."
|
933
|
-
end
|
934
|
-
@scale = scale
|
935
|
-
end
|
936
|
-
|
937
|
-
# Custom attribute writer method checking allowed values (enum).
|
938
|
-
# @param [Object] sound_generation Object to be assigned
|
939
|
-
def sound_generation=(sound_generation)
|
940
|
-
validator = EnumAttributeValidator.new('String', ["acoustic", "electric", "electronic", "mixed sound generation"])
|
941
|
-
unless validator.valid?(sound_generation)
|
942
|
-
fail ArgumentError, "invalid value for \"sound_generation\", must be one of #{validator.allowable_values}."
|
943
|
-
end
|
944
|
-
@sound_generation = sound_generation
|
945
|
-
end
|
946
|
-
|
947
|
-
# Custom attribute writer method checking allowed values (enum).
|
948
|
-
# @param [Object] tempo Object to be assigned
|
949
|
-
def tempo=(tempo)
|
950
|
-
validator = EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
|
951
|
-
unless validator.valid?(tempo)
|
952
|
-
fail ArgumentError, "invalid value for \"tempo\", must be one of #{validator.allowable_values}."
|
953
|
-
end
|
954
|
-
@tempo = tempo
|
955
|
-
end
|
956
|
-
|
957
|
-
# Custom attribute writer method checking allowed values (enum).
|
958
|
-
# @param [Object] texture Object to be assigned
|
959
|
-
def texture=(texture)
|
960
|
-
validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
|
961
|
-
unless validator.valid?(texture)
|
962
|
-
fail ArgumentError, "invalid value for \"texture\", must be one of #{validator.allowable_values}."
|
963
|
-
end
|
964
|
-
@texture = texture
|
965
|
-
end
|
966
|
-
|
967
|
-
# Custom attribute writer method checking allowed values (enum).
|
968
|
-
# @param [Object] timbre Object to be assigned
|
969
|
-
def timbre=(timbre)
|
970
|
-
validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
971
|
-
unless validator.valid?(timbre)
|
972
|
-
fail ArgumentError, "invalid value for \"timbre\", must be one of #{validator.allowable_values}."
|
973
|
-
end
|
974
|
-
@timbre = timbre
|
975
|
-
end
|
976
|
-
|
977
|
-
# Custom attribute writer method checking allowed values (enum).
|
978
|
-
# @param [Object] tonality Object to be assigned
|
979
|
-
def tonality=(tonality)
|
980
|
-
validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
|
981
|
-
unless validator.valid?(tonality)
|
982
|
-
fail ArgumentError, "invalid value for \"tonality\", must be one of #{validator.allowable_values}."
|
983
|
-
end
|
984
|
-
@tonality = tonality
|
985
|
-
end
|
986
|
-
|
987
|
-
# Custom attribute writer method checking allowed values (enum).
|
988
|
-
# @param [Object] valence Object to be assigned
|
989
|
-
def valence=(valence)
|
990
|
-
validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
991
|
-
unless validator.valid?(valence)
|
992
|
-
fail ArgumentError, "invalid value for \"valence\", must be one of #{validator.allowable_values}."
|
993
|
-
end
|
994
|
-
@valence = valence
|
995
|
-
end
|
996
|
-
|
997
|
-
# Custom attribute writer method checking allowed values (enum).
|
998
|
-
# @param [Object] vocals Object to be assigned
|
999
|
-
def vocals=(vocals)
|
1000
|
-
validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
|
1001
|
-
unless validator.valid?(vocals)
|
1002
|
-
fail ArgumentError, "invalid value for \"vocals\", must be one of #{validator.allowable_values}."
|
1003
|
-
end
|
1004
|
-
@vocals = vocals
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
# Custom attribute writer method checking allowed values (enum).
|
1008
|
-
# @param [Object] origin_decade Object to be assigned
|
1009
|
-
def origin_decade=(origin_decade)
|
1010
|
-
validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
1011
|
-
unless validator.valid?(origin_decade)
|
1012
|
-
fail ArgumentError, "invalid value for \"origin_decade\", must be one of #{validator.allowable_values}."
|
910
|
+
# @param [Object] secondary_mood_cluster Object to be assigned
|
911
|
+
def secondary_mood_cluster=(secondary_mood_cluster)
|
912
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
913
|
+
unless validator.valid?(secondary_mood_cluster)
|
914
|
+
fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
|
1013
915
|
end
|
1014
|
-
@
|
916
|
+
@secondary_mood_cluster = secondary_mood_cluster
|
1015
917
|
end
|
1016
918
|
|
1017
919
|
# Custom attribute writer method checking allowed values (enum).
|
1018
|
-
# @param [Object]
|
1019
|
-
def
|
1020
|
-
validator = EnumAttributeValidator.new('String', ["
|
1021
|
-
unless validator.valid?(
|
1022
|
-
fail ArgumentError, "invalid value for \"
|
920
|
+
# @param [Object] tertiary_mood_cluster Object to be assigned
|
921
|
+
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
922
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
923
|
+
unless validator.valid?(tertiary_mood_cluster)
|
924
|
+
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
1023
925
|
end
|
1024
|
-
@
|
926
|
+
@tertiary_mood_cluster = tertiary_mood_cluster
|
1025
927
|
end
|
1026
928
|
|
1027
929
|
# Custom attribute writer method checking allowed values (enum).
|
1028
|
-
# @param [Object]
|
1029
|
-
def
|
1030
|
-
validator = EnumAttributeValidator.new('String', ["
|
1031
|
-
unless validator.valid?(
|
1032
|
-
fail ArgumentError, "invalid value for \"
|
930
|
+
# @param [Object] secondary_instrument Object to be assigned
|
931
|
+
def secondary_instrument=(secondary_instrument)
|
932
|
+
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"])
|
933
|
+
unless validator.valid?(secondary_instrument)
|
934
|
+
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
1033
935
|
end
|
1034
|
-
@
|
936
|
+
@secondary_instrument = secondary_instrument
|
1035
937
|
end
|
1036
938
|
|
1037
939
|
# Custom attribute writer method checking allowed values (enum).
|
1038
|
-
# @param [Object]
|
1039
|
-
def
|
1040
|
-
validator = EnumAttributeValidator.new('String', ["
|
1041
|
-
unless validator.valid?(
|
1042
|
-
fail ArgumentError, "invalid value for \"
|
940
|
+
# @param [Object] tertiary_instrument Object to be assigned
|
941
|
+
def tertiary_instrument=(tertiary_instrument)
|
942
|
+
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"])
|
943
|
+
unless validator.valid?(tertiary_instrument)
|
944
|
+
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
1043
945
|
end
|
1044
|
-
@
|
946
|
+
@tertiary_instrument = tertiary_instrument
|
1045
947
|
end
|
1046
948
|
|
1047
949
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -1144,6 +1046,16 @@ module SongtradrApiClientRuby
|
|
1144
1046
|
@origin_region = origin_region
|
1145
1047
|
end
|
1146
1048
|
|
1049
|
+
# Custom attribute writer method checking allowed values (enum).
|
1050
|
+
# @param [Object] industry_suitability Object to be assigned
|
1051
|
+
def industry_suitability=(industry_suitability)
|
1052
|
+
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"])
|
1053
|
+
unless validator.valid?(industry_suitability)
|
1054
|
+
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
1055
|
+
end
|
1056
|
+
@industry_suitability = industry_suitability
|
1057
|
+
end
|
1058
|
+
|
1147
1059
|
# Custom attribute writer method checking allowed values (enum).
|
1148
1060
|
# @param [Object] arousal Object to be assigned
|
1149
1061
|
def arousal=(arousal)
|
@@ -1235,13 +1147,93 @@ module SongtradrApiClientRuby
|
|
1235
1147
|
end
|
1236
1148
|
|
1237
1149
|
# Custom attribute writer method checking allowed values (enum).
|
1238
|
-
# @param [Object]
|
1239
|
-
def
|
1240
|
-
validator = EnumAttributeValidator.new('String', ["
|
1241
|
-
unless validator.valid?(
|
1242
|
-
fail ArgumentError, "invalid value for \"
|
1150
|
+
# @param [Object] rhythm Object to be assigned
|
1151
|
+
def rhythm=(rhythm)
|
1152
|
+
validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
1153
|
+
unless validator.valid?(rhythm)
|
1154
|
+
fail ArgumentError, "invalid value for \"rhythm\", must be one of #{validator.allowable_values}."
|
1243
1155
|
end
|
1244
|
-
@
|
1156
|
+
@rhythm = rhythm
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Custom attribute writer method checking allowed values (enum).
|
1160
|
+
# @param [Object] roughness Object to be assigned
|
1161
|
+
def roughness=(roughness)
|
1162
|
+
validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
1163
|
+
unless validator.valid?(roughness)
|
1164
|
+
fail ArgumentError, "invalid value for \"roughness\", must be one of #{validator.allowable_values}."
|
1165
|
+
end
|
1166
|
+
@roughness = roughness
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# Custom attribute writer method checking allowed values (enum).
|
1170
|
+
# @param [Object] scale Object to be assigned
|
1171
|
+
def scale=(scale)
|
1172
|
+
validator = EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
1173
|
+
unless validator.valid?(scale)
|
1174
|
+
fail ArgumentError, "invalid value for \"scale\", must be one of #{validator.allowable_values}."
|
1175
|
+
end
|
1176
|
+
@scale = scale
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# Custom attribute writer method checking allowed values (enum).
|
1180
|
+
# @param [Object] sound_generation Object to be assigned
|
1181
|
+
def sound_generation=(sound_generation)
|
1182
|
+
validator = EnumAttributeValidator.new('String', ["acoustic", "electric", "electronic", "mixed sound generation"])
|
1183
|
+
unless validator.valid?(sound_generation)
|
1184
|
+
fail ArgumentError, "invalid value for \"sound_generation\", must be one of #{validator.allowable_values}."
|
1185
|
+
end
|
1186
|
+
@sound_generation = sound_generation
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Custom attribute writer method checking allowed values (enum).
|
1190
|
+
# @param [Object] tempo Object to be assigned
|
1191
|
+
def tempo=(tempo)
|
1192
|
+
validator = EnumAttributeValidator.new('String', ["very slow", "slow", "mid-tempo", "fast", "very fast", "varying tempo"])
|
1193
|
+
unless validator.valid?(tempo)
|
1194
|
+
fail ArgumentError, "invalid value for \"tempo\", must be one of #{validator.allowable_values}."
|
1195
|
+
end
|
1196
|
+
@tempo = tempo
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# Custom attribute writer method checking allowed values (enum).
|
1200
|
+
# @param [Object] texture Object to be assigned
|
1201
|
+
def texture=(texture)
|
1202
|
+
validator = EnumAttributeValidator.new('String', ["very thin", "thin", "moderate texture", "full", "very full"])
|
1203
|
+
unless validator.valid?(texture)
|
1204
|
+
fail ArgumentError, "invalid value for \"texture\", must be one of #{validator.allowable_values}."
|
1205
|
+
end
|
1206
|
+
@texture = texture
|
1207
|
+
end
|
1208
|
+
|
1209
|
+
# Custom attribute writer method checking allowed values (enum).
|
1210
|
+
# @param [Object] timbre Object to be assigned
|
1211
|
+
def timbre=(timbre)
|
1212
|
+
validator = EnumAttributeValidator.new('String', ["very warm", "warm", "moderate timbre", "bright", "very bright"])
|
1213
|
+
unless validator.valid?(timbre)
|
1214
|
+
fail ArgumentError, "invalid value for \"timbre\", must be one of #{validator.allowable_values}."
|
1215
|
+
end
|
1216
|
+
@timbre = timbre
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
# Custom attribute writer method checking allowed values (enum).
|
1220
|
+
# @param [Object] tonality Object to be assigned
|
1221
|
+
def tonality=(tonality)
|
1222
|
+
validator = EnumAttributeValidator.new('String', ["monotonous", "moderate melodiousness", "melodious", "atonal"])
|
1223
|
+
unless validator.valid?(tonality)
|
1224
|
+
fail ArgumentError, "invalid value for \"tonality\", must be one of #{validator.allowable_values}."
|
1225
|
+
end
|
1226
|
+
@tonality = tonality
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# Custom attribute writer method checking allowed values (enum).
|
1230
|
+
# @param [Object] valence Object to be assigned
|
1231
|
+
def valence=(valence)
|
1232
|
+
validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
1233
|
+
unless validator.valid?(valence)
|
1234
|
+
fail ArgumentError, "invalid value for \"valence\", must be one of #{validator.allowable_values}."
|
1235
|
+
end
|
1236
|
+
@valence = valence
|
1245
1237
|
end
|
1246
1238
|
|
1247
1239
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -1255,43 +1247,53 @@ module SongtradrApiClientRuby
|
|
1255
1247
|
end
|
1256
1248
|
|
1257
1249
|
# Custom attribute writer method checking allowed values (enum).
|
1258
|
-
# @param [Object]
|
1259
|
-
def
|
1260
|
-
validator = EnumAttributeValidator.new('String', ["
|
1261
|
-
unless validator.valid?(
|
1262
|
-
fail ArgumentError, "invalid value for \"
|
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}."
|
1263
1255
|
end
|
1264
|
-
@
|
1256
|
+
@vocals = vocals
|
1265
1257
|
end
|
1266
1258
|
|
1267
1259
|
# Custom attribute writer method checking allowed values (enum).
|
1268
|
-
# @param [Object]
|
1269
|
-
def
|
1270
|
-
validator = EnumAttributeValidator.new('String', ["
|
1271
|
-
unless validator.valid?(
|
1272
|
-
fail ArgumentError, "invalid value for \"
|
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}."
|
1273
1265
|
end
|
1274
|
-
@
|
1266
|
+
@origin_decade = origin_decade
|
1275
1267
|
end
|
1276
1268
|
|
1277
1269
|
# Custom attribute writer method checking allowed values (enum).
|
1278
|
-
# @param [Object]
|
1279
|
-
def
|
1280
|
-
validator = EnumAttributeValidator.new('String', ["
|
1281
|
-
unless validator.valid?(
|
1282
|
-
fail ArgumentError, "invalid value for \"
|
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}."
|
1283
1275
|
end
|
1284
|
-
@
|
1276
|
+
@curateability = curateability
|
1285
1277
|
end
|
1286
1278
|
|
1287
1279
|
# Custom attribute writer method checking allowed values (enum).
|
1288
|
-
# @param [Object]
|
1289
|
-
def
|
1290
|
-
validator = EnumAttributeValidator.new('String', ["
|
1291
|
-
unless validator.valid?(
|
1292
|
-
fail ArgumentError, "invalid value for \"
|
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}."
|
1293
1285
|
end
|
1294
|
-
@
|
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
|
1295
1297
|
end
|
1296
1298
|
|
1297
1299
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -1311,20 +1313,16 @@ module SongtradrApiClientRuby
|
|
1311
1313
|
self.class == o.class &&
|
1312
1314
|
space == o.space &&
|
1313
1315
|
language_of_performance == o.language_of_performance &&
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
origin_decade == o.origin_decade &&
|
1325
|
-
curateability == o.curateability &&
|
1326
|
-
use_case == o.use_case &&
|
1327
|
-
channel_suitability == o.channel_suitability &&
|
1316
|
+
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
1317
|
+
secondary_mood_cluster == o.secondary_mood_cluster &&
|
1318
|
+
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
1319
|
+
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
1320
|
+
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
1321
|
+
vocals_affinity == o.vocals_affinity &&
|
1322
|
+
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
1323
|
+
secondary_instrument == o.secondary_instrument &&
|
1324
|
+
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1325
|
+
tertiary_instrument == o.tertiary_instrument &&
|
1328
1326
|
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
1329
1327
|
sound_generation_affinity == o.sound_generation_affinity &&
|
1330
1328
|
rhythm_affinity == o.rhythm_affinity &&
|
@@ -1356,6 +1354,8 @@ module SongtradrApiClientRuby
|
|
1356
1354
|
language_of_performance_affinity == o.language_of_performance_affinity &&
|
1357
1355
|
curateability_affinity == o.curateability_affinity &&
|
1358
1356
|
use_case_affinity == o.use_case_affinity &&
|
1357
|
+
industry_suitability == o.industry_suitability &&
|
1358
|
+
industry_suitability_affinity == o.industry_suitability_affinity &&
|
1359
1359
|
arousal == o.arousal &&
|
1360
1360
|
dominant_instrument == o.dominant_instrument &&
|
1361
1361
|
energy == o.energy &&
|
@@ -1365,35 +1365,37 @@ module SongtradrApiClientRuby
|
|
1365
1365
|
pleasantness == o.pleasantness &&
|
1366
1366
|
primary_mood_cluster == o.primary_mood_cluster &&
|
1367
1367
|
primary_sound_character == o.primary_sound_character &&
|
1368
|
-
|
1369
|
-
|
1368
|
+
rhythm == o.rhythm &&
|
1369
|
+
roughness == o.roughness &&
|
1370
|
+
scale == o.scale &&
|
1371
|
+
sound_generation == o.sound_generation &&
|
1372
|
+
tempo == o.tempo &&
|
1373
|
+
texture == o.texture &&
|
1374
|
+
timbre == o.timbre &&
|
1375
|
+
tonality == o.tonality &&
|
1376
|
+
valence == o.valence &&
|
1370
1377
|
audience_region == o.audience_region &&
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
secondary_instrument == o.secondary_instrument &&
|
1379
|
-
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1380
|
-
tertiary_instrument == o.tertiary_instrument &&
|
1381
|
-
valence_affinity == o.valence_affinity &&
|
1382
|
-
arousal_affinity == o.arousal_affinity &&
|
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
|
+
key == o.key &&
|
1384
|
+
channel_suitability_affinity == o.channel_suitability_affinity &&
|
1383
1385
|
pleasantness_affinity == o.pleasantness_affinity &&
|
1384
|
-
engagement_affinity == o.engagement_affinity &&
|
1385
|
-
energy_affinity == o.energy_affinity &&
|
1386
1386
|
tempo_affinity == o.tempo_affinity &&
|
1387
1387
|
scale_affinity == o.scale_affinity &&
|
1388
1388
|
timbre_affinity == o.timbre_affinity &&
|
1389
|
-
|
1390
|
-
|
1389
|
+
engagement_affinity == o.engagement_affinity &&
|
1390
|
+
energy_affinity == o.energy_affinity &&
|
1391
1391
|
texture_affinity == o.texture_affinity &&
|
1392
1392
|
groovyness_affinity == o.groovyness_affinity &&
|
1393
|
+
valence_affinity == o.valence_affinity &&
|
1394
|
+
arousal_affinity == o.arousal_affinity &&
|
1393
1395
|
space_affinity == o.space_affinity &&
|
1394
1396
|
key_affinity == o.key_affinity &&
|
1395
|
-
|
1396
|
-
|
1397
|
+
roughness_affinity == o.roughness_affinity &&
|
1398
|
+
harmony_affinity == o.harmony_affinity
|
1397
1399
|
end
|
1398
1400
|
|
1399
1401
|
# @see the `==` method
|
@@ -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,
|
1410
|
+
[space, language_of_performance, 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, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, audience_region, vocals, origin_decade, curateability, use_case, channel_suitability, key, channel_suitability_affinity, pleasantness_affinity, tempo_affinity, scale_affinity, timbre_affinity, engagement_affinity, energy_affinity, texture_affinity, groovyness_affinity, valence_affinity, arousal_affinity, space_affinity, key_affinity, roughness_affinity, harmony_affinity].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
|
-
|
1425
|
-
|
1426
|
-
|
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[
|
1431
|
-
|
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[
|
1434
|
-
|
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)
|