songtradr_api_client_ruby 1.13.2 → 1.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -2
- data/README.md +5 -5
- data/docs/ApiKeyDTO.md +3 -3
- data/docs/MusicalFeaturesDTO.md +22 -22
- data/docs/PlaylistLargeDTO.md +6 -6
- data/docs/ProductMediumDTO.md +8 -8
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingLargeDTO.md +9 -9
- data/docs/RecordingMediumDTO.md +7 -7
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/party_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/user_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api_client.rb +2 -2
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +15 -15
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +244 -244
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +29 -29
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +45 -45
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +17 -17
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +52 -52
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +43 -43
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +17 -17
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +27 -27
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +8 -8
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +2 -2
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +2 -2
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +2 -2
- data/spec/api/party_api_spec.rb +2 -2
- data/spec/api/playlist_api_spec.rb +2 -2
- data/spec/api/recording_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/admin_api_user_dto_spec.rb +2 -2
- data/spec/models/api_key_dto_spec.rb +4 -4
- data/spec/models/category_medium_dto_spec.rb +2 -2
- data/spec/models/category_minimal_dto_spec.rb +2 -2
- data/spec/models/config_access_dto_spec.rb +2 -2
- data/spec/models/config_identifier_dto_spec.rb +2 -2
- data/spec/models/contributor_type_dto_spec.rb +2 -2
- data/spec/models/create_api_key_dto_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/field_summary_dto_spec.rb +2 -2
- data/spec/models/file_dto_spec.rb +2 -2
- data/spec/models/file_list_dto_spec.rb +2 -2
- data/spec/models/file_minimal_with_url_dto_spec.rb +2 -2
- data/spec/models/file_small_dto_spec.rb +2 -2
- data/spec/models/file_upload_dto_spec.rb +2 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
- data/spec/models/files_summary_dto_spec.rb +2 -2
- data/spec/models/forgot_password_dto_spec.rb +2 -2
- data/spec/models/genre_dto_spec.rb +2 -2
- data/spec/models/genre_minimal_dto_spec.rb +2 -2
- data/spec/models/genres_summary_dto_spec.rb +2 -2
- data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
- data/spec/models/jwt_token_dto_spec.rb +2 -2
- data/spec/models/login_dto_spec.rb +2 -2
- data/spec/models/musical_features_dto_spec.rb +74 -74
- data/spec/models/p_line_dto_spec.rb +2 -2
- data/spec/models/party_large_dto_spec.rb +2 -2
- data/spec/models/party_small_dto_spec.rb +2 -2
- data/spec/models/playlist_large_dto_spec.rb +7 -7
- data/spec/models/product_medium_dto_spec.rb +10 -10
- data/spec/models/product_party_dto_spec.rb +4 -4
- data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +5 -5
- data/spec/models/recording_large_dto_spec.rb +12 -12
- data/spec/models/recording_list_dto_spec.rb +2 -2
- data/spec/models/recording_medium_dto_spec.rb +11 -11
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
- data/spec/models/recording_party_dto_spec.rb +4 -4
- data/spec/models/recording_playlist_dto_spec.rb +2 -2
- data/spec/models/recording_small_dto_spec.rb +4 -4
- data/spec/models/recording_tag_small_dto_spec.rb +2 -2
- data/spec/models/save_file_recording_dto_spec.rb +5 -5
- data/spec/models/save_playlist_dto_spec.rb +2 -2
- data/spec/models/save_recording_genre_dto_spec.rb +2 -2
- data/spec/models/save_recording_party_dto_spec.rb +2 -2
- data/spec/models/save_recording_playlist_dto_spec.rb +2 -2
- data/spec/models/save_recording_tag_dto_spec.rb +2 -2
- data/spec/models/save_referrer_dto_spec.rb +2 -2
- data/spec/models/save_taggrams_dto_spec.rb +2 -2
- data/spec/models/save_user_dto_spec.rb +2 -2
- data/spec/models/search_filter_values_dto_spec.rb +2 -2
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +2 -2
- data/spec/models/search_recording_granular_dto_spec.rb +2 -2
- data/spec/models/sign_up_dto_spec.rb +2 -2
- data/spec/models/tag_dto_spec.rb +2 -2
- data/spec/models/tag_small_dto_spec.rb +2 -2
- data/spec/models/taggram_dto_spec.rb +2 -2
- data/spec/models/tags_summary_dto_spec.rb +2 -2
- data/spec/models/tagstrength_dto_spec.rb +2 -2
- data/spec/models/title_dto_spec.rb +2 -2
- data/spec/models/token_request_spec.rb +2 -2
- data/spec/models/track_dto_spec.rb +2 -2
- data/spec/models/track_to_medium_product_dto_spec.rb +2 -2
- data/spec/models/update_password_dto_spec.rb +2 -2
- data/spec/models/usage_dto_spec.rb +2 -2
- data/spec/models/user_dto_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +59 -59
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.13.
|
6
|
+
The version of the OpenAPI document: 1.13.4
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,38 +19,6 @@ module SongtradrApiClientRuby
|
|
19
19
|
# Search for space
|
20
20
|
attr_accessor :space
|
21
21
|
|
22
|
-
attr_accessor :language_of_performance
|
23
|
-
|
24
|
-
# Search for an arousal
|
25
|
-
attr_accessor :arousal
|
26
|
-
|
27
|
-
# Search for a dominant instrument
|
28
|
-
attr_accessor :dominant_instrument
|
29
|
-
|
30
|
-
# Search for energy
|
31
|
-
attr_accessor :energy
|
32
|
-
|
33
|
-
# Search for an engagement
|
34
|
-
attr_accessor :engagement
|
35
|
-
|
36
|
-
# Search for groovyness
|
37
|
-
attr_accessor :groovyness
|
38
|
-
|
39
|
-
# Search for a degree of harmoniousness
|
40
|
-
attr_accessor :harmony
|
41
|
-
|
42
|
-
# Search for pleasantness
|
43
|
-
attr_accessor :pleasantness
|
44
|
-
|
45
|
-
# Search for a language of the lyrics
|
46
|
-
attr_accessor :primary_mood_cluster
|
47
|
-
|
48
|
-
# Search for a sound character
|
49
|
-
attr_accessor :primary_sound_character
|
50
|
-
|
51
|
-
# Search for rhythm
|
52
|
-
attr_accessor :rhythm
|
53
|
-
|
54
22
|
# Search for roughness
|
55
23
|
attr_accessor :roughness
|
56
24
|
|
@@ -90,6 +58,38 @@ module SongtradrApiClientRuby
|
|
90
58
|
# Search for social media suitability
|
91
59
|
attr_accessor :channel_suitability
|
92
60
|
|
61
|
+
attr_accessor :language_of_performance
|
62
|
+
|
63
|
+
# Search for an arousal
|
64
|
+
attr_accessor :arousal
|
65
|
+
|
66
|
+
# Search for a dominant instrument
|
67
|
+
attr_accessor :dominant_instrument
|
68
|
+
|
69
|
+
# Search for energy
|
70
|
+
attr_accessor :energy
|
71
|
+
|
72
|
+
# Search for an engagement
|
73
|
+
attr_accessor :engagement
|
74
|
+
|
75
|
+
# Search for groovyness
|
76
|
+
attr_accessor :groovyness
|
77
|
+
|
78
|
+
# Search for a degree of harmoniousness
|
79
|
+
attr_accessor :harmony
|
80
|
+
|
81
|
+
# Search for pleasantness
|
82
|
+
attr_accessor :pleasantness
|
83
|
+
|
84
|
+
# Search for a language of the lyrics
|
85
|
+
attr_accessor :primary_mood_cluster
|
86
|
+
|
87
|
+
# Search for a sound character
|
88
|
+
attr_accessor :primary_sound_character
|
89
|
+
|
90
|
+
# Search for rhythm
|
91
|
+
attr_accessor :rhythm
|
92
|
+
|
93
93
|
attr_accessor :primary_mood_cluster_affinity
|
94
94
|
|
95
95
|
# Search for a language of the lyrics
|
@@ -242,17 +242,6 @@ module SongtradrApiClientRuby
|
|
242
242
|
def self.attribute_map
|
243
243
|
{
|
244
244
|
:'space' => :'space',
|
245
|
-
:'language_of_performance' => :'languageOfPerformance',
|
246
|
-
:'arousal' => :'arousal',
|
247
|
-
:'dominant_instrument' => :'dominantInstrument',
|
248
|
-
:'energy' => :'energy',
|
249
|
-
:'engagement' => :'engagement',
|
250
|
-
:'groovyness' => :'groovyness',
|
251
|
-
:'harmony' => :'harmony',
|
252
|
-
:'pleasantness' => :'pleasantness',
|
253
|
-
:'primary_mood_cluster' => :'primaryMoodCluster',
|
254
|
-
:'primary_sound_character' => :'primarySoundCharacter',
|
255
|
-
:'rhythm' => :'rhythm',
|
256
245
|
:'roughness' => :'roughness',
|
257
246
|
:'scale' => :'scale',
|
258
247
|
:'sound_generation' => :'soundGeneration',
|
@@ -266,6 +255,17 @@ module SongtradrApiClientRuby
|
|
266
255
|
:'curateability' => :'curateability',
|
267
256
|
:'use_case' => :'useCase',
|
268
257
|
:'channel_suitability' => :'channelSuitability',
|
258
|
+
:'language_of_performance' => :'languageOfPerformance',
|
259
|
+
:'arousal' => :'arousal',
|
260
|
+
:'dominant_instrument' => :'dominantInstrument',
|
261
|
+
:'energy' => :'energy',
|
262
|
+
:'engagement' => :'engagement',
|
263
|
+
:'groovyness' => :'groovyness',
|
264
|
+
:'harmony' => :'harmony',
|
265
|
+
:'pleasantness' => :'pleasantness',
|
266
|
+
:'primary_mood_cluster' => :'primaryMoodCluster',
|
267
|
+
:'primary_sound_character' => :'primarySoundCharacter',
|
268
|
+
:'rhythm' => :'rhythm',
|
269
269
|
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
270
270
|
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
271
271
|
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
@@ -338,17 +338,6 @@ module SongtradrApiClientRuby
|
|
338
338
|
def self.openapi_types
|
339
339
|
{
|
340
340
|
:'space' => :'String',
|
341
|
-
:'language_of_performance' => :'String',
|
342
|
-
:'arousal' => :'String',
|
343
|
-
:'dominant_instrument' => :'String',
|
344
|
-
:'energy' => :'String',
|
345
|
-
:'engagement' => :'String',
|
346
|
-
:'groovyness' => :'String',
|
347
|
-
:'harmony' => :'String',
|
348
|
-
:'pleasantness' => :'String',
|
349
|
-
:'primary_mood_cluster' => :'String',
|
350
|
-
:'primary_sound_character' => :'String',
|
351
|
-
:'rhythm' => :'String',
|
352
341
|
:'roughness' => :'String',
|
353
342
|
:'scale' => :'String',
|
354
343
|
:'sound_generation' => :'String',
|
@@ -362,6 +351,17 @@ module SongtradrApiClientRuby
|
|
362
351
|
:'curateability' => :'String',
|
363
352
|
:'use_case' => :'String',
|
364
353
|
:'channel_suitability' => :'String',
|
354
|
+
:'language_of_performance' => :'String',
|
355
|
+
:'arousal' => :'String',
|
356
|
+
:'dominant_instrument' => :'String',
|
357
|
+
:'energy' => :'String',
|
358
|
+
:'engagement' => :'String',
|
359
|
+
:'groovyness' => :'String',
|
360
|
+
:'harmony' => :'String',
|
361
|
+
:'pleasantness' => :'String',
|
362
|
+
:'primary_mood_cluster' => :'String',
|
363
|
+
:'primary_sound_character' => :'String',
|
364
|
+
:'rhythm' => :'String',
|
365
365
|
:'primary_mood_cluster_affinity' => :'Float',
|
366
366
|
:'secondary_mood_cluster' => :'String',
|
367
367
|
:'secondary_mood_cluster_affinity' => :'Float',
|
@@ -450,50 +450,6 @@ module SongtradrApiClientRuby
|
|
450
450
|
self.space = attributes[:'space']
|
451
451
|
end
|
452
452
|
|
453
|
-
if attributes.key?(:'language_of_performance')
|
454
|
-
self.language_of_performance = attributes[:'language_of_performance']
|
455
|
-
end
|
456
|
-
|
457
|
-
if attributes.key?(:'arousal')
|
458
|
-
self.arousal = attributes[:'arousal']
|
459
|
-
end
|
460
|
-
|
461
|
-
if attributes.key?(:'dominant_instrument')
|
462
|
-
self.dominant_instrument = attributes[:'dominant_instrument']
|
463
|
-
end
|
464
|
-
|
465
|
-
if attributes.key?(:'energy')
|
466
|
-
self.energy = attributes[:'energy']
|
467
|
-
end
|
468
|
-
|
469
|
-
if attributes.key?(:'engagement')
|
470
|
-
self.engagement = attributes[:'engagement']
|
471
|
-
end
|
472
|
-
|
473
|
-
if attributes.key?(:'groovyness')
|
474
|
-
self.groovyness = attributes[:'groovyness']
|
475
|
-
end
|
476
|
-
|
477
|
-
if attributes.key?(:'harmony')
|
478
|
-
self.harmony = attributes[:'harmony']
|
479
|
-
end
|
480
|
-
|
481
|
-
if attributes.key?(:'pleasantness')
|
482
|
-
self.pleasantness = attributes[:'pleasantness']
|
483
|
-
end
|
484
|
-
|
485
|
-
if attributes.key?(:'primary_mood_cluster')
|
486
|
-
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
487
|
-
end
|
488
|
-
|
489
|
-
if attributes.key?(:'primary_sound_character')
|
490
|
-
self.primary_sound_character = attributes[:'primary_sound_character']
|
491
|
-
end
|
492
|
-
|
493
|
-
if attributes.key?(:'rhythm')
|
494
|
-
self.rhythm = attributes[:'rhythm']
|
495
|
-
end
|
496
|
-
|
497
453
|
if attributes.key?(:'roughness')
|
498
454
|
self.roughness = attributes[:'roughness']
|
499
455
|
end
|
@@ -546,6 +502,50 @@ module SongtradrApiClientRuby
|
|
546
502
|
self.channel_suitability = attributes[:'channel_suitability']
|
547
503
|
end
|
548
504
|
|
505
|
+
if attributes.key?(:'language_of_performance')
|
506
|
+
self.language_of_performance = attributes[:'language_of_performance']
|
507
|
+
end
|
508
|
+
|
509
|
+
if attributes.key?(:'arousal')
|
510
|
+
self.arousal = attributes[:'arousal']
|
511
|
+
end
|
512
|
+
|
513
|
+
if attributes.key?(:'dominant_instrument')
|
514
|
+
self.dominant_instrument = attributes[:'dominant_instrument']
|
515
|
+
end
|
516
|
+
|
517
|
+
if attributes.key?(:'energy')
|
518
|
+
self.energy = attributes[:'energy']
|
519
|
+
end
|
520
|
+
|
521
|
+
if attributes.key?(:'engagement')
|
522
|
+
self.engagement = attributes[:'engagement']
|
523
|
+
end
|
524
|
+
|
525
|
+
if attributes.key?(:'groovyness')
|
526
|
+
self.groovyness = attributes[:'groovyness']
|
527
|
+
end
|
528
|
+
|
529
|
+
if attributes.key?(:'harmony')
|
530
|
+
self.harmony = attributes[:'harmony']
|
531
|
+
end
|
532
|
+
|
533
|
+
if attributes.key?(:'pleasantness')
|
534
|
+
self.pleasantness = attributes[:'pleasantness']
|
535
|
+
end
|
536
|
+
|
537
|
+
if attributes.key?(:'primary_mood_cluster')
|
538
|
+
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
539
|
+
end
|
540
|
+
|
541
|
+
if attributes.key?(:'primary_sound_character')
|
542
|
+
self.primary_sound_character = attributes[:'primary_sound_character']
|
543
|
+
end
|
544
|
+
|
545
|
+
if attributes.key?(:'rhythm')
|
546
|
+
self.rhythm = attributes[:'rhythm']
|
547
|
+
end
|
548
|
+
|
549
549
|
if attributes.key?(:'primary_mood_cluster_affinity')
|
550
550
|
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
551
551
|
end
|
@@ -801,28 +801,6 @@ module SongtradrApiClientRuby
|
|
801
801
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
802
802
|
space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
803
803
|
return false unless space_validator.valid?(@space)
|
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"])
|
805
|
-
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
806
|
-
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
807
|
-
return false unless arousal_validator.valid?(@arousal)
|
808
|
-
dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
809
|
-
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
810
|
-
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
811
|
-
return false unless energy_validator.valid?(@energy)
|
812
|
-
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
813
|
-
return false unless engagement_validator.valid?(@engagement)
|
814
|
-
groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
815
|
-
return false unless groovyness_validator.valid?(@groovyness)
|
816
|
-
harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
817
|
-
return false unless harmony_validator.valid?(@harmony)
|
818
|
-
pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
819
|
-
return false unless pleasantness_validator.valid?(@pleasantness)
|
820
|
-
primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
821
|
-
return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
|
822
|
-
primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
823
|
-
return false unless primary_sound_character_validator.valid?(@primary_sound_character)
|
824
|
-
rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
825
|
-
return false unless rhythm_validator.valid?(@rhythm)
|
826
804
|
roughness_validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
827
805
|
return false unless roughness_validator.valid?(@roughness)
|
828
806
|
scale_validator = EnumAttributeValidator.new('String', ["major key", "minor key", "neutral key"])
|
@@ -849,6 +827,28 @@ module SongtradrApiClientRuby
|
|
849
827
|
return false unless use_case_validator.valid?(@use_case)
|
850
828
|
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
851
829
|
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
830
|
+
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"])
|
831
|
+
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
832
|
+
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
833
|
+
return false unless arousal_validator.valid?(@arousal)
|
834
|
+
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"])
|
835
|
+
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
836
|
+
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
837
|
+
return false unless energy_validator.valid?(@energy)
|
838
|
+
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
839
|
+
return false unless engagement_validator.valid?(@engagement)
|
840
|
+
groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
841
|
+
return false unless groovyness_validator.valid?(@groovyness)
|
842
|
+
harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
843
|
+
return false unless harmony_validator.valid?(@harmony)
|
844
|
+
pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
845
|
+
return false unless pleasantness_validator.valid?(@pleasantness)
|
846
|
+
primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
847
|
+
return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
|
848
|
+
primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
849
|
+
return false unless primary_sound_character_validator.valid?(@primary_sound_character)
|
850
|
+
rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
851
|
+
return false unless rhythm_validator.valid?(@rhythm)
|
852
852
|
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
853
853
|
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
854
854
|
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
@@ -896,116 +896,6 @@ module SongtradrApiClientRuby
|
|
896
896
|
@space = space
|
897
897
|
end
|
898
898
|
|
899
|
-
# Custom attribute writer method checking allowed values (enum).
|
900
|
-
# @param [Object] language_of_performance Object to be assigned
|
901
|
-
def language_of_performance=(language_of_performance)
|
902
|
-
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"])
|
903
|
-
unless validator.valid?(language_of_performance)
|
904
|
-
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
905
|
-
end
|
906
|
-
@language_of_performance = language_of_performance
|
907
|
-
end
|
908
|
-
|
909
|
-
# Custom attribute writer method checking allowed values (enum).
|
910
|
-
# @param [Object] arousal Object to be assigned
|
911
|
-
def arousal=(arousal)
|
912
|
-
validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
913
|
-
unless validator.valid?(arousal)
|
914
|
-
fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
|
915
|
-
end
|
916
|
-
@arousal = arousal
|
917
|
-
end
|
918
|
-
|
919
|
-
# Custom attribute writer method checking allowed values (enum).
|
920
|
-
# @param [Object] dominant_instrument Object to be assigned
|
921
|
-
def dominant_instrument=(dominant_instrument)
|
922
|
-
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
923
|
-
unless validator.valid?(dominant_instrument)
|
924
|
-
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
|
925
|
-
end
|
926
|
-
@dominant_instrument = dominant_instrument
|
927
|
-
end
|
928
|
-
|
929
|
-
# Custom attribute writer method checking allowed values (enum).
|
930
|
-
# @param [Object] energy Object to be assigned
|
931
|
-
def energy=(energy)
|
932
|
-
validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
933
|
-
unless validator.valid?(energy)
|
934
|
-
fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
|
935
|
-
end
|
936
|
-
@energy = energy
|
937
|
-
end
|
938
|
-
|
939
|
-
# Custom attribute writer method checking allowed values (enum).
|
940
|
-
# @param [Object] engagement Object to be assigned
|
941
|
-
def engagement=(engagement)
|
942
|
-
validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
943
|
-
unless validator.valid?(engagement)
|
944
|
-
fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
|
945
|
-
end
|
946
|
-
@engagement = engagement
|
947
|
-
end
|
948
|
-
|
949
|
-
# Custom attribute writer method checking allowed values (enum).
|
950
|
-
# @param [Object] groovyness Object to be assigned
|
951
|
-
def groovyness=(groovyness)
|
952
|
-
validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
953
|
-
unless validator.valid?(groovyness)
|
954
|
-
fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
|
955
|
-
end
|
956
|
-
@groovyness = groovyness
|
957
|
-
end
|
958
|
-
|
959
|
-
# Custom attribute writer method checking allowed values (enum).
|
960
|
-
# @param [Object] harmony Object to be assigned
|
961
|
-
def harmony=(harmony)
|
962
|
-
validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
963
|
-
unless validator.valid?(harmony)
|
964
|
-
fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
|
965
|
-
end
|
966
|
-
@harmony = harmony
|
967
|
-
end
|
968
|
-
|
969
|
-
# Custom attribute writer method checking allowed values (enum).
|
970
|
-
# @param [Object] pleasantness Object to be assigned
|
971
|
-
def pleasantness=(pleasantness)
|
972
|
-
validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
973
|
-
unless validator.valid?(pleasantness)
|
974
|
-
fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
|
975
|
-
end
|
976
|
-
@pleasantness = pleasantness
|
977
|
-
end
|
978
|
-
|
979
|
-
# Custom attribute writer method checking allowed values (enum).
|
980
|
-
# @param [Object] primary_mood_cluster Object to be assigned
|
981
|
-
def primary_mood_cluster=(primary_mood_cluster)
|
982
|
-
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
983
|
-
unless validator.valid?(primary_mood_cluster)
|
984
|
-
fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
|
985
|
-
end
|
986
|
-
@primary_mood_cluster = primary_mood_cluster
|
987
|
-
end
|
988
|
-
|
989
|
-
# Custom attribute writer method checking allowed values (enum).
|
990
|
-
# @param [Object] primary_sound_character Object to be assigned
|
991
|
-
def primary_sound_character=(primary_sound_character)
|
992
|
-
validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
993
|
-
unless validator.valid?(primary_sound_character)
|
994
|
-
fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
|
995
|
-
end
|
996
|
-
@primary_sound_character = primary_sound_character
|
997
|
-
end
|
998
|
-
|
999
|
-
# Custom attribute writer method checking allowed values (enum).
|
1000
|
-
# @param [Object] rhythm Object to be assigned
|
1001
|
-
def rhythm=(rhythm)
|
1002
|
-
validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
1003
|
-
unless validator.valid?(rhythm)
|
1004
|
-
fail ArgumentError, "invalid value for \"rhythm\", must be one of #{validator.allowable_values}."
|
1005
|
-
end
|
1006
|
-
@rhythm = rhythm
|
1007
|
-
end
|
1008
|
-
|
1009
899
|
# Custom attribute writer method checking allowed values (enum).
|
1010
900
|
# @param [Object] roughness Object to be assigned
|
1011
901
|
def roughness=(roughness)
|
@@ -1136,6 +1026,116 @@ module SongtradrApiClientRuby
|
|
1136
1026
|
@channel_suitability = channel_suitability
|
1137
1027
|
end
|
1138
1028
|
|
1029
|
+
# Custom attribute writer method checking allowed values (enum).
|
1030
|
+
# @param [Object] language_of_performance Object to be assigned
|
1031
|
+
def language_of_performance=(language_of_performance)
|
1032
|
+
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"])
|
1033
|
+
unless validator.valid?(language_of_performance)
|
1034
|
+
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
1035
|
+
end
|
1036
|
+
@language_of_performance = language_of_performance
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Custom attribute writer method checking allowed values (enum).
|
1040
|
+
# @param [Object] arousal Object to be assigned
|
1041
|
+
def arousal=(arousal)
|
1042
|
+
validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
1043
|
+
unless validator.valid?(arousal)
|
1044
|
+
fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
|
1045
|
+
end
|
1046
|
+
@arousal = arousal
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# Custom attribute writer method checking allowed values (enum).
|
1050
|
+
# @param [Object] dominant_instrument Object to be assigned
|
1051
|
+
def dominant_instrument=(dominant_instrument)
|
1052
|
+
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"])
|
1053
|
+
unless validator.valid?(dominant_instrument)
|
1054
|
+
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
|
1055
|
+
end
|
1056
|
+
@dominant_instrument = dominant_instrument
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Custom attribute writer method checking allowed values (enum).
|
1060
|
+
# @param [Object] energy Object to be assigned
|
1061
|
+
def energy=(energy)
|
1062
|
+
validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
1063
|
+
unless validator.valid?(energy)
|
1064
|
+
fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
|
1065
|
+
end
|
1066
|
+
@energy = energy
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# Custom attribute writer method checking allowed values (enum).
|
1070
|
+
# @param [Object] engagement Object to be assigned
|
1071
|
+
def engagement=(engagement)
|
1072
|
+
validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
1073
|
+
unless validator.valid?(engagement)
|
1074
|
+
fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
|
1075
|
+
end
|
1076
|
+
@engagement = engagement
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# Custom attribute writer method checking allowed values (enum).
|
1080
|
+
# @param [Object] groovyness Object to be assigned
|
1081
|
+
def groovyness=(groovyness)
|
1082
|
+
validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
1083
|
+
unless validator.valid?(groovyness)
|
1084
|
+
fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
|
1085
|
+
end
|
1086
|
+
@groovyness = groovyness
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
# Custom attribute writer method checking allowed values (enum).
|
1090
|
+
# @param [Object] harmony Object to be assigned
|
1091
|
+
def harmony=(harmony)
|
1092
|
+
validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
1093
|
+
unless validator.valid?(harmony)
|
1094
|
+
fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
|
1095
|
+
end
|
1096
|
+
@harmony = harmony
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
# Custom attribute writer method checking allowed values (enum).
|
1100
|
+
# @param [Object] pleasantness Object to be assigned
|
1101
|
+
def pleasantness=(pleasantness)
|
1102
|
+
validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
1103
|
+
unless validator.valid?(pleasantness)
|
1104
|
+
fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
|
1105
|
+
end
|
1106
|
+
@pleasantness = pleasantness
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Custom attribute writer method checking allowed values (enum).
|
1110
|
+
# @param [Object] primary_mood_cluster Object to be assigned
|
1111
|
+
def primary_mood_cluster=(primary_mood_cluster)
|
1112
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
1113
|
+
unless validator.valid?(primary_mood_cluster)
|
1114
|
+
fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
|
1115
|
+
end
|
1116
|
+
@primary_mood_cluster = primary_mood_cluster
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# Custom attribute writer method checking allowed values (enum).
|
1120
|
+
# @param [Object] primary_sound_character Object to be assigned
|
1121
|
+
def primary_sound_character=(primary_sound_character)
|
1122
|
+
validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
1123
|
+
unless validator.valid?(primary_sound_character)
|
1124
|
+
fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
|
1125
|
+
end
|
1126
|
+
@primary_sound_character = primary_sound_character
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
# Custom attribute writer method checking allowed values (enum).
|
1130
|
+
# @param [Object] rhythm Object to be assigned
|
1131
|
+
def rhythm=(rhythm)
|
1132
|
+
validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
1133
|
+
unless validator.valid?(rhythm)
|
1134
|
+
fail ArgumentError, "invalid value for \"rhythm\", must be one of #{validator.allowable_values}."
|
1135
|
+
end
|
1136
|
+
@rhythm = rhythm
|
1137
|
+
end
|
1138
|
+
|
1139
1139
|
# Custom attribute writer method checking allowed values (enum).
|
1140
1140
|
# @param [Object] secondary_mood_cluster Object to be assigned
|
1141
1141
|
def secondary_mood_cluster=(secondary_mood_cluster)
|
@@ -1312,17 +1312,6 @@ module SongtradrApiClientRuby
|
|
1312
1312
|
return true if self.equal?(o)
|
1313
1313
|
self.class == o.class &&
|
1314
1314
|
space == o.space &&
|
1315
|
-
language_of_performance == o.language_of_performance &&
|
1316
|
-
arousal == o.arousal &&
|
1317
|
-
dominant_instrument == o.dominant_instrument &&
|
1318
|
-
energy == o.energy &&
|
1319
|
-
engagement == o.engagement &&
|
1320
|
-
groovyness == o.groovyness &&
|
1321
|
-
harmony == o.harmony &&
|
1322
|
-
pleasantness == o.pleasantness &&
|
1323
|
-
primary_mood_cluster == o.primary_mood_cluster &&
|
1324
|
-
primary_sound_character == o.primary_sound_character &&
|
1325
|
-
rhythm == o.rhythm &&
|
1326
1315
|
roughness == o.roughness &&
|
1327
1316
|
scale == o.scale &&
|
1328
1317
|
sound_generation == o.sound_generation &&
|
@@ -1336,6 +1325,17 @@ module SongtradrApiClientRuby
|
|
1336
1325
|
curateability == o.curateability &&
|
1337
1326
|
use_case == o.use_case &&
|
1338
1327
|
channel_suitability == o.channel_suitability &&
|
1328
|
+
language_of_performance == o.language_of_performance &&
|
1329
|
+
arousal == o.arousal &&
|
1330
|
+
dominant_instrument == o.dominant_instrument &&
|
1331
|
+
energy == o.energy &&
|
1332
|
+
engagement == o.engagement &&
|
1333
|
+
groovyness == o.groovyness &&
|
1334
|
+
harmony == o.harmony &&
|
1335
|
+
pleasantness == o.pleasantness &&
|
1336
|
+
primary_mood_cluster == o.primary_mood_cluster &&
|
1337
|
+
primary_sound_character == o.primary_sound_character &&
|
1338
|
+
rhythm == o.rhythm &&
|
1339
1339
|
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
1340
1340
|
secondary_mood_cluster == o.secondary_mood_cluster &&
|
1341
1341
|
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
@@ -1407,7 +1407,7 @@ module SongtradrApiClientRuby
|
|
1407
1407
|
# Calculates hash code according to all attributes.
|
1408
1408
|
# @return [Integer] Hash code
|
1409
1409
|
def hash
|
1410
|
-
[space,
|
1410
|
+
[space, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, language_of_performance, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity, audience_region, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
|
1411
1411
|
end
|
1412
1412
|
|
1413
1413
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.13.
|
6
|
+
The version of the OpenAPI document: 1.13.4
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.13.
|
6
|
+
The version of the OpenAPI document: 1.13.4
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|