songtradr_api_client_ruby 1.12.24 → 1.13.0
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 +2 -2
- data/README.md +6 -5
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/FileSmallDTO.md +16 -16
- data/docs/MusicalFeaturesDTO.md +62 -62
- data/docs/PlaylistLargeDTO.md +7 -7
- data/docs/ProductMediumDTO.md +8 -8
- data/docs/ProductPartyDTO.md +3 -3
- data/docs/RecordingApi.md +4 -0
- data/docs/RecordingGenrePredictionDTO.md +4 -4
- data/docs/RecordingLargeDTO.md +7 -7
- data/docs/RecordingMediumDTO.md +7 -5
- data/docs/RecordingPartyDTO.md +3 -3
- data/docs/TrackDTO.md +18 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +7 -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 +1 -1
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +16 -16
- 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 +1 -1
- data/lib/songtradr_api_client_ruby/models/error_response.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +63 -63
- 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 +491 -491
- 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 +32 -32
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +40 -40
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +16 -16
- 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 +22 -22
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +44 -44
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +46 -35
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +1 -1
- 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 +16 -16
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +1 -1
- 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_dto.rb +215 -0
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +1 -1
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +2 -1
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +1 -1
- data/spec/api/api_keys_api_spec.rb +1 -1
- data/spec/api/party_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +1 -1
- data/spec/api/recording_api_spec.rb +3 -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 +1 -1
- data/spec/models/api_key_dto_spec.rb +1 -1
- data/spec/models/category_medium_dto_spec.rb +3 -3
- data/spec/models/category_minimal_dto_spec.rb +1 -1
- data/spec/models/config_access_dto_spec.rb +1 -1
- data/spec/models/config_identifier_dto_spec.rb +1 -1
- data/spec/models/contributor_type_dto_spec.rb +1 -1
- data/spec/models/create_api_key_dto_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/field_summary_dto_spec.rb +1 -1
- data/spec/models/file_dto_spec.rb +1 -1
- data/spec/models/file_list_dto_spec.rb +1 -1
- data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
- data/spec/models/file_small_dto_spec.rb +15 -15
- 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 +199 -199
- data/spec/models/p_line_dto_spec.rb +1 -1
- data/spec/models/party_large_dto_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/playlist_large_dto_spec.rb +10 -10
- data/spec/models/product_medium_dto_spec.rb +5 -5
- data/spec/models/product_party_dto_spec.rb +3 -3
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +3 -3
- data/spec/models/recording_large_dto_spec.rb +12 -12
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +16 -10
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
- data/spec/models/recording_party_dto_spec.rb +3 -3
- data/spec/models/recording_playlist_dto_spec.rb +1 -1
- data/spec/models/recording_small_dto_spec.rb +1 -1
- 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_dto_spec.rb +34 -0
- data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +62 -58
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -21,6 +21,75 @@ module SongtradrApiClientRuby
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :language_of_performance
|
|
23
23
|
|
|
24
|
+
# Search for an arousal
|
|
25
|
+
attr_accessor :arousal
|
|
26
|
+
|
|
27
|
+
# Search for a dominant instrument
|
|
28
|
+
attr_accessor :dominant_instrument
|
|
29
|
+
|
|
30
|
+
# Search for energy
|
|
31
|
+
attr_accessor :energy
|
|
32
|
+
|
|
33
|
+
# Search for an engagement
|
|
34
|
+
attr_accessor :engagement
|
|
35
|
+
|
|
36
|
+
# Search for groovyness
|
|
37
|
+
attr_accessor :groovyness
|
|
38
|
+
|
|
39
|
+
# Search for a degree of harmoniousness
|
|
40
|
+
attr_accessor :harmony
|
|
41
|
+
|
|
42
|
+
# Search for pleasantness
|
|
43
|
+
attr_accessor :pleasantness
|
|
44
|
+
|
|
45
|
+
# Search for a language of the lyrics
|
|
46
|
+
attr_accessor :primary_mood_cluster
|
|
47
|
+
|
|
48
|
+
# Search for a sound character
|
|
49
|
+
attr_accessor :primary_sound_character
|
|
50
|
+
|
|
51
|
+
# Search for rhythm
|
|
52
|
+
attr_accessor :rhythm
|
|
53
|
+
|
|
54
|
+
# Search for roughness
|
|
55
|
+
attr_accessor :roughness
|
|
56
|
+
|
|
57
|
+
# Search for a tonal scale
|
|
58
|
+
attr_accessor :scale
|
|
59
|
+
|
|
60
|
+
# Search for type of sound generation
|
|
61
|
+
attr_accessor :sound_generation
|
|
62
|
+
|
|
63
|
+
# Search for tempo
|
|
64
|
+
attr_accessor :tempo
|
|
65
|
+
|
|
66
|
+
# Search for texture
|
|
67
|
+
attr_accessor :texture
|
|
68
|
+
|
|
69
|
+
# Search for timbre
|
|
70
|
+
attr_accessor :timbre
|
|
71
|
+
|
|
72
|
+
# Search for tonality
|
|
73
|
+
attr_accessor :tonality
|
|
74
|
+
|
|
75
|
+
# Search for a valence
|
|
76
|
+
attr_accessor :valence
|
|
77
|
+
|
|
78
|
+
# Search for a vocal gender or instrumental songs
|
|
79
|
+
attr_accessor :vocals
|
|
80
|
+
|
|
81
|
+
# Search for origin decade
|
|
82
|
+
attr_accessor :origin_decade
|
|
83
|
+
|
|
84
|
+
# Search for curatebility
|
|
85
|
+
attr_accessor :curateability
|
|
86
|
+
|
|
87
|
+
# Search for use case
|
|
88
|
+
attr_accessor :use_case
|
|
89
|
+
|
|
90
|
+
# Search for social media suitability
|
|
91
|
+
attr_accessor :channel_suitability
|
|
92
|
+
|
|
24
93
|
attr_accessor :primary_mood_cluster_affinity
|
|
25
94
|
|
|
26
95
|
# Search for a language of the lyrics
|
|
@@ -112,83 +181,17 @@ module SongtradrApiClientRuby
|
|
|
112
181
|
|
|
113
182
|
attr_accessor :industry_suitability_affinity
|
|
114
183
|
|
|
115
|
-
# Search for an arousal
|
|
116
|
-
attr_accessor :arousal
|
|
117
|
-
|
|
118
|
-
# Search for a dominant instrument
|
|
119
|
-
attr_accessor :dominant_instrument
|
|
120
|
-
|
|
121
|
-
# Search for energy
|
|
122
|
-
attr_accessor :energy
|
|
123
|
-
|
|
124
|
-
# Search for an engagement
|
|
125
|
-
attr_accessor :engagement
|
|
126
|
-
|
|
127
|
-
# Search for groovyness
|
|
128
|
-
attr_accessor :groovyness
|
|
129
|
-
|
|
130
|
-
# Search for a degree of harmoniousness
|
|
131
|
-
attr_accessor :harmony
|
|
132
|
-
|
|
133
|
-
# Search for pleasantness
|
|
134
|
-
attr_accessor :pleasantness
|
|
135
|
-
|
|
136
|
-
# Search for a language of the lyrics
|
|
137
|
-
attr_accessor :primary_mood_cluster
|
|
138
|
-
|
|
139
|
-
# Search for a sound character
|
|
140
|
-
attr_accessor :primary_sound_character
|
|
141
|
-
|
|
142
|
-
# Search for rhythm
|
|
143
|
-
attr_accessor :rhythm
|
|
144
|
-
|
|
145
|
-
# Search for roughness
|
|
146
|
-
attr_accessor :roughness
|
|
147
|
-
|
|
148
|
-
# Search for a tonal scale
|
|
149
|
-
attr_accessor :scale
|
|
150
|
-
|
|
151
|
-
# Search for type of sound generation
|
|
152
|
-
attr_accessor :sound_generation
|
|
153
|
-
|
|
154
|
-
# Search for tempo
|
|
155
|
-
attr_accessor :tempo
|
|
156
|
-
|
|
157
|
-
# Search for texture
|
|
158
|
-
attr_accessor :texture
|
|
159
|
-
|
|
160
|
-
# Search for timbre
|
|
161
|
-
attr_accessor :timbre
|
|
162
|
-
|
|
163
|
-
# Search for tonality
|
|
164
|
-
attr_accessor :tonality
|
|
165
|
-
|
|
166
|
-
# Search for a valence
|
|
167
|
-
attr_accessor :valence
|
|
168
|
-
|
|
169
184
|
attr_accessor :audience_region
|
|
170
185
|
|
|
171
|
-
|
|
172
|
-
attr_accessor :vocals
|
|
173
|
-
|
|
174
|
-
# Search for origin decade
|
|
175
|
-
attr_accessor :origin_decade
|
|
176
|
-
|
|
177
|
-
# Search for curatebility
|
|
178
|
-
attr_accessor :curateability
|
|
179
|
-
|
|
180
|
-
# Search for use case
|
|
181
|
-
attr_accessor :use_case
|
|
186
|
+
attr_accessor :valence_affinity
|
|
182
187
|
|
|
183
|
-
|
|
184
|
-
attr_accessor :channel_suitability
|
|
188
|
+
attr_accessor :arousal_affinity
|
|
185
189
|
|
|
186
|
-
|
|
187
|
-
attr_accessor :key
|
|
190
|
+
attr_accessor :pleasantness_affinity
|
|
188
191
|
|
|
189
|
-
attr_accessor :
|
|
192
|
+
attr_accessor :engagement_affinity
|
|
190
193
|
|
|
191
|
-
attr_accessor :
|
|
194
|
+
attr_accessor :energy_affinity
|
|
192
195
|
|
|
193
196
|
attr_accessor :tempo_affinity
|
|
194
197
|
|
|
@@ -196,25 +199,22 @@ module SongtradrApiClientRuby
|
|
|
196
199
|
|
|
197
200
|
attr_accessor :timbre_affinity
|
|
198
201
|
|
|
199
|
-
attr_accessor :
|
|
202
|
+
attr_accessor :roughness_affinity
|
|
200
203
|
|
|
201
|
-
attr_accessor :
|
|
204
|
+
attr_accessor :harmony_affinity
|
|
202
205
|
|
|
203
206
|
attr_accessor :texture_affinity
|
|
204
207
|
|
|
205
208
|
attr_accessor :groovyness_affinity
|
|
206
209
|
|
|
207
|
-
attr_accessor :valence_affinity
|
|
208
|
-
|
|
209
|
-
attr_accessor :arousal_affinity
|
|
210
|
-
|
|
211
210
|
attr_accessor :space_affinity
|
|
212
211
|
|
|
213
212
|
attr_accessor :key_affinity
|
|
214
213
|
|
|
215
|
-
attr_accessor :
|
|
214
|
+
attr_accessor :channel_suitability_affinity
|
|
216
215
|
|
|
217
|
-
|
|
216
|
+
# Search for a harmonic key
|
|
217
|
+
attr_accessor :key
|
|
218
218
|
|
|
219
219
|
class EnumAttributeValidator
|
|
220
220
|
attr_reader :datatype
|
|
@@ -243,6 +243,29 @@ module SongtradrApiClientRuby
|
|
|
243
243
|
{
|
|
244
244
|
:'space' => :'space',
|
|
245
245
|
:'language_of_performance' => :'languageOfPerformance',
|
|
246
|
+
:'arousal' => :'arousal',
|
|
247
|
+
:'dominant_instrument' => :'dominantInstrument',
|
|
248
|
+
:'energy' => :'energy',
|
|
249
|
+
:'engagement' => :'engagement',
|
|
250
|
+
:'groovyness' => :'groovyness',
|
|
251
|
+
:'harmony' => :'harmony',
|
|
252
|
+
:'pleasantness' => :'pleasantness',
|
|
253
|
+
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
254
|
+
:'primary_sound_character' => :'primarySoundCharacter',
|
|
255
|
+
:'rhythm' => :'rhythm',
|
|
256
|
+
:'roughness' => :'roughness',
|
|
257
|
+
:'scale' => :'scale',
|
|
258
|
+
:'sound_generation' => :'soundGeneration',
|
|
259
|
+
:'tempo' => :'tempo',
|
|
260
|
+
:'texture' => :'texture',
|
|
261
|
+
:'timbre' => :'timbre',
|
|
262
|
+
:'tonality' => :'tonality',
|
|
263
|
+
:'valence' => :'valence',
|
|
264
|
+
:'vocals' => :'vocals',
|
|
265
|
+
:'origin_decade' => :'originDecade',
|
|
266
|
+
:'curateability' => :'curateability',
|
|
267
|
+
:'use_case' => :'useCase',
|
|
268
|
+
:'channel_suitability' => :'channelSuitability',
|
|
246
269
|
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
|
247
270
|
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
|
248
271
|
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
|
@@ -286,46 +309,23 @@ module SongtradrApiClientRuby
|
|
|
286
309
|
:'use_case_affinity' => :'useCaseAffinity',
|
|
287
310
|
:'industry_suitability' => :'industrySuitability',
|
|
288
311
|
:'industry_suitability_affinity' => :'industrySuitabilityAffinity',
|
|
289
|
-
:'arousal' => :'arousal',
|
|
290
|
-
:'dominant_instrument' => :'dominantInstrument',
|
|
291
|
-
:'energy' => :'energy',
|
|
292
|
-
:'engagement' => :'engagement',
|
|
293
|
-
:'groovyness' => :'groovyness',
|
|
294
|
-
:'harmony' => :'harmony',
|
|
295
|
-
:'pleasantness' => :'pleasantness',
|
|
296
|
-
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
297
|
-
:'primary_sound_character' => :'primarySoundCharacter',
|
|
298
|
-
:'rhythm' => :'rhythm',
|
|
299
|
-
:'roughness' => :'roughness',
|
|
300
|
-
:'scale' => :'scale',
|
|
301
|
-
:'sound_generation' => :'soundGeneration',
|
|
302
|
-
:'tempo' => :'tempo',
|
|
303
|
-
:'texture' => :'texture',
|
|
304
|
-
:'timbre' => :'timbre',
|
|
305
|
-
:'tonality' => :'tonality',
|
|
306
|
-
:'valence' => :'valence',
|
|
307
312
|
:'audience_region' => :'audienceRegion',
|
|
308
|
-
:'
|
|
309
|
-
:'
|
|
310
|
-
:'curateability' => :'curateability',
|
|
311
|
-
:'use_case' => :'useCase',
|
|
312
|
-
:'channel_suitability' => :'channelSuitability',
|
|
313
|
-
:'key' => :'key',
|
|
314
|
-
:'channel_suitability_affinity' => :'channelSuitabilityAffinity',
|
|
313
|
+
:'valence_affinity' => :'valenceAffinity',
|
|
314
|
+
:'arousal_affinity' => :'arousalAffinity',
|
|
315
315
|
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
|
316
|
+
:'engagement_affinity' => :'engagementAffinity',
|
|
317
|
+
:'energy_affinity' => :'energyAffinity',
|
|
316
318
|
:'tempo_affinity' => :'tempoAffinity',
|
|
317
319
|
:'scale_affinity' => :'scaleAffinity',
|
|
318
320
|
:'timbre_affinity' => :'timbreAffinity',
|
|
319
|
-
:'
|
|
320
|
-
:'
|
|
321
|
+
:'roughness_affinity' => :'roughnessAffinity',
|
|
322
|
+
:'harmony_affinity' => :'harmonyAffinity',
|
|
321
323
|
:'texture_affinity' => :'textureAffinity',
|
|
322
324
|
:'groovyness_affinity' => :'groovynessAffinity',
|
|
323
|
-
:'valence_affinity' => :'valenceAffinity',
|
|
324
|
-
:'arousal_affinity' => :'arousalAffinity',
|
|
325
325
|
:'space_affinity' => :'spaceAffinity',
|
|
326
326
|
:'key_affinity' => :'keyAffinity',
|
|
327
|
-
:'
|
|
328
|
-
:'
|
|
327
|
+
:'channel_suitability_affinity' => :'channelSuitabilityAffinity',
|
|
328
|
+
:'key' => :'key'
|
|
329
329
|
}
|
|
330
330
|
end
|
|
331
331
|
|
|
@@ -339,6 +339,29 @@ module SongtradrApiClientRuby
|
|
|
339
339
|
{
|
|
340
340
|
:'space' => :'String',
|
|
341
341
|
:'language_of_performance' => :'String',
|
|
342
|
+
:'arousal' => :'String',
|
|
343
|
+
:'dominant_instrument' => :'String',
|
|
344
|
+
:'energy' => :'String',
|
|
345
|
+
:'engagement' => :'String',
|
|
346
|
+
:'groovyness' => :'String',
|
|
347
|
+
:'harmony' => :'String',
|
|
348
|
+
:'pleasantness' => :'String',
|
|
349
|
+
:'primary_mood_cluster' => :'String',
|
|
350
|
+
:'primary_sound_character' => :'String',
|
|
351
|
+
:'rhythm' => :'String',
|
|
352
|
+
:'roughness' => :'String',
|
|
353
|
+
:'scale' => :'String',
|
|
354
|
+
:'sound_generation' => :'String',
|
|
355
|
+
:'tempo' => :'String',
|
|
356
|
+
:'texture' => :'String',
|
|
357
|
+
:'timbre' => :'String',
|
|
358
|
+
:'tonality' => :'String',
|
|
359
|
+
:'valence' => :'String',
|
|
360
|
+
:'vocals' => :'String',
|
|
361
|
+
:'origin_decade' => :'String',
|
|
362
|
+
:'curateability' => :'String',
|
|
363
|
+
:'use_case' => :'String',
|
|
364
|
+
:'channel_suitability' => :'String',
|
|
342
365
|
:'primary_mood_cluster_affinity' => :'Float',
|
|
343
366
|
:'secondary_mood_cluster' => :'String',
|
|
344
367
|
:'secondary_mood_cluster_affinity' => :'Float',
|
|
@@ -382,46 +405,23 @@ module SongtradrApiClientRuby
|
|
|
382
405
|
:'use_case_affinity' => :'Float',
|
|
383
406
|
:'industry_suitability' => :'String',
|
|
384
407
|
:'industry_suitability_affinity' => :'Float',
|
|
385
|
-
:'arousal' => :'String',
|
|
386
|
-
:'dominant_instrument' => :'String',
|
|
387
|
-
:'energy' => :'String',
|
|
388
|
-
:'engagement' => :'String',
|
|
389
|
-
:'groovyness' => :'String',
|
|
390
|
-
:'harmony' => :'String',
|
|
391
|
-
:'pleasantness' => :'String',
|
|
392
|
-
:'primary_mood_cluster' => :'String',
|
|
393
|
-
:'primary_sound_character' => :'String',
|
|
394
|
-
:'rhythm' => :'String',
|
|
395
|
-
:'roughness' => :'String',
|
|
396
|
-
:'scale' => :'String',
|
|
397
|
-
:'sound_generation' => :'String',
|
|
398
|
-
:'tempo' => :'String',
|
|
399
|
-
:'texture' => :'String',
|
|
400
|
-
:'timbre' => :'String',
|
|
401
|
-
:'tonality' => :'String',
|
|
402
|
-
:'valence' => :'String',
|
|
403
408
|
:'audience_region' => :'String',
|
|
404
|
-
:'
|
|
405
|
-
:'
|
|
406
|
-
:'curateability' => :'String',
|
|
407
|
-
:'use_case' => :'String',
|
|
408
|
-
:'channel_suitability' => :'String',
|
|
409
|
-
:'key' => :'String',
|
|
410
|
-
:'channel_suitability_affinity' => :'Float',
|
|
409
|
+
:'valence_affinity' => :'Float',
|
|
410
|
+
:'arousal_affinity' => :'Float',
|
|
411
411
|
:'pleasantness_affinity' => :'Float',
|
|
412
|
+
:'engagement_affinity' => :'Float',
|
|
413
|
+
:'energy_affinity' => :'Float',
|
|
412
414
|
:'tempo_affinity' => :'Float',
|
|
413
415
|
:'scale_affinity' => :'Float',
|
|
414
416
|
:'timbre_affinity' => :'Float',
|
|
415
|
-
:'
|
|
416
|
-
:'
|
|
417
|
+
:'roughness_affinity' => :'Float',
|
|
418
|
+
:'harmony_affinity' => :'Float',
|
|
417
419
|
:'texture_affinity' => :'Float',
|
|
418
420
|
:'groovyness_affinity' => :'Float',
|
|
419
|
-
:'valence_affinity' => :'Float',
|
|
420
|
-
:'arousal_affinity' => :'Float',
|
|
421
421
|
:'space_affinity' => :'Float',
|
|
422
422
|
:'key_affinity' => :'Float',
|
|
423
|
-
:'
|
|
424
|
-
:'
|
|
423
|
+
:'channel_suitability_affinity' => :'Float',
|
|
424
|
+
:'key' => :'String'
|
|
425
425
|
}
|
|
426
426
|
end
|
|
427
427
|
|
|
@@ -454,6 +454,98 @@ module SongtradrApiClientRuby
|
|
|
454
454
|
self.language_of_performance = attributes[:'language_of_performance']
|
|
455
455
|
end
|
|
456
456
|
|
|
457
|
+
if attributes.key?(:'arousal')
|
|
458
|
+
self.arousal = attributes[:'arousal']
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
if attributes.key?(:'dominant_instrument')
|
|
462
|
+
self.dominant_instrument = attributes[:'dominant_instrument']
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
if attributes.key?(:'energy')
|
|
466
|
+
self.energy = attributes[:'energy']
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
if attributes.key?(:'engagement')
|
|
470
|
+
self.engagement = attributes[:'engagement']
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
if attributes.key?(:'groovyness')
|
|
474
|
+
self.groovyness = attributes[:'groovyness']
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
if attributes.key?(:'harmony')
|
|
478
|
+
self.harmony = attributes[:'harmony']
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
if attributes.key?(:'pleasantness')
|
|
482
|
+
self.pleasantness = attributes[:'pleasantness']
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
if attributes.key?(:'primary_mood_cluster')
|
|
486
|
+
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if attributes.key?(:'primary_sound_character')
|
|
490
|
+
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
if attributes.key?(:'rhythm')
|
|
494
|
+
self.rhythm = attributes[:'rhythm']
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
if attributes.key?(:'roughness')
|
|
498
|
+
self.roughness = attributes[:'roughness']
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
if attributes.key?(:'scale')
|
|
502
|
+
self.scale = attributes[:'scale']
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
if attributes.key?(:'sound_generation')
|
|
506
|
+
self.sound_generation = attributes[:'sound_generation']
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
if attributes.key?(:'tempo')
|
|
510
|
+
self.tempo = attributes[:'tempo']
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
if attributes.key?(:'texture')
|
|
514
|
+
self.texture = attributes[:'texture']
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
if attributes.key?(:'timbre')
|
|
518
|
+
self.timbre = attributes[:'timbre']
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
if attributes.key?(:'tonality')
|
|
522
|
+
self.tonality = attributes[:'tonality']
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
if attributes.key?(:'valence')
|
|
526
|
+
self.valence = attributes[:'valence']
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
if attributes.key?(:'vocals')
|
|
530
|
+
self.vocals = attributes[:'vocals']
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
if attributes.key?(:'origin_decade')
|
|
534
|
+
self.origin_decade = attributes[:'origin_decade']
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
if attributes.key?(:'curateability')
|
|
538
|
+
self.curateability = attributes[:'curateability']
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
if attributes.key?(:'use_case')
|
|
542
|
+
self.use_case = attributes[:'use_case']
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
if attributes.key?(:'channel_suitability')
|
|
546
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
|
547
|
+
end
|
|
548
|
+
|
|
457
549
|
if attributes.key?(:'primary_mood_cluster_affinity')
|
|
458
550
|
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
|
459
551
|
end
|
|
@@ -626,112 +718,28 @@ module SongtradrApiClientRuby
|
|
|
626
718
|
self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
|
|
627
719
|
end
|
|
628
720
|
|
|
629
|
-
if attributes.key?(:'arousal')
|
|
630
|
-
self.arousal = attributes[:'arousal']
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
if attributes.key?(:'dominant_instrument')
|
|
634
|
-
self.dominant_instrument = attributes[:'dominant_instrument']
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
if attributes.key?(:'energy')
|
|
638
|
-
self.energy = attributes[:'energy']
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
if attributes.key?(:'engagement')
|
|
642
|
-
self.engagement = attributes[:'engagement']
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
if attributes.key?(:'groovyness')
|
|
646
|
-
self.groovyness = attributes[:'groovyness']
|
|
647
|
-
end
|
|
648
|
-
|
|
649
|
-
if attributes.key?(:'harmony')
|
|
650
|
-
self.harmony = attributes[:'harmony']
|
|
651
|
-
end
|
|
652
|
-
|
|
653
|
-
if attributes.key?(:'pleasantness')
|
|
654
|
-
self.pleasantness = attributes[:'pleasantness']
|
|
655
|
-
end
|
|
656
|
-
|
|
657
|
-
if attributes.key?(:'primary_mood_cluster')
|
|
658
|
-
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
if attributes.key?(:'primary_sound_character')
|
|
662
|
-
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
663
|
-
end
|
|
664
|
-
|
|
665
|
-
if attributes.key?(:'rhythm')
|
|
666
|
-
self.rhythm = attributes[:'rhythm']
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
if attributes.key?(:'roughness')
|
|
670
|
-
self.roughness = attributes[:'roughness']
|
|
671
|
-
end
|
|
672
|
-
|
|
673
|
-
if attributes.key?(:'scale')
|
|
674
|
-
self.scale = attributes[:'scale']
|
|
675
|
-
end
|
|
676
|
-
|
|
677
|
-
if attributes.key?(:'sound_generation')
|
|
678
|
-
self.sound_generation = attributes[:'sound_generation']
|
|
679
|
-
end
|
|
680
|
-
|
|
681
|
-
if attributes.key?(:'tempo')
|
|
682
|
-
self.tempo = attributes[:'tempo']
|
|
683
|
-
end
|
|
684
|
-
|
|
685
|
-
if attributes.key?(:'texture')
|
|
686
|
-
self.texture = attributes[:'texture']
|
|
687
|
-
end
|
|
688
|
-
|
|
689
|
-
if attributes.key?(:'timbre')
|
|
690
|
-
self.timbre = attributes[:'timbre']
|
|
691
|
-
end
|
|
692
|
-
|
|
693
|
-
if attributes.key?(:'tonality')
|
|
694
|
-
self.tonality = attributes[:'tonality']
|
|
695
|
-
end
|
|
696
|
-
|
|
697
|
-
if attributes.key?(:'valence')
|
|
698
|
-
self.valence = attributes[:'valence']
|
|
699
|
-
end
|
|
700
|
-
|
|
701
721
|
if attributes.key?(:'audience_region')
|
|
702
722
|
self.audience_region = attributes[:'audience_region']
|
|
703
723
|
end
|
|
704
724
|
|
|
705
|
-
if attributes.key?(:'
|
|
706
|
-
self.
|
|
707
|
-
end
|
|
708
|
-
|
|
709
|
-
if attributes.key?(:'origin_decade')
|
|
710
|
-
self.origin_decade = attributes[:'origin_decade']
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
if attributes.key?(:'curateability')
|
|
714
|
-
self.curateability = attributes[:'curateability']
|
|
715
|
-
end
|
|
716
|
-
|
|
717
|
-
if attributes.key?(:'use_case')
|
|
718
|
-
self.use_case = attributes[:'use_case']
|
|
725
|
+
if attributes.key?(:'valence_affinity')
|
|
726
|
+
self.valence_affinity = attributes[:'valence_affinity']
|
|
719
727
|
end
|
|
720
728
|
|
|
721
|
-
if attributes.key?(:'
|
|
722
|
-
self.
|
|
729
|
+
if attributes.key?(:'arousal_affinity')
|
|
730
|
+
self.arousal_affinity = attributes[:'arousal_affinity']
|
|
723
731
|
end
|
|
724
732
|
|
|
725
|
-
if attributes.key?(:'
|
|
726
|
-
self.
|
|
733
|
+
if attributes.key?(:'pleasantness_affinity')
|
|
734
|
+
self.pleasantness_affinity = attributes[:'pleasantness_affinity']
|
|
727
735
|
end
|
|
728
736
|
|
|
729
|
-
if attributes.key?(:'
|
|
730
|
-
self.
|
|
737
|
+
if attributes.key?(:'engagement_affinity')
|
|
738
|
+
self.engagement_affinity = attributes[:'engagement_affinity']
|
|
731
739
|
end
|
|
732
740
|
|
|
733
|
-
if attributes.key?(:'
|
|
734
|
-
self.
|
|
741
|
+
if attributes.key?(:'energy_affinity')
|
|
742
|
+
self.energy_affinity = attributes[:'energy_affinity']
|
|
735
743
|
end
|
|
736
744
|
|
|
737
745
|
if attributes.key?(:'tempo_affinity')
|
|
@@ -746,12 +754,12 @@ module SongtradrApiClientRuby
|
|
|
746
754
|
self.timbre_affinity = attributes[:'timbre_affinity']
|
|
747
755
|
end
|
|
748
756
|
|
|
749
|
-
if attributes.key?(:'
|
|
750
|
-
self.
|
|
757
|
+
if attributes.key?(:'roughness_affinity')
|
|
758
|
+
self.roughness_affinity = attributes[:'roughness_affinity']
|
|
751
759
|
end
|
|
752
760
|
|
|
753
|
-
if attributes.key?(:'
|
|
754
|
-
self.
|
|
761
|
+
if attributes.key?(:'harmony_affinity')
|
|
762
|
+
self.harmony_affinity = attributes[:'harmony_affinity']
|
|
755
763
|
end
|
|
756
764
|
|
|
757
765
|
if attributes.key?(:'texture_affinity')
|
|
@@ -762,14 +770,6 @@ module SongtradrApiClientRuby
|
|
|
762
770
|
self.groovyness_affinity = attributes[:'groovyness_affinity']
|
|
763
771
|
end
|
|
764
772
|
|
|
765
|
-
if attributes.key?(:'valence_affinity')
|
|
766
|
-
self.valence_affinity = attributes[:'valence_affinity']
|
|
767
|
-
end
|
|
768
|
-
|
|
769
|
-
if attributes.key?(:'arousal_affinity')
|
|
770
|
-
self.arousal_affinity = attributes[:'arousal_affinity']
|
|
771
|
-
end
|
|
772
|
-
|
|
773
773
|
if attributes.key?(:'space_affinity')
|
|
774
774
|
self.space_affinity = attributes[:'space_affinity']
|
|
775
775
|
end
|
|
@@ -778,12 +778,12 @@ module SongtradrApiClientRuby
|
|
|
778
778
|
self.key_affinity = attributes[:'key_affinity']
|
|
779
779
|
end
|
|
780
780
|
|
|
781
|
-
if attributes.key?(:'
|
|
782
|
-
self.
|
|
781
|
+
if attributes.key?(:'channel_suitability_affinity')
|
|
782
|
+
self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
|
|
783
783
|
end
|
|
784
784
|
|
|
785
|
-
if attributes.key?(:'
|
|
786
|
-
self.
|
|
785
|
+
if attributes.key?(:'key')
|
|
786
|
+
self.key = attributes[:'key']
|
|
787
787
|
end
|
|
788
788
|
end
|
|
789
789
|
|
|
@@ -803,36 +803,6 @@ module SongtradrApiClientRuby
|
|
|
803
803
|
return false unless space_validator.valid?(@space)
|
|
804
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
805
|
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
|
806
|
-
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
807
|
-
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
|
808
|
-
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
809
|
-
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
|
810
|
-
secondary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
811
|
-
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
|
812
|
-
tertiary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
813
|
-
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
|
814
|
-
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
815
|
-
return false unless production_rating_validator.valid?(@production_rating)
|
|
816
|
-
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
817
|
-
return false unless performance_rating_validator.valid?(@performance_rating)
|
|
818
|
-
song_rating_validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
819
|
-
return false unless song_rating_validator.valid?(@song_rating)
|
|
820
|
-
audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
821
|
-
return false unless audience_age_validator.valid?(@audience_age)
|
|
822
|
-
secondary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
823
|
-
return false unless secondary_audience_age_validator.valid?(@secondary_audience_age)
|
|
824
|
-
tertiary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
825
|
-
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
|
826
|
-
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
827
|
-
return false unless audience_gender_validator.valid?(@audience_gender)
|
|
828
|
-
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"])
|
|
829
|
-
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
|
830
|
-
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"])
|
|
831
|
-
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
|
832
|
-
origin_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
833
|
-
return false unless origin_region_validator.valid?(@origin_region)
|
|
834
|
-
industry_suitability_validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
|
|
835
|
-
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
|
836
806
|
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
837
807
|
return false unless arousal_validator.valid?(@arousal)
|
|
838
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"])
|
|
@@ -869,8 +839,6 @@ module SongtradrApiClientRuby
|
|
|
869
839
|
return false unless tonality_validator.valid?(@tonality)
|
|
870
840
|
valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
|
871
841
|
return false unless valence_validator.valid?(@valence)
|
|
872
|
-
audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
873
|
-
return false unless audience_region_validator.valid?(@audience_region)
|
|
874
842
|
vocals_validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
|
|
875
843
|
return false unless vocals_validator.valid?(@vocals)
|
|
876
844
|
origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
|
@@ -881,179 +849,61 @@ module SongtradrApiClientRuby
|
|
|
881
849
|
return false unless use_case_validator.valid?(@use_case)
|
|
882
850
|
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
|
883
851
|
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
|
884
|
-
|
|
885
|
-
return false unless
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
unless
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
unless
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
unless
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
920
|
-
# @param [Object] tertiary_mood_cluster Object to be assigned
|
|
921
|
-
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
|
922
|
-
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
923
|
-
unless validator.valid?(tertiary_mood_cluster)
|
|
924
|
-
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
925
|
-
end
|
|
926
|
-
@tertiary_mood_cluster = tertiary_mood_cluster
|
|
927
|
-
end
|
|
928
|
-
|
|
929
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
930
|
-
# @param [Object] secondary_instrument Object to be assigned
|
|
931
|
-
def secondary_instrument=(secondary_instrument)
|
|
932
|
-
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
933
|
-
unless validator.valid?(secondary_instrument)
|
|
934
|
-
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
|
935
|
-
end
|
|
936
|
-
@secondary_instrument = secondary_instrument
|
|
937
|
-
end
|
|
938
|
-
|
|
939
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
940
|
-
# @param [Object] tertiary_instrument Object to be assigned
|
|
941
|
-
def tertiary_instrument=(tertiary_instrument)
|
|
942
|
-
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
943
|
-
unless validator.valid?(tertiary_instrument)
|
|
944
|
-
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
|
945
|
-
end
|
|
946
|
-
@tertiary_instrument = tertiary_instrument
|
|
947
|
-
end
|
|
948
|
-
|
|
949
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
950
|
-
# @param [Object] production_rating Object to be assigned
|
|
951
|
-
def production_rating=(production_rating)
|
|
952
|
-
validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
953
|
-
unless validator.valid?(production_rating)
|
|
954
|
-
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{validator.allowable_values}."
|
|
955
|
-
end
|
|
956
|
-
@production_rating = production_rating
|
|
957
|
-
end
|
|
958
|
-
|
|
959
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
960
|
-
# @param [Object] performance_rating Object to be assigned
|
|
961
|
-
def performance_rating=(performance_rating)
|
|
962
|
-
validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
963
|
-
unless validator.valid?(performance_rating)
|
|
964
|
-
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{validator.allowable_values}."
|
|
965
|
-
end
|
|
966
|
-
@performance_rating = performance_rating
|
|
967
|
-
end
|
|
968
|
-
|
|
969
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
970
|
-
# @param [Object] song_rating Object to be assigned
|
|
971
|
-
def song_rating=(song_rating)
|
|
972
|
-
validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
973
|
-
unless validator.valid?(song_rating)
|
|
974
|
-
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{validator.allowable_values}."
|
|
975
|
-
end
|
|
976
|
-
@song_rating = song_rating
|
|
977
|
-
end
|
|
978
|
-
|
|
979
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
980
|
-
# @param [Object] audience_age Object to be assigned
|
|
981
|
-
def audience_age=(audience_age)
|
|
982
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
983
|
-
unless validator.valid?(audience_age)
|
|
984
|
-
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{validator.allowable_values}."
|
|
985
|
-
end
|
|
986
|
-
@audience_age = audience_age
|
|
987
|
-
end
|
|
988
|
-
|
|
989
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
990
|
-
# @param [Object] secondary_audience_age Object to be assigned
|
|
991
|
-
def secondary_audience_age=(secondary_audience_age)
|
|
992
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
993
|
-
unless validator.valid?(secondary_audience_age)
|
|
994
|
-
fail ArgumentError, "invalid value for \"secondary_audience_age\", must be one of #{validator.allowable_values}."
|
|
995
|
-
end
|
|
996
|
-
@secondary_audience_age = secondary_audience_age
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1000
|
-
# @param [Object] tertiary_audience_age Object to be assigned
|
|
1001
|
-
def tertiary_audience_age=(tertiary_audience_age)
|
|
1002
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1003
|
-
unless validator.valid?(tertiary_audience_age)
|
|
1004
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_age\", must be one of #{validator.allowable_values}."
|
|
1005
|
-
end
|
|
1006
|
-
@tertiary_audience_age = tertiary_audience_age
|
|
1007
|
-
end
|
|
1008
|
-
|
|
1009
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1010
|
-
# @param [Object] audience_gender Object to be assigned
|
|
1011
|
-
def audience_gender=(audience_gender)
|
|
1012
|
-
validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
1013
|
-
unless validator.valid?(audience_gender)
|
|
1014
|
-
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{validator.allowable_values}."
|
|
1015
|
-
end
|
|
1016
|
-
@audience_gender = audience_gender
|
|
1017
|
-
end
|
|
1018
|
-
|
|
1019
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1020
|
-
# @param [Object] secondary_audience_region Object to be assigned
|
|
1021
|
-
def secondary_audience_region=(secondary_audience_region)
|
|
1022
|
-
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"])
|
|
1023
|
-
unless validator.valid?(secondary_audience_region)
|
|
1024
|
-
fail ArgumentError, "invalid value for \"secondary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1025
|
-
end
|
|
1026
|
-
@secondary_audience_region = secondary_audience_region
|
|
1027
|
-
end
|
|
1028
|
-
|
|
1029
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1030
|
-
# @param [Object] tertiary_audience_region Object to be assigned
|
|
1031
|
-
def tertiary_audience_region=(tertiary_audience_region)
|
|
1032
|
-
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"])
|
|
1033
|
-
unless validator.valid?(tertiary_audience_region)
|
|
1034
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1035
|
-
end
|
|
1036
|
-
@tertiary_audience_region = tertiary_audience_region
|
|
852
|
+
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
853
|
+
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
|
854
|
+
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
855
|
+
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
|
856
|
+
secondary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
857
|
+
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
|
858
|
+
tertiary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
859
|
+
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
|
860
|
+
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
861
|
+
return false unless production_rating_validator.valid?(@production_rating)
|
|
862
|
+
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
863
|
+
return false unless performance_rating_validator.valid?(@performance_rating)
|
|
864
|
+
song_rating_validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
865
|
+
return false unless song_rating_validator.valid?(@song_rating)
|
|
866
|
+
audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
867
|
+
return false unless audience_age_validator.valid?(@audience_age)
|
|
868
|
+
secondary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
869
|
+
return false unless secondary_audience_age_validator.valid?(@secondary_audience_age)
|
|
870
|
+
tertiary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
871
|
+
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
|
872
|
+
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
873
|
+
return false unless audience_gender_validator.valid?(@audience_gender)
|
|
874
|
+
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"])
|
|
875
|
+
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
|
876
|
+
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"])
|
|
877
|
+
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
|
878
|
+
origin_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
879
|
+
return false unless origin_region_validator.valid?(@origin_region)
|
|
880
|
+
industry_suitability_validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
|
|
881
|
+
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
|
882
|
+
audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
|
883
|
+
return false unless audience_region_validator.valid?(@audience_region)
|
|
884
|
+
key_validator = EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
|
|
885
|
+
return false unless key_validator.valid?(@key)
|
|
886
|
+
true
|
|
1037
887
|
end
|
|
1038
888
|
|
|
1039
889
|
# Custom attribute writer method checking allowed values (enum).
|
|
1040
|
-
# @param [Object]
|
|
1041
|
-
def
|
|
1042
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1043
|
-
unless validator.valid?(
|
|
1044
|
-
fail ArgumentError, "invalid value for \"
|
|
890
|
+
# @param [Object] space Object to be assigned
|
|
891
|
+
def space=(space)
|
|
892
|
+
validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
|
893
|
+
unless validator.valid?(space)
|
|
894
|
+
fail ArgumentError, "invalid value for \"space\", must be one of #{validator.allowable_values}."
|
|
1045
895
|
end
|
|
1046
|
-
@
|
|
896
|
+
@space = space
|
|
1047
897
|
end
|
|
1048
898
|
|
|
1049
899
|
# Custom attribute writer method checking allowed values (enum).
|
|
1050
|
-
# @param [Object]
|
|
1051
|
-
def
|
|
1052
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1053
|
-
unless validator.valid?(
|
|
1054
|
-
fail ArgumentError, "invalid value for \"
|
|
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}."
|
|
1055
905
|
end
|
|
1056
|
-
@
|
|
906
|
+
@language_of_performance = language_of_performance
|
|
1057
907
|
end
|
|
1058
908
|
|
|
1059
909
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -1236,16 +1086,6 @@ module SongtradrApiClientRuby
|
|
|
1236
1086
|
@valence = valence
|
|
1237
1087
|
end
|
|
1238
1088
|
|
|
1239
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1240
|
-
# @param [Object] audience_region Object to be assigned
|
|
1241
|
-
def audience_region=(audience_region)
|
|
1242
|
-
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"])
|
|
1243
|
-
unless validator.valid?(audience_region)
|
|
1244
|
-
fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
|
|
1245
|
-
end
|
|
1246
|
-
@audience_region = audience_region
|
|
1247
|
-
end
|
|
1248
|
-
|
|
1249
1089
|
# Custom attribute writer method checking allowed values (enum).
|
|
1250
1090
|
# @param [Object] vocals Object to be assigned
|
|
1251
1091
|
def vocals=(vocals)
|
|
@@ -1296,6 +1136,166 @@ module SongtradrApiClientRuby
|
|
|
1296
1136
|
@channel_suitability = channel_suitability
|
|
1297
1137
|
end
|
|
1298
1138
|
|
|
1139
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1140
|
+
# @param [Object] secondary_mood_cluster Object to be assigned
|
|
1141
|
+
def secondary_mood_cluster=(secondary_mood_cluster)
|
|
1142
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1143
|
+
unless validator.valid?(secondary_mood_cluster)
|
|
1144
|
+
fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1145
|
+
end
|
|
1146
|
+
@secondary_mood_cluster = secondary_mood_cluster
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1150
|
+
# @param [Object] tertiary_mood_cluster Object to be assigned
|
|
1151
|
+
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
|
1152
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1153
|
+
unless validator.valid?(tertiary_mood_cluster)
|
|
1154
|
+
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1155
|
+
end
|
|
1156
|
+
@tertiary_mood_cluster = tertiary_mood_cluster
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1160
|
+
# @param [Object] secondary_instrument Object to be assigned
|
|
1161
|
+
def secondary_instrument=(secondary_instrument)
|
|
1162
|
+
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1163
|
+
unless validator.valid?(secondary_instrument)
|
|
1164
|
+
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
|
1165
|
+
end
|
|
1166
|
+
@secondary_instrument = secondary_instrument
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1170
|
+
# @param [Object] tertiary_instrument Object to be assigned
|
|
1171
|
+
def tertiary_instrument=(tertiary_instrument)
|
|
1172
|
+
validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1173
|
+
unless validator.valid?(tertiary_instrument)
|
|
1174
|
+
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
|
1175
|
+
end
|
|
1176
|
+
@tertiary_instrument = tertiary_instrument
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1180
|
+
# @param [Object] production_rating Object to be assigned
|
|
1181
|
+
def production_rating=(production_rating)
|
|
1182
|
+
validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
1183
|
+
unless validator.valid?(production_rating)
|
|
1184
|
+
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{validator.allowable_values}."
|
|
1185
|
+
end
|
|
1186
|
+
@production_rating = production_rating
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1190
|
+
# @param [Object] performance_rating Object to be assigned
|
|
1191
|
+
def performance_rating=(performance_rating)
|
|
1192
|
+
validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
1193
|
+
unless validator.valid?(performance_rating)
|
|
1194
|
+
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{validator.allowable_values}."
|
|
1195
|
+
end
|
|
1196
|
+
@performance_rating = performance_rating
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1200
|
+
# @param [Object] song_rating Object to be assigned
|
|
1201
|
+
def song_rating=(song_rating)
|
|
1202
|
+
validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
1203
|
+
unless validator.valid?(song_rating)
|
|
1204
|
+
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{validator.allowable_values}."
|
|
1205
|
+
end
|
|
1206
|
+
@song_rating = song_rating
|
|
1207
|
+
end
|
|
1208
|
+
|
|
1209
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1210
|
+
# @param [Object] audience_age Object to be assigned
|
|
1211
|
+
def audience_age=(audience_age)
|
|
1212
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1213
|
+
unless validator.valid?(audience_age)
|
|
1214
|
+
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{validator.allowable_values}."
|
|
1215
|
+
end
|
|
1216
|
+
@audience_age = audience_age
|
|
1217
|
+
end
|
|
1218
|
+
|
|
1219
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1220
|
+
# @param [Object] secondary_audience_age Object to be assigned
|
|
1221
|
+
def secondary_audience_age=(secondary_audience_age)
|
|
1222
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1223
|
+
unless validator.valid?(secondary_audience_age)
|
|
1224
|
+
fail ArgumentError, "invalid value for \"secondary_audience_age\", must be one of #{validator.allowable_values}."
|
|
1225
|
+
end
|
|
1226
|
+
@secondary_audience_age = secondary_audience_age
|
|
1227
|
+
end
|
|
1228
|
+
|
|
1229
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1230
|
+
# @param [Object] tertiary_audience_age Object to be assigned
|
|
1231
|
+
def tertiary_audience_age=(tertiary_audience_age)
|
|
1232
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1233
|
+
unless validator.valid?(tertiary_audience_age)
|
|
1234
|
+
fail ArgumentError, "invalid value for \"tertiary_audience_age\", must be one of #{validator.allowable_values}."
|
|
1235
|
+
end
|
|
1236
|
+
@tertiary_audience_age = tertiary_audience_age
|
|
1237
|
+
end
|
|
1238
|
+
|
|
1239
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1240
|
+
# @param [Object] audience_gender Object to be assigned
|
|
1241
|
+
def audience_gender=(audience_gender)
|
|
1242
|
+
validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
1243
|
+
unless validator.valid?(audience_gender)
|
|
1244
|
+
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{validator.allowable_values}."
|
|
1245
|
+
end
|
|
1246
|
+
@audience_gender = audience_gender
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1249
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1250
|
+
# @param [Object] secondary_audience_region Object to be assigned
|
|
1251
|
+
def secondary_audience_region=(secondary_audience_region)
|
|
1252
|
+
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"])
|
|
1253
|
+
unless validator.valid?(secondary_audience_region)
|
|
1254
|
+
fail ArgumentError, "invalid value for \"secondary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1255
|
+
end
|
|
1256
|
+
@secondary_audience_region = secondary_audience_region
|
|
1257
|
+
end
|
|
1258
|
+
|
|
1259
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1260
|
+
# @param [Object] tertiary_audience_region Object to be assigned
|
|
1261
|
+
def tertiary_audience_region=(tertiary_audience_region)
|
|
1262
|
+
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"])
|
|
1263
|
+
unless validator.valid?(tertiary_audience_region)
|
|
1264
|
+
fail ArgumentError, "invalid value for \"tertiary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1265
|
+
end
|
|
1266
|
+
@tertiary_audience_region = tertiary_audience_region
|
|
1267
|
+
end
|
|
1268
|
+
|
|
1269
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1270
|
+
# @param [Object] origin_region Object to be assigned
|
|
1271
|
+
def origin_region=(origin_region)
|
|
1272
|
+
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"])
|
|
1273
|
+
unless validator.valid?(origin_region)
|
|
1274
|
+
fail ArgumentError, "invalid value for \"origin_region\", must be one of #{validator.allowable_values}."
|
|
1275
|
+
end
|
|
1276
|
+
@origin_region = origin_region
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1280
|
+
# @param [Object] industry_suitability Object to be assigned
|
|
1281
|
+
def industry_suitability=(industry_suitability)
|
|
1282
|
+
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"])
|
|
1283
|
+
unless validator.valid?(industry_suitability)
|
|
1284
|
+
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
|
1285
|
+
end
|
|
1286
|
+
@industry_suitability = industry_suitability
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1290
|
+
# @param [Object] audience_region Object to be assigned
|
|
1291
|
+
def audience_region=(audience_region)
|
|
1292
|
+
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"])
|
|
1293
|
+
unless validator.valid?(audience_region)
|
|
1294
|
+
fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
|
|
1295
|
+
end
|
|
1296
|
+
@audience_region = audience_region
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
1299
|
# Custom attribute writer method checking allowed values (enum).
|
|
1300
1300
|
# @param [Object] key Object to be assigned
|
|
1301
1301
|
def key=(key)
|
|
@@ -1313,6 +1313,29 @@ module SongtradrApiClientRuby
|
|
|
1313
1313
|
self.class == o.class &&
|
|
1314
1314
|
space == o.space &&
|
|
1315
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
|
+
roughness == o.roughness &&
|
|
1327
|
+
scale == o.scale &&
|
|
1328
|
+
sound_generation == o.sound_generation &&
|
|
1329
|
+
tempo == o.tempo &&
|
|
1330
|
+
texture == o.texture &&
|
|
1331
|
+
timbre == o.timbre &&
|
|
1332
|
+
tonality == o.tonality &&
|
|
1333
|
+
valence == o.valence &&
|
|
1334
|
+
vocals == o.vocals &&
|
|
1335
|
+
origin_decade == o.origin_decade &&
|
|
1336
|
+
curateability == o.curateability &&
|
|
1337
|
+
use_case == o.use_case &&
|
|
1338
|
+
channel_suitability == o.channel_suitability &&
|
|
1316
1339
|
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
|
1317
1340
|
secondary_mood_cluster == o.secondary_mood_cluster &&
|
|
1318
1341
|
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
|
@@ -1356,46 +1379,23 @@ module SongtradrApiClientRuby
|
|
|
1356
1379
|
use_case_affinity == o.use_case_affinity &&
|
|
1357
1380
|
industry_suitability == o.industry_suitability &&
|
|
1358
1381
|
industry_suitability_affinity == o.industry_suitability_affinity &&
|
|
1359
|
-
arousal == o.arousal &&
|
|
1360
|
-
dominant_instrument == o.dominant_instrument &&
|
|
1361
|
-
energy == o.energy &&
|
|
1362
|
-
engagement == o.engagement &&
|
|
1363
|
-
groovyness == o.groovyness &&
|
|
1364
|
-
harmony == o.harmony &&
|
|
1365
|
-
pleasantness == o.pleasantness &&
|
|
1366
|
-
primary_mood_cluster == o.primary_mood_cluster &&
|
|
1367
|
-
primary_sound_character == o.primary_sound_character &&
|
|
1368
|
-
rhythm == o.rhythm &&
|
|
1369
|
-
roughness == o.roughness &&
|
|
1370
|
-
scale == o.scale &&
|
|
1371
|
-
sound_generation == o.sound_generation &&
|
|
1372
|
-
tempo == o.tempo &&
|
|
1373
|
-
texture == o.texture &&
|
|
1374
|
-
timbre == o.timbre &&
|
|
1375
|
-
tonality == o.tonality &&
|
|
1376
|
-
valence == o.valence &&
|
|
1377
1382
|
audience_region == o.audience_region &&
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
curateability == o.curateability &&
|
|
1381
|
-
use_case == o.use_case &&
|
|
1382
|
-
channel_suitability == o.channel_suitability &&
|
|
1383
|
-
key == o.key &&
|
|
1384
|
-
channel_suitability_affinity == o.channel_suitability_affinity &&
|
|
1383
|
+
valence_affinity == o.valence_affinity &&
|
|
1384
|
+
arousal_affinity == o.arousal_affinity &&
|
|
1385
1385
|
pleasantness_affinity == o.pleasantness_affinity &&
|
|
1386
|
+
engagement_affinity == o.engagement_affinity &&
|
|
1387
|
+
energy_affinity == o.energy_affinity &&
|
|
1386
1388
|
tempo_affinity == o.tempo_affinity &&
|
|
1387
1389
|
scale_affinity == o.scale_affinity &&
|
|
1388
1390
|
timbre_affinity == o.timbre_affinity &&
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
+
roughness_affinity == o.roughness_affinity &&
|
|
1392
|
+
harmony_affinity == o.harmony_affinity &&
|
|
1391
1393
|
texture_affinity == o.texture_affinity &&
|
|
1392
1394
|
groovyness_affinity == o.groovyness_affinity &&
|
|
1393
|
-
valence_affinity == o.valence_affinity &&
|
|
1394
|
-
arousal_affinity == o.arousal_affinity &&
|
|
1395
1395
|
space_affinity == o.space_affinity &&
|
|
1396
1396
|
key_affinity == o.key_affinity &&
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
channel_suitability_affinity == o.channel_suitability_affinity &&
|
|
1398
|
+
key == o.key
|
|
1399
1399
|
end
|
|
1400
1400
|
|
|
1401
1401
|
# @see the `==` method
|
|
@@ -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, language_of_performance, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity,
|
|
1410
|
+
[space, language_of_performance, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity, audience_region, valence_affinity, arousal_affinity, pleasantness_affinity, engagement_affinity, energy_affinity, tempo_affinity, scale_affinity, timbre_affinity, roughness_affinity, harmony_affinity, texture_affinity, groovyness_affinity, space_affinity, key_affinity, channel_suitability_affinity, key].hash
|
|
1411
1411
|
end
|
|
1412
1412
|
|
|
1413
1413
|
# Builds the object from hash
|