songtradr_api_client_ruby 1.12.21 → 1.12.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +5 -5
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/FileSmallDTO.md +3 -3
- data/docs/MusicalFeaturesDTO.md +38 -38
- data/docs/PlaylistLargeDTO.md +7 -7
- data/docs/ProductMediumDTO.md +5 -5
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingLargeDTO.md +11 -11
- data/docs/RecordingMediumDTO.md +11 -11
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +4 -4
- data/getspec.rb +28 -5
- data/lib/songtradr_api_client_ruby/api/allowed_values_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 +1 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +1 -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 +1 -1
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/error_response.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +19 -19
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +273 -273
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +36 -36
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +29 -29
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +19 -19
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +64 -64
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +60 -60
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/token_request.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +1 -1
- data/openapi-generator-config.yaml +4 -3
- data/songtradr_api_client_ruby.gemspec +4 -4
- data/spec/api/allowed_values_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 +1 -1
- data/spec/api/user_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/category_medium_dto_spec.rb +3 -3
- 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/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 +7 -7
- 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 +104 -104
- 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 +7 -7
- 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 +4 -4
- 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 +11 -11
- 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 +3 -3
- 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 +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +58 -78
@@ -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.22
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -19,23 +19,12 @@ module SongtradrApiClientRuby
|
|
19
19
|
# Search for space
|
20
20
|
attr_accessor :space
|
21
21
|
|
22
|
-
# Search for curatebility
|
23
|
-
attr_accessor :curateability
|
24
|
-
|
25
|
-
# Search for use case
|
26
|
-
attr_accessor :use_case
|
27
|
-
|
28
|
-
# Search for social media suitability
|
29
|
-
attr_accessor :channel_suitability
|
30
|
-
|
31
22
|
# Search for an arousal
|
32
23
|
attr_accessor :arousal
|
33
24
|
|
34
25
|
# Search for a dominant instrument
|
35
26
|
attr_accessor :dominant_instrument
|
36
27
|
|
37
|
-
attr_accessor :language_of_performance
|
38
|
-
|
39
28
|
# Search for energy
|
40
29
|
attr_accessor :energy
|
41
30
|
|
@@ -90,19 +79,11 @@ module SongtradrApiClientRuby
|
|
90
79
|
# Search for origin decade
|
91
80
|
attr_accessor :origin_decade
|
92
81
|
|
93
|
-
attr_accessor :
|
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
|
82
|
+
attr_accessor :language_of_performance
|
102
83
|
|
103
|
-
attr_accessor :
|
84
|
+
attr_accessor :primary_sound_character_affinity
|
104
85
|
|
105
|
-
attr_accessor :
|
86
|
+
attr_accessor :tonality_affinity
|
106
87
|
|
107
88
|
attr_accessor :bpm
|
108
89
|
|
@@ -134,26 +115,6 @@ module SongtradrApiClientRuby
|
|
134
115
|
|
135
116
|
attr_accessor :audience_gender_affinity
|
136
117
|
|
137
|
-
attr_accessor :dominant_instrument_affinity
|
138
|
-
|
139
|
-
# Search for a dominant instrument
|
140
|
-
attr_accessor :secondary_instrument
|
141
|
-
|
142
|
-
attr_accessor :secondary_instrument_affinity
|
143
|
-
|
144
|
-
# Search for a dominant instrument
|
145
|
-
attr_accessor :tertiary_instrument
|
146
|
-
|
147
|
-
attr_accessor :tertiary_instrument_affinity
|
148
|
-
|
149
|
-
attr_accessor :sound_generation_affinity
|
150
|
-
|
151
|
-
attr_accessor :rhythm_affinity
|
152
|
-
|
153
|
-
attr_accessor :primary_sound_character_affinity
|
154
|
-
|
155
|
-
attr_accessor :tonality_affinity
|
156
|
-
|
157
118
|
attr_accessor :audience_region_affinity
|
158
119
|
|
159
120
|
attr_accessor :secondary_audience_region
|
@@ -183,6 +144,45 @@ module SongtradrApiClientRuby
|
|
183
144
|
|
184
145
|
attr_accessor :audience_region
|
185
146
|
|
147
|
+
# Search for curatebility
|
148
|
+
attr_accessor :curateability
|
149
|
+
|
150
|
+
# Search for use case
|
151
|
+
attr_accessor :use_case
|
152
|
+
|
153
|
+
# Search for social media suitability
|
154
|
+
attr_accessor :channel_suitability
|
155
|
+
|
156
|
+
attr_accessor :primary_mood_cluster_affinity
|
157
|
+
|
158
|
+
# Search for a language of the lyrics
|
159
|
+
attr_accessor :secondary_mood_cluster
|
160
|
+
|
161
|
+
attr_accessor :secondary_mood_cluster_affinity
|
162
|
+
|
163
|
+
# Search for a language of the lyrics
|
164
|
+
attr_accessor :tertiary_mood_cluster
|
165
|
+
|
166
|
+
attr_accessor :tertiary_mood_cluster_affinity
|
167
|
+
|
168
|
+
attr_accessor :vocals_affinity
|
169
|
+
|
170
|
+
attr_accessor :dominant_instrument_affinity
|
171
|
+
|
172
|
+
# Search for a dominant instrument
|
173
|
+
attr_accessor :secondary_instrument
|
174
|
+
|
175
|
+
attr_accessor :secondary_instrument_affinity
|
176
|
+
|
177
|
+
# Search for a dominant instrument
|
178
|
+
attr_accessor :tertiary_instrument
|
179
|
+
|
180
|
+
attr_accessor :tertiary_instrument_affinity
|
181
|
+
|
182
|
+
attr_accessor :sound_generation_affinity
|
183
|
+
|
184
|
+
attr_accessor :rhythm_affinity
|
185
|
+
|
186
186
|
attr_accessor :valence_affinity
|
187
187
|
|
188
188
|
attr_accessor :arousal_affinity
|
@@ -242,12 +242,8 @@ module SongtradrApiClientRuby
|
|
242
242
|
def self.attribute_map
|
243
243
|
{
|
244
244
|
:'space' => :'space',
|
245
|
-
:'curateability' => :'curateability',
|
246
|
-
:'use_case' => :'useCase',
|
247
|
-
:'channel_suitability' => :'channelSuitability',
|
248
245
|
:'arousal' => :'arousal',
|
249
246
|
:'dominant_instrument' => :'dominantInstrument',
|
250
|
-
:'language_of_performance' => :'languageOfPerformance',
|
251
247
|
:'energy' => :'energy',
|
252
248
|
:'engagement' => :'engagement',
|
253
249
|
:'groovyness' => :'groovyness',
|
@@ -266,12 +262,9 @@ module SongtradrApiClientRuby
|
|
266
262
|
:'valence' => :'valence',
|
267
263
|
:'vocals' => :'vocals',
|
268
264
|
:'origin_decade' => :'originDecade',
|
269
|
-
:'
|
270
|
-
:'
|
271
|
-
:'
|
272
|
-
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
273
|
-
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
274
|
-
:'vocals_affinity' => :'vocalsAffinity',
|
265
|
+
:'language_of_performance' => :'languageOfPerformance',
|
266
|
+
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
267
|
+
:'tonality_affinity' => :'tonalityAffinity',
|
275
268
|
:'bpm' => :'bpm',
|
276
269
|
:'production_rating' => :'productionRating',
|
277
270
|
:'production_rating_affinity' => :'productionRatingAffinity',
|
@@ -287,15 +280,6 @@ module SongtradrApiClientRuby
|
|
287
280
|
:'tertiary_audience_age_affinity' => :'tertiaryAudienceAgeAffinity',
|
288
281
|
:'audience_gender' => :'audienceGender',
|
289
282
|
:'audience_gender_affinity' => :'audienceGenderAffinity',
|
290
|
-
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
291
|
-
:'secondary_instrument' => :'secondaryInstrument',
|
292
|
-
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
293
|
-
:'tertiary_instrument' => :'tertiaryInstrument',
|
294
|
-
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
295
|
-
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
296
|
-
:'rhythm_affinity' => :'rhythmAffinity',
|
297
|
-
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
298
|
-
:'tonality_affinity' => :'tonalityAffinity',
|
299
283
|
:'audience_region_affinity' => :'audienceRegionAffinity',
|
300
284
|
:'secondary_audience_region' => :'secondaryAudienceRegion',
|
301
285
|
:'secondary_audience_region_affinity' => :'secondaryAudienceRegionAffinity',
|
@@ -310,6 +294,22 @@ module SongtradrApiClientRuby
|
|
310
294
|
:'industry_suitability' => :'industrySuitability',
|
311
295
|
:'industry_suitability_affinity' => :'industrySuitabilityAffinity',
|
312
296
|
:'audience_region' => :'audienceRegion',
|
297
|
+
:'curateability' => :'curateability',
|
298
|
+
:'use_case' => :'useCase',
|
299
|
+
:'channel_suitability' => :'channelSuitability',
|
300
|
+
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
301
|
+
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
302
|
+
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
303
|
+
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
304
|
+
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
305
|
+
:'vocals_affinity' => :'vocalsAffinity',
|
306
|
+
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
307
|
+
:'secondary_instrument' => :'secondaryInstrument',
|
308
|
+
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
309
|
+
:'tertiary_instrument' => :'tertiaryInstrument',
|
310
|
+
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
311
|
+
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
312
|
+
:'rhythm_affinity' => :'rhythmAffinity',
|
313
313
|
:'valence_affinity' => :'valenceAffinity',
|
314
314
|
:'arousal_affinity' => :'arousalAffinity',
|
315
315
|
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
@@ -338,12 +338,8 @@ module SongtradrApiClientRuby
|
|
338
338
|
def self.openapi_types
|
339
339
|
{
|
340
340
|
:'space' => :'String',
|
341
|
-
:'curateability' => :'String',
|
342
|
-
:'use_case' => :'String',
|
343
|
-
:'channel_suitability' => :'String',
|
344
341
|
:'arousal' => :'String',
|
345
342
|
:'dominant_instrument' => :'String',
|
346
|
-
:'language_of_performance' => :'String',
|
347
343
|
:'energy' => :'String',
|
348
344
|
:'engagement' => :'String',
|
349
345
|
:'groovyness' => :'String',
|
@@ -362,12 +358,9 @@ module SongtradrApiClientRuby
|
|
362
358
|
:'valence' => :'String',
|
363
359
|
:'vocals' => :'String',
|
364
360
|
:'origin_decade' => :'String',
|
365
|
-
:'
|
366
|
-
:'
|
367
|
-
:'
|
368
|
-
:'tertiary_mood_cluster' => :'String',
|
369
|
-
:'tertiary_mood_cluster_affinity' => :'Float',
|
370
|
-
:'vocals_affinity' => :'Float',
|
361
|
+
:'language_of_performance' => :'String',
|
362
|
+
:'primary_sound_character_affinity' => :'Float',
|
363
|
+
:'tonality_affinity' => :'Float',
|
371
364
|
:'bpm' => :'Float',
|
372
365
|
:'production_rating' => :'String',
|
373
366
|
:'production_rating_affinity' => :'Float',
|
@@ -383,15 +376,6 @@ module SongtradrApiClientRuby
|
|
383
376
|
:'tertiary_audience_age_affinity' => :'Float',
|
384
377
|
:'audience_gender' => :'String',
|
385
378
|
:'audience_gender_affinity' => :'Float',
|
386
|
-
:'dominant_instrument_affinity' => :'Float',
|
387
|
-
:'secondary_instrument' => :'String',
|
388
|
-
:'secondary_instrument_affinity' => :'Float',
|
389
|
-
:'tertiary_instrument' => :'String',
|
390
|
-
:'tertiary_instrument_affinity' => :'Float',
|
391
|
-
:'sound_generation_affinity' => :'Float',
|
392
|
-
:'rhythm_affinity' => :'Float',
|
393
|
-
:'primary_sound_character_affinity' => :'Float',
|
394
|
-
:'tonality_affinity' => :'Float',
|
395
379
|
:'audience_region_affinity' => :'Float',
|
396
380
|
:'secondary_audience_region' => :'String',
|
397
381
|
:'secondary_audience_region_affinity' => :'Float',
|
@@ -406,6 +390,22 @@ module SongtradrApiClientRuby
|
|
406
390
|
:'industry_suitability' => :'String',
|
407
391
|
:'industry_suitability_affinity' => :'Float',
|
408
392
|
:'audience_region' => :'String',
|
393
|
+
:'curateability' => :'String',
|
394
|
+
:'use_case' => :'String',
|
395
|
+
:'channel_suitability' => :'String',
|
396
|
+
:'primary_mood_cluster_affinity' => :'Float',
|
397
|
+
:'secondary_mood_cluster' => :'String',
|
398
|
+
:'secondary_mood_cluster_affinity' => :'Float',
|
399
|
+
:'tertiary_mood_cluster' => :'String',
|
400
|
+
:'tertiary_mood_cluster_affinity' => :'Float',
|
401
|
+
:'vocals_affinity' => :'Float',
|
402
|
+
:'dominant_instrument_affinity' => :'Float',
|
403
|
+
:'secondary_instrument' => :'String',
|
404
|
+
:'secondary_instrument_affinity' => :'Float',
|
405
|
+
:'tertiary_instrument' => :'String',
|
406
|
+
:'tertiary_instrument_affinity' => :'Float',
|
407
|
+
:'sound_generation_affinity' => :'Float',
|
408
|
+
:'rhythm_affinity' => :'Float',
|
409
409
|
:'valence_affinity' => :'Float',
|
410
410
|
:'arousal_affinity' => :'Float',
|
411
411
|
:'pleasantness_affinity' => :'Float',
|
@@ -450,18 +450,6 @@ module SongtradrApiClientRuby
|
|
450
450
|
self.space = attributes[:'space']
|
451
451
|
end
|
452
452
|
|
453
|
-
if attributes.key?(:'curateability')
|
454
|
-
self.curateability = attributes[:'curateability']
|
455
|
-
end
|
456
|
-
|
457
|
-
if attributes.key?(:'use_case')
|
458
|
-
self.use_case = attributes[:'use_case']
|
459
|
-
end
|
460
|
-
|
461
|
-
if attributes.key?(:'channel_suitability')
|
462
|
-
self.channel_suitability = attributes[:'channel_suitability']
|
463
|
-
end
|
464
|
-
|
465
453
|
if attributes.key?(:'arousal')
|
466
454
|
self.arousal = attributes[:'arousal']
|
467
455
|
end
|
@@ -470,10 +458,6 @@ module SongtradrApiClientRuby
|
|
470
458
|
self.dominant_instrument = attributes[:'dominant_instrument']
|
471
459
|
end
|
472
460
|
|
473
|
-
if attributes.key?(:'language_of_performance')
|
474
|
-
self.language_of_performance = attributes[:'language_of_performance']
|
475
|
-
end
|
476
|
-
|
477
461
|
if attributes.key?(:'energy')
|
478
462
|
self.energy = attributes[:'energy']
|
479
463
|
end
|
@@ -546,28 +530,16 @@ module SongtradrApiClientRuby
|
|
546
530
|
self.origin_decade = attributes[:'origin_decade']
|
547
531
|
end
|
548
532
|
|
549
|
-
if attributes.key?(:'
|
550
|
-
self.
|
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']
|
533
|
+
if attributes.key?(:'language_of_performance')
|
534
|
+
self.language_of_performance = attributes[:'language_of_performance']
|
563
535
|
end
|
564
536
|
|
565
|
-
if attributes.key?(:'
|
566
|
-
self.
|
537
|
+
if attributes.key?(:'primary_sound_character_affinity')
|
538
|
+
self.primary_sound_character_affinity = attributes[:'primary_sound_character_affinity']
|
567
539
|
end
|
568
540
|
|
569
|
-
if attributes.key?(:'
|
570
|
-
self.
|
541
|
+
if attributes.key?(:'tonality_affinity')
|
542
|
+
self.tonality_affinity = attributes[:'tonality_affinity']
|
571
543
|
end
|
572
544
|
|
573
545
|
if attributes.key?(:'bpm')
|
@@ -630,96 +602,124 @@ module SongtradrApiClientRuby
|
|
630
602
|
self.audience_gender_affinity = attributes[:'audience_gender_affinity']
|
631
603
|
end
|
632
604
|
|
633
|
-
if attributes.key?(:'
|
634
|
-
self.
|
605
|
+
if attributes.key?(:'audience_region_affinity')
|
606
|
+
self.audience_region_affinity = attributes[:'audience_region_affinity']
|
635
607
|
end
|
636
608
|
|
637
|
-
if attributes.key?(:'
|
638
|
-
self.
|
609
|
+
if attributes.key?(:'secondary_audience_region')
|
610
|
+
self.secondary_audience_region = attributes[:'secondary_audience_region']
|
639
611
|
end
|
640
612
|
|
641
|
-
if attributes.key?(:'
|
642
|
-
self.
|
613
|
+
if attributes.key?(:'secondary_audience_region_affinity')
|
614
|
+
self.secondary_audience_region_affinity = attributes[:'secondary_audience_region_affinity']
|
643
615
|
end
|
644
616
|
|
645
|
-
if attributes.key?(:'
|
646
|
-
self.
|
617
|
+
if attributes.key?(:'tertiary_audience_region')
|
618
|
+
self.tertiary_audience_region = attributes[:'tertiary_audience_region']
|
647
619
|
end
|
648
620
|
|
649
|
-
if attributes.key?(:'
|
650
|
-
self.
|
621
|
+
if attributes.key?(:'tertiary_audience_region_affinity')
|
622
|
+
self.tertiary_audience_region_affinity = attributes[:'tertiary_audience_region_affinity']
|
651
623
|
end
|
652
624
|
|
653
|
-
if attributes.key?(:'
|
654
|
-
self.
|
625
|
+
if attributes.key?(:'origin_region')
|
626
|
+
self.origin_region = attributes[:'origin_region']
|
655
627
|
end
|
656
628
|
|
657
|
-
if attributes.key?(:'
|
658
|
-
self.
|
629
|
+
if attributes.key?(:'origin_region_affinity')
|
630
|
+
self.origin_region_affinity = attributes[:'origin_region_affinity']
|
659
631
|
end
|
660
632
|
|
661
|
-
if attributes.key?(:'
|
662
|
-
self.
|
633
|
+
if attributes.key?(:'origin_decade_affinity')
|
634
|
+
self.origin_decade_affinity = attributes[:'origin_decade_affinity']
|
663
635
|
end
|
664
636
|
|
665
|
-
if attributes.key?(:'
|
666
|
-
self.
|
637
|
+
if attributes.key?(:'language_of_performance_affinity')
|
638
|
+
self.language_of_performance_affinity = attributes[:'language_of_performance_affinity']
|
667
639
|
end
|
668
640
|
|
669
|
-
if attributes.key?(:'
|
670
|
-
self.
|
641
|
+
if attributes.key?(:'curateability_affinity')
|
642
|
+
self.curateability_affinity = attributes[:'curateability_affinity']
|
671
643
|
end
|
672
644
|
|
673
|
-
if attributes.key?(:'
|
674
|
-
self.
|
645
|
+
if attributes.key?(:'use_case_affinity')
|
646
|
+
self.use_case_affinity = attributes[:'use_case_affinity']
|
675
647
|
end
|
676
648
|
|
677
|
-
if attributes.key?(:'
|
678
|
-
self.
|
649
|
+
if attributes.key?(:'industry_suitability')
|
650
|
+
self.industry_suitability = attributes[:'industry_suitability']
|
679
651
|
end
|
680
652
|
|
681
|
-
if attributes.key?(:'
|
682
|
-
self.
|
653
|
+
if attributes.key?(:'industry_suitability_affinity')
|
654
|
+
self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
|
683
655
|
end
|
684
656
|
|
685
|
-
if attributes.key?(:'
|
686
|
-
self.
|
657
|
+
if attributes.key?(:'audience_region')
|
658
|
+
self.audience_region = attributes[:'audience_region']
|
687
659
|
end
|
688
660
|
|
689
|
-
if attributes.key?(:'
|
690
|
-
self.
|
661
|
+
if attributes.key?(:'curateability')
|
662
|
+
self.curateability = attributes[:'curateability']
|
663
|
+
end
|
664
|
+
|
665
|
+
if attributes.key?(:'use_case')
|
666
|
+
self.use_case = attributes[:'use_case']
|
667
|
+
end
|
668
|
+
|
669
|
+
if attributes.key?(:'channel_suitability')
|
670
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
671
|
+
end
|
672
|
+
|
673
|
+
if attributes.key?(:'primary_mood_cluster_affinity')
|
674
|
+
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
675
|
+
end
|
676
|
+
|
677
|
+
if attributes.key?(:'secondary_mood_cluster')
|
678
|
+
self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
|
679
|
+
end
|
680
|
+
|
681
|
+
if attributes.key?(:'secondary_mood_cluster_affinity')
|
682
|
+
self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
|
683
|
+
end
|
684
|
+
|
685
|
+
if attributes.key?(:'tertiary_mood_cluster')
|
686
|
+
self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
|
687
|
+
end
|
688
|
+
|
689
|
+
if attributes.key?(:'tertiary_mood_cluster_affinity')
|
690
|
+
self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
|
691
691
|
end
|
692
692
|
|
693
|
-
if attributes.key?(:'
|
694
|
-
self.
|
693
|
+
if attributes.key?(:'vocals_affinity')
|
694
|
+
self.vocals_affinity = attributes[:'vocals_affinity']
|
695
695
|
end
|
696
696
|
|
697
|
-
if attributes.key?(:'
|
698
|
-
self.
|
697
|
+
if attributes.key?(:'dominant_instrument_affinity')
|
698
|
+
self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
|
699
699
|
end
|
700
700
|
|
701
|
-
if attributes.key?(:'
|
702
|
-
self.
|
701
|
+
if attributes.key?(:'secondary_instrument')
|
702
|
+
self.secondary_instrument = attributes[:'secondary_instrument']
|
703
703
|
end
|
704
704
|
|
705
|
-
if attributes.key?(:'
|
706
|
-
self.
|
705
|
+
if attributes.key?(:'secondary_instrument_affinity')
|
706
|
+
self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
|
707
707
|
end
|
708
708
|
|
709
|
-
if attributes.key?(:'
|
710
|
-
self.
|
709
|
+
if attributes.key?(:'tertiary_instrument')
|
710
|
+
self.tertiary_instrument = attributes[:'tertiary_instrument']
|
711
711
|
end
|
712
712
|
|
713
|
-
if attributes.key?(:'
|
714
|
-
self.
|
713
|
+
if attributes.key?(:'tertiary_instrument_affinity')
|
714
|
+
self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
|
715
715
|
end
|
716
716
|
|
717
|
-
if attributes.key?(:'
|
718
|
-
self.
|
717
|
+
if attributes.key?(:'sound_generation_affinity')
|
718
|
+
self.sound_generation_affinity = attributes[:'sound_generation_affinity']
|
719
719
|
end
|
720
720
|
|
721
|
-
if attributes.key?(:'
|
722
|
-
self.
|
721
|
+
if attributes.key?(:'rhythm_affinity')
|
722
|
+
self.rhythm_affinity = attributes[:'rhythm_affinity']
|
723
723
|
end
|
724
724
|
|
725
725
|
if attributes.key?(:'valence_affinity')
|
@@ -799,18 +799,10 @@ module SongtradrApiClientRuby
|
|
799
799
|
def valid?
|
800
800
|
space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
801
801
|
return false unless space_validator.valid?(@space)
|
802
|
-
curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
803
|
-
return false unless curateability_validator.valid?(@curateability)
|
804
|
-
use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
805
|
-
return false unless use_case_validator.valid?(@use_case)
|
806
|
-
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
807
|
-
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
808
802
|
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
809
803
|
return false unless arousal_validator.valid?(@arousal)
|
810
804
|
dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
811
805
|
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
812
|
-
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"])
|
813
|
-
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
814
806
|
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
815
807
|
return false unless energy_validator.valid?(@energy)
|
816
808
|
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
@@ -847,10 +839,8 @@ module SongtradrApiClientRuby
|
|
847
839
|
return false unless vocals_validator.valid?(@vocals)
|
848
840
|
origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
849
841
|
return false unless origin_decade_validator.valid?(@origin_decade)
|
850
|
-
|
851
|
-
return false unless
|
852
|
-
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
853
|
-
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
842
|
+
language_of_performance_validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
843
|
+
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
854
844
|
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
855
845
|
return false unless production_rating_validator.valid?(@production_rating)
|
856
846
|
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
@@ -865,10 +855,6 @@ module SongtradrApiClientRuby
|
|
865
855
|
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
866
856
|
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
867
857
|
return false unless audience_gender_validator.valid?(@audience_gender)
|
868
|
-
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"])
|
869
|
-
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
870
|
-
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"])
|
871
|
-
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
872
858
|
secondary_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
859
|
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
874
860
|
tertiary_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"])
|
@@ -879,6 +865,20 @@ module SongtradrApiClientRuby
|
|
879
865
|
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
880
866
|
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"])
|
881
867
|
return false unless audience_region_validator.valid?(@audience_region)
|
868
|
+
curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
869
|
+
return false unless curateability_validator.valid?(@curateability)
|
870
|
+
use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
871
|
+
return false unless use_case_validator.valid?(@use_case)
|
872
|
+
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
873
|
+
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
874
|
+
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
882
|
key_validator = EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
|
883
883
|
return false unless key_validator.valid?(@key)
|
884
884
|
true
|
@@ -894,36 +894,6 @@ module SongtradrApiClientRuby
|
|
894
894
|
@space = space
|
895
895
|
end
|
896
896
|
|
897
|
-
# Custom attribute writer method checking allowed values (enum).
|
898
|
-
# @param [Object] curateability Object to be assigned
|
899
|
-
def curateability=(curateability)
|
900
|
-
validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
901
|
-
unless validator.valid?(curateability)
|
902
|
-
fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
|
903
|
-
end
|
904
|
-
@curateability = curateability
|
905
|
-
end
|
906
|
-
|
907
|
-
# Custom attribute writer method checking allowed values (enum).
|
908
|
-
# @param [Object] use_case Object to be assigned
|
909
|
-
def use_case=(use_case)
|
910
|
-
validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
911
|
-
unless validator.valid?(use_case)
|
912
|
-
fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
|
913
|
-
end
|
914
|
-
@use_case = use_case
|
915
|
-
end
|
916
|
-
|
917
|
-
# Custom attribute writer method checking allowed values (enum).
|
918
|
-
# @param [Object] channel_suitability Object to be assigned
|
919
|
-
def channel_suitability=(channel_suitability)
|
920
|
-
validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
921
|
-
unless validator.valid?(channel_suitability)
|
922
|
-
fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
|
923
|
-
end
|
924
|
-
@channel_suitability = channel_suitability
|
925
|
-
end
|
926
|
-
|
927
897
|
# Custom attribute writer method checking allowed values (enum).
|
928
898
|
# @param [Object] arousal Object to be assigned
|
929
899
|
def arousal=(arousal)
|
@@ -944,16 +914,6 @@ module SongtradrApiClientRuby
|
|
944
914
|
@dominant_instrument = dominant_instrument
|
945
915
|
end
|
946
916
|
|
947
|
-
# Custom attribute writer method checking allowed values (enum).
|
948
|
-
# @param [Object] language_of_performance Object to be assigned
|
949
|
-
def language_of_performance=(language_of_performance)
|
950
|
-
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"])
|
951
|
-
unless validator.valid?(language_of_performance)
|
952
|
-
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
953
|
-
end
|
954
|
-
@language_of_performance = language_of_performance
|
955
|
-
end
|
956
|
-
|
957
917
|
# Custom attribute writer method checking allowed values (enum).
|
958
918
|
# @param [Object] energy Object to be assigned
|
959
919
|
def energy=(energy)
|
@@ -1135,23 +1095,13 @@ module SongtradrApiClientRuby
|
|
1135
1095
|
end
|
1136
1096
|
|
1137
1097
|
# Custom attribute writer method checking allowed values (enum).
|
1138
|
-
# @param [Object]
|
1139
|
-
def
|
1140
|
-
validator = EnumAttributeValidator.new('String', ["
|
1141
|
-
unless validator.valid?(
|
1142
|
-
fail ArgumentError, "invalid value for \"
|
1143
|
-
end
|
1144
|
-
@secondary_mood_cluster = secondary_mood_cluster
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
# Custom attribute writer method checking allowed values (enum).
|
1148
|
-
# @param [Object] tertiary_mood_cluster Object to be assigned
|
1149
|
-
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
1150
|
-
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
1151
|
-
unless validator.valid?(tertiary_mood_cluster)
|
1152
|
-
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
1098
|
+
# @param [Object] language_of_performance Object to be assigned
|
1099
|
+
def language_of_performance=(language_of_performance)
|
1100
|
+
validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
1101
|
+
unless validator.valid?(language_of_performance)
|
1102
|
+
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
1153
1103
|
end
|
1154
|
-
@
|
1104
|
+
@language_of_performance = language_of_performance
|
1155
1105
|
end
|
1156
1106
|
|
1157
1107
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -1224,26 +1174,6 @@ module SongtradrApiClientRuby
|
|
1224
1174
|
@audience_gender = audience_gender
|
1225
1175
|
end
|
1226
1176
|
|
1227
|
-
# Custom attribute writer method checking allowed values (enum).
|
1228
|
-
# @param [Object] secondary_instrument Object to be assigned
|
1229
|
-
def secondary_instrument=(secondary_instrument)
|
1230
|
-
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"])
|
1231
|
-
unless validator.valid?(secondary_instrument)
|
1232
|
-
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
1233
|
-
end
|
1234
|
-
@secondary_instrument = secondary_instrument
|
1235
|
-
end
|
1236
|
-
|
1237
|
-
# Custom attribute writer method checking allowed values (enum).
|
1238
|
-
# @param [Object] tertiary_instrument Object to be assigned
|
1239
|
-
def tertiary_instrument=(tertiary_instrument)
|
1240
|
-
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"])
|
1241
|
-
unless validator.valid?(tertiary_instrument)
|
1242
|
-
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
1243
|
-
end
|
1244
|
-
@tertiary_instrument = tertiary_instrument
|
1245
|
-
end
|
1246
|
-
|
1247
1177
|
# Custom attribute writer method checking allowed values (enum).
|
1248
1178
|
# @param [Object] secondary_audience_region Object to be assigned
|
1249
1179
|
def secondary_audience_region=(secondary_audience_region)
|
@@ -1294,6 +1224,76 @@ module SongtradrApiClientRuby
|
|
1294
1224
|
@audience_region = audience_region
|
1295
1225
|
end
|
1296
1226
|
|
1227
|
+
# Custom attribute writer method checking allowed values (enum).
|
1228
|
+
# @param [Object] curateability Object to be assigned
|
1229
|
+
def curateability=(curateability)
|
1230
|
+
validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
1231
|
+
unless validator.valid?(curateability)
|
1232
|
+
fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
|
1233
|
+
end
|
1234
|
+
@curateability = curateability
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Custom attribute writer method checking allowed values (enum).
|
1238
|
+
# @param [Object] use_case Object to be assigned
|
1239
|
+
def use_case=(use_case)
|
1240
|
+
validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
1241
|
+
unless validator.valid?(use_case)
|
1242
|
+
fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
|
1243
|
+
end
|
1244
|
+
@use_case = use_case
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# Custom attribute writer method checking allowed values (enum).
|
1248
|
+
# @param [Object] channel_suitability Object to be assigned
|
1249
|
+
def channel_suitability=(channel_suitability)
|
1250
|
+
validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
1251
|
+
unless validator.valid?(channel_suitability)
|
1252
|
+
fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
|
1253
|
+
end
|
1254
|
+
@channel_suitability = channel_suitability
|
1255
|
+
end
|
1256
|
+
|
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
1297
|
# Custom attribute writer method checking allowed values (enum).
|
1298
1298
|
# @param [Object] key Object to be assigned
|
1299
1299
|
def key=(key)
|
@@ -1310,12 +1310,8 @@ module SongtradrApiClientRuby
|
|
1310
1310
|
return true if self.equal?(o)
|
1311
1311
|
self.class == o.class &&
|
1312
1312
|
space == o.space &&
|
1313
|
-
curateability == o.curateability &&
|
1314
|
-
use_case == o.use_case &&
|
1315
|
-
channel_suitability == o.channel_suitability &&
|
1316
1313
|
arousal == o.arousal &&
|
1317
1314
|
dominant_instrument == o.dominant_instrument &&
|
1318
|
-
language_of_performance == o.language_of_performance &&
|
1319
1315
|
energy == o.energy &&
|
1320
1316
|
engagement == o.engagement &&
|
1321
1317
|
groovyness == o.groovyness &&
|
@@ -1334,12 +1330,9 @@ module SongtradrApiClientRuby
|
|
1334
1330
|
valence == o.valence &&
|
1335
1331
|
vocals == o.vocals &&
|
1336
1332
|
origin_decade == o.origin_decade &&
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
1341
|
-
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
1342
|
-
vocals_affinity == o.vocals_affinity &&
|
1333
|
+
language_of_performance == o.language_of_performance &&
|
1334
|
+
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
1335
|
+
tonality_affinity == o.tonality_affinity &&
|
1343
1336
|
bpm == o.bpm &&
|
1344
1337
|
production_rating == o.production_rating &&
|
1345
1338
|
production_rating_affinity == o.production_rating_affinity &&
|
@@ -1355,15 +1348,6 @@ module SongtradrApiClientRuby
|
|
1355
1348
|
tertiary_audience_age_affinity == o.tertiary_audience_age_affinity &&
|
1356
1349
|
audience_gender == o.audience_gender &&
|
1357
1350
|
audience_gender_affinity == o.audience_gender_affinity &&
|
1358
|
-
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
1359
|
-
secondary_instrument == o.secondary_instrument &&
|
1360
|
-
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1361
|
-
tertiary_instrument == o.tertiary_instrument &&
|
1362
|
-
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
1363
|
-
sound_generation_affinity == o.sound_generation_affinity &&
|
1364
|
-
rhythm_affinity == o.rhythm_affinity &&
|
1365
|
-
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
1366
|
-
tonality_affinity == o.tonality_affinity &&
|
1367
1351
|
audience_region_affinity == o.audience_region_affinity &&
|
1368
1352
|
secondary_audience_region == o.secondary_audience_region &&
|
1369
1353
|
secondary_audience_region_affinity == o.secondary_audience_region_affinity &&
|
@@ -1378,6 +1362,22 @@ module SongtradrApiClientRuby
|
|
1378
1362
|
industry_suitability == o.industry_suitability &&
|
1379
1363
|
industry_suitability_affinity == o.industry_suitability_affinity &&
|
1380
1364
|
audience_region == o.audience_region &&
|
1365
|
+
curateability == o.curateability &&
|
1366
|
+
use_case == o.use_case &&
|
1367
|
+
channel_suitability == o.channel_suitability &&
|
1368
|
+
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
1369
|
+
secondary_mood_cluster == o.secondary_mood_cluster &&
|
1370
|
+
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
1371
|
+
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
1372
|
+
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
1373
|
+
vocals_affinity == o.vocals_affinity &&
|
1374
|
+
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
1375
|
+
secondary_instrument == o.secondary_instrument &&
|
1376
|
+
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1377
|
+
tertiary_instrument == o.tertiary_instrument &&
|
1378
|
+
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
1379
|
+
sound_generation_affinity == o.sound_generation_affinity &&
|
1380
|
+
rhythm_affinity == o.rhythm_affinity &&
|
1381
1381
|
valence_affinity == o.valence_affinity &&
|
1382
1382
|
arousal_affinity == o.arousal_affinity &&
|
1383
1383
|
pleasantness_affinity == o.pleasantness_affinity &&
|
@@ -1405,7 +1405,7 @@ module SongtradrApiClientRuby
|
|
1405
1405
|
# Calculates hash code according to all attributes.
|
1406
1406
|
# @return [Integer] Hash code
|
1407
1407
|
def hash
|
1408
|
-
[space,
|
1408
|
+
[space, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, language_of_performance, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity, audience_region, curateability, use_case, channel_suitability, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
|
1409
1409
|
end
|
1410
1410
|
|
1411
1411
|
# Builds the object from hash
|