songtradr_api_client_ruby 1.12.21 → 1.12.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +26 -12
- data/docs/APIKeysApi.md +217 -0
- data/docs/AdminApiUserDTO.md +70 -0
- data/docs/ApiKeyDTO.md +24 -0
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/CreateApiKeyDTO.md +18 -0
- data/docs/MusicalFeaturesDTO.md +54 -54
- data/docs/PlaylistLargeDTO.md +3 -3
- data/docs/ProductMediumDTO.md +9 -9
- data/docs/RecordingLargeDTO.md +14 -14
- data/docs/RecordingMediumDTO.md +14 -14
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPlaylistDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +4 -4
- data/docs/UserDTO.md +2 -0
- 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/api_keys_api.rb +213 -0
- 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/admin_api_user_dto.rb +453 -0
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +261 -0
- 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/create_api_key_dto.rb +219 -0
- 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 +1 -1
- 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 +448 -448
- 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 +16 -16
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +51 -51
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +1 -1
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +71 -71
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +63 -63
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +14 -14
- 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 +16 -2
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +5 -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/api_keys_api_spec.rb +70 -0
- 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/admin_api_user_dto_spec.rb +190 -0
- data/spec/models/api_key_dto_spec.rb +52 -0
- 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/create_api_key_dto_spec.rb +34 -0
- 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 +1 -1
- 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 +165 -165
- 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 +7 -7
- data/spec/models/product_medium_dto_spec.rb +9 -9
- data/spec/models/product_party_dto_spec.rb +1 -1
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +1 -1
- 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 +1 -1
- data/spec/models/recording_playlist_dto_spec.rb +4 -4
- 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 +7 -1
- data/spec/spec_helper.rb +1 -1
- metadata +72 -76
|
@@ -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.23
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -19,44 +19,8 @@ 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
|
-
# Search for an arousal
|
|
32
|
-
attr_accessor :arousal
|
|
33
|
-
|
|
34
|
-
# Search for a dominant instrument
|
|
35
|
-
attr_accessor :dominant_instrument
|
|
36
|
-
|
|
37
22
|
attr_accessor :language_of_performance
|
|
38
23
|
|
|
39
|
-
# Search for energy
|
|
40
|
-
attr_accessor :energy
|
|
41
|
-
|
|
42
|
-
# Search for an engagement
|
|
43
|
-
attr_accessor :engagement
|
|
44
|
-
|
|
45
|
-
# Search for groovyness
|
|
46
|
-
attr_accessor :groovyness
|
|
47
|
-
|
|
48
|
-
# Search for a degree of harmoniousness
|
|
49
|
-
attr_accessor :harmony
|
|
50
|
-
|
|
51
|
-
# Search for pleasantness
|
|
52
|
-
attr_accessor :pleasantness
|
|
53
|
-
|
|
54
|
-
# Search for a language of the lyrics
|
|
55
|
-
attr_accessor :primary_mood_cluster
|
|
56
|
-
|
|
57
|
-
# Search for a sound character
|
|
58
|
-
attr_accessor :primary_sound_character
|
|
59
|
-
|
|
60
24
|
# Search for rhythm
|
|
61
25
|
attr_accessor :rhythm
|
|
62
26
|
|
|
@@ -90,19 +54,24 @@ module SongtradrApiClientRuby
|
|
|
90
54
|
# Search for origin decade
|
|
91
55
|
attr_accessor :origin_decade
|
|
92
56
|
|
|
93
|
-
|
|
57
|
+
# Search for curatebility
|
|
58
|
+
attr_accessor :curateability
|
|
94
59
|
|
|
95
|
-
# Search for
|
|
96
|
-
attr_accessor :
|
|
60
|
+
# Search for use case
|
|
61
|
+
attr_accessor :use_case
|
|
97
62
|
|
|
98
|
-
|
|
63
|
+
# Search for social media suitability
|
|
64
|
+
attr_accessor :channel_suitability
|
|
99
65
|
|
|
100
|
-
|
|
101
|
-
attr_accessor :tertiary_mood_cluster
|
|
66
|
+
attr_accessor :tertiary_instrument_affinity
|
|
102
67
|
|
|
103
|
-
attr_accessor :
|
|
68
|
+
attr_accessor :sound_generation_affinity
|
|
104
69
|
|
|
105
|
-
attr_accessor :
|
|
70
|
+
attr_accessor :rhythm_affinity
|
|
71
|
+
|
|
72
|
+
attr_accessor :primary_sound_character_affinity
|
|
73
|
+
|
|
74
|
+
attr_accessor :tonality_affinity
|
|
106
75
|
|
|
107
76
|
attr_accessor :bpm
|
|
108
77
|
|
|
@@ -134,26 +103,6 @@ module SongtradrApiClientRuby
|
|
|
134
103
|
|
|
135
104
|
attr_accessor :audience_gender_affinity
|
|
136
105
|
|
|
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
106
|
attr_accessor :audience_region_affinity
|
|
158
107
|
|
|
159
108
|
attr_accessor :secondary_audience_region
|
|
@@ -176,6 +125,33 @@ module SongtradrApiClientRuby
|
|
|
176
125
|
|
|
177
126
|
attr_accessor :use_case_affinity
|
|
178
127
|
|
|
128
|
+
# Search for an arousal
|
|
129
|
+
attr_accessor :arousal
|
|
130
|
+
|
|
131
|
+
# Search for a dominant instrument
|
|
132
|
+
attr_accessor :dominant_instrument
|
|
133
|
+
|
|
134
|
+
# Search for energy
|
|
135
|
+
attr_accessor :energy
|
|
136
|
+
|
|
137
|
+
# Search for an engagement
|
|
138
|
+
attr_accessor :engagement
|
|
139
|
+
|
|
140
|
+
# Search for groovyness
|
|
141
|
+
attr_accessor :groovyness
|
|
142
|
+
|
|
143
|
+
# Search for a degree of harmoniousness
|
|
144
|
+
attr_accessor :harmony
|
|
145
|
+
|
|
146
|
+
# Search for pleasantness
|
|
147
|
+
attr_accessor :pleasantness
|
|
148
|
+
|
|
149
|
+
# Search for a language of the lyrics
|
|
150
|
+
attr_accessor :primary_mood_cluster
|
|
151
|
+
|
|
152
|
+
# Search for a sound character
|
|
153
|
+
attr_accessor :primary_sound_character
|
|
154
|
+
|
|
179
155
|
# Search for Industry suitability
|
|
180
156
|
attr_accessor :industry_suitability
|
|
181
157
|
|
|
@@ -183,6 +159,30 @@ module SongtradrApiClientRuby
|
|
|
183
159
|
|
|
184
160
|
attr_accessor :audience_region
|
|
185
161
|
|
|
162
|
+
attr_accessor :primary_mood_cluster_affinity
|
|
163
|
+
|
|
164
|
+
# Search for a language of the lyrics
|
|
165
|
+
attr_accessor :secondary_mood_cluster
|
|
166
|
+
|
|
167
|
+
attr_accessor :secondary_mood_cluster_affinity
|
|
168
|
+
|
|
169
|
+
# Search for a language of the lyrics
|
|
170
|
+
attr_accessor :tertiary_mood_cluster
|
|
171
|
+
|
|
172
|
+
attr_accessor :tertiary_mood_cluster_affinity
|
|
173
|
+
|
|
174
|
+
attr_accessor :vocals_affinity
|
|
175
|
+
|
|
176
|
+
attr_accessor :dominant_instrument_affinity
|
|
177
|
+
|
|
178
|
+
# Search for a dominant instrument
|
|
179
|
+
attr_accessor :secondary_instrument
|
|
180
|
+
|
|
181
|
+
attr_accessor :secondary_instrument_affinity
|
|
182
|
+
|
|
183
|
+
# Search for a dominant instrument
|
|
184
|
+
attr_accessor :tertiary_instrument
|
|
185
|
+
|
|
186
186
|
attr_accessor :valence_affinity
|
|
187
187
|
|
|
188
188
|
attr_accessor :arousal_affinity
|
|
@@ -242,19 +242,7 @@ 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
|
-
:'arousal' => :'arousal',
|
|
249
|
-
:'dominant_instrument' => :'dominantInstrument',
|
|
250
245
|
:'language_of_performance' => :'languageOfPerformance',
|
|
251
|
-
:'energy' => :'energy',
|
|
252
|
-
:'engagement' => :'engagement',
|
|
253
|
-
:'groovyness' => :'groovyness',
|
|
254
|
-
:'harmony' => :'harmony',
|
|
255
|
-
:'pleasantness' => :'pleasantness',
|
|
256
|
-
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
257
|
-
:'primary_sound_character' => :'primarySoundCharacter',
|
|
258
246
|
:'rhythm' => :'rhythm',
|
|
259
247
|
:'roughness' => :'roughness',
|
|
260
248
|
:'scale' => :'scale',
|
|
@@ -266,12 +254,14 @@ module SongtradrApiClientRuby
|
|
|
266
254
|
:'valence' => :'valence',
|
|
267
255
|
:'vocals' => :'vocals',
|
|
268
256
|
:'origin_decade' => :'originDecade',
|
|
269
|
-
:'
|
|
270
|
-
:'
|
|
271
|
-
:'
|
|
272
|
-
:'
|
|
273
|
-
:'
|
|
274
|
-
:'
|
|
257
|
+
:'curateability' => :'curateability',
|
|
258
|
+
:'use_case' => :'useCase',
|
|
259
|
+
:'channel_suitability' => :'channelSuitability',
|
|
260
|
+
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
|
261
|
+
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
|
262
|
+
:'rhythm_affinity' => :'rhythmAffinity',
|
|
263
|
+
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
|
264
|
+
:'tonality_affinity' => :'tonalityAffinity',
|
|
275
265
|
:'bpm' => :'bpm',
|
|
276
266
|
:'production_rating' => :'productionRating',
|
|
277
267
|
:'production_rating_affinity' => :'productionRatingAffinity',
|
|
@@ -287,15 +277,6 @@ module SongtradrApiClientRuby
|
|
|
287
277
|
:'tertiary_audience_age_affinity' => :'tertiaryAudienceAgeAffinity',
|
|
288
278
|
:'audience_gender' => :'audienceGender',
|
|
289
279
|
:'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
280
|
:'audience_region_affinity' => :'audienceRegionAffinity',
|
|
300
281
|
:'secondary_audience_region' => :'secondaryAudienceRegion',
|
|
301
282
|
:'secondary_audience_region_affinity' => :'secondaryAudienceRegionAffinity',
|
|
@@ -307,9 +288,28 @@ module SongtradrApiClientRuby
|
|
|
307
288
|
:'language_of_performance_affinity' => :'languageOfPerformanceAffinity',
|
|
308
289
|
:'curateability_affinity' => :'curateabilityAffinity',
|
|
309
290
|
:'use_case_affinity' => :'useCaseAffinity',
|
|
291
|
+
:'arousal' => :'arousal',
|
|
292
|
+
:'dominant_instrument' => :'dominantInstrument',
|
|
293
|
+
:'energy' => :'energy',
|
|
294
|
+
:'engagement' => :'engagement',
|
|
295
|
+
:'groovyness' => :'groovyness',
|
|
296
|
+
:'harmony' => :'harmony',
|
|
297
|
+
:'pleasantness' => :'pleasantness',
|
|
298
|
+
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
299
|
+
:'primary_sound_character' => :'primarySoundCharacter',
|
|
310
300
|
:'industry_suitability' => :'industrySuitability',
|
|
311
301
|
:'industry_suitability_affinity' => :'industrySuitabilityAffinity',
|
|
312
302
|
:'audience_region' => :'audienceRegion',
|
|
303
|
+
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
|
304
|
+
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
|
305
|
+
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
|
306
|
+
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
|
307
|
+
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
|
308
|
+
:'vocals_affinity' => :'vocalsAffinity',
|
|
309
|
+
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
|
310
|
+
:'secondary_instrument' => :'secondaryInstrument',
|
|
311
|
+
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
|
312
|
+
:'tertiary_instrument' => :'tertiaryInstrument',
|
|
313
313
|
:'valence_affinity' => :'valenceAffinity',
|
|
314
314
|
:'arousal_affinity' => :'arousalAffinity',
|
|
315
315
|
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
|
@@ -338,19 +338,7 @@ 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
|
-
:'arousal' => :'String',
|
|
345
|
-
:'dominant_instrument' => :'String',
|
|
346
341
|
:'language_of_performance' => :'String',
|
|
347
|
-
:'energy' => :'String',
|
|
348
|
-
:'engagement' => :'String',
|
|
349
|
-
:'groovyness' => :'String',
|
|
350
|
-
:'harmony' => :'String',
|
|
351
|
-
:'pleasantness' => :'String',
|
|
352
|
-
:'primary_mood_cluster' => :'String',
|
|
353
|
-
:'primary_sound_character' => :'String',
|
|
354
342
|
:'rhythm' => :'String',
|
|
355
343
|
:'roughness' => :'String',
|
|
356
344
|
:'scale' => :'String',
|
|
@@ -362,12 +350,14 @@ module SongtradrApiClientRuby
|
|
|
362
350
|
:'valence' => :'String',
|
|
363
351
|
:'vocals' => :'String',
|
|
364
352
|
:'origin_decade' => :'String',
|
|
365
|
-
:'
|
|
366
|
-
:'
|
|
367
|
-
:'
|
|
368
|
-
:'
|
|
369
|
-
:'
|
|
370
|
-
:'
|
|
353
|
+
:'curateability' => :'String',
|
|
354
|
+
:'use_case' => :'String',
|
|
355
|
+
:'channel_suitability' => :'String',
|
|
356
|
+
:'tertiary_instrument_affinity' => :'Float',
|
|
357
|
+
:'sound_generation_affinity' => :'Float',
|
|
358
|
+
:'rhythm_affinity' => :'Float',
|
|
359
|
+
:'primary_sound_character_affinity' => :'Float',
|
|
360
|
+
:'tonality_affinity' => :'Float',
|
|
371
361
|
:'bpm' => :'Float',
|
|
372
362
|
:'production_rating' => :'String',
|
|
373
363
|
:'production_rating_affinity' => :'Float',
|
|
@@ -383,15 +373,6 @@ module SongtradrApiClientRuby
|
|
|
383
373
|
:'tertiary_audience_age_affinity' => :'Float',
|
|
384
374
|
:'audience_gender' => :'String',
|
|
385
375
|
:'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
376
|
:'audience_region_affinity' => :'Float',
|
|
396
377
|
:'secondary_audience_region' => :'String',
|
|
397
378
|
:'secondary_audience_region_affinity' => :'Float',
|
|
@@ -403,9 +384,28 @@ module SongtradrApiClientRuby
|
|
|
403
384
|
:'language_of_performance_affinity' => :'Float',
|
|
404
385
|
:'curateability_affinity' => :'Float',
|
|
405
386
|
:'use_case_affinity' => :'Float',
|
|
387
|
+
:'arousal' => :'String',
|
|
388
|
+
:'dominant_instrument' => :'String',
|
|
389
|
+
:'energy' => :'String',
|
|
390
|
+
:'engagement' => :'String',
|
|
391
|
+
:'groovyness' => :'String',
|
|
392
|
+
:'harmony' => :'String',
|
|
393
|
+
:'pleasantness' => :'String',
|
|
394
|
+
:'primary_mood_cluster' => :'String',
|
|
395
|
+
:'primary_sound_character' => :'String',
|
|
406
396
|
:'industry_suitability' => :'String',
|
|
407
397
|
:'industry_suitability_affinity' => :'Float',
|
|
408
398
|
:'audience_region' => :'String',
|
|
399
|
+
:'primary_mood_cluster_affinity' => :'Float',
|
|
400
|
+
:'secondary_mood_cluster' => :'String',
|
|
401
|
+
:'secondary_mood_cluster_affinity' => :'Float',
|
|
402
|
+
:'tertiary_mood_cluster' => :'String',
|
|
403
|
+
:'tertiary_mood_cluster_affinity' => :'Float',
|
|
404
|
+
:'vocals_affinity' => :'Float',
|
|
405
|
+
:'dominant_instrument_affinity' => :'Float',
|
|
406
|
+
:'secondary_instrument' => :'String',
|
|
407
|
+
:'secondary_instrument_affinity' => :'Float',
|
|
408
|
+
:'tertiary_instrument' => :'String',
|
|
409
409
|
:'valence_affinity' => :'Float',
|
|
410
410
|
:'arousal_affinity' => :'Float',
|
|
411
411
|
:'pleasantness_affinity' => :'Float',
|
|
@@ -450,72 +450,24 @@ module SongtradrApiClientRuby
|
|
|
450
450
|
self.space = attributes[:'space']
|
|
451
451
|
end
|
|
452
452
|
|
|
453
|
-
if attributes.key?(:'
|
|
454
|
-
self.
|
|
453
|
+
if attributes.key?(:'language_of_performance')
|
|
454
|
+
self.language_of_performance = attributes[:'language_of_performance']
|
|
455
455
|
end
|
|
456
456
|
|
|
457
|
-
if attributes.key?(:'
|
|
458
|
-
self.
|
|
457
|
+
if attributes.key?(:'rhythm')
|
|
458
|
+
self.rhythm = attributes[:'rhythm']
|
|
459
459
|
end
|
|
460
460
|
|
|
461
|
-
if attributes.key?(:'
|
|
462
|
-
self.
|
|
461
|
+
if attributes.key?(:'roughness')
|
|
462
|
+
self.roughness = attributes[:'roughness']
|
|
463
463
|
end
|
|
464
464
|
|
|
465
|
-
if attributes.key?(:'
|
|
466
|
-
self.
|
|
465
|
+
if attributes.key?(:'scale')
|
|
466
|
+
self.scale = attributes[:'scale']
|
|
467
467
|
end
|
|
468
468
|
|
|
469
|
-
if attributes.key?(:'
|
|
470
|
-
self.
|
|
471
|
-
end
|
|
472
|
-
|
|
473
|
-
if attributes.key?(:'language_of_performance')
|
|
474
|
-
self.language_of_performance = attributes[:'language_of_performance']
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
if attributes.key?(:'energy')
|
|
478
|
-
self.energy = attributes[:'energy']
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
if attributes.key?(:'engagement')
|
|
482
|
-
self.engagement = attributes[:'engagement']
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
if attributes.key?(:'groovyness')
|
|
486
|
-
self.groovyness = attributes[:'groovyness']
|
|
487
|
-
end
|
|
488
|
-
|
|
489
|
-
if attributes.key?(:'harmony')
|
|
490
|
-
self.harmony = attributes[:'harmony']
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
if attributes.key?(:'pleasantness')
|
|
494
|
-
self.pleasantness = attributes[:'pleasantness']
|
|
495
|
-
end
|
|
496
|
-
|
|
497
|
-
if attributes.key?(:'primary_mood_cluster')
|
|
498
|
-
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
499
|
-
end
|
|
500
|
-
|
|
501
|
-
if attributes.key?(:'primary_sound_character')
|
|
502
|
-
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
503
|
-
end
|
|
504
|
-
|
|
505
|
-
if attributes.key?(:'rhythm')
|
|
506
|
-
self.rhythm = attributes[:'rhythm']
|
|
507
|
-
end
|
|
508
|
-
|
|
509
|
-
if attributes.key?(:'roughness')
|
|
510
|
-
self.roughness = attributes[:'roughness']
|
|
511
|
-
end
|
|
512
|
-
|
|
513
|
-
if attributes.key?(:'scale')
|
|
514
|
-
self.scale = attributes[:'scale']
|
|
515
|
-
end
|
|
516
|
-
|
|
517
|
-
if attributes.key?(:'sound_generation')
|
|
518
|
-
self.sound_generation = attributes[:'sound_generation']
|
|
469
|
+
if attributes.key?(:'sound_generation')
|
|
470
|
+
self.sound_generation = attributes[:'sound_generation']
|
|
519
471
|
end
|
|
520
472
|
|
|
521
473
|
if attributes.key?(:'tempo')
|
|
@@ -546,28 +498,36 @@ module SongtradrApiClientRuby
|
|
|
546
498
|
self.origin_decade = attributes[:'origin_decade']
|
|
547
499
|
end
|
|
548
500
|
|
|
549
|
-
if attributes.key?(:'
|
|
550
|
-
self.
|
|
501
|
+
if attributes.key?(:'curateability')
|
|
502
|
+
self.curateability = attributes[:'curateability']
|
|
551
503
|
end
|
|
552
504
|
|
|
553
|
-
if attributes.key?(:'
|
|
554
|
-
self.
|
|
505
|
+
if attributes.key?(:'use_case')
|
|
506
|
+
self.use_case = attributes[:'use_case']
|
|
555
507
|
end
|
|
556
508
|
|
|
557
|
-
if attributes.key?(:'
|
|
558
|
-
self.
|
|
509
|
+
if attributes.key?(:'channel_suitability')
|
|
510
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
|
559
511
|
end
|
|
560
512
|
|
|
561
|
-
if attributes.key?(:'
|
|
562
|
-
self.
|
|
513
|
+
if attributes.key?(:'tertiary_instrument_affinity')
|
|
514
|
+
self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
|
|
563
515
|
end
|
|
564
516
|
|
|
565
|
-
if attributes.key?(:'
|
|
566
|
-
self.
|
|
517
|
+
if attributes.key?(:'sound_generation_affinity')
|
|
518
|
+
self.sound_generation_affinity = attributes[:'sound_generation_affinity']
|
|
567
519
|
end
|
|
568
520
|
|
|
569
|
-
if attributes.key?(:'
|
|
570
|
-
self.
|
|
521
|
+
if attributes.key?(:'rhythm_affinity')
|
|
522
|
+
self.rhythm_affinity = attributes[:'rhythm_affinity']
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
if attributes.key?(:'primary_sound_character_affinity')
|
|
526
|
+
self.primary_sound_character_affinity = attributes[:'primary_sound_character_affinity']
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
if attributes.key?(:'tonality_affinity')
|
|
530
|
+
self.tonality_affinity = attributes[:'tonality_affinity']
|
|
571
531
|
end
|
|
572
532
|
|
|
573
533
|
if attributes.key?(:'bpm')
|
|
@@ -630,42 +590,6 @@ module SongtradrApiClientRuby
|
|
|
630
590
|
self.audience_gender_affinity = attributes[:'audience_gender_affinity']
|
|
631
591
|
end
|
|
632
592
|
|
|
633
|
-
if attributes.key?(:'dominant_instrument_affinity')
|
|
634
|
-
self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
if attributes.key?(:'secondary_instrument')
|
|
638
|
-
self.secondary_instrument = attributes[:'secondary_instrument']
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
if attributes.key?(:'secondary_instrument_affinity')
|
|
642
|
-
self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
if attributes.key?(:'tertiary_instrument')
|
|
646
|
-
self.tertiary_instrument = attributes[:'tertiary_instrument']
|
|
647
|
-
end
|
|
648
|
-
|
|
649
|
-
if attributes.key?(:'tertiary_instrument_affinity')
|
|
650
|
-
self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
|
|
651
|
-
end
|
|
652
|
-
|
|
653
|
-
if attributes.key?(:'sound_generation_affinity')
|
|
654
|
-
self.sound_generation_affinity = attributes[:'sound_generation_affinity']
|
|
655
|
-
end
|
|
656
|
-
|
|
657
|
-
if attributes.key?(:'rhythm_affinity')
|
|
658
|
-
self.rhythm_affinity = attributes[:'rhythm_affinity']
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
if attributes.key?(:'primary_sound_character_affinity')
|
|
662
|
-
self.primary_sound_character_affinity = attributes[:'primary_sound_character_affinity']
|
|
663
|
-
end
|
|
664
|
-
|
|
665
|
-
if attributes.key?(:'tonality_affinity')
|
|
666
|
-
self.tonality_affinity = attributes[:'tonality_affinity']
|
|
667
|
-
end
|
|
668
|
-
|
|
669
593
|
if attributes.key?(:'audience_region_affinity')
|
|
670
594
|
self.audience_region_affinity = attributes[:'audience_region_affinity']
|
|
671
595
|
end
|
|
@@ -710,6 +634,42 @@ module SongtradrApiClientRuby
|
|
|
710
634
|
self.use_case_affinity = attributes[:'use_case_affinity']
|
|
711
635
|
end
|
|
712
636
|
|
|
637
|
+
if attributes.key?(:'arousal')
|
|
638
|
+
self.arousal = attributes[:'arousal']
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
if attributes.key?(:'dominant_instrument')
|
|
642
|
+
self.dominant_instrument = attributes[:'dominant_instrument']
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
if attributes.key?(:'energy')
|
|
646
|
+
self.energy = attributes[:'energy']
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
if attributes.key?(:'engagement')
|
|
650
|
+
self.engagement = attributes[:'engagement']
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
if attributes.key?(:'groovyness')
|
|
654
|
+
self.groovyness = attributes[:'groovyness']
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
if attributes.key?(:'harmony')
|
|
658
|
+
self.harmony = attributes[:'harmony']
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
if attributes.key?(:'pleasantness')
|
|
662
|
+
self.pleasantness = attributes[:'pleasantness']
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
if attributes.key?(:'primary_mood_cluster')
|
|
666
|
+
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
if attributes.key?(:'primary_sound_character')
|
|
670
|
+
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
671
|
+
end
|
|
672
|
+
|
|
713
673
|
if attributes.key?(:'industry_suitability')
|
|
714
674
|
self.industry_suitability = attributes[:'industry_suitability']
|
|
715
675
|
end
|
|
@@ -722,6 +682,46 @@ module SongtradrApiClientRuby
|
|
|
722
682
|
self.audience_region = attributes[:'audience_region']
|
|
723
683
|
end
|
|
724
684
|
|
|
685
|
+
if attributes.key?(:'primary_mood_cluster_affinity')
|
|
686
|
+
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
if attributes.key?(:'secondary_mood_cluster')
|
|
690
|
+
self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
if attributes.key?(:'secondary_mood_cluster_affinity')
|
|
694
|
+
self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
if attributes.key?(:'tertiary_mood_cluster')
|
|
698
|
+
self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
if attributes.key?(:'tertiary_mood_cluster_affinity')
|
|
702
|
+
self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
if attributes.key?(:'vocals_affinity')
|
|
706
|
+
self.vocals_affinity = attributes[:'vocals_affinity']
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
if attributes.key?(:'dominant_instrument_affinity')
|
|
710
|
+
self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
if attributes.key?(:'secondary_instrument')
|
|
714
|
+
self.secondary_instrument = attributes[:'secondary_instrument']
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
if attributes.key?(:'secondary_instrument_affinity')
|
|
718
|
+
self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
if attributes.key?(:'tertiary_instrument')
|
|
722
|
+
self.tertiary_instrument = attributes[:'tertiary_instrument']
|
|
723
|
+
end
|
|
724
|
+
|
|
725
725
|
if attributes.key?(:'valence_affinity')
|
|
726
726
|
self.valence_affinity = attributes[:'valence_affinity']
|
|
727
727
|
end
|
|
@@ -799,32 +799,8 @@ 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
|
-
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
809
|
-
return false unless arousal_validator.valid?(@arousal)
|
|
810
|
-
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
|
-
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
|
812
802
|
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
803
|
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
|
814
|
-
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
815
|
-
return false unless energy_validator.valid?(@energy)
|
|
816
|
-
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
817
|
-
return false unless engagement_validator.valid?(@engagement)
|
|
818
|
-
groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
819
|
-
return false unless groovyness_validator.valid?(@groovyness)
|
|
820
|
-
harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
821
|
-
return false unless harmony_validator.valid?(@harmony)
|
|
822
|
-
pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
|
823
|
-
return false unless pleasantness_validator.valid?(@pleasantness)
|
|
824
|
-
primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
825
|
-
return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
|
|
826
|
-
primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
|
827
|
-
return false unless primary_sound_character_validator.valid?(@primary_sound_character)
|
|
828
804
|
rhythm_validator = EnumAttributeValidator.new('String', ["common time", "triple meter", "complex time signature", "binary rhythm", "ternary rhythm"])
|
|
829
805
|
return false unless rhythm_validator.valid?(@rhythm)
|
|
830
806
|
roughness_validator = EnumAttributeValidator.new('String', ["very clear", "clear", "moderate roughness", "distorted", "very distorted"])
|
|
@@ -847,10 +823,12 @@ module SongtradrApiClientRuby
|
|
|
847
823
|
return false unless vocals_validator.valid?(@vocals)
|
|
848
824
|
origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
|
849
825
|
return false unless origin_decade_validator.valid?(@origin_decade)
|
|
850
|
-
|
|
851
|
-
return false unless
|
|
852
|
-
|
|
853
|
-
return false unless
|
|
826
|
+
curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
|
827
|
+
return false unless curateability_validator.valid?(@curateability)
|
|
828
|
+
use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
|
829
|
+
return false unless use_case_validator.valid?(@use_case)
|
|
830
|
+
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
|
831
|
+
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
|
854
832
|
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
855
833
|
return false unless production_rating_validator.valid?(@production_rating)
|
|
856
834
|
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
@@ -865,20 +843,42 @@ module SongtradrApiClientRuby
|
|
|
865
843
|
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
|
866
844
|
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
867
845
|
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
846
|
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
847
|
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
|
874
848
|
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"])
|
|
875
849
|
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
|
876
850
|
origin_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
877
851
|
return false unless origin_region_validator.valid?(@origin_region)
|
|
852
|
+
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
853
|
+
return false unless arousal_validator.valid?(@arousal)
|
|
854
|
+
dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
855
|
+
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
|
856
|
+
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
857
|
+
return false unless energy_validator.valid?(@energy)
|
|
858
|
+
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
859
|
+
return false unless engagement_validator.valid?(@engagement)
|
|
860
|
+
groovyness_validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
861
|
+
return false unless groovyness_validator.valid?(@groovyness)
|
|
862
|
+
harmony_validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
863
|
+
return false unless harmony_validator.valid?(@harmony)
|
|
864
|
+
pleasantness_validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
|
865
|
+
return false unless pleasantness_validator.valid?(@pleasantness)
|
|
866
|
+
primary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
867
|
+
return false unless primary_mood_cluster_validator.valid?(@primary_mood_cluster)
|
|
868
|
+
primary_sound_character_validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
|
869
|
+
return false unless primary_sound_character_validator.valid?(@primary_sound_character)
|
|
878
870
|
industry_suitability_validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
|
|
879
871
|
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
|
880
872
|
audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
881
873
|
return false unless audience_region_validator.valid?(@audience_region)
|
|
874
|
+
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
875
|
+
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
|
876
|
+
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
877
|
+
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
|
878
|
+
secondary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
879
|
+
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
|
880
|
+
tertiary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
881
|
+
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
|
882
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
|
|
@@ -886,142 +886,22 @@ module SongtradrApiClientRuby
|
|
|
886
886
|
|
|
887
887
|
# Custom attribute writer method checking allowed values (enum).
|
|
888
888
|
# @param [Object] space Object to be assigned
|
|
889
|
-
def space=(space)
|
|
890
|
-
validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
|
891
|
-
unless validator.valid?(space)
|
|
892
|
-
fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}."
|
|
893
|
-
end
|
|
894
|
-
@space = space
|
|
895
|
-
end
|
|
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
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
928
|
-
# @param [Object] arousal Object to be assigned
|
|
929
|
-
def arousal=(arousal)
|
|
930
|
-
validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
931
|
-
unless validator.valid?(arousal)
|
|
932
|
-
fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
|
|
933
|
-
end
|
|
934
|
-
@arousal = arousal
|
|
935
|
-
end
|
|
936
|
-
|
|
937
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
938
|
-
# @param [Object] dominant_instrument Object to be assigned
|
|
939
|
-
def dominant_instrument=(dominant_instrument)
|
|
940
|
-
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"])
|
|
941
|
-
unless validator.valid?(dominant_instrument)
|
|
942
|
-
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
|
|
943
|
-
end
|
|
944
|
-
@dominant_instrument = dominant_instrument
|
|
945
|
-
end
|
|
946
|
-
|
|
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
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
958
|
-
# @param [Object] energy Object to be assigned
|
|
959
|
-
def energy=(energy)
|
|
960
|
-
validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
961
|
-
unless validator.valid?(energy)
|
|
962
|
-
fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
|
|
963
|
-
end
|
|
964
|
-
@energy = energy
|
|
965
|
-
end
|
|
966
|
-
|
|
967
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
968
|
-
# @param [Object] engagement Object to be assigned
|
|
969
|
-
def engagement=(engagement)
|
|
970
|
-
validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
971
|
-
unless validator.valid?(engagement)
|
|
972
|
-
fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
|
|
973
|
-
end
|
|
974
|
-
@engagement = engagement
|
|
975
|
-
end
|
|
976
|
-
|
|
977
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
978
|
-
# @param [Object] groovyness Object to be assigned
|
|
979
|
-
def groovyness=(groovyness)
|
|
980
|
-
validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
981
|
-
unless validator.valid?(groovyness)
|
|
982
|
-
fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
|
|
983
|
-
end
|
|
984
|
-
@groovyness = groovyness
|
|
985
|
-
end
|
|
986
|
-
|
|
987
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
988
|
-
# @param [Object] harmony Object to be assigned
|
|
989
|
-
def harmony=(harmony)
|
|
990
|
-
validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
991
|
-
unless validator.valid?(harmony)
|
|
992
|
-
fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
|
|
993
|
-
end
|
|
994
|
-
@harmony = harmony
|
|
995
|
-
end
|
|
996
|
-
|
|
997
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
998
|
-
# @param [Object] pleasantness Object to be assigned
|
|
999
|
-
def pleasantness=(pleasantness)
|
|
1000
|
-
validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
|
1001
|
-
unless validator.valid?(pleasantness)
|
|
1002
|
-
fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
|
|
1003
|
-
end
|
|
1004
|
-
@pleasantness = pleasantness
|
|
1005
|
-
end
|
|
1006
|
-
|
|
1007
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1008
|
-
# @param [Object] primary_mood_cluster Object to be assigned
|
|
1009
|
-
def primary_mood_cluster=(primary_mood_cluster)
|
|
1010
|
-
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1011
|
-
unless validator.valid?(primary_mood_cluster)
|
|
1012
|
-
fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
889
|
+
def space=(space)
|
|
890
|
+
validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
|
891
|
+
unless validator.valid?(space)
|
|
892
|
+
fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}."
|
|
1013
893
|
end
|
|
1014
|
-
@
|
|
894
|
+
@space = space
|
|
1015
895
|
end
|
|
1016
896
|
|
|
1017
897
|
# Custom attribute writer method checking allowed values (enum).
|
|
1018
|
-
# @param [Object]
|
|
1019
|
-
def
|
|
1020
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1021
|
-
unless validator.valid?(
|
|
1022
|
-
fail ArgumentError, "invalid value for \"
|
|
898
|
+
# @param [Object] language_of_performance Object to be assigned
|
|
899
|
+
def language_of_performance=(language_of_performance)
|
|
900
|
+
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"])
|
|
901
|
+
unless validator.valid?(language_of_performance)
|
|
902
|
+
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
|
1023
903
|
end
|
|
1024
|
-
@
|
|
904
|
+
@language_of_performance = language_of_performance
|
|
1025
905
|
end
|
|
1026
906
|
|
|
1027
907
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -1135,23 +1015,33 @@ module SongtradrApiClientRuby
|
|
|
1135
1015
|
end
|
|
1136
1016
|
|
|
1137
1017
|
# 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 \"
|
|
1018
|
+
# @param [Object] curateability Object to be assigned
|
|
1019
|
+
def curateability=(curateability)
|
|
1020
|
+
validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
|
1021
|
+
unless validator.valid?(curateability)
|
|
1022
|
+
fail ArgumentError, "invalid value for \"curateability\", must be one of #{validator.allowable_values}."
|
|
1143
1023
|
end
|
|
1144
|
-
@
|
|
1024
|
+
@curateability = curateability
|
|
1145
1025
|
end
|
|
1146
1026
|
|
|
1147
1027
|
# Custom attribute writer method checking allowed values (enum).
|
|
1148
|
-
# @param [Object]
|
|
1149
|
-
def
|
|
1150
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1151
|
-
unless validator.valid?(
|
|
1152
|
-
fail ArgumentError, "invalid value for \"
|
|
1028
|
+
# @param [Object] use_case Object to be assigned
|
|
1029
|
+
def use_case=(use_case)
|
|
1030
|
+
validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
|
1031
|
+
unless validator.valid?(use_case)
|
|
1032
|
+
fail ArgumentError, "invalid value for \"use_case\", must be one of #{validator.allowable_values}."
|
|
1153
1033
|
end
|
|
1154
|
-
@
|
|
1034
|
+
@use_case = use_case
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1038
|
+
# @param [Object] channel_suitability Object to be assigned
|
|
1039
|
+
def channel_suitability=(channel_suitability)
|
|
1040
|
+
validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
|
1041
|
+
unless validator.valid?(channel_suitability)
|
|
1042
|
+
fail ArgumentError, "invalid value for \"channel_suitability\", must be one of #{validator.allowable_values}."
|
|
1043
|
+
end
|
|
1044
|
+
@channel_suitability = channel_suitability
|
|
1155
1045
|
end
|
|
1156
1046
|
|
|
1157
1047
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -1224,26 +1114,6 @@ module SongtradrApiClientRuby
|
|
|
1224
1114
|
@audience_gender = audience_gender
|
|
1225
1115
|
end
|
|
1226
1116
|
|
|
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
1117
|
# Custom attribute writer method checking allowed values (enum).
|
|
1248
1118
|
# @param [Object] secondary_audience_region Object to be assigned
|
|
1249
1119
|
def secondary_audience_region=(secondary_audience_region)
|
|
@@ -1274,6 +1144,96 @@ module SongtradrApiClientRuby
|
|
|
1274
1144
|
@origin_region = origin_region
|
|
1275
1145
|
end
|
|
1276
1146
|
|
|
1147
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1148
|
+
# @param [Object] arousal Object to be assigned
|
|
1149
|
+
def arousal=(arousal)
|
|
1150
|
+
validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
1151
|
+
unless validator.valid?(arousal)
|
|
1152
|
+
fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
|
|
1153
|
+
end
|
|
1154
|
+
@arousal = arousal
|
|
1155
|
+
end
|
|
1156
|
+
|
|
1157
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1158
|
+
# @param [Object] dominant_instrument Object to be assigned
|
|
1159
|
+
def dominant_instrument=(dominant_instrument)
|
|
1160
|
+
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1161
|
+
unless validator.valid?(dominant_instrument)
|
|
1162
|
+
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
|
|
1163
|
+
end
|
|
1164
|
+
@dominant_instrument = dominant_instrument
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1168
|
+
# @param [Object] energy Object to be assigned
|
|
1169
|
+
def energy=(energy)
|
|
1170
|
+
validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
1171
|
+
unless validator.valid?(energy)
|
|
1172
|
+
fail ArgumentError, "invalid value for \"energy\", must be one of #{validator.allowable_values}."
|
|
1173
|
+
end
|
|
1174
|
+
@energy = energy
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1178
|
+
# @param [Object] engagement Object to be assigned
|
|
1179
|
+
def engagement=(engagement)
|
|
1180
|
+
validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
1181
|
+
unless validator.valid?(engagement)
|
|
1182
|
+
fail ArgumentError, "invalid value for \"engagement\", must be one of #{validator.allowable_values}."
|
|
1183
|
+
end
|
|
1184
|
+
@engagement = engagement
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1188
|
+
# @param [Object] groovyness Object to be assigned
|
|
1189
|
+
def groovyness=(groovyness)
|
|
1190
|
+
validator = EnumAttributeValidator.new('String', ["very steady", "steady", "moderate rhythm feel", "groovy", "very groovy"])
|
|
1191
|
+
unless validator.valid?(groovyness)
|
|
1192
|
+
fail ArgumentError, "invalid value for \"groovyness\", must be one of #{validator.allowable_values}."
|
|
1193
|
+
end
|
|
1194
|
+
@groovyness = groovyness
|
|
1195
|
+
end
|
|
1196
|
+
|
|
1197
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1198
|
+
# @param [Object] harmony Object to be assigned
|
|
1199
|
+
def harmony=(harmony)
|
|
1200
|
+
validator = EnumAttributeValidator.new('String', ["very dissonant", "dissonant", "moderate harmonies", "harmonious", "very harmonious"])
|
|
1201
|
+
unless validator.valid?(harmony)
|
|
1202
|
+
fail ArgumentError, "invalid value for \"harmony\", must be one of #{validator.allowable_values}."
|
|
1203
|
+
end
|
|
1204
|
+
@harmony = harmony
|
|
1205
|
+
end
|
|
1206
|
+
|
|
1207
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1208
|
+
# @param [Object] pleasantness Object to be assigned
|
|
1209
|
+
def pleasantness=(pleasantness)
|
|
1210
|
+
validator = EnumAttributeValidator.new('String', ["very unpleasant", "unpleasant", "neutral pleasantness", "pleasant", "very pleasant", "varying pleasantness"])
|
|
1211
|
+
unless validator.valid?(pleasantness)
|
|
1212
|
+
fail ArgumentError, "invalid value for \"pleasantness\", must be one of #{validator.allowable_values}."
|
|
1213
|
+
end
|
|
1214
|
+
@pleasantness = pleasantness
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1218
|
+
# @param [Object] primary_mood_cluster Object to be assigned
|
|
1219
|
+
def primary_mood_cluster=(primary_mood_cluster)
|
|
1220
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1221
|
+
unless validator.valid?(primary_mood_cluster)
|
|
1222
|
+
fail ArgumentError, "invalid value for \"primary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1223
|
+
end
|
|
1224
|
+
@primary_mood_cluster = primary_mood_cluster
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1227
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1228
|
+
# @param [Object] primary_sound_character Object to be assigned
|
|
1229
|
+
def primary_sound_character=(primary_sound_character)
|
|
1230
|
+
validator = EnumAttributeValidator.new('String', ["brassy", "bright", "clear", "deep", "distorted", "flat", "full", "groovy", "melodious", "natural", "resonant", "shrill", "steady", "thin", "warm"])
|
|
1231
|
+
unless validator.valid?(primary_sound_character)
|
|
1232
|
+
fail ArgumentError, "invalid value for \"primary_sound_character\", must be one of #{validator.allowable_values}."
|
|
1233
|
+
end
|
|
1234
|
+
@primary_sound_character = primary_sound_character
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1277
1237
|
# Custom attribute writer method checking allowed values (enum).
|
|
1278
1238
|
# @param [Object] industry_suitability Object to be assigned
|
|
1279
1239
|
def industry_suitability=(industry_suitability)
|
|
@@ -1294,6 +1254,46 @@ module SongtradrApiClientRuby
|
|
|
1294
1254
|
@audience_region = audience_region
|
|
1295
1255
|
end
|
|
1296
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,19 +1310,7 @@ 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
|
-
arousal == o.arousal &&
|
|
1317
|
-
dominant_instrument == o.dominant_instrument &&
|
|
1318
1313
|
language_of_performance == o.language_of_performance &&
|
|
1319
|
-
energy == o.energy &&
|
|
1320
|
-
engagement == o.engagement &&
|
|
1321
|
-
groovyness == o.groovyness &&
|
|
1322
|
-
harmony == o.harmony &&
|
|
1323
|
-
pleasantness == o.pleasantness &&
|
|
1324
|
-
primary_mood_cluster == o.primary_mood_cluster &&
|
|
1325
|
-
primary_sound_character == o.primary_sound_character &&
|
|
1326
1314
|
rhythm == o.rhythm &&
|
|
1327
1315
|
roughness == o.roughness &&
|
|
1328
1316
|
scale == o.scale &&
|
|
@@ -1334,12 +1322,14 @@ module SongtradrApiClientRuby
|
|
|
1334
1322
|
valence == o.valence &&
|
|
1335
1323
|
vocals == o.vocals &&
|
|
1336
1324
|
origin_decade == o.origin_decade &&
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1325
|
+
curateability == o.curateability &&
|
|
1326
|
+
use_case == o.use_case &&
|
|
1327
|
+
channel_suitability == o.channel_suitability &&
|
|
1328
|
+
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
|
1329
|
+
sound_generation_affinity == o.sound_generation_affinity &&
|
|
1330
|
+
rhythm_affinity == o.rhythm_affinity &&
|
|
1331
|
+
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
|
1332
|
+
tonality_affinity == o.tonality_affinity &&
|
|
1343
1333
|
bpm == o.bpm &&
|
|
1344
1334
|
production_rating == o.production_rating &&
|
|
1345
1335
|
production_rating_affinity == o.production_rating_affinity &&
|
|
@@ -1355,15 +1345,6 @@ module SongtradrApiClientRuby
|
|
|
1355
1345
|
tertiary_audience_age_affinity == o.tertiary_audience_age_affinity &&
|
|
1356
1346
|
audience_gender == o.audience_gender &&
|
|
1357
1347
|
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
1348
|
audience_region_affinity == o.audience_region_affinity &&
|
|
1368
1349
|
secondary_audience_region == o.secondary_audience_region &&
|
|
1369
1350
|
secondary_audience_region_affinity == o.secondary_audience_region_affinity &&
|
|
@@ -1375,9 +1356,28 @@ module SongtradrApiClientRuby
|
|
|
1375
1356
|
language_of_performance_affinity == o.language_of_performance_affinity &&
|
|
1376
1357
|
curateability_affinity == o.curateability_affinity &&
|
|
1377
1358
|
use_case_affinity == o.use_case_affinity &&
|
|
1359
|
+
arousal == o.arousal &&
|
|
1360
|
+
dominant_instrument == o.dominant_instrument &&
|
|
1361
|
+
energy == o.energy &&
|
|
1362
|
+
engagement == o.engagement &&
|
|
1363
|
+
groovyness == o.groovyness &&
|
|
1364
|
+
harmony == o.harmony &&
|
|
1365
|
+
pleasantness == o.pleasantness &&
|
|
1366
|
+
primary_mood_cluster == o.primary_mood_cluster &&
|
|
1367
|
+
primary_sound_character == o.primary_sound_character &&
|
|
1378
1368
|
industry_suitability == o.industry_suitability &&
|
|
1379
1369
|
industry_suitability_affinity == o.industry_suitability_affinity &&
|
|
1380
1370
|
audience_region == o.audience_region &&
|
|
1371
|
+
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
|
1372
|
+
secondary_mood_cluster == o.secondary_mood_cluster &&
|
|
1373
|
+
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
|
1374
|
+
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
|
1375
|
+
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
|
1376
|
+
vocals_affinity == o.vocals_affinity &&
|
|
1377
|
+
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
|
1378
|
+
secondary_instrument == o.secondary_instrument &&
|
|
1379
|
+
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
|
1380
|
+
tertiary_instrument == o.tertiary_instrument &&
|
|
1381
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, language_of_performance, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, industry_suitability, industry_suitability_affinity, audience_region, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
|
|
1409
1409
|
end
|
|
1410
1410
|
|
|
1411
1411
|
# Builds the object from hash
|