songtradr_api_client_ruby 1.12.22 → 1.12.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +26 -12
- data/docs/APIKeysApi.md +217 -0
- data/docs/AdminApiUserDTO.md +70 -0
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +24 -0
- data/docs/CreateApiKeyDTO.md +18 -0
- data/docs/FileSmallDTO.md +16 -16
- data/docs/MusicalFeaturesDTO.md +82 -82
- data/docs/PlaylistLargeDTO.md +9 -9
- data/docs/ProductMediumDTO.md +2 -2
- data/docs/RecordingApi.md +2 -0
- data/docs/RecordingGenrePredictionDTO.md +3 -3
- data/docs/RecordingLargeDTO.md +11 -11
- data/docs/RecordingMediumDTO.md +7 -7
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingPlaylistDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/UserApi.md +4 -0
- data/docs/UserDTO.md +20 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +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 +4 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -1
- data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +10 -8
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +448 -0
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +262 -0
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +214 -0
- data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +81 -76
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +529 -534
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +54 -57
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +35 -28
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +37 -36
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +94 -77
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +64 -51
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +26 -31
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +210 -19
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +5 -1
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +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 +2 -1
- data/spec/api/user_api_spec.rb +3 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_api_user_dto_spec.rb +190 -0
- data/spec/models/api_key_dto_spec.rb +52 -0
- data/spec/models/category_medium_dto_spec.rb +1 -1
- data/spec/models/category_minimal_dto_spec.rb +1 -1
- data/spec/models/config_access_dto_spec.rb +1 -1
- data/spec/models/config_identifier_dto_spec.rb +1 -1
- data/spec/models/contributor_type_dto_spec.rb +1 -1
- data/spec/models/create_api_key_dto_spec.rb +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 +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 +175 -175
- data/spec/models/p_line_dto_spec.rb +1 -1
- data/spec/models/party_large_dto_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/playlist_large_dto_spec.rb +10 -10
- data/spec/models/product_medium_dto_spec.rb +7 -7
- data/spec/models/product_party_dto_spec.rb +1 -1
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +3 -3
- data/spec/models/recording_large_dto_spec.rb +12 -12
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +9 -9
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
- data/spec/models/recording_party_dto_spec.rb +1 -1
- data/spec/models/recording_playlist_dto_spec.rb +4 -4
- data/spec/models/recording_small_dto_spec.rb +4 -4
- data/spec/models/recording_tag_small_dto_spec.rb +1 -1
- data/spec/models/save_file_recording_dto_spec.rb +1 -1
- data/spec/models/save_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_genre_dto_spec.rb +1 -1
- data/spec/models/save_recording_party_dto_spec.rb +1 -1
- data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_tag_dto_spec.rb +1 -1
- data/spec/models/save_referrer_dto_spec.rb +1 -1
- data/spec/models/save_taggrams_dto_spec.rb +1 -1
- data/spec/models/save_user_dto_spec.rb +1 -1
- data/spec/models/search_filter_values_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_dto_spec.rb +1 -1
- data/spec/models/sign_up_dto_spec.rb +1 -1
- data/spec/models/tag_dto_spec.rb +1 -1
- data/spec/models/tag_small_dto_spec.rb +1 -1
- data/spec/models/taggram_dto_spec.rb +1 -1
- data/spec/models/tags_summary_dto_spec.rb +1 -1
- data/spec/models/tagstrength_dto_spec.rb +1 -1
- data/spec/models/title_dto_spec.rb +1 -1
- data/spec/models/token_request_spec.rb +1 -1
- data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +61 -1
- data/spec/spec_helper.rb +1 -1
- metadata +72 -56
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.12.
|
6
|
+
The version of the OpenAPI document: 1.12.24
|
7
7
|
Contact: info@songtradr.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
@@ -19,67 +19,37 @@ module SongtradrApiClientRuby
|
|
19
19
|
# Search for space
|
20
20
|
attr_accessor :space
|
21
21
|
|
22
|
-
|
23
|
-
attr_accessor :arousal
|
24
|
-
|
25
|
-
# Search for a dominant instrument
|
26
|
-
attr_accessor :dominant_instrument
|
27
|
-
|
28
|
-
# Search for energy
|
29
|
-
attr_accessor :energy
|
30
|
-
|
31
|
-
# Search for an engagement
|
32
|
-
attr_accessor :engagement
|
33
|
-
|
34
|
-
# Search for groovyness
|
35
|
-
attr_accessor :groovyness
|
36
|
-
|
37
|
-
# Search for a degree of harmoniousness
|
38
|
-
attr_accessor :harmony
|
22
|
+
attr_accessor :language_of_performance
|
39
23
|
|
40
|
-
|
41
|
-
attr_accessor :pleasantness
|
24
|
+
attr_accessor :primary_mood_cluster_affinity
|
42
25
|
|
43
26
|
# Search for a language of the lyrics
|
44
|
-
attr_accessor :
|
45
|
-
|
46
|
-
# Search for a sound character
|
47
|
-
attr_accessor :primary_sound_character
|
48
|
-
|
49
|
-
# Search for rhythm
|
50
|
-
attr_accessor :rhythm
|
27
|
+
attr_accessor :secondary_mood_cluster
|
51
28
|
|
52
|
-
|
53
|
-
attr_accessor :roughness
|
29
|
+
attr_accessor :secondary_mood_cluster_affinity
|
54
30
|
|
55
|
-
# Search for a
|
56
|
-
attr_accessor :
|
31
|
+
# Search for a language of the lyrics
|
32
|
+
attr_accessor :tertiary_mood_cluster
|
57
33
|
|
58
|
-
|
59
|
-
attr_accessor :sound_generation
|
34
|
+
attr_accessor :tertiary_mood_cluster_affinity
|
60
35
|
|
61
|
-
|
62
|
-
attr_accessor :tempo
|
36
|
+
attr_accessor :vocals_affinity
|
63
37
|
|
64
|
-
|
65
|
-
attr_accessor :texture
|
38
|
+
attr_accessor :dominant_instrument_affinity
|
66
39
|
|
67
|
-
# Search for
|
68
|
-
attr_accessor :
|
40
|
+
# Search for a dominant instrument
|
41
|
+
attr_accessor :secondary_instrument
|
69
42
|
|
70
|
-
|
71
|
-
attr_accessor :tonality
|
43
|
+
attr_accessor :secondary_instrument_affinity
|
72
44
|
|
73
|
-
# Search for a
|
74
|
-
attr_accessor :
|
45
|
+
# Search for a dominant instrument
|
46
|
+
attr_accessor :tertiary_instrument
|
75
47
|
|
76
|
-
|
77
|
-
attr_accessor :vocals
|
48
|
+
attr_accessor :tertiary_instrument_affinity
|
78
49
|
|
79
|
-
|
80
|
-
attr_accessor :origin_decade
|
50
|
+
attr_accessor :sound_generation_affinity
|
81
51
|
|
82
|
-
attr_accessor :
|
52
|
+
attr_accessor :rhythm_affinity
|
83
53
|
|
84
54
|
attr_accessor :primary_sound_character_affinity
|
85
55
|
|
@@ -142,56 +112,83 @@ module SongtradrApiClientRuby
|
|
142
112
|
|
143
113
|
attr_accessor :industry_suitability_affinity
|
144
114
|
|
145
|
-
|
115
|
+
# Search for an arousal
|
116
|
+
attr_accessor :arousal
|
146
117
|
|
147
|
-
# Search for
|
148
|
-
attr_accessor :
|
118
|
+
# Search for a dominant instrument
|
119
|
+
attr_accessor :dominant_instrument
|
149
120
|
|
150
|
-
# Search for
|
151
|
-
attr_accessor :
|
121
|
+
# Search for energy
|
122
|
+
attr_accessor :energy
|
152
123
|
|
153
|
-
# Search for
|
154
|
-
attr_accessor :
|
124
|
+
# Search for an engagement
|
125
|
+
attr_accessor :engagement
|
155
126
|
|
156
|
-
|
127
|
+
# Search for groovyness
|
128
|
+
attr_accessor :groovyness
|
157
129
|
|
158
|
-
# Search for a
|
159
|
-
attr_accessor :
|
130
|
+
# Search for a degree of harmoniousness
|
131
|
+
attr_accessor :harmony
|
160
132
|
|
161
|
-
|
133
|
+
# Search for pleasantness
|
134
|
+
attr_accessor :pleasantness
|
162
135
|
|
163
136
|
# Search for a language of the lyrics
|
164
|
-
attr_accessor :
|
137
|
+
attr_accessor :primary_mood_cluster
|
165
138
|
|
166
|
-
|
139
|
+
# Search for a sound character
|
140
|
+
attr_accessor :primary_sound_character
|
167
141
|
|
168
|
-
|
142
|
+
# Search for rhythm
|
143
|
+
attr_accessor :rhythm
|
169
144
|
|
170
|
-
|
145
|
+
# Search for roughness
|
146
|
+
attr_accessor :roughness
|
171
147
|
|
172
|
-
# Search for a
|
173
|
-
attr_accessor :
|
148
|
+
# Search for a tonal scale
|
149
|
+
attr_accessor :scale
|
174
150
|
|
175
|
-
|
151
|
+
# Search for type of sound generation
|
152
|
+
attr_accessor :sound_generation
|
176
153
|
|
177
|
-
# Search for
|
178
|
-
attr_accessor :
|
154
|
+
# Search for tempo
|
155
|
+
attr_accessor :tempo
|
179
156
|
|
180
|
-
|
157
|
+
# Search for texture
|
158
|
+
attr_accessor :texture
|
181
159
|
|
182
|
-
|
160
|
+
# Search for timbre
|
161
|
+
attr_accessor :timbre
|
183
162
|
|
184
|
-
|
163
|
+
# Search for tonality
|
164
|
+
attr_accessor :tonality
|
185
165
|
|
186
|
-
|
166
|
+
# Search for a valence
|
167
|
+
attr_accessor :valence
|
187
168
|
|
188
|
-
attr_accessor :
|
169
|
+
attr_accessor :audience_region
|
189
170
|
|
190
|
-
|
171
|
+
# Search for a vocal gender or instrumental songs
|
172
|
+
attr_accessor :vocals
|
191
173
|
|
192
|
-
|
174
|
+
# Search for origin decade
|
175
|
+
attr_accessor :origin_decade
|
193
176
|
|
194
|
-
|
177
|
+
# Search for curatebility
|
178
|
+
attr_accessor :curateability
|
179
|
+
|
180
|
+
# Search for use case
|
181
|
+
attr_accessor :use_case
|
182
|
+
|
183
|
+
# Search for social media suitability
|
184
|
+
attr_accessor :channel_suitability
|
185
|
+
|
186
|
+
# Search for a harmonic key
|
187
|
+
attr_accessor :key
|
188
|
+
|
189
|
+
attr_accessor :channel_suitability_affinity
|
190
|
+
|
191
|
+
attr_accessor :pleasantness_affinity
|
195
192
|
|
196
193
|
attr_accessor :tempo_affinity
|
197
194
|
|
@@ -199,22 +196,25 @@ module SongtradrApiClientRuby
|
|
199
196
|
|
200
197
|
attr_accessor :timbre_affinity
|
201
198
|
|
202
|
-
attr_accessor :
|
199
|
+
attr_accessor :engagement_affinity
|
203
200
|
|
204
|
-
attr_accessor :
|
201
|
+
attr_accessor :energy_affinity
|
205
202
|
|
206
203
|
attr_accessor :texture_affinity
|
207
204
|
|
208
205
|
attr_accessor :groovyness_affinity
|
209
206
|
|
207
|
+
attr_accessor :valence_affinity
|
208
|
+
|
209
|
+
attr_accessor :arousal_affinity
|
210
|
+
|
210
211
|
attr_accessor :space_affinity
|
211
212
|
|
212
213
|
attr_accessor :key_affinity
|
213
214
|
|
214
|
-
attr_accessor :
|
215
|
+
attr_accessor :roughness_affinity
|
215
216
|
|
216
|
-
|
217
|
-
attr_accessor :key
|
217
|
+
attr_accessor :harmony_affinity
|
218
218
|
|
219
219
|
class EnumAttributeValidator
|
220
220
|
attr_reader :datatype
|
@@ -242,27 +242,20 @@ module SongtradrApiClientRuby
|
|
242
242
|
def self.attribute_map
|
243
243
|
{
|
244
244
|
:'space' => :'space',
|
245
|
-
:'arousal' => :'arousal',
|
246
|
-
:'dominant_instrument' => :'dominantInstrument',
|
247
|
-
:'energy' => :'energy',
|
248
|
-
:'engagement' => :'engagement',
|
249
|
-
:'groovyness' => :'groovyness',
|
250
|
-
:'harmony' => :'harmony',
|
251
|
-
:'pleasantness' => :'pleasantness',
|
252
|
-
:'primary_mood_cluster' => :'primaryMoodCluster',
|
253
|
-
:'primary_sound_character' => :'primarySoundCharacter',
|
254
|
-
:'rhythm' => :'rhythm',
|
255
|
-
:'roughness' => :'roughness',
|
256
|
-
:'scale' => :'scale',
|
257
|
-
:'sound_generation' => :'soundGeneration',
|
258
|
-
:'tempo' => :'tempo',
|
259
|
-
:'texture' => :'texture',
|
260
|
-
:'timbre' => :'timbre',
|
261
|
-
:'tonality' => :'tonality',
|
262
|
-
:'valence' => :'valence',
|
263
|
-
:'vocals' => :'vocals',
|
264
|
-
:'origin_decade' => :'originDecade',
|
265
245
|
:'language_of_performance' => :'languageOfPerformance',
|
246
|
+
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
247
|
+
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
248
|
+
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
249
|
+
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
250
|
+
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
251
|
+
:'vocals_affinity' => :'vocalsAffinity',
|
252
|
+
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
253
|
+
:'secondary_instrument' => :'secondaryInstrument',
|
254
|
+
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
255
|
+
:'tertiary_instrument' => :'tertiaryInstrument',
|
256
|
+
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
257
|
+
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
258
|
+
:'rhythm_affinity' => :'rhythmAffinity',
|
266
259
|
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
267
260
|
:'tonality_affinity' => :'tonalityAffinity',
|
268
261
|
:'bpm' => :'bpm',
|
@@ -293,39 +286,46 @@ module SongtradrApiClientRuby
|
|
293
286
|
:'use_case_affinity' => :'useCaseAffinity',
|
294
287
|
:'industry_suitability' => :'industrySuitability',
|
295
288
|
:'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',
|
296
307
|
:'audience_region' => :'audienceRegion',
|
308
|
+
:'vocals' => :'vocals',
|
309
|
+
:'origin_decade' => :'originDecade',
|
297
310
|
:'curateability' => :'curateability',
|
298
311
|
:'use_case' => :'useCase',
|
299
312
|
:'channel_suitability' => :'channelSuitability',
|
300
|
-
:'
|
301
|
-
:'
|
302
|
-
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
303
|
-
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
304
|
-
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
305
|
-
:'vocals_affinity' => :'vocalsAffinity',
|
306
|
-
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
307
|
-
:'secondary_instrument' => :'secondaryInstrument',
|
308
|
-
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
309
|
-
:'tertiary_instrument' => :'tertiaryInstrument',
|
310
|
-
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
311
|
-
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
312
|
-
:'rhythm_affinity' => :'rhythmAffinity',
|
313
|
-
:'valence_affinity' => :'valenceAffinity',
|
314
|
-
:'arousal_affinity' => :'arousalAffinity',
|
313
|
+
:'key' => :'key',
|
314
|
+
:'channel_suitability_affinity' => :'channelSuitabilityAffinity',
|
315
315
|
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
316
|
-
:'engagement_affinity' => :'engagementAffinity',
|
317
|
-
:'energy_affinity' => :'energyAffinity',
|
318
316
|
:'tempo_affinity' => :'tempoAffinity',
|
319
317
|
:'scale_affinity' => :'scaleAffinity',
|
320
318
|
:'timbre_affinity' => :'timbreAffinity',
|
321
|
-
:'
|
322
|
-
:'
|
319
|
+
:'engagement_affinity' => :'engagementAffinity',
|
320
|
+
:'energy_affinity' => :'energyAffinity',
|
323
321
|
:'texture_affinity' => :'textureAffinity',
|
324
322
|
:'groovyness_affinity' => :'groovynessAffinity',
|
323
|
+
:'valence_affinity' => :'valenceAffinity',
|
324
|
+
:'arousal_affinity' => :'arousalAffinity',
|
325
325
|
:'space_affinity' => :'spaceAffinity',
|
326
326
|
:'key_affinity' => :'keyAffinity',
|
327
|
-
:'
|
328
|
-
:'
|
327
|
+
:'roughness_affinity' => :'roughnessAffinity',
|
328
|
+
:'harmony_affinity' => :'harmonyAffinity'
|
329
329
|
}
|
330
330
|
end
|
331
331
|
|
@@ -338,27 +338,20 @@ module SongtradrApiClientRuby
|
|
338
338
|
def self.openapi_types
|
339
339
|
{
|
340
340
|
:'space' => :'String',
|
341
|
-
:'arousal' => :'String',
|
342
|
-
:'dominant_instrument' => :'String',
|
343
|
-
:'energy' => :'String',
|
344
|
-
:'engagement' => :'String',
|
345
|
-
:'groovyness' => :'String',
|
346
|
-
:'harmony' => :'String',
|
347
|
-
:'pleasantness' => :'String',
|
348
|
-
:'primary_mood_cluster' => :'String',
|
349
|
-
:'primary_sound_character' => :'String',
|
350
|
-
:'rhythm' => :'String',
|
351
|
-
:'roughness' => :'String',
|
352
|
-
:'scale' => :'String',
|
353
|
-
:'sound_generation' => :'String',
|
354
|
-
:'tempo' => :'String',
|
355
|
-
:'texture' => :'String',
|
356
|
-
:'timbre' => :'String',
|
357
|
-
:'tonality' => :'String',
|
358
|
-
:'valence' => :'String',
|
359
|
-
:'vocals' => :'String',
|
360
|
-
:'origin_decade' => :'String',
|
361
341
|
:'language_of_performance' => :'String',
|
342
|
+
:'primary_mood_cluster_affinity' => :'Float',
|
343
|
+
:'secondary_mood_cluster' => :'String',
|
344
|
+
:'secondary_mood_cluster_affinity' => :'Float',
|
345
|
+
:'tertiary_mood_cluster' => :'String',
|
346
|
+
:'tertiary_mood_cluster_affinity' => :'Float',
|
347
|
+
:'vocals_affinity' => :'Float',
|
348
|
+
:'dominant_instrument_affinity' => :'Float',
|
349
|
+
:'secondary_instrument' => :'String',
|
350
|
+
:'secondary_instrument_affinity' => :'Float',
|
351
|
+
:'tertiary_instrument' => :'String',
|
352
|
+
:'tertiary_instrument_affinity' => :'Float',
|
353
|
+
:'sound_generation_affinity' => :'Float',
|
354
|
+
:'rhythm_affinity' => :'Float',
|
362
355
|
:'primary_sound_character_affinity' => :'Float',
|
363
356
|
:'tonality_affinity' => :'Float',
|
364
357
|
:'bpm' => :'Float',
|
@@ -389,39 +382,46 @@ module SongtradrApiClientRuby
|
|
389
382
|
:'use_case_affinity' => :'Float',
|
390
383
|
:'industry_suitability' => :'String',
|
391
384
|
:'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',
|
392
403
|
:'audience_region' => :'String',
|
404
|
+
:'vocals' => :'String',
|
405
|
+
:'origin_decade' => :'String',
|
393
406
|
:'curateability' => :'String',
|
394
407
|
:'use_case' => :'String',
|
395
408
|
:'channel_suitability' => :'String',
|
396
|
-
:'
|
397
|
-
:'
|
398
|
-
:'secondary_mood_cluster_affinity' => :'Float',
|
399
|
-
:'tertiary_mood_cluster' => :'String',
|
400
|
-
:'tertiary_mood_cluster_affinity' => :'Float',
|
401
|
-
:'vocals_affinity' => :'Float',
|
402
|
-
:'dominant_instrument_affinity' => :'Float',
|
403
|
-
:'secondary_instrument' => :'String',
|
404
|
-
:'secondary_instrument_affinity' => :'Float',
|
405
|
-
:'tertiary_instrument' => :'String',
|
406
|
-
:'tertiary_instrument_affinity' => :'Float',
|
407
|
-
:'sound_generation_affinity' => :'Float',
|
408
|
-
:'rhythm_affinity' => :'Float',
|
409
|
-
:'valence_affinity' => :'Float',
|
410
|
-
:'arousal_affinity' => :'Float',
|
409
|
+
:'key' => :'String',
|
410
|
+
:'channel_suitability_affinity' => :'Float',
|
411
411
|
:'pleasantness_affinity' => :'Float',
|
412
|
-
:'engagement_affinity' => :'Float',
|
413
|
-
:'energy_affinity' => :'Float',
|
414
412
|
:'tempo_affinity' => :'Float',
|
415
413
|
:'scale_affinity' => :'Float',
|
416
414
|
:'timbre_affinity' => :'Float',
|
417
|
-
:'
|
418
|
-
:'
|
415
|
+
:'engagement_affinity' => :'Float',
|
416
|
+
:'energy_affinity' => :'Float',
|
419
417
|
:'texture_affinity' => :'Float',
|
420
418
|
:'groovyness_affinity' => :'Float',
|
419
|
+
:'valence_affinity' => :'Float',
|
420
|
+
:'arousal_affinity' => :'Float',
|
421
421
|
:'space_affinity' => :'Float',
|
422
422
|
:'key_affinity' => :'Float',
|
423
|
-
:'
|
424
|
-
:'
|
423
|
+
:'roughness_affinity' => :'Float',
|
424
|
+
:'harmony_affinity' => :'Float'
|
425
425
|
}
|
426
426
|
end
|
427
427
|
|
@@ -450,88 +450,60 @@ module SongtradrApiClientRuby
|
|
450
450
|
self.space = attributes[:'space']
|
451
451
|
end
|
452
452
|
|
453
|
-
if attributes.key?(:'
|
454
|
-
self.
|
455
|
-
end
|
456
|
-
|
457
|
-
if attributes.key?(:'dominant_instrument')
|
458
|
-
self.dominant_instrument = attributes[:'dominant_instrument']
|
459
|
-
end
|
460
|
-
|
461
|
-
if attributes.key?(:'energy')
|
462
|
-
self.energy = attributes[:'energy']
|
463
|
-
end
|
464
|
-
|
465
|
-
if attributes.key?(:'engagement')
|
466
|
-
self.engagement = attributes[:'engagement']
|
467
|
-
end
|
468
|
-
|
469
|
-
if attributes.key?(:'groovyness')
|
470
|
-
self.groovyness = attributes[:'groovyness']
|
471
|
-
end
|
472
|
-
|
473
|
-
if attributes.key?(:'harmony')
|
474
|
-
self.harmony = attributes[:'harmony']
|
475
|
-
end
|
476
|
-
|
477
|
-
if attributes.key?(:'pleasantness')
|
478
|
-
self.pleasantness = attributes[:'pleasantness']
|
479
|
-
end
|
480
|
-
|
481
|
-
if attributes.key?(:'primary_mood_cluster')
|
482
|
-
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
453
|
+
if attributes.key?(:'language_of_performance')
|
454
|
+
self.language_of_performance = attributes[:'language_of_performance']
|
483
455
|
end
|
484
456
|
|
485
|
-
if attributes.key?(:'
|
486
|
-
self.
|
457
|
+
if attributes.key?(:'primary_mood_cluster_affinity')
|
458
|
+
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
487
459
|
end
|
488
460
|
|
489
|
-
if attributes.key?(:'
|
490
|
-
self.
|
461
|
+
if attributes.key?(:'secondary_mood_cluster')
|
462
|
+
self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
|
491
463
|
end
|
492
464
|
|
493
|
-
if attributes.key?(:'
|
494
|
-
self.
|
465
|
+
if attributes.key?(:'secondary_mood_cluster_affinity')
|
466
|
+
self.secondary_mood_cluster_affinity = attributes[:'secondary_mood_cluster_affinity']
|
495
467
|
end
|
496
468
|
|
497
|
-
if attributes.key?(:'
|
498
|
-
self.
|
469
|
+
if attributes.key?(:'tertiary_mood_cluster')
|
470
|
+
self.tertiary_mood_cluster = attributes[:'tertiary_mood_cluster']
|
499
471
|
end
|
500
472
|
|
501
|
-
if attributes.key?(:'
|
502
|
-
self.
|
473
|
+
if attributes.key?(:'tertiary_mood_cluster_affinity')
|
474
|
+
self.tertiary_mood_cluster_affinity = attributes[:'tertiary_mood_cluster_affinity']
|
503
475
|
end
|
504
476
|
|
505
|
-
if attributes.key?(:'
|
506
|
-
self.
|
477
|
+
if attributes.key?(:'vocals_affinity')
|
478
|
+
self.vocals_affinity = attributes[:'vocals_affinity']
|
507
479
|
end
|
508
480
|
|
509
|
-
if attributes.key?(:'
|
510
|
-
self.
|
481
|
+
if attributes.key?(:'dominant_instrument_affinity')
|
482
|
+
self.dominant_instrument_affinity = attributes[:'dominant_instrument_affinity']
|
511
483
|
end
|
512
484
|
|
513
|
-
if attributes.key?(:'
|
514
|
-
self.
|
485
|
+
if attributes.key?(:'secondary_instrument')
|
486
|
+
self.secondary_instrument = attributes[:'secondary_instrument']
|
515
487
|
end
|
516
488
|
|
517
|
-
if attributes.key?(:'
|
518
|
-
self.
|
489
|
+
if attributes.key?(:'secondary_instrument_affinity')
|
490
|
+
self.secondary_instrument_affinity = attributes[:'secondary_instrument_affinity']
|
519
491
|
end
|
520
492
|
|
521
|
-
if attributes.key?(:'
|
522
|
-
self.
|
493
|
+
if attributes.key?(:'tertiary_instrument')
|
494
|
+
self.tertiary_instrument = attributes[:'tertiary_instrument']
|
523
495
|
end
|
524
496
|
|
525
|
-
if attributes.key?(:'
|
526
|
-
self.
|
497
|
+
if attributes.key?(:'tertiary_instrument_affinity')
|
498
|
+
self.tertiary_instrument_affinity = attributes[:'tertiary_instrument_affinity']
|
527
499
|
end
|
528
500
|
|
529
|
-
if attributes.key?(:'
|
530
|
-
self.
|
501
|
+
if attributes.key?(:'sound_generation_affinity')
|
502
|
+
self.sound_generation_affinity = attributes[:'sound_generation_affinity']
|
531
503
|
end
|
532
504
|
|
533
|
-
if attributes.key?(:'
|
534
|
-
self.
|
505
|
+
if attributes.key?(:'rhythm_affinity')
|
506
|
+
self.rhythm_affinity = attributes[:'rhythm_affinity']
|
535
507
|
end
|
536
508
|
|
537
509
|
if attributes.key?(:'primary_sound_character_affinity')
|
@@ -654,92 +626,112 @@ module SongtradrApiClientRuby
|
|
654
626
|
self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
|
655
627
|
end
|
656
628
|
|
657
|
-
if attributes.key?(:'
|
658
|
-
self.
|
629
|
+
if attributes.key?(:'arousal')
|
630
|
+
self.arousal = attributes[:'arousal']
|
659
631
|
end
|
660
632
|
|
661
|
-
if attributes.key?(:'
|
662
|
-
self.
|
633
|
+
if attributes.key?(:'dominant_instrument')
|
634
|
+
self.dominant_instrument = attributes[:'dominant_instrument']
|
663
635
|
end
|
664
636
|
|
665
|
-
if attributes.key?(:'
|
666
|
-
self.
|
637
|
+
if attributes.key?(:'energy')
|
638
|
+
self.energy = attributes[:'energy']
|
667
639
|
end
|
668
640
|
|
669
|
-
if attributes.key?(:'
|
670
|
-
self.
|
641
|
+
if attributes.key?(:'engagement')
|
642
|
+
self.engagement = attributes[:'engagement']
|
671
643
|
end
|
672
644
|
|
673
|
-
if attributes.key?(:'
|
674
|
-
self.
|
645
|
+
if attributes.key?(:'groovyness')
|
646
|
+
self.groovyness = attributes[:'groovyness']
|
675
647
|
end
|
676
648
|
|
677
|
-
if attributes.key?(:'
|
678
|
-
self.
|
649
|
+
if attributes.key?(:'harmony')
|
650
|
+
self.harmony = attributes[:'harmony']
|
679
651
|
end
|
680
652
|
|
681
|
-
if attributes.key?(:'
|
682
|
-
self.
|
653
|
+
if attributes.key?(:'pleasantness')
|
654
|
+
self.pleasantness = attributes[:'pleasantness']
|
683
655
|
end
|
684
656
|
|
685
|
-
if attributes.key?(:'
|
686
|
-
self.
|
657
|
+
if attributes.key?(:'primary_mood_cluster')
|
658
|
+
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
687
659
|
end
|
688
660
|
|
689
|
-
if attributes.key?(:'
|
690
|
-
self.
|
661
|
+
if attributes.key?(:'primary_sound_character')
|
662
|
+
self.primary_sound_character = attributes[:'primary_sound_character']
|
691
663
|
end
|
692
664
|
|
693
|
-
if attributes.key?(:'
|
694
|
-
self.
|
665
|
+
if attributes.key?(:'rhythm')
|
666
|
+
self.rhythm = attributes[:'rhythm']
|
695
667
|
end
|
696
668
|
|
697
|
-
if attributes.key?(:'
|
698
|
-
self.
|
669
|
+
if attributes.key?(:'roughness')
|
670
|
+
self.roughness = attributes[:'roughness']
|
699
671
|
end
|
700
672
|
|
701
|
-
if attributes.key?(:'
|
702
|
-
self.
|
673
|
+
if attributes.key?(:'scale')
|
674
|
+
self.scale = attributes[:'scale']
|
703
675
|
end
|
704
676
|
|
705
|
-
if attributes.key?(:'
|
706
|
-
self.
|
677
|
+
if attributes.key?(:'sound_generation')
|
678
|
+
self.sound_generation = attributes[:'sound_generation']
|
707
679
|
end
|
708
680
|
|
709
|
-
if attributes.key?(:'
|
710
|
-
self.
|
681
|
+
if attributes.key?(:'tempo')
|
682
|
+
self.tempo = attributes[:'tempo']
|
711
683
|
end
|
712
684
|
|
713
|
-
if attributes.key?(:'
|
714
|
-
self.
|
685
|
+
if attributes.key?(:'texture')
|
686
|
+
self.texture = attributes[:'texture']
|
715
687
|
end
|
716
688
|
|
717
|
-
if attributes.key?(:'
|
718
|
-
self.
|
689
|
+
if attributes.key?(:'timbre')
|
690
|
+
self.timbre = attributes[:'timbre']
|
719
691
|
end
|
720
692
|
|
721
|
-
if attributes.key?(:'
|
722
|
-
self.
|
693
|
+
if attributes.key?(:'tonality')
|
694
|
+
self.tonality = attributes[:'tonality']
|
723
695
|
end
|
724
696
|
|
725
|
-
if attributes.key?(:'
|
726
|
-
self.
|
697
|
+
if attributes.key?(:'valence')
|
698
|
+
self.valence = attributes[:'valence']
|
727
699
|
end
|
728
700
|
|
729
|
-
if attributes.key?(:'
|
730
|
-
self.
|
701
|
+
if attributes.key?(:'audience_region')
|
702
|
+
self.audience_region = attributes[:'audience_region']
|
731
703
|
end
|
732
704
|
|
733
|
-
if attributes.key?(:'
|
734
|
-
self.
|
705
|
+
if attributes.key?(:'vocals')
|
706
|
+
self.vocals = attributes[:'vocals']
|
735
707
|
end
|
736
708
|
|
737
|
-
if attributes.key?(:'
|
738
|
-
self.
|
709
|
+
if attributes.key?(:'origin_decade')
|
710
|
+
self.origin_decade = attributes[:'origin_decade']
|
739
711
|
end
|
740
712
|
|
741
|
-
if attributes.key?(:'
|
742
|
-
self.
|
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']
|
719
|
+
end
|
720
|
+
|
721
|
+
if attributes.key?(:'channel_suitability')
|
722
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
723
|
+
end
|
724
|
+
|
725
|
+
if attributes.key?(:'key')
|
726
|
+
self.key = attributes[:'key']
|
727
|
+
end
|
728
|
+
|
729
|
+
if attributes.key?(:'channel_suitability_affinity')
|
730
|
+
self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
|
731
|
+
end
|
732
|
+
|
733
|
+
if attributes.key?(:'pleasantness_affinity')
|
734
|
+
self.pleasantness_affinity = attributes[:'pleasantness_affinity']
|
743
735
|
end
|
744
736
|
|
745
737
|
if attributes.key?(:'tempo_affinity')
|
@@ -754,12 +746,12 @@ module SongtradrApiClientRuby
|
|
754
746
|
self.timbre_affinity = attributes[:'timbre_affinity']
|
755
747
|
end
|
756
748
|
|
757
|
-
if attributes.key?(:'
|
758
|
-
self.
|
749
|
+
if attributes.key?(:'engagement_affinity')
|
750
|
+
self.engagement_affinity = attributes[:'engagement_affinity']
|
759
751
|
end
|
760
752
|
|
761
|
-
if attributes.key?(:'
|
762
|
-
self.
|
753
|
+
if attributes.key?(:'energy_affinity')
|
754
|
+
self.energy_affinity = attributes[:'energy_affinity']
|
763
755
|
end
|
764
756
|
|
765
757
|
if attributes.key?(:'texture_affinity')
|
@@ -770,6 +762,14 @@ module SongtradrApiClientRuby
|
|
770
762
|
self.groovyness_affinity = attributes[:'groovyness_affinity']
|
771
763
|
end
|
772
764
|
|
765
|
+
if attributes.key?(:'valence_affinity')
|
766
|
+
self.valence_affinity = attributes[:'valence_affinity']
|
767
|
+
end
|
768
|
+
|
769
|
+
if attributes.key?(:'arousal_affinity')
|
770
|
+
self.arousal_affinity = attributes[:'arousal_affinity']
|
771
|
+
end
|
772
|
+
|
773
773
|
if attributes.key?(:'space_affinity')
|
774
774
|
self.space_affinity = attributes[:'space_affinity']
|
775
775
|
end
|
@@ -778,18 +778,19 @@ module SongtradrApiClientRuby
|
|
778
778
|
self.key_affinity = attributes[:'key_affinity']
|
779
779
|
end
|
780
780
|
|
781
|
-
if attributes.key?(:'
|
782
|
-
self.
|
781
|
+
if attributes.key?(:'roughness_affinity')
|
782
|
+
self.roughness_affinity = attributes[:'roughness_affinity']
|
783
783
|
end
|
784
784
|
|
785
|
-
if attributes.key?(:'
|
786
|
-
self.
|
785
|
+
if attributes.key?(:'harmony_affinity')
|
786
|
+
self.harmony_affinity = attributes[:'harmony_affinity']
|
787
787
|
end
|
788
788
|
end
|
789
789
|
|
790
790
|
# Show invalid properties with the reasons. Usually used together with valid?
|
791
791
|
# @return Array for valid properties with the reasons
|
792
792
|
def list_invalid_properties
|
793
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
793
794
|
invalid_properties = Array.new
|
794
795
|
invalid_properties
|
795
796
|
end
|
@@ -797,8 +798,41 @@ module SongtradrApiClientRuby
|
|
797
798
|
# Check to see if the all the properties in the model are valid
|
798
799
|
# @return true if the model is valid
|
799
800
|
def valid?
|
801
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
800
802
|
space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
801
803
|
return false unless space_validator.valid?(@space)
|
804
|
+
language_of_performance_validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
805
|
+
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
806
|
+
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)
|
802
836
|
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
803
837
|
return false unless arousal_validator.valid?(@arousal)
|
804
838
|
dominant_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
@@ -835,50 +869,18 @@ module SongtradrApiClientRuby
|
|
835
869
|
return false unless tonality_validator.valid?(@tonality)
|
836
870
|
valence_validator = EnumAttributeValidator.new('String', ["very sad", "sad", "moderate valence", "positive", "very positive", "varying valence"])
|
837
871
|
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)
|
838
874
|
vocals_validator = EnumAttributeValidator.new('String', ["instrumental", "female vocals", "male vocals", "mixed vocals", "diverse gender vocals"])
|
839
875
|
return false unless vocals_validator.valid?(@vocals)
|
840
876
|
origin_decade_validator = EnumAttributeValidator.new('String', ["pre-1950s", "1950s", "1960s", "1970s", "1980s", "1990s", "2000s", "2010s", "2020s"])
|
841
877
|
return false unless origin_decade_validator.valid?(@origin_decade)
|
842
|
-
language_of_performance_validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
843
|
-
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
844
|
-
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
845
|
-
return false unless production_rating_validator.valid?(@production_rating)
|
846
|
-
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
847
|
-
return false unless performance_rating_validator.valid?(@performance_rating)
|
848
|
-
song_rating_validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
849
|
-
return false unless song_rating_validator.valid?(@song_rating)
|
850
|
-
audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
851
|
-
return false unless audience_age_validator.valid?(@audience_age)
|
852
|
-
secondary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
853
|
-
return false unless secondary_audience_age_validator.valid?(@secondary_audience_age)
|
854
|
-
tertiary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
855
|
-
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
856
|
-
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
857
|
-
return false unless audience_gender_validator.valid?(@audience_gender)
|
858
|
-
secondary_audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
859
|
-
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
860
|
-
tertiary_audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
861
|
-
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
862
|
-
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"])
|
863
|
-
return false unless origin_region_validator.valid?(@origin_region)
|
864
|
-
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"])
|
865
|
-
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
866
|
-
audience_region_validator = EnumAttributeValidator.new('String', ["Australia and New Zealand", "Central America and the Carribean", "Central and Southern Asia", "Eastern Asia", "Eastern Europe", "Northern Africa and Western Asia", "Northern America", "Oceania", "South America", "South-Eastern Asia", "Southern Europe", "Sub-Saharan Africa", "Western and Northern Europe"])
|
867
|
-
return false unless audience_region_validator.valid?(@audience_region)
|
868
878
|
curateability_validator = EnumAttributeValidator.new('String', ["curateable", "uncurateable"])
|
869
879
|
return false unless curateability_validator.valid?(@curateability)
|
870
880
|
use_case_validator = EnumAttributeValidator.new('String', ["background", "sport", "focus", "christmas", "film", "summer", "adverts", "party", "relax"])
|
871
881
|
return false unless use_case_validator.valid?(@use_case)
|
872
882
|
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
873
883
|
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
874
|
-
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
875
|
-
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
876
|
-
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
877
|
-
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
878
|
-
secondary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
879
|
-
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
880
|
-
tertiary_instrument_validator = EnumAttributeValidator.new('String', ["electric guitar", "piano", "electronics", "guitar", "strings", "synthesizer", "wind", "saxophone", "flute", "trumpet", "drum kit", "keys", "accordion", "violin", "harpsichord", "choir", "cello", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
881
|
-
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
882
884
|
key_validator = EnumAttributeValidator.new('String', ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "unclear"])
|
883
885
|
return false unless key_validator.valid?(@key)
|
884
886
|
true
|
@@ -894,6 +896,166 @@ module SongtradrApiClientRuby
|
|
894
896
|
@space = space
|
895
897
|
end
|
896
898
|
|
899
|
+
# Custom attribute writer method checking allowed values (enum).
|
900
|
+
# @param [Object] language_of_performance Object to be assigned
|
901
|
+
def language_of_performance=(language_of_performance)
|
902
|
+
validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
903
|
+
unless validator.valid?(language_of_performance)
|
904
|
+
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
905
|
+
end
|
906
|
+
@language_of_performance = language_of_performance
|
907
|
+
end
|
908
|
+
|
909
|
+
# Custom attribute writer method checking allowed values (enum).
|
910
|
+
# @param [Object] secondary_mood_cluster Object to be assigned
|
911
|
+
def secondary_mood_cluster=(secondary_mood_cluster)
|
912
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
913
|
+
unless validator.valid?(secondary_mood_cluster)
|
914
|
+
fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
|
915
|
+
end
|
916
|
+
@secondary_mood_cluster = secondary_mood_cluster
|
917
|
+
end
|
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
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Custom attribute writer method checking allowed values (enum).
|
1040
|
+
# @param [Object] origin_region Object to be assigned
|
1041
|
+
def origin_region=(origin_region)
|
1042
|
+
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"])
|
1043
|
+
unless validator.valid?(origin_region)
|
1044
|
+
fail ArgumentError, "invalid value for \"origin_region\", must be one of #{validator.allowable_values}."
|
1045
|
+
end
|
1046
|
+
@origin_region = origin_region
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# Custom attribute writer method checking allowed values (enum).
|
1050
|
+
# @param [Object] industry_suitability Object to be assigned
|
1051
|
+
def industry_suitability=(industry_suitability)
|
1052
|
+
validator = EnumAttributeValidator.new('String', ["Automobiles and Parts", "Consumer Products and Services", "Financial Services", "Food, Beverage and Tobacco", "Health Care", "Insurance", "Media", "Politics, Government and Organizations", "Real Estate", "Retail", "Technology", "Telecommunications", "Travel and Leisure"])
|
1053
|
+
unless validator.valid?(industry_suitability)
|
1054
|
+
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
1055
|
+
end
|
1056
|
+
@industry_suitability = industry_suitability
|
1057
|
+
end
|
1058
|
+
|
897
1059
|
# Custom attribute writer method checking allowed values (enum).
|
898
1060
|
# @param [Object] arousal Object to be assigned
|
899
1061
|
def arousal=(arousal)
|
@@ -1074,6 +1236,16 @@ module SongtradrApiClientRuby
|
|
1074
1236
|
@valence = valence
|
1075
1237
|
end
|
1076
1238
|
|
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
|
+
|
1077
1249
|
# Custom attribute writer method checking allowed values (enum).
|
1078
1250
|
# @param [Object] vocals Object to be assigned
|
1079
1251
|
def vocals=(vocals)
|
@@ -1094,136 +1266,6 @@ module SongtradrApiClientRuby
|
|
1094
1266
|
@origin_decade = origin_decade
|
1095
1267
|
end
|
1096
1268
|
|
1097
|
-
# Custom attribute writer method checking allowed values (enum).
|
1098
|
-
# @param [Object] language_of_performance Object to be assigned
|
1099
|
-
def language_of_performance=(language_of_performance)
|
1100
|
-
validator = EnumAttributeValidator.new('String', ["en", "de", "no", "fr", "es", "pt", "fi", "ru", "it", "la", "el", "ar", "nl", "ja", "pl", "sv", "zu", "da", "cs", "hu", "af", "hi", "tr", "zh", "ms", "pa", "id", "ko", "vi"])
|
1101
|
-
unless validator.valid?(language_of_performance)
|
1102
|
-
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
1103
|
-
end
|
1104
|
-
@language_of_performance = language_of_performance
|
1105
|
-
end
|
1106
|
-
|
1107
|
-
# Custom attribute writer method checking allowed values (enum).
|
1108
|
-
# @param [Object] production_rating Object to be assigned
|
1109
|
-
def production_rating=(production_rating)
|
1110
|
-
validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
1111
|
-
unless validator.valid?(production_rating)
|
1112
|
-
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{validator.allowable_values}."
|
1113
|
-
end
|
1114
|
-
@production_rating = production_rating
|
1115
|
-
end
|
1116
|
-
|
1117
|
-
# Custom attribute writer method checking allowed values (enum).
|
1118
|
-
# @param [Object] performance_rating Object to be assigned
|
1119
|
-
def performance_rating=(performance_rating)
|
1120
|
-
validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
1121
|
-
unless validator.valid?(performance_rating)
|
1122
|
-
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{validator.allowable_values}."
|
1123
|
-
end
|
1124
|
-
@performance_rating = performance_rating
|
1125
|
-
end
|
1126
|
-
|
1127
|
-
# Custom attribute writer method checking allowed values (enum).
|
1128
|
-
# @param [Object] song_rating Object to be assigned
|
1129
|
-
def song_rating=(song_rating)
|
1130
|
-
validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
1131
|
-
unless validator.valid?(song_rating)
|
1132
|
-
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{validator.allowable_values}."
|
1133
|
-
end
|
1134
|
-
@song_rating = song_rating
|
1135
|
-
end
|
1136
|
-
|
1137
|
-
# Custom attribute writer method checking allowed values (enum).
|
1138
|
-
# @param [Object] audience_age Object to be assigned
|
1139
|
-
def audience_age=(audience_age)
|
1140
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
1141
|
-
unless validator.valid?(audience_age)
|
1142
|
-
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{validator.allowable_values}."
|
1143
|
-
end
|
1144
|
-
@audience_age = audience_age
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
# Custom attribute writer method checking allowed values (enum).
|
1148
|
-
# @param [Object] secondary_audience_age Object to be assigned
|
1149
|
-
def secondary_audience_age=(secondary_audience_age)
|
1150
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
1151
|
-
unless validator.valid?(secondary_audience_age)
|
1152
|
-
fail ArgumentError, "invalid value for \"secondary_audience_age\", must be one of #{validator.allowable_values}."
|
1153
|
-
end
|
1154
|
-
@secondary_audience_age = secondary_audience_age
|
1155
|
-
end
|
1156
|
-
|
1157
|
-
# Custom attribute writer method checking allowed values (enum).
|
1158
|
-
# @param [Object] tertiary_audience_age Object to be assigned
|
1159
|
-
def tertiary_audience_age=(tertiary_audience_age)
|
1160
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
1161
|
-
unless validator.valid?(tertiary_audience_age)
|
1162
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_age\", must be one of #{validator.allowable_values}."
|
1163
|
-
end
|
1164
|
-
@tertiary_audience_age = tertiary_audience_age
|
1165
|
-
end
|
1166
|
-
|
1167
|
-
# Custom attribute writer method checking allowed values (enum).
|
1168
|
-
# @param [Object] audience_gender Object to be assigned
|
1169
|
-
def audience_gender=(audience_gender)
|
1170
|
-
validator = EnumAttributeValidator.new('String', ["male", "female"])
|
1171
|
-
unless validator.valid?(audience_gender)
|
1172
|
-
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{validator.allowable_values}."
|
1173
|
-
end
|
1174
|
-
@audience_gender = audience_gender
|
1175
|
-
end
|
1176
|
-
|
1177
|
-
# Custom attribute writer method checking allowed values (enum).
|
1178
|
-
# @param [Object] secondary_audience_region Object to be assigned
|
1179
|
-
def secondary_audience_region=(secondary_audience_region)
|
1180
|
-
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"])
|
1181
|
-
unless validator.valid?(secondary_audience_region)
|
1182
|
-
fail ArgumentError, "invalid value for \"secondary_audience_region\", must be one of #{validator.allowable_values}."
|
1183
|
-
end
|
1184
|
-
@secondary_audience_region = secondary_audience_region
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
# Custom attribute writer method checking allowed values (enum).
|
1188
|
-
# @param [Object] tertiary_audience_region Object to be assigned
|
1189
|
-
def tertiary_audience_region=(tertiary_audience_region)
|
1190
|
-
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"])
|
1191
|
-
unless validator.valid?(tertiary_audience_region)
|
1192
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_region\", must be one of #{validator.allowable_values}."
|
1193
|
-
end
|
1194
|
-
@tertiary_audience_region = tertiary_audience_region
|
1195
|
-
end
|
1196
|
-
|
1197
|
-
# Custom attribute writer method checking allowed values (enum).
|
1198
|
-
# @param [Object] origin_region Object to be assigned
|
1199
|
-
def origin_region=(origin_region)
|
1200
|
-
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"])
|
1201
|
-
unless validator.valid?(origin_region)
|
1202
|
-
fail ArgumentError, "invalid value for \"origin_region\", must be one of #{validator.allowable_values}."
|
1203
|
-
end
|
1204
|
-
@origin_region = origin_region
|
1205
|
-
end
|
1206
|
-
|
1207
|
-
# Custom attribute writer method checking allowed values (enum).
|
1208
|
-
# @param [Object] industry_suitability Object to be assigned
|
1209
|
-
def industry_suitability=(industry_suitability)
|
1210
|
-
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"])
|
1211
|
-
unless validator.valid?(industry_suitability)
|
1212
|
-
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
1213
|
-
end
|
1214
|
-
@industry_suitability = industry_suitability
|
1215
|
-
end
|
1216
|
-
|
1217
|
-
# Custom attribute writer method checking allowed values (enum).
|
1218
|
-
# @param [Object] audience_region Object to be assigned
|
1219
|
-
def audience_region=(audience_region)
|
1220
|
-
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"])
|
1221
|
-
unless validator.valid?(audience_region)
|
1222
|
-
fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
|
1223
|
-
end
|
1224
|
-
@audience_region = audience_region
|
1225
|
-
end
|
1226
|
-
|
1227
1269
|
# Custom attribute writer method checking allowed values (enum).
|
1228
1270
|
# @param [Object] curateability Object to be assigned
|
1229
1271
|
def curateability=(curateability)
|
@@ -1254,46 +1296,6 @@ module SongtradrApiClientRuby
|
|
1254
1296
|
@channel_suitability = channel_suitability
|
1255
1297
|
end
|
1256
1298
|
|
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
1299
|
# Custom attribute writer method checking allowed values (enum).
|
1298
1300
|
# @param [Object] key Object to be assigned
|
1299
1301
|
def key=(key)
|
@@ -1310,27 +1312,20 @@ module SongtradrApiClientRuby
|
|
1310
1312
|
return true if self.equal?(o)
|
1311
1313
|
self.class == o.class &&
|
1312
1314
|
space == o.space &&
|
1313
|
-
arousal == o.arousal &&
|
1314
|
-
dominant_instrument == o.dominant_instrument &&
|
1315
|
-
energy == o.energy &&
|
1316
|
-
engagement == o.engagement &&
|
1317
|
-
groovyness == o.groovyness &&
|
1318
|
-
harmony == o.harmony &&
|
1319
|
-
pleasantness == o.pleasantness &&
|
1320
|
-
primary_mood_cluster == o.primary_mood_cluster &&
|
1321
|
-
primary_sound_character == o.primary_sound_character &&
|
1322
|
-
rhythm == o.rhythm &&
|
1323
|
-
roughness == o.roughness &&
|
1324
|
-
scale == o.scale &&
|
1325
|
-
sound_generation == o.sound_generation &&
|
1326
|
-
tempo == o.tempo &&
|
1327
|
-
texture == o.texture &&
|
1328
|
-
timbre == o.timbre &&
|
1329
|
-
tonality == o.tonality &&
|
1330
|
-
valence == o.valence &&
|
1331
|
-
vocals == o.vocals &&
|
1332
|
-
origin_decade == o.origin_decade &&
|
1333
1315
|
language_of_performance == o.language_of_performance &&
|
1316
|
+
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
1317
|
+
secondary_mood_cluster == o.secondary_mood_cluster &&
|
1318
|
+
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
1319
|
+
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
1320
|
+
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
1321
|
+
vocals_affinity == o.vocals_affinity &&
|
1322
|
+
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
1323
|
+
secondary_instrument == o.secondary_instrument &&
|
1324
|
+
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1325
|
+
tertiary_instrument == o.tertiary_instrument &&
|
1326
|
+
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
1327
|
+
sound_generation_affinity == o.sound_generation_affinity &&
|
1328
|
+
rhythm_affinity == o.rhythm_affinity &&
|
1334
1329
|
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
1335
1330
|
tonality_affinity == o.tonality_affinity &&
|
1336
1331
|
bpm == o.bpm &&
|
@@ -1361,39 +1356,46 @@ module SongtradrApiClientRuby
|
|
1361
1356
|
use_case_affinity == o.use_case_affinity &&
|
1362
1357
|
industry_suitability == o.industry_suitability &&
|
1363
1358
|
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 &&
|
1364
1377
|
audience_region == o.audience_region &&
|
1378
|
+
vocals == o.vocals &&
|
1379
|
+
origin_decade == o.origin_decade &&
|
1365
1380
|
curateability == o.curateability &&
|
1366
1381
|
use_case == o.use_case &&
|
1367
1382
|
channel_suitability == o.channel_suitability &&
|
1368
|
-
|
1369
|
-
|
1370
|
-
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
1371
|
-
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
1372
|
-
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
1373
|
-
vocals_affinity == o.vocals_affinity &&
|
1374
|
-
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
1375
|
-
secondary_instrument == o.secondary_instrument &&
|
1376
|
-
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
1377
|
-
tertiary_instrument == o.tertiary_instrument &&
|
1378
|
-
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
1379
|
-
sound_generation_affinity == o.sound_generation_affinity &&
|
1380
|
-
rhythm_affinity == o.rhythm_affinity &&
|
1381
|
-
valence_affinity == o.valence_affinity &&
|
1382
|
-
arousal_affinity == o.arousal_affinity &&
|
1383
|
+
key == o.key &&
|
1384
|
+
channel_suitability_affinity == o.channel_suitability_affinity &&
|
1383
1385
|
pleasantness_affinity == o.pleasantness_affinity &&
|
1384
|
-
engagement_affinity == o.engagement_affinity &&
|
1385
|
-
energy_affinity == o.energy_affinity &&
|
1386
1386
|
tempo_affinity == o.tempo_affinity &&
|
1387
1387
|
scale_affinity == o.scale_affinity &&
|
1388
1388
|
timbre_affinity == o.timbre_affinity &&
|
1389
|
-
|
1390
|
-
|
1389
|
+
engagement_affinity == o.engagement_affinity &&
|
1390
|
+
energy_affinity == o.energy_affinity &&
|
1391
1391
|
texture_affinity == o.texture_affinity &&
|
1392
1392
|
groovyness_affinity == o.groovyness_affinity &&
|
1393
|
+
valence_affinity == o.valence_affinity &&
|
1394
|
+
arousal_affinity == o.arousal_affinity &&
|
1393
1395
|
space_affinity == o.space_affinity &&
|
1394
1396
|
key_affinity == o.key_affinity &&
|
1395
|
-
|
1396
|
-
|
1397
|
+
roughness_affinity == o.roughness_affinity &&
|
1398
|
+
harmony_affinity == o.harmony_affinity
|
1397
1399
|
end
|
1398
1400
|
|
1399
1401
|
# @see the `==` method
|
@@ -1405,44 +1407,37 @@ module SongtradrApiClientRuby
|
|
1405
1407
|
# Calculates hash code according to all attributes.
|
1406
1408
|
# @return [Integer] Hash code
|
1407
1409
|
def hash
|
1408
|
-
[space,
|
1410
|
+
[space, language_of_performance, primary_mood_cluster_affinity, secondary_mood_cluster, secondary_mood_cluster_affinity, tertiary_mood_cluster, tertiary_mood_cluster_affinity, vocals_affinity, dominant_instrument_affinity, secondary_instrument, secondary_instrument_affinity, tertiary_instrument, tertiary_instrument_affinity, sound_generation_affinity, rhythm_affinity, primary_sound_character_affinity, tonality_affinity, bpm, production_rating, production_rating_affinity, performance_rating, performance_rating_affinity, song_rating, song_rating_affinity, audience_age, audience_age_affinity, secondary_audience_age, secondary_audience_age_affinity, tertiary_audience_age, tertiary_audience_age_affinity, audience_gender, audience_gender_affinity, audience_region_affinity, secondary_audience_region, secondary_audience_region_affinity, tertiary_audience_region, tertiary_audience_region_affinity, origin_region, origin_region_affinity, origin_decade_affinity, language_of_performance_affinity, curateability_affinity, use_case_affinity, industry_suitability, industry_suitability_affinity, arousal, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, sound_generation, tempo, texture, timbre, tonality, valence, audience_region, vocals, origin_decade, curateability, use_case, channel_suitability, key, channel_suitability_affinity, pleasantness_affinity, tempo_affinity, scale_affinity, timbre_affinity, engagement_affinity, energy_affinity, texture_affinity, groovyness_affinity, valence_affinity, arousal_affinity, space_affinity, key_affinity, roughness_affinity, harmony_affinity].hash
|
1409
1411
|
end
|
1410
1412
|
|
1411
1413
|
# Builds the object from hash
|
1412
1414
|
# @param [Hash] attributes Model attributes in the form of hash
|
1413
1415
|
# @return [Object] Returns the model itself
|
1414
1416
|
def self.build_from_hash(attributes)
|
1415
|
-
new.build_from_hash(attributes)
|
1416
|
-
end
|
1417
|
-
|
1418
|
-
# Builds the object from hash
|
1419
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
1420
|
-
# @return [Object] Returns the model itself
|
1421
|
-
def build_from_hash(attributes)
|
1422
1417
|
return nil unless attributes.is_a?(Hash)
|
1423
1418
|
attributes = attributes.transform_keys(&:to_sym)
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1419
|
+
transformed_hash = {}
|
1420
|
+
openapi_types.each_pair do |key, type|
|
1421
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
1422
|
+
transformed_hash["#{key}"] = nil
|
1427
1423
|
elsif type =~ /\AArray<(.*)>/i
|
1428
1424
|
# check to ensure the input is an array given that the attribute
|
1429
1425
|
# is documented as an array but the input is not
|
1430
|
-
if attributes[
|
1431
|
-
|
1426
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
1427
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
1432
1428
|
end
|
1433
|
-
elsif !attributes[
|
1434
|
-
|
1429
|
+
elsif !attributes[attribute_map[key]].nil?
|
1430
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
1435
1431
|
end
|
1436
1432
|
end
|
1437
|
-
|
1438
|
-
self
|
1433
|
+
new(transformed_hash)
|
1439
1434
|
end
|
1440
1435
|
|
1441
1436
|
# Deserializes the data based on type
|
1442
1437
|
# @param string type Data type
|
1443
1438
|
# @param string value Value to be deserialized
|
1444
1439
|
# @return [Object] Deserialized data
|
1445
|
-
def _deserialize(type, value)
|
1440
|
+
def self._deserialize(type, value)
|
1446
1441
|
case type.to_sym
|
1447
1442
|
when :Time
|
1448
1443
|
Time.parse(value)
|