songtradr_api_client_ruby 1.17.0 → 2.0.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 +24 -22
- data/README.md +7 -11
- data/docs/FileSmallDTO.md +2 -2
- data/docs/MusicalFeaturesDTO.md +113 -109
- data/docs/RecordingApi.md +71 -69
- data/docs/RecordingMediumDTO.md +2 -2
- data/docs/SearchFilterValuesDTO.md +2 -0
- data/docs/UserApi.md +67 -187
- data/docs/UserDTO.md +2 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +2 -2
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +74 -71
- data/lib/songtradr_api_client_ruby/api/user_api.rb +86 -403
- data/lib/songtradr_api_client_ruby/api_client.rb +5 -4
- data/lib/songtradr_api_client_ruby/api_error.rb +2 -2
- data/lib/songtradr_api_client_ruby/configuration.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/error_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +14 -14
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +662 -631
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +24 -24
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +21 -3
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/token_request.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +2 -2
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +19 -3
- data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +2 -2
- data/lib/songtradr_api_client_ruby/version.rb +3 -3
- data/lib/songtradr_api_client_ruby.rb +2 -6
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +3 -2
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/recording_api_spec.rb +14 -13
- data/spec/api/user_api_spec.rb +15 -74
- data/spec/models/category_medium_dto_spec.rb +2 -2
- data/spec/models/category_minimal_dto_spec.rb +2 -2
- data/spec/models/config_access_dto_spec.rb +2 -2
- data/spec/models/config_identifier_dto_spec.rb +2 -2
- data/spec/models/contributor_type_dto_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/field_summary_dto_spec.rb +2 -2
- data/spec/models/file_dto_spec.rb +2 -2
- data/spec/models/file_list_dto_spec.rb +2 -2
- data/spec/models/file_small_dto_spec.rb +10 -10
- data/spec/models/file_upload_dto_spec.rb +2 -2
- data/spec/models/file_w_ith_url_dto_spec.rb +2 -2
- data/spec/models/files_summary_dto_spec.rb +2 -2
- data/spec/models/forgot_password_dto_spec.rb +2 -2
- data/spec/models/genre_dto_spec.rb +2 -2
- data/spec/models/genre_minimal_dto_spec.rb +2 -2
- data/spec/models/genres_summary_dto_spec.rb +2 -2
- data/spec/models/image_recognition_response_spec.rb +2 -2
- data/spec/models/init_put_recording_audio_dto_spec.rb +2 -2
- data/spec/models/jwt_token_dto_spec.rb +2 -2
- data/spec/models/login_dto_spec.rb +2 -2
- data/spec/models/musical_features_dto_spec.rb +230 -214
- data/spec/models/party_small_dto_spec.rb +2 -2
- data/spec/models/recording_for_similarity_search_dto_spec.rb +2 -2
- data/spec/models/recording_genre_prediction_dto_spec.rb +2 -2
- data/spec/models/recording_list_dto_spec.rb +2 -2
- data/spec/models/recording_medium_dto_spec.rb +8 -8
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +2 -2
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +2 -2
- data/spec/models/recording_party_dto_spec.rb +2 -2
- data/spec/models/recording_small_dto_spec.rb +2 -2
- data/spec/models/recording_tag_small_dto_spec.rb +2 -2
- data/spec/models/save_user_dto_spec.rb +2 -2
- data/spec/models/search_filter_values_dto_spec.rb +8 -2
- data/spec/models/sign_up_dto_spec.rb +2 -2
- data/spec/models/tag_dto_spec.rb +2 -2
- data/spec/models/tag_small_dto_spec.rb +2 -2
- data/spec/models/taggram_dto_spec.rb +2 -2
- data/spec/models/tags_summary_dto_spec.rb +2 -2
- data/spec/models/tagstrength_dto_spec.rb +2 -2
- data/spec/models/title_dto_spec.rb +2 -2
- data/spec/models/token_request_spec.rb +2 -2
- data/spec/models/track_dto_spec.rb +2 -2
- data/spec/models/update_password_dto_spec.rb +2 -2
- data/spec/models/user_dto_spec.rb +8 -2
- data/spec/models/video_recognition_response_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +55 -57
- data/docs/CuratePlaylistDTO.md +0 -26
- data/docs/CuratePlaylistResponseDTO.md +0 -18
- data/docs/PlaylistApi.md +0 -77
- data/docs/SearchRecordingGranularDTO.md +0 -20
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +0 -99
- data/lib/songtradr_api_client_ruby/models/curate_playlist_dto.rb +0 -256
- data/lib/songtradr_api_client_ruby/models/curate_playlist_response_dto.rb +0 -216
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +0 -232
- data/spec/api/playlist_api_spec.rb +0 -47
- data/spec/models/curate_playlist_dto_spec.rb +0 -60
- data/spec/models/curate_playlist_response_dto_spec.rb +0 -36
- data/spec/models/search_recording_granular_dto_spec.rb +0 -42
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.
|
|
9
|
+
OpenAPI Generator version: 7.4.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,98 +19,42 @@ module SongtradrApiClientRuby
|
|
|
19
19
|
# Search for space
|
|
20
20
|
attr_accessor :space
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Search for a language of the lyrics
|
|
25
|
-
attr_accessor :secondary_mood_cluster
|
|
26
|
-
|
|
27
|
-
attr_accessor :production_rating
|
|
28
|
-
|
|
29
|
-
attr_accessor :production_rating_affinity
|
|
30
|
-
|
|
31
|
-
attr_accessor :performance_rating
|
|
32
|
-
|
|
33
|
-
attr_accessor :performance_rating_affinity
|
|
34
|
-
|
|
35
|
-
attr_accessor :song_rating
|
|
36
|
-
|
|
37
|
-
attr_accessor :song_rating_affinity
|
|
38
|
-
|
|
39
|
-
attr_accessor :audience_age
|
|
40
|
-
|
|
41
|
-
attr_accessor :audience_age_affinity
|
|
42
|
-
|
|
43
|
-
attr_accessor :secondary_audience_age
|
|
44
|
-
|
|
45
|
-
attr_accessor :secondary_audience_age_affinity
|
|
46
|
-
|
|
47
|
-
attr_accessor :tertiary_audience_age
|
|
48
|
-
|
|
49
|
-
attr_accessor :tertiary_audience_age_affinity
|
|
50
|
-
|
|
51
|
-
attr_accessor :audience_gender
|
|
52
|
-
|
|
53
|
-
attr_accessor :audience_gender_affinity
|
|
54
|
-
|
|
55
|
-
attr_accessor :audience_region_affinity
|
|
56
|
-
|
|
57
|
-
attr_accessor :secondary_audience_region
|
|
58
|
-
|
|
59
|
-
attr_accessor :secondary_audience_region_affinity
|
|
60
|
-
|
|
61
|
-
attr_accessor :tertiary_audience_region
|
|
62
|
-
|
|
63
|
-
attr_accessor :tertiary_audience_region_affinity
|
|
64
|
-
|
|
65
|
-
attr_accessor :origin_region
|
|
66
|
-
|
|
67
|
-
attr_accessor :origin_region_affinity
|
|
68
|
-
|
|
69
|
-
attr_accessor :origin_decade_affinity
|
|
70
|
-
|
|
71
|
-
attr_accessor :language_of_performance_affinity
|
|
72
|
-
|
|
73
|
-
attr_accessor :curateability_affinity
|
|
74
|
-
|
|
75
|
-
attr_accessor :use_case_affinity
|
|
22
|
+
# Search for an arousal
|
|
23
|
+
attr_accessor :arousal
|
|
76
24
|
|
|
77
|
-
|
|
78
|
-
attr_accessor :industry_suitability
|
|
25
|
+
attr_accessor :valence_affinity
|
|
79
26
|
|
|
80
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :arousal_affinity
|
|
81
28
|
|
|
82
|
-
attr_accessor :
|
|
29
|
+
attr_accessor :pleasantness_affinity
|
|
83
30
|
|
|
84
|
-
|
|
85
|
-
attr_accessor :tertiary_mood_cluster
|
|
31
|
+
attr_accessor :engagement_affinity
|
|
86
32
|
|
|
87
|
-
attr_accessor :
|
|
33
|
+
attr_accessor :energy_affinity
|
|
88
34
|
|
|
89
|
-
attr_accessor :
|
|
35
|
+
attr_accessor :tempo_affinity
|
|
90
36
|
|
|
91
|
-
attr_accessor :
|
|
37
|
+
attr_accessor :scale_affinity
|
|
92
38
|
|
|
93
|
-
|
|
94
|
-
attr_accessor :secondary_instrument
|
|
39
|
+
attr_accessor :timbre_affinity
|
|
95
40
|
|
|
96
|
-
attr_accessor :
|
|
41
|
+
attr_accessor :roughness_affinity
|
|
97
42
|
|
|
98
|
-
|
|
99
|
-
attr_accessor :tertiary_instrument
|
|
43
|
+
attr_accessor :harmony_affinity
|
|
100
44
|
|
|
101
|
-
attr_accessor :
|
|
45
|
+
attr_accessor :texture_affinity
|
|
102
46
|
|
|
103
|
-
attr_accessor :
|
|
47
|
+
attr_accessor :groovyness_affinity
|
|
104
48
|
|
|
105
|
-
attr_accessor :
|
|
49
|
+
attr_accessor :space_affinity
|
|
106
50
|
|
|
107
|
-
attr_accessor :
|
|
51
|
+
attr_accessor :loudness_affinity
|
|
108
52
|
|
|
109
|
-
attr_accessor :
|
|
53
|
+
attr_accessor :key_affinity
|
|
110
54
|
|
|
111
|
-
attr_accessor :
|
|
55
|
+
attr_accessor :channel_suitability_affinity
|
|
112
56
|
|
|
113
|
-
attr_accessor :
|
|
57
|
+
attr_accessor :language_of_performance
|
|
114
58
|
|
|
115
59
|
# Search for a dominant instrument
|
|
116
60
|
attr_accessor :dominant_instrument
|
|
@@ -181,40 +125,101 @@ module SongtradrApiClientRuby
|
|
|
181
125
|
# Search for social media suitability
|
|
182
126
|
attr_accessor :channel_suitability
|
|
183
127
|
|
|
184
|
-
|
|
128
|
+
# Search for loudness
|
|
129
|
+
attr_accessor :loudness
|
|
185
130
|
|
|
186
|
-
|
|
187
|
-
attr_accessor :arousal
|
|
131
|
+
attr_accessor :primary_mood_cluster_affinity
|
|
188
132
|
|
|
189
|
-
|
|
133
|
+
# Search for a language of the lyrics
|
|
134
|
+
attr_accessor :secondary_mood_cluster
|
|
190
135
|
|
|
191
|
-
attr_accessor :
|
|
136
|
+
attr_accessor :secondary_mood_cluster_affinity
|
|
192
137
|
|
|
193
|
-
|
|
138
|
+
# Search for a language of the lyrics
|
|
139
|
+
attr_accessor :tertiary_mood_cluster
|
|
194
140
|
|
|
195
|
-
attr_accessor :
|
|
141
|
+
attr_accessor :tertiary_mood_cluster_affinity
|
|
196
142
|
|
|
197
|
-
attr_accessor :
|
|
143
|
+
attr_accessor :vocals_affinity
|
|
198
144
|
|
|
199
|
-
attr_accessor :
|
|
145
|
+
attr_accessor :dominant_instrument_affinity
|
|
200
146
|
|
|
201
|
-
|
|
147
|
+
# Search for a dominant instrument
|
|
148
|
+
attr_accessor :secondary_instrument
|
|
202
149
|
|
|
203
|
-
attr_accessor :
|
|
150
|
+
attr_accessor :secondary_instrument_affinity
|
|
204
151
|
|
|
205
|
-
|
|
152
|
+
# Search for a dominant instrument
|
|
153
|
+
attr_accessor :tertiary_instrument
|
|
206
154
|
|
|
207
|
-
attr_accessor :
|
|
155
|
+
attr_accessor :tertiary_instrument_affinity
|
|
208
156
|
|
|
209
|
-
attr_accessor :
|
|
157
|
+
attr_accessor :sound_generation_affinity
|
|
210
158
|
|
|
211
|
-
attr_accessor :
|
|
159
|
+
attr_accessor :rhythm_affinity
|
|
212
160
|
|
|
213
|
-
attr_accessor :
|
|
161
|
+
attr_accessor :primary_sound_character_affinity
|
|
214
162
|
|
|
215
|
-
attr_accessor :
|
|
163
|
+
attr_accessor :tonality_affinity
|
|
216
164
|
|
|
217
|
-
attr_accessor :
|
|
165
|
+
attr_accessor :bpm
|
|
166
|
+
|
|
167
|
+
attr_accessor :production_rating
|
|
168
|
+
|
|
169
|
+
attr_accessor :production_rating_affinity
|
|
170
|
+
|
|
171
|
+
attr_accessor :performance_rating
|
|
172
|
+
|
|
173
|
+
attr_accessor :performance_rating_affinity
|
|
174
|
+
|
|
175
|
+
attr_accessor :song_rating
|
|
176
|
+
|
|
177
|
+
attr_accessor :song_rating_affinity
|
|
178
|
+
|
|
179
|
+
attr_accessor :audience_age
|
|
180
|
+
|
|
181
|
+
attr_accessor :audience_age_affinity
|
|
182
|
+
|
|
183
|
+
attr_accessor :secondary_audience_age
|
|
184
|
+
|
|
185
|
+
attr_accessor :secondary_audience_age_affinity
|
|
186
|
+
|
|
187
|
+
attr_accessor :tertiary_audience_age
|
|
188
|
+
|
|
189
|
+
attr_accessor :tertiary_audience_age_affinity
|
|
190
|
+
|
|
191
|
+
attr_accessor :audience_gender
|
|
192
|
+
|
|
193
|
+
attr_accessor :audience_gender_affinity
|
|
194
|
+
|
|
195
|
+
attr_accessor :audience_region_affinity
|
|
196
|
+
|
|
197
|
+
attr_accessor :secondary_audience_region
|
|
198
|
+
|
|
199
|
+
attr_accessor :secondary_audience_region_affinity
|
|
200
|
+
|
|
201
|
+
attr_accessor :tertiary_audience_region
|
|
202
|
+
|
|
203
|
+
attr_accessor :tertiary_audience_region_affinity
|
|
204
|
+
|
|
205
|
+
attr_accessor :origin_region
|
|
206
|
+
|
|
207
|
+
attr_accessor :origin_region_affinity
|
|
208
|
+
|
|
209
|
+
attr_accessor :origin_decade_affinity
|
|
210
|
+
|
|
211
|
+
attr_accessor :language_of_performance_affinity
|
|
212
|
+
|
|
213
|
+
attr_accessor :curateability_affinity
|
|
214
|
+
|
|
215
|
+
attr_accessor :use_case_affinity
|
|
216
|
+
|
|
217
|
+
# Search for Industry suitability
|
|
218
|
+
attr_accessor :industry_suitability
|
|
219
|
+
|
|
220
|
+
attr_accessor :industry_suitability_affinity
|
|
221
|
+
|
|
222
|
+
attr_accessor :audience_region
|
|
218
223
|
|
|
219
224
|
class EnumAttributeValidator
|
|
220
225
|
attr_reader :datatype
|
|
@@ -242,8 +247,64 @@ module SongtradrApiClientRuby
|
|
|
242
247
|
def self.attribute_map
|
|
243
248
|
{
|
|
244
249
|
:'space' => :'space',
|
|
250
|
+
:'arousal' => :'arousal',
|
|
251
|
+
:'valence_affinity' => :'valenceAffinity',
|
|
252
|
+
:'arousal_affinity' => :'arousalAffinity',
|
|
253
|
+
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
|
254
|
+
:'engagement_affinity' => :'engagementAffinity',
|
|
255
|
+
:'energy_affinity' => :'energyAffinity',
|
|
256
|
+
:'tempo_affinity' => :'tempoAffinity',
|
|
257
|
+
:'scale_affinity' => :'scaleAffinity',
|
|
258
|
+
:'timbre_affinity' => :'timbreAffinity',
|
|
259
|
+
:'roughness_affinity' => :'roughnessAffinity',
|
|
260
|
+
:'harmony_affinity' => :'harmonyAffinity',
|
|
261
|
+
:'texture_affinity' => :'textureAffinity',
|
|
262
|
+
:'groovyness_affinity' => :'groovynessAffinity',
|
|
263
|
+
:'space_affinity' => :'spaceAffinity',
|
|
264
|
+
:'loudness_affinity' => :'loudnessAffinity',
|
|
265
|
+
:'key_affinity' => :'keyAffinity',
|
|
266
|
+
:'channel_suitability_affinity' => :'channelSuitabilityAffinity',
|
|
267
|
+
:'language_of_performance' => :'languageOfPerformance',
|
|
268
|
+
:'dominant_instrument' => :'dominantInstrument',
|
|
269
|
+
:'energy' => :'energy',
|
|
270
|
+
:'engagement' => :'engagement',
|
|
271
|
+
:'groovyness' => :'groovyness',
|
|
272
|
+
:'harmony' => :'harmony',
|
|
273
|
+
:'pleasantness' => :'pleasantness',
|
|
274
|
+
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
275
|
+
:'primary_sound_character' => :'primarySoundCharacter',
|
|
276
|
+
:'rhythm' => :'rhythm',
|
|
277
|
+
:'roughness' => :'roughness',
|
|
278
|
+
:'scale' => :'scale',
|
|
279
|
+
:'key' => :'key',
|
|
280
|
+
:'sound_generation' => :'soundGeneration',
|
|
281
|
+
:'tempo' => :'tempo',
|
|
282
|
+
:'texture' => :'texture',
|
|
283
|
+
:'timbre' => :'timbre',
|
|
284
|
+
:'tonality' => :'tonality',
|
|
285
|
+
:'valence' => :'valence',
|
|
286
|
+
:'vocals' => :'vocals',
|
|
287
|
+
:'origin_decade' => :'originDecade',
|
|
288
|
+
:'curateability' => :'curateability',
|
|
289
|
+
:'use_case' => :'useCase',
|
|
290
|
+
:'channel_suitability' => :'channelSuitability',
|
|
291
|
+
:'loudness' => :'loudness',
|
|
245
292
|
:'primary_mood_cluster_affinity' => :'primaryMoodClusterAffinity',
|
|
246
293
|
:'secondary_mood_cluster' => :'secondaryMoodCluster',
|
|
294
|
+
:'secondary_mood_cluster_affinity' => :'secondaryMoodClusterAffinity',
|
|
295
|
+
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
|
296
|
+
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
|
297
|
+
:'vocals_affinity' => :'vocalsAffinity',
|
|
298
|
+
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
|
299
|
+
:'secondary_instrument' => :'secondaryInstrument',
|
|
300
|
+
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
|
301
|
+
:'tertiary_instrument' => :'tertiaryInstrument',
|
|
302
|
+
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
|
303
|
+
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
|
304
|
+
:'rhythm_affinity' => :'rhythmAffinity',
|
|
305
|
+
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
|
306
|
+
:'tonality_affinity' => :'tonalityAffinity',
|
|
307
|
+
:'bpm' => :'bpm',
|
|
247
308
|
:'production_rating' => :'productionRating',
|
|
248
309
|
:'production_rating_affinity' => :'productionRatingAffinity',
|
|
249
310
|
:'performance_rating' => :'performanceRating',
|
|
@@ -271,61 +332,7 @@ module SongtradrApiClientRuby
|
|
|
271
332
|
:'use_case_affinity' => :'useCaseAffinity',
|
|
272
333
|
:'industry_suitability' => :'industrySuitability',
|
|
273
334
|
:'industry_suitability_affinity' => :'industrySuitabilityAffinity',
|
|
274
|
-
:'
|
|
275
|
-
:'tertiary_mood_cluster' => :'tertiaryMoodCluster',
|
|
276
|
-
:'tertiary_mood_cluster_affinity' => :'tertiaryMoodClusterAffinity',
|
|
277
|
-
:'vocals_affinity' => :'vocalsAffinity',
|
|
278
|
-
:'dominant_instrument_affinity' => :'dominantInstrumentAffinity',
|
|
279
|
-
:'secondary_instrument' => :'secondaryInstrument',
|
|
280
|
-
:'secondary_instrument_affinity' => :'secondaryInstrumentAffinity',
|
|
281
|
-
:'tertiary_instrument' => :'tertiaryInstrument',
|
|
282
|
-
:'tertiary_instrument_affinity' => :'tertiaryInstrumentAffinity',
|
|
283
|
-
:'sound_generation_affinity' => :'soundGenerationAffinity',
|
|
284
|
-
:'rhythm_affinity' => :'rhythmAffinity',
|
|
285
|
-
:'primary_sound_character_affinity' => :'primarySoundCharacterAffinity',
|
|
286
|
-
:'tonality_affinity' => :'tonalityAffinity',
|
|
287
|
-
:'bpm' => :'bpm',
|
|
288
|
-
:'audience_region' => :'audienceRegion',
|
|
289
|
-
:'dominant_instrument' => :'dominantInstrument',
|
|
290
|
-
:'energy' => :'energy',
|
|
291
|
-
:'engagement' => :'engagement',
|
|
292
|
-
:'groovyness' => :'groovyness',
|
|
293
|
-
:'harmony' => :'harmony',
|
|
294
|
-
:'pleasantness' => :'pleasantness',
|
|
295
|
-
:'primary_mood_cluster' => :'primaryMoodCluster',
|
|
296
|
-
:'primary_sound_character' => :'primarySoundCharacter',
|
|
297
|
-
:'rhythm' => :'rhythm',
|
|
298
|
-
:'roughness' => :'roughness',
|
|
299
|
-
:'scale' => :'scale',
|
|
300
|
-
:'key' => :'key',
|
|
301
|
-
:'sound_generation' => :'soundGeneration',
|
|
302
|
-
:'tempo' => :'tempo',
|
|
303
|
-
:'texture' => :'texture',
|
|
304
|
-
:'timbre' => :'timbre',
|
|
305
|
-
:'tonality' => :'tonality',
|
|
306
|
-
:'valence' => :'valence',
|
|
307
|
-
:'vocals' => :'vocals',
|
|
308
|
-
:'origin_decade' => :'originDecade',
|
|
309
|
-
:'curateability' => :'curateability',
|
|
310
|
-
:'use_case' => :'useCase',
|
|
311
|
-
:'channel_suitability' => :'channelSuitability',
|
|
312
|
-
:'language_of_performance' => :'languageOfPerformance',
|
|
313
|
-
:'arousal' => :'arousal',
|
|
314
|
-
:'valence_affinity' => :'valenceAffinity',
|
|
315
|
-
:'arousal_affinity' => :'arousalAffinity',
|
|
316
|
-
:'pleasantness_affinity' => :'pleasantnessAffinity',
|
|
317
|
-
:'engagement_affinity' => :'engagementAffinity',
|
|
318
|
-
:'energy_affinity' => :'energyAffinity',
|
|
319
|
-
:'tempo_affinity' => :'tempoAffinity',
|
|
320
|
-
:'scale_affinity' => :'scaleAffinity',
|
|
321
|
-
:'timbre_affinity' => :'timbreAffinity',
|
|
322
|
-
:'roughness_affinity' => :'roughnessAffinity',
|
|
323
|
-
:'harmony_affinity' => :'harmonyAffinity',
|
|
324
|
-
:'texture_affinity' => :'textureAffinity',
|
|
325
|
-
:'groovyness_affinity' => :'groovynessAffinity',
|
|
326
|
-
:'space_affinity' => :'spaceAffinity',
|
|
327
|
-
:'key_affinity' => :'keyAffinity',
|
|
328
|
-
:'channel_suitability_affinity' => :'channelSuitabilityAffinity'
|
|
335
|
+
:'audience_region' => :'audienceRegion'
|
|
329
336
|
}
|
|
330
337
|
end
|
|
331
338
|
|
|
@@ -338,8 +345,64 @@ module SongtradrApiClientRuby
|
|
|
338
345
|
def self.openapi_types
|
|
339
346
|
{
|
|
340
347
|
:'space' => :'String',
|
|
348
|
+
:'arousal' => :'String',
|
|
349
|
+
:'valence_affinity' => :'Float',
|
|
350
|
+
:'arousal_affinity' => :'Float',
|
|
351
|
+
:'pleasantness_affinity' => :'Float',
|
|
352
|
+
:'engagement_affinity' => :'Float',
|
|
353
|
+
:'energy_affinity' => :'Float',
|
|
354
|
+
:'tempo_affinity' => :'Float',
|
|
355
|
+
:'scale_affinity' => :'Float',
|
|
356
|
+
:'timbre_affinity' => :'Float',
|
|
357
|
+
:'roughness_affinity' => :'Float',
|
|
358
|
+
:'harmony_affinity' => :'Float',
|
|
359
|
+
:'texture_affinity' => :'Float',
|
|
360
|
+
:'groovyness_affinity' => :'Float',
|
|
361
|
+
:'space_affinity' => :'Float',
|
|
362
|
+
:'loudness_affinity' => :'Float',
|
|
363
|
+
:'key_affinity' => :'Float',
|
|
364
|
+
:'channel_suitability_affinity' => :'Float',
|
|
365
|
+
:'language_of_performance' => :'String',
|
|
366
|
+
:'dominant_instrument' => :'String',
|
|
367
|
+
:'energy' => :'String',
|
|
368
|
+
:'engagement' => :'String',
|
|
369
|
+
:'groovyness' => :'String',
|
|
370
|
+
:'harmony' => :'String',
|
|
371
|
+
:'pleasantness' => :'String',
|
|
372
|
+
:'primary_mood_cluster' => :'String',
|
|
373
|
+
:'primary_sound_character' => :'String',
|
|
374
|
+
:'rhythm' => :'String',
|
|
375
|
+
:'roughness' => :'String',
|
|
376
|
+
:'scale' => :'String',
|
|
377
|
+
:'key' => :'String',
|
|
378
|
+
:'sound_generation' => :'String',
|
|
379
|
+
:'tempo' => :'String',
|
|
380
|
+
:'texture' => :'String',
|
|
381
|
+
:'timbre' => :'String',
|
|
382
|
+
:'tonality' => :'String',
|
|
383
|
+
:'valence' => :'String',
|
|
384
|
+
:'vocals' => :'String',
|
|
385
|
+
:'origin_decade' => :'String',
|
|
386
|
+
:'curateability' => :'String',
|
|
387
|
+
:'use_case' => :'String',
|
|
388
|
+
:'channel_suitability' => :'String',
|
|
389
|
+
:'loudness' => :'String',
|
|
341
390
|
:'primary_mood_cluster_affinity' => :'Float',
|
|
342
391
|
:'secondary_mood_cluster' => :'String',
|
|
392
|
+
:'secondary_mood_cluster_affinity' => :'Float',
|
|
393
|
+
:'tertiary_mood_cluster' => :'String',
|
|
394
|
+
:'tertiary_mood_cluster_affinity' => :'Float',
|
|
395
|
+
:'vocals_affinity' => :'Float',
|
|
396
|
+
:'dominant_instrument_affinity' => :'Float',
|
|
397
|
+
:'secondary_instrument' => :'String',
|
|
398
|
+
:'secondary_instrument_affinity' => :'Float',
|
|
399
|
+
:'tertiary_instrument' => :'String',
|
|
400
|
+
:'tertiary_instrument_affinity' => :'Float',
|
|
401
|
+
:'sound_generation_affinity' => :'Float',
|
|
402
|
+
:'rhythm_affinity' => :'Float',
|
|
403
|
+
:'primary_sound_character_affinity' => :'Float',
|
|
404
|
+
:'tonality_affinity' => :'Float',
|
|
405
|
+
:'bpm' => :'Float',
|
|
343
406
|
:'production_rating' => :'String',
|
|
344
407
|
:'production_rating_affinity' => :'Float',
|
|
345
408
|
:'performance_rating' => :'String',
|
|
@@ -367,61 +430,7 @@ module SongtradrApiClientRuby
|
|
|
367
430
|
:'use_case_affinity' => :'Float',
|
|
368
431
|
:'industry_suitability' => :'String',
|
|
369
432
|
:'industry_suitability_affinity' => :'Float',
|
|
370
|
-
:'
|
|
371
|
-
:'tertiary_mood_cluster' => :'String',
|
|
372
|
-
:'tertiary_mood_cluster_affinity' => :'Float',
|
|
373
|
-
:'vocals_affinity' => :'Float',
|
|
374
|
-
:'dominant_instrument_affinity' => :'Float',
|
|
375
|
-
:'secondary_instrument' => :'String',
|
|
376
|
-
:'secondary_instrument_affinity' => :'Float',
|
|
377
|
-
:'tertiary_instrument' => :'String',
|
|
378
|
-
:'tertiary_instrument_affinity' => :'Float',
|
|
379
|
-
:'sound_generation_affinity' => :'Float',
|
|
380
|
-
:'rhythm_affinity' => :'Float',
|
|
381
|
-
:'primary_sound_character_affinity' => :'Float',
|
|
382
|
-
:'tonality_affinity' => :'Float',
|
|
383
|
-
:'bpm' => :'Float',
|
|
384
|
-
:'audience_region' => :'String',
|
|
385
|
-
:'dominant_instrument' => :'String',
|
|
386
|
-
:'energy' => :'String',
|
|
387
|
-
:'engagement' => :'String',
|
|
388
|
-
:'groovyness' => :'String',
|
|
389
|
-
:'harmony' => :'String',
|
|
390
|
-
:'pleasantness' => :'String',
|
|
391
|
-
:'primary_mood_cluster' => :'String',
|
|
392
|
-
:'primary_sound_character' => :'String',
|
|
393
|
-
:'rhythm' => :'String',
|
|
394
|
-
:'roughness' => :'String',
|
|
395
|
-
:'scale' => :'String',
|
|
396
|
-
:'key' => :'String',
|
|
397
|
-
:'sound_generation' => :'String',
|
|
398
|
-
:'tempo' => :'String',
|
|
399
|
-
:'texture' => :'String',
|
|
400
|
-
:'timbre' => :'String',
|
|
401
|
-
:'tonality' => :'String',
|
|
402
|
-
:'valence' => :'String',
|
|
403
|
-
:'vocals' => :'String',
|
|
404
|
-
:'origin_decade' => :'String',
|
|
405
|
-
:'curateability' => :'String',
|
|
406
|
-
:'use_case' => :'String',
|
|
407
|
-
:'channel_suitability' => :'String',
|
|
408
|
-
:'language_of_performance' => :'String',
|
|
409
|
-
:'arousal' => :'String',
|
|
410
|
-
:'valence_affinity' => :'Float',
|
|
411
|
-
:'arousal_affinity' => :'Float',
|
|
412
|
-
:'pleasantness_affinity' => :'Float',
|
|
413
|
-
:'engagement_affinity' => :'Float',
|
|
414
|
-
:'energy_affinity' => :'Float',
|
|
415
|
-
:'tempo_affinity' => :'Float',
|
|
416
|
-
:'scale_affinity' => :'Float',
|
|
417
|
-
:'timbre_affinity' => :'Float',
|
|
418
|
-
:'roughness_affinity' => :'Float',
|
|
419
|
-
:'harmony_affinity' => :'Float',
|
|
420
|
-
:'texture_affinity' => :'Float',
|
|
421
|
-
:'groovyness_affinity' => :'Float',
|
|
422
|
-
:'space_affinity' => :'Float',
|
|
423
|
-
:'key_affinity' => :'Float',
|
|
424
|
-
:'channel_suitability_affinity' => :'Float'
|
|
433
|
+
:'audience_region' => :'String'
|
|
425
434
|
}
|
|
426
435
|
end
|
|
427
436
|
|
|
@@ -450,120 +459,180 @@ module SongtradrApiClientRuby
|
|
|
450
459
|
self.space = attributes[:'space']
|
|
451
460
|
end
|
|
452
461
|
|
|
453
|
-
if attributes.key?(:'
|
|
454
|
-
self.
|
|
462
|
+
if attributes.key?(:'arousal')
|
|
463
|
+
self.arousal = attributes[:'arousal']
|
|
455
464
|
end
|
|
456
465
|
|
|
457
|
-
if attributes.key?(:'
|
|
458
|
-
self.
|
|
466
|
+
if attributes.key?(:'valence_affinity')
|
|
467
|
+
self.valence_affinity = attributes[:'valence_affinity']
|
|
459
468
|
end
|
|
460
469
|
|
|
461
|
-
if attributes.key?(:'
|
|
462
|
-
self.
|
|
470
|
+
if attributes.key?(:'arousal_affinity')
|
|
471
|
+
self.arousal_affinity = attributes[:'arousal_affinity']
|
|
463
472
|
end
|
|
464
473
|
|
|
465
|
-
if attributes.key?(:'
|
|
466
|
-
self.
|
|
474
|
+
if attributes.key?(:'pleasantness_affinity')
|
|
475
|
+
self.pleasantness_affinity = attributes[:'pleasantness_affinity']
|
|
467
476
|
end
|
|
468
477
|
|
|
469
|
-
if attributes.key?(:'
|
|
470
|
-
self.
|
|
478
|
+
if attributes.key?(:'engagement_affinity')
|
|
479
|
+
self.engagement_affinity = attributes[:'engagement_affinity']
|
|
471
480
|
end
|
|
472
481
|
|
|
473
|
-
if attributes.key?(:'
|
|
474
|
-
self.
|
|
482
|
+
if attributes.key?(:'energy_affinity')
|
|
483
|
+
self.energy_affinity = attributes[:'energy_affinity']
|
|
475
484
|
end
|
|
476
485
|
|
|
477
|
-
if attributes.key?(:'
|
|
478
|
-
self.
|
|
486
|
+
if attributes.key?(:'tempo_affinity')
|
|
487
|
+
self.tempo_affinity = attributes[:'tempo_affinity']
|
|
479
488
|
end
|
|
480
489
|
|
|
481
|
-
if attributes.key?(:'
|
|
482
|
-
self.
|
|
490
|
+
if attributes.key?(:'scale_affinity')
|
|
491
|
+
self.scale_affinity = attributes[:'scale_affinity']
|
|
483
492
|
end
|
|
484
493
|
|
|
485
|
-
if attributes.key?(:'
|
|
486
|
-
self.
|
|
494
|
+
if attributes.key?(:'timbre_affinity')
|
|
495
|
+
self.timbre_affinity = attributes[:'timbre_affinity']
|
|
487
496
|
end
|
|
488
497
|
|
|
489
|
-
if attributes.key?(:'
|
|
490
|
-
self.
|
|
498
|
+
if attributes.key?(:'roughness_affinity')
|
|
499
|
+
self.roughness_affinity = attributes[:'roughness_affinity']
|
|
491
500
|
end
|
|
492
501
|
|
|
493
|
-
if attributes.key?(:'
|
|
494
|
-
self.
|
|
502
|
+
if attributes.key?(:'harmony_affinity')
|
|
503
|
+
self.harmony_affinity = attributes[:'harmony_affinity']
|
|
495
504
|
end
|
|
496
505
|
|
|
497
|
-
if attributes.key?(:'
|
|
498
|
-
self.
|
|
506
|
+
if attributes.key?(:'texture_affinity')
|
|
507
|
+
self.texture_affinity = attributes[:'texture_affinity']
|
|
499
508
|
end
|
|
500
509
|
|
|
501
|
-
if attributes.key?(:'
|
|
502
|
-
self.
|
|
510
|
+
if attributes.key?(:'groovyness_affinity')
|
|
511
|
+
self.groovyness_affinity = attributes[:'groovyness_affinity']
|
|
503
512
|
end
|
|
504
513
|
|
|
505
|
-
if attributes.key?(:'
|
|
506
|
-
self.
|
|
514
|
+
if attributes.key?(:'space_affinity')
|
|
515
|
+
self.space_affinity = attributes[:'space_affinity']
|
|
507
516
|
end
|
|
508
517
|
|
|
509
|
-
if attributes.key?(:'
|
|
510
|
-
self.
|
|
518
|
+
if attributes.key?(:'loudness_affinity')
|
|
519
|
+
self.loudness_affinity = attributes[:'loudness_affinity']
|
|
511
520
|
end
|
|
512
521
|
|
|
513
|
-
if attributes.key?(:'
|
|
514
|
-
self.
|
|
522
|
+
if attributes.key?(:'key_affinity')
|
|
523
|
+
self.key_affinity = attributes[:'key_affinity']
|
|
515
524
|
end
|
|
516
525
|
|
|
517
|
-
if attributes.key?(:'
|
|
518
|
-
self.
|
|
526
|
+
if attributes.key?(:'channel_suitability_affinity')
|
|
527
|
+
self.channel_suitability_affinity = attributes[:'channel_suitability_affinity']
|
|
519
528
|
end
|
|
520
529
|
|
|
521
|
-
if attributes.key?(:'
|
|
522
|
-
self.
|
|
530
|
+
if attributes.key?(:'language_of_performance')
|
|
531
|
+
self.language_of_performance = attributes[:'language_of_performance']
|
|
523
532
|
end
|
|
524
533
|
|
|
525
|
-
if attributes.key?(:'
|
|
526
|
-
self.
|
|
534
|
+
if attributes.key?(:'dominant_instrument')
|
|
535
|
+
self.dominant_instrument = attributes[:'dominant_instrument']
|
|
527
536
|
end
|
|
528
537
|
|
|
529
|
-
if attributes.key?(:'
|
|
530
|
-
self.
|
|
538
|
+
if attributes.key?(:'energy')
|
|
539
|
+
self.energy = attributes[:'energy']
|
|
531
540
|
end
|
|
532
541
|
|
|
533
|
-
if attributes.key?(:'
|
|
534
|
-
self.
|
|
542
|
+
if attributes.key?(:'engagement')
|
|
543
|
+
self.engagement = attributes[:'engagement']
|
|
535
544
|
end
|
|
536
545
|
|
|
537
|
-
if attributes.key?(:'
|
|
538
|
-
self.
|
|
546
|
+
if attributes.key?(:'groovyness')
|
|
547
|
+
self.groovyness = attributes[:'groovyness']
|
|
539
548
|
end
|
|
540
549
|
|
|
541
|
-
if attributes.key?(:'
|
|
542
|
-
self.
|
|
550
|
+
if attributes.key?(:'harmony')
|
|
551
|
+
self.harmony = attributes[:'harmony']
|
|
543
552
|
end
|
|
544
553
|
|
|
545
|
-
if attributes.key?(:'
|
|
546
|
-
self.
|
|
554
|
+
if attributes.key?(:'pleasantness')
|
|
555
|
+
self.pleasantness = attributes[:'pleasantness']
|
|
547
556
|
end
|
|
548
557
|
|
|
549
|
-
if attributes.key?(:'
|
|
550
|
-
self.
|
|
558
|
+
if attributes.key?(:'primary_mood_cluster')
|
|
559
|
+
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
551
560
|
end
|
|
552
561
|
|
|
553
|
-
if attributes.key?(:'
|
|
554
|
-
self.
|
|
562
|
+
if attributes.key?(:'primary_sound_character')
|
|
563
|
+
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
555
564
|
end
|
|
556
565
|
|
|
557
|
-
if attributes.key?(:'
|
|
558
|
-
self.
|
|
566
|
+
if attributes.key?(:'rhythm')
|
|
567
|
+
self.rhythm = attributes[:'rhythm']
|
|
559
568
|
end
|
|
560
569
|
|
|
561
|
-
if attributes.key?(:'
|
|
562
|
-
self.
|
|
570
|
+
if attributes.key?(:'roughness')
|
|
571
|
+
self.roughness = attributes[:'roughness']
|
|
563
572
|
end
|
|
564
573
|
|
|
565
|
-
if attributes.key?(:'
|
|
566
|
-
self.
|
|
574
|
+
if attributes.key?(:'scale')
|
|
575
|
+
self.scale = attributes[:'scale']
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
if attributes.key?(:'key')
|
|
579
|
+
self.key = attributes[:'key']
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if attributes.key?(:'sound_generation')
|
|
583
|
+
self.sound_generation = attributes[:'sound_generation']
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
if attributes.key?(:'tempo')
|
|
587
|
+
self.tempo = attributes[:'tempo']
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
if attributes.key?(:'texture')
|
|
591
|
+
self.texture = attributes[:'texture']
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
if attributes.key?(:'timbre')
|
|
595
|
+
self.timbre = attributes[:'timbre']
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
if attributes.key?(:'tonality')
|
|
599
|
+
self.tonality = attributes[:'tonality']
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
if attributes.key?(:'valence')
|
|
603
|
+
self.valence = attributes[:'valence']
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
if attributes.key?(:'vocals')
|
|
607
|
+
self.vocals = attributes[:'vocals']
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
if attributes.key?(:'origin_decade')
|
|
611
|
+
self.origin_decade = attributes[:'origin_decade']
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
if attributes.key?(:'curateability')
|
|
615
|
+
self.curateability = attributes[:'curateability']
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
if attributes.key?(:'use_case')
|
|
619
|
+
self.use_case = attributes[:'use_case']
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
if attributes.key?(:'channel_suitability')
|
|
623
|
+
self.channel_suitability = attributes[:'channel_suitability']
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
if attributes.key?(:'loudness')
|
|
627
|
+
self.loudness = attributes[:'loudness']
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
if attributes.key?(:'primary_mood_cluster_affinity')
|
|
631
|
+
self.primary_mood_cluster_affinity = attributes[:'primary_mood_cluster_affinity']
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
if attributes.key?(:'secondary_mood_cluster')
|
|
635
|
+
self.secondary_mood_cluster = attributes[:'secondary_mood_cluster']
|
|
567
636
|
end
|
|
568
637
|
|
|
569
638
|
if attributes.key?(:'secondary_mood_cluster_affinity')
|
|
@@ -622,168 +691,116 @@ module SongtradrApiClientRuby
|
|
|
622
691
|
self.bpm = attributes[:'bpm']
|
|
623
692
|
end
|
|
624
693
|
|
|
625
|
-
if attributes.key?(:'
|
|
626
|
-
self.
|
|
627
|
-
end
|
|
628
|
-
|
|
629
|
-
if attributes.key?(:'dominant_instrument')
|
|
630
|
-
self.dominant_instrument = attributes[:'dominant_instrument']
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
if attributes.key?(:'energy')
|
|
634
|
-
self.energy = attributes[:'energy']
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
if attributes.key?(:'engagement')
|
|
638
|
-
self.engagement = attributes[:'engagement']
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
if attributes.key?(:'groovyness')
|
|
642
|
-
self.groovyness = attributes[:'groovyness']
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
if attributes.key?(:'harmony')
|
|
646
|
-
self.harmony = attributes[:'harmony']
|
|
647
|
-
end
|
|
648
|
-
|
|
649
|
-
if attributes.key?(:'pleasantness')
|
|
650
|
-
self.pleasantness = attributes[:'pleasantness']
|
|
651
|
-
end
|
|
652
|
-
|
|
653
|
-
if attributes.key?(:'primary_mood_cluster')
|
|
654
|
-
self.primary_mood_cluster = attributes[:'primary_mood_cluster']
|
|
655
|
-
end
|
|
656
|
-
|
|
657
|
-
if attributes.key?(:'primary_sound_character')
|
|
658
|
-
self.primary_sound_character = attributes[:'primary_sound_character']
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
if attributes.key?(:'rhythm')
|
|
662
|
-
self.rhythm = attributes[:'rhythm']
|
|
663
|
-
end
|
|
664
|
-
|
|
665
|
-
if attributes.key?(:'roughness')
|
|
666
|
-
self.roughness = attributes[:'roughness']
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
if attributes.key?(:'scale')
|
|
670
|
-
self.scale = attributes[:'scale']
|
|
671
|
-
end
|
|
672
|
-
|
|
673
|
-
if attributes.key?(:'key')
|
|
674
|
-
self.key = attributes[:'key']
|
|
675
|
-
end
|
|
676
|
-
|
|
677
|
-
if attributes.key?(:'sound_generation')
|
|
678
|
-
self.sound_generation = attributes[:'sound_generation']
|
|
694
|
+
if attributes.key?(:'production_rating')
|
|
695
|
+
self.production_rating = attributes[:'production_rating']
|
|
679
696
|
end
|
|
680
697
|
|
|
681
|
-
if attributes.key?(:'
|
|
682
|
-
self.
|
|
698
|
+
if attributes.key?(:'production_rating_affinity')
|
|
699
|
+
self.production_rating_affinity = attributes[:'production_rating_affinity']
|
|
683
700
|
end
|
|
684
701
|
|
|
685
|
-
if attributes.key?(:'
|
|
686
|
-
self.
|
|
702
|
+
if attributes.key?(:'performance_rating')
|
|
703
|
+
self.performance_rating = attributes[:'performance_rating']
|
|
687
704
|
end
|
|
688
705
|
|
|
689
|
-
if attributes.key?(:'
|
|
690
|
-
self.
|
|
706
|
+
if attributes.key?(:'performance_rating_affinity')
|
|
707
|
+
self.performance_rating_affinity = attributes[:'performance_rating_affinity']
|
|
691
708
|
end
|
|
692
709
|
|
|
693
|
-
if attributes.key?(:'
|
|
694
|
-
self.
|
|
710
|
+
if attributes.key?(:'song_rating')
|
|
711
|
+
self.song_rating = attributes[:'song_rating']
|
|
695
712
|
end
|
|
696
713
|
|
|
697
|
-
if attributes.key?(:'
|
|
698
|
-
self.
|
|
714
|
+
if attributes.key?(:'song_rating_affinity')
|
|
715
|
+
self.song_rating_affinity = attributes[:'song_rating_affinity']
|
|
699
716
|
end
|
|
700
717
|
|
|
701
|
-
if attributes.key?(:'
|
|
702
|
-
self.
|
|
718
|
+
if attributes.key?(:'audience_age')
|
|
719
|
+
self.audience_age = attributes[:'audience_age']
|
|
703
720
|
end
|
|
704
721
|
|
|
705
|
-
if attributes.key?(:'
|
|
706
|
-
self.
|
|
722
|
+
if attributes.key?(:'audience_age_affinity')
|
|
723
|
+
self.audience_age_affinity = attributes[:'audience_age_affinity']
|
|
707
724
|
end
|
|
708
725
|
|
|
709
|
-
if attributes.key?(:'
|
|
710
|
-
self.
|
|
726
|
+
if attributes.key?(:'secondary_audience_age')
|
|
727
|
+
self.secondary_audience_age = attributes[:'secondary_audience_age']
|
|
711
728
|
end
|
|
712
729
|
|
|
713
|
-
if attributes.key?(:'
|
|
714
|
-
self.
|
|
730
|
+
if attributes.key?(:'secondary_audience_age_affinity')
|
|
731
|
+
self.secondary_audience_age_affinity = attributes[:'secondary_audience_age_affinity']
|
|
715
732
|
end
|
|
716
733
|
|
|
717
|
-
if attributes.key?(:'
|
|
718
|
-
self.
|
|
734
|
+
if attributes.key?(:'tertiary_audience_age')
|
|
735
|
+
self.tertiary_audience_age = attributes[:'tertiary_audience_age']
|
|
719
736
|
end
|
|
720
737
|
|
|
721
|
-
if attributes.key?(:'
|
|
722
|
-
self.
|
|
738
|
+
if attributes.key?(:'tertiary_audience_age_affinity')
|
|
739
|
+
self.tertiary_audience_age_affinity = attributes[:'tertiary_audience_age_affinity']
|
|
723
740
|
end
|
|
724
741
|
|
|
725
|
-
if attributes.key?(:'
|
|
726
|
-
self.
|
|
742
|
+
if attributes.key?(:'audience_gender')
|
|
743
|
+
self.audience_gender = attributes[:'audience_gender']
|
|
727
744
|
end
|
|
728
745
|
|
|
729
|
-
if attributes.key?(:'
|
|
730
|
-
self.
|
|
746
|
+
if attributes.key?(:'audience_gender_affinity')
|
|
747
|
+
self.audience_gender_affinity = attributes[:'audience_gender_affinity']
|
|
731
748
|
end
|
|
732
749
|
|
|
733
|
-
if attributes.key?(:'
|
|
734
|
-
self.
|
|
750
|
+
if attributes.key?(:'audience_region_affinity')
|
|
751
|
+
self.audience_region_affinity = attributes[:'audience_region_affinity']
|
|
735
752
|
end
|
|
736
753
|
|
|
737
|
-
if attributes.key?(:'
|
|
738
|
-
self.
|
|
754
|
+
if attributes.key?(:'secondary_audience_region')
|
|
755
|
+
self.secondary_audience_region = attributes[:'secondary_audience_region']
|
|
739
756
|
end
|
|
740
757
|
|
|
741
|
-
if attributes.key?(:'
|
|
742
|
-
self.
|
|
758
|
+
if attributes.key?(:'secondary_audience_region_affinity')
|
|
759
|
+
self.secondary_audience_region_affinity = attributes[:'secondary_audience_region_affinity']
|
|
743
760
|
end
|
|
744
761
|
|
|
745
|
-
if attributes.key?(:'
|
|
746
|
-
self.
|
|
762
|
+
if attributes.key?(:'tertiary_audience_region')
|
|
763
|
+
self.tertiary_audience_region = attributes[:'tertiary_audience_region']
|
|
747
764
|
end
|
|
748
765
|
|
|
749
|
-
if attributes.key?(:'
|
|
750
|
-
self.
|
|
766
|
+
if attributes.key?(:'tertiary_audience_region_affinity')
|
|
767
|
+
self.tertiary_audience_region_affinity = attributes[:'tertiary_audience_region_affinity']
|
|
751
768
|
end
|
|
752
769
|
|
|
753
|
-
if attributes.key?(:'
|
|
754
|
-
self.
|
|
770
|
+
if attributes.key?(:'origin_region')
|
|
771
|
+
self.origin_region = attributes[:'origin_region']
|
|
755
772
|
end
|
|
756
773
|
|
|
757
|
-
if attributes.key?(:'
|
|
758
|
-
self.
|
|
774
|
+
if attributes.key?(:'origin_region_affinity')
|
|
775
|
+
self.origin_region_affinity = attributes[:'origin_region_affinity']
|
|
759
776
|
end
|
|
760
777
|
|
|
761
|
-
if attributes.key?(:'
|
|
762
|
-
self.
|
|
778
|
+
if attributes.key?(:'origin_decade_affinity')
|
|
779
|
+
self.origin_decade_affinity = attributes[:'origin_decade_affinity']
|
|
763
780
|
end
|
|
764
781
|
|
|
765
|
-
if attributes.key?(:'
|
|
766
|
-
self.
|
|
782
|
+
if attributes.key?(:'language_of_performance_affinity')
|
|
783
|
+
self.language_of_performance_affinity = attributes[:'language_of_performance_affinity']
|
|
767
784
|
end
|
|
768
785
|
|
|
769
|
-
if attributes.key?(:'
|
|
770
|
-
self.
|
|
786
|
+
if attributes.key?(:'curateability_affinity')
|
|
787
|
+
self.curateability_affinity = attributes[:'curateability_affinity']
|
|
771
788
|
end
|
|
772
789
|
|
|
773
|
-
if attributes.key?(:'
|
|
774
|
-
self.
|
|
790
|
+
if attributes.key?(:'use_case_affinity')
|
|
791
|
+
self.use_case_affinity = attributes[:'use_case_affinity']
|
|
775
792
|
end
|
|
776
793
|
|
|
777
|
-
if attributes.key?(:'
|
|
778
|
-
self.
|
|
794
|
+
if attributes.key?(:'industry_suitability')
|
|
795
|
+
self.industry_suitability = attributes[:'industry_suitability']
|
|
779
796
|
end
|
|
780
797
|
|
|
781
|
-
if attributes.key?(:'
|
|
782
|
-
self.
|
|
798
|
+
if attributes.key?(:'industry_suitability_affinity')
|
|
799
|
+
self.industry_suitability_affinity = attributes[:'industry_suitability_affinity']
|
|
783
800
|
end
|
|
784
801
|
|
|
785
|
-
if attributes.key?(:'
|
|
786
|
-
self.
|
|
802
|
+
if attributes.key?(:'audience_region')
|
|
803
|
+
self.audience_region = attributes[:'audience_region']
|
|
787
804
|
end
|
|
788
805
|
end
|
|
789
806
|
|
|
@@ -801,41 +818,13 @@ module SongtradrApiClientRuby
|
|
|
801
818
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
802
819
|
space_validator = EnumAttributeValidator.new('String', ["very compact", "compact", "moderate space", "wide", "very wide"])
|
|
803
820
|
return false unless space_validator.valid?(@space)
|
|
804
|
-
|
|
805
|
-
return false unless
|
|
806
|
-
|
|
807
|
-
return false unless
|
|
808
|
-
|
|
809
|
-
return false unless
|
|
810
|
-
|
|
811
|
-
return false unless song_rating_validator.valid?(@song_rating)
|
|
812
|
-
audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
813
|
-
return false unless audience_age_validator.valid?(@audience_age)
|
|
814
|
-
secondary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
815
|
-
return false unless secondary_audience_age_validator.valid?(@secondary_audience_age)
|
|
816
|
-
tertiary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
817
|
-
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
|
818
|
-
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
819
|
-
return false unless audience_gender_validator.valid?(@audience_gender)
|
|
820
|
-
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"])
|
|
821
|
-
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
|
822
|
-
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"])
|
|
823
|
-
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
|
824
|
-
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"])
|
|
825
|
-
return false unless origin_region_validator.valid?(@origin_region)
|
|
826
|
-
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"])
|
|
827
|
-
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
|
828
|
-
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
829
|
-
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
|
830
|
-
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"])
|
|
831
|
-
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
|
832
|
-
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"])
|
|
833
|
-
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
|
834
|
-
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"])
|
|
835
|
-
return false unless audience_region_validator.valid?(@audience_region)
|
|
836
|
-
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"])
|
|
837
|
-
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
|
838
|
-
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
821
|
+
arousal_validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
822
|
+
return false unless arousal_validator.valid?(@arousal)
|
|
823
|
+
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"])
|
|
824
|
+
return false unless language_of_performance_validator.valid?(@language_of_performance)
|
|
825
|
+
dominant_instrument_validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
826
|
+
return false unless dominant_instrument_validator.valid?(@dominant_instrument)
|
|
827
|
+
energy_validator = EnumAttributeValidator.new('String', ["very quiet", "quiet", "moderate", "loud", "very loud", "dynamic"])
|
|
839
828
|
return false unless energy_validator.valid?(@energy)
|
|
840
829
|
engagement_validator = EnumAttributeValidator.new('String', ["very unengaging", "unengaging", "neutral engagement", "engaging", "very engaging", "varying engagement"])
|
|
841
830
|
return false unless engagement_validator.valid?(@engagement)
|
|
@@ -879,10 +868,40 @@ module SongtradrApiClientRuby
|
|
|
879
868
|
return false unless use_case_validator.valid?(@use_case)
|
|
880
869
|
channel_suitability_validator = EnumAttributeValidator.new('String', ["Spotify", "TikTok", "Unfitting", "YouTube"])
|
|
881
870
|
return false unless channel_suitability_validator.valid?(@channel_suitability)
|
|
882
|
-
|
|
883
|
-
return false unless
|
|
884
|
-
|
|
885
|
-
return false unless
|
|
871
|
+
loudness_validator = EnumAttributeValidator.new('String', ["very low", "low", "moderate", "high", "very high"])
|
|
872
|
+
return false unless loudness_validator.valid?(@loudness)
|
|
873
|
+
secondary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
874
|
+
return false unless secondary_mood_cluster_validator.valid?(@secondary_mood_cluster)
|
|
875
|
+
tertiary_mood_cluster_validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
876
|
+
return false unless tertiary_mood_cluster_validator.valid?(@tertiary_mood_cluster)
|
|
877
|
+
secondary_instrument_validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
878
|
+
return false unless secondary_instrument_validator.valid?(@secondary_instrument)
|
|
879
|
+
tertiary_instrument_validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
880
|
+
return false unless tertiary_instrument_validator.valid?(@tertiary_instrument)
|
|
881
|
+
production_rating_validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
882
|
+
return false unless production_rating_validator.valid?(@production_rating)
|
|
883
|
+
performance_rating_validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
884
|
+
return false unless performance_rating_validator.valid?(@performance_rating)
|
|
885
|
+
song_rating_validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
886
|
+
return false unless song_rating_validator.valid?(@song_rating)
|
|
887
|
+
audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
888
|
+
return false unless audience_age_validator.valid?(@audience_age)
|
|
889
|
+
secondary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
890
|
+
return false unless secondary_audience_age_validator.valid?(@secondary_audience_age)
|
|
891
|
+
tertiary_audience_age_validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
892
|
+
return false unless tertiary_audience_age_validator.valid?(@tertiary_audience_age)
|
|
893
|
+
audience_gender_validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
894
|
+
return false unless audience_gender_validator.valid?(@audience_gender)
|
|
895
|
+
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"])
|
|
896
|
+
return false unless secondary_audience_region_validator.valid?(@secondary_audience_region)
|
|
897
|
+
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"])
|
|
898
|
+
return false unless tertiary_audience_region_validator.valid?(@tertiary_audience_region)
|
|
899
|
+
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"])
|
|
900
|
+
return false unless origin_region_validator.valid?(@origin_region)
|
|
901
|
+
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"])
|
|
902
|
+
return false unless industry_suitability_validator.valid?(@industry_suitability)
|
|
903
|
+
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"])
|
|
904
|
+
return false unless audience_region_validator.valid?(@audience_region)
|
|
886
905
|
true
|
|
887
906
|
end
|
|
888
907
|
|
|
@@ -897,169 +916,29 @@ module SongtradrApiClientRuby
|
|
|
897
916
|
end
|
|
898
917
|
|
|
899
918
|
# Custom attribute writer method checking allowed values (enum).
|
|
900
|
-
# @param [Object]
|
|
901
|
-
def
|
|
902
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
903
|
-
unless validator.valid?(
|
|
904
|
-
fail ArgumentError, "invalid value for \"
|
|
905
|
-
end
|
|
906
|
-
@secondary_mood_cluster = secondary_mood_cluster
|
|
907
|
-
end
|
|
908
|
-
|
|
909
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
910
|
-
# @param [Object] production_rating Object to be assigned
|
|
911
|
-
def production_rating=(production_rating)
|
|
912
|
-
validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
913
|
-
unless validator.valid?(production_rating)
|
|
914
|
-
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{validator.allowable_values}."
|
|
915
|
-
end
|
|
916
|
-
@production_rating = production_rating
|
|
917
|
-
end
|
|
918
|
-
|
|
919
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
920
|
-
# @param [Object] performance_rating Object to be assigned
|
|
921
|
-
def performance_rating=(performance_rating)
|
|
922
|
-
validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
923
|
-
unless validator.valid?(performance_rating)
|
|
924
|
-
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{validator.allowable_values}."
|
|
925
|
-
end
|
|
926
|
-
@performance_rating = performance_rating
|
|
927
|
-
end
|
|
928
|
-
|
|
929
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
930
|
-
# @param [Object] song_rating Object to be assigned
|
|
931
|
-
def song_rating=(song_rating)
|
|
932
|
-
validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
933
|
-
unless validator.valid?(song_rating)
|
|
934
|
-
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{validator.allowable_values}."
|
|
935
|
-
end
|
|
936
|
-
@song_rating = song_rating
|
|
937
|
-
end
|
|
938
|
-
|
|
939
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
940
|
-
# @param [Object] audience_age Object to be assigned
|
|
941
|
-
def audience_age=(audience_age)
|
|
942
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
943
|
-
unless validator.valid?(audience_age)
|
|
944
|
-
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{validator.allowable_values}."
|
|
945
|
-
end
|
|
946
|
-
@audience_age = audience_age
|
|
947
|
-
end
|
|
948
|
-
|
|
949
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
950
|
-
# @param [Object] secondary_audience_age Object to be assigned
|
|
951
|
-
def secondary_audience_age=(secondary_audience_age)
|
|
952
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
953
|
-
unless validator.valid?(secondary_audience_age)
|
|
954
|
-
fail ArgumentError, "invalid value for \"secondary_audience_age\", must be one of #{validator.allowable_values}."
|
|
955
|
-
end
|
|
956
|
-
@secondary_audience_age = secondary_audience_age
|
|
957
|
-
end
|
|
958
|
-
|
|
959
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
960
|
-
# @param [Object] tertiary_audience_age Object to be assigned
|
|
961
|
-
def tertiary_audience_age=(tertiary_audience_age)
|
|
962
|
-
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
963
|
-
unless validator.valid?(tertiary_audience_age)
|
|
964
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_age\", must be one of #{validator.allowable_values}."
|
|
965
|
-
end
|
|
966
|
-
@tertiary_audience_age = tertiary_audience_age
|
|
967
|
-
end
|
|
968
|
-
|
|
969
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
970
|
-
# @param [Object] audience_gender Object to be assigned
|
|
971
|
-
def audience_gender=(audience_gender)
|
|
972
|
-
validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
973
|
-
unless validator.valid?(audience_gender)
|
|
974
|
-
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{validator.allowable_values}."
|
|
975
|
-
end
|
|
976
|
-
@audience_gender = audience_gender
|
|
977
|
-
end
|
|
978
|
-
|
|
979
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
980
|
-
# @param [Object] secondary_audience_region Object to be assigned
|
|
981
|
-
def secondary_audience_region=(secondary_audience_region)
|
|
982
|
-
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"])
|
|
983
|
-
unless validator.valid?(secondary_audience_region)
|
|
984
|
-
fail ArgumentError, "invalid value for \"secondary_audience_region\", must be one of #{validator.allowable_values}."
|
|
985
|
-
end
|
|
986
|
-
@secondary_audience_region = secondary_audience_region
|
|
987
|
-
end
|
|
988
|
-
|
|
989
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
990
|
-
# @param [Object] tertiary_audience_region Object to be assigned
|
|
991
|
-
def tertiary_audience_region=(tertiary_audience_region)
|
|
992
|
-
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"])
|
|
993
|
-
unless validator.valid?(tertiary_audience_region)
|
|
994
|
-
fail ArgumentError, "invalid value for \"tertiary_audience_region\", must be one of #{validator.allowable_values}."
|
|
995
|
-
end
|
|
996
|
-
@tertiary_audience_region = tertiary_audience_region
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1000
|
-
# @param [Object] origin_region Object to be assigned
|
|
1001
|
-
def origin_region=(origin_region)
|
|
1002
|
-
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"])
|
|
1003
|
-
unless validator.valid?(origin_region)
|
|
1004
|
-
fail ArgumentError, "invalid value for \"origin_region\", must be one of #{validator.allowable_values}."
|
|
1005
|
-
end
|
|
1006
|
-
@origin_region = origin_region
|
|
1007
|
-
end
|
|
1008
|
-
|
|
1009
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1010
|
-
# @param [Object] industry_suitability Object to be assigned
|
|
1011
|
-
def industry_suitability=(industry_suitability)
|
|
1012
|
-
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"])
|
|
1013
|
-
unless validator.valid?(industry_suitability)
|
|
1014
|
-
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
|
1015
|
-
end
|
|
1016
|
-
@industry_suitability = industry_suitability
|
|
1017
|
-
end
|
|
1018
|
-
|
|
1019
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1020
|
-
# @param [Object] tertiary_mood_cluster Object to be assigned
|
|
1021
|
-
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
|
1022
|
-
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1023
|
-
unless validator.valid?(tertiary_mood_cluster)
|
|
1024
|
-
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1025
|
-
end
|
|
1026
|
-
@tertiary_mood_cluster = tertiary_mood_cluster
|
|
1027
|
-
end
|
|
1028
|
-
|
|
1029
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1030
|
-
# @param [Object] secondary_instrument Object to be assigned
|
|
1031
|
-
def secondary_instrument=(secondary_instrument)
|
|
1032
|
-
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"])
|
|
1033
|
-
unless validator.valid?(secondary_instrument)
|
|
1034
|
-
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
|
1035
|
-
end
|
|
1036
|
-
@secondary_instrument = secondary_instrument
|
|
1037
|
-
end
|
|
1038
|
-
|
|
1039
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
1040
|
-
# @param [Object] tertiary_instrument Object to be assigned
|
|
1041
|
-
def tertiary_instrument=(tertiary_instrument)
|
|
1042
|
-
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"])
|
|
1043
|
-
unless validator.valid?(tertiary_instrument)
|
|
1044
|
-
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
|
919
|
+
# @param [Object] arousal Object to be assigned
|
|
920
|
+
def arousal=(arousal)
|
|
921
|
+
validator = EnumAttributeValidator.new('String', ["very calm", "calm", "moderate arousal", "energetic", "very energetic", "varying arousal"])
|
|
922
|
+
unless validator.valid?(arousal)
|
|
923
|
+
fail ArgumentError, "invalid value for \"arousal\", must be one of #{validator.allowable_values}."
|
|
1045
924
|
end
|
|
1046
|
-
@
|
|
925
|
+
@arousal = arousal
|
|
1047
926
|
end
|
|
1048
927
|
|
|
1049
928
|
# 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 \"
|
|
929
|
+
# @param [Object] language_of_performance Object to be assigned
|
|
930
|
+
def language_of_performance=(language_of_performance)
|
|
931
|
+
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"])
|
|
932
|
+
unless validator.valid?(language_of_performance)
|
|
933
|
+
fail ArgumentError, "invalid value for \"language_of_performance\", must be one of #{validator.allowable_values}."
|
|
1055
934
|
end
|
|
1056
|
-
@
|
|
935
|
+
@language_of_performance = language_of_performance
|
|
1057
936
|
end
|
|
1058
937
|
|
|
1059
938
|
# Custom attribute writer method checking allowed values (enum).
|
|
1060
939
|
# @param [Object] dominant_instrument Object to be assigned
|
|
1061
940
|
def dominant_instrument=(dominant_instrument)
|
|
1062
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
941
|
+
validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1063
942
|
unless validator.valid?(dominant_instrument)
|
|
1064
943
|
fail ArgumentError, "invalid value for \"dominant_instrument\", must be one of #{validator.allowable_values}."
|
|
1065
944
|
end
|
|
@@ -1287,23 +1166,173 @@ module SongtradrApiClientRuby
|
|
|
1287
1166
|
end
|
|
1288
1167
|
|
|
1289
1168
|
# Custom attribute writer method checking allowed values (enum).
|
|
1290
|
-
# @param [Object]
|
|
1291
|
-
def
|
|
1292
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1293
|
-
unless validator.valid?(
|
|
1294
|
-
fail ArgumentError, "invalid value for \"
|
|
1169
|
+
# @param [Object] loudness Object to be assigned
|
|
1170
|
+
def loudness=(loudness)
|
|
1171
|
+
validator = EnumAttributeValidator.new('String', ["very low", "low", "moderate", "high", "very high"])
|
|
1172
|
+
unless validator.valid?(loudness)
|
|
1173
|
+
fail ArgumentError, "invalid value for \"loudness\", must be one of #{validator.allowable_values}."
|
|
1295
1174
|
end
|
|
1296
|
-
@
|
|
1175
|
+
@loudness = loudness
|
|
1297
1176
|
end
|
|
1298
1177
|
|
|
1299
1178
|
# Custom attribute writer method checking allowed values (enum).
|
|
1300
|
-
# @param [Object]
|
|
1301
|
-
def
|
|
1302
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
1303
|
-
unless validator.valid?(
|
|
1304
|
-
fail ArgumentError, "invalid value for \"
|
|
1179
|
+
# @param [Object] secondary_mood_cluster Object to be assigned
|
|
1180
|
+
def secondary_mood_cluster=(secondary_mood_cluster)
|
|
1181
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1182
|
+
unless validator.valid?(secondary_mood_cluster)
|
|
1183
|
+
fail ArgumentError, "invalid value for \"secondary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1305
1184
|
end
|
|
1306
|
-
@
|
|
1185
|
+
@secondary_mood_cluster = secondary_mood_cluster
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1189
|
+
# @param [Object] tertiary_mood_cluster Object to be assigned
|
|
1190
|
+
def tertiary_mood_cluster=(tertiary_mood_cluster)
|
|
1191
|
+
validator = EnumAttributeValidator.new('String', ["aggressive", "amusing", "anxious", "calm", "devotional", "dreamy", "energetic", "enigmatic", "epic", "erotic", "positive", "sad", "scary", "wild"])
|
|
1192
|
+
unless validator.valid?(tertiary_mood_cluster)
|
|
1193
|
+
fail ArgumentError, "invalid value for \"tertiary_mood_cluster\", must be one of #{validator.allowable_values}."
|
|
1194
|
+
end
|
|
1195
|
+
@tertiary_mood_cluster = tertiary_mood_cluster
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1198
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1199
|
+
# @param [Object] secondary_instrument Object to be assigned
|
|
1200
|
+
def secondary_instrument=(secondary_instrument)
|
|
1201
|
+
validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1202
|
+
unless validator.valid?(secondary_instrument)
|
|
1203
|
+
fail ArgumentError, "invalid value for \"secondary_instrument\", must be one of #{validator.allowable_values}."
|
|
1204
|
+
end
|
|
1205
|
+
@secondary_instrument = secondary_instrument
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1209
|
+
# @param [Object] tertiary_instrument Object to be assigned
|
|
1210
|
+
def tertiary_instrument=(tertiary_instrument)
|
|
1211
|
+
validator = EnumAttributeValidator.new('String', ["piano", "electronics", "guitar", "strings", "synthesizer", "wind", "drum kit", "keys", "harpsichord", "choir", "electric bass", "organ", "brass", "percussion", "vocals", "double bass", "harp"])
|
|
1212
|
+
unless validator.valid?(tertiary_instrument)
|
|
1213
|
+
fail ArgumentError, "invalid value for \"tertiary_instrument\", must be one of #{validator.allowable_values}."
|
|
1214
|
+
end
|
|
1215
|
+
@tertiary_instrument = tertiary_instrument
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1219
|
+
# @param [Object] production_rating Object to be assigned
|
|
1220
|
+
def production_rating=(production_rating)
|
|
1221
|
+
validator = EnumAttributeValidator.new('String', ["low production quality", "medium production quality", "high production quality"])
|
|
1222
|
+
unless validator.valid?(production_rating)
|
|
1223
|
+
fail ArgumentError, "invalid value for \"production_rating\", must be one of #{validator.allowable_values}."
|
|
1224
|
+
end
|
|
1225
|
+
@production_rating = production_rating
|
|
1226
|
+
end
|
|
1227
|
+
|
|
1228
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1229
|
+
# @param [Object] performance_rating Object to be assigned
|
|
1230
|
+
def performance_rating=(performance_rating)
|
|
1231
|
+
validator = EnumAttributeValidator.new('String', ["low performance quality", "medium performance quality", "high performance quality"])
|
|
1232
|
+
unless validator.valid?(performance_rating)
|
|
1233
|
+
fail ArgumentError, "invalid value for \"performance_rating\", must be one of #{validator.allowable_values}."
|
|
1234
|
+
end
|
|
1235
|
+
@performance_rating = performance_rating
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1239
|
+
# @param [Object] song_rating Object to be assigned
|
|
1240
|
+
def song_rating=(song_rating)
|
|
1241
|
+
validator = EnumAttributeValidator.new('String', ["low song quality", "medium song quality", "high song quality"])
|
|
1242
|
+
unless validator.valid?(song_rating)
|
|
1243
|
+
fail ArgumentError, "invalid value for \"song_rating\", must be one of #{validator.allowable_values}."
|
|
1244
|
+
end
|
|
1245
|
+
@song_rating = song_rating
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1249
|
+
# @param [Object] audience_age Object to be assigned
|
|
1250
|
+
def audience_age=(audience_age)
|
|
1251
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1252
|
+
unless validator.valid?(audience_age)
|
|
1253
|
+
fail ArgumentError, "invalid value for \"audience_age\", must be one of #{validator.allowable_values}."
|
|
1254
|
+
end
|
|
1255
|
+
@audience_age = audience_age
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1259
|
+
# @param [Object] secondary_audience_age Object to be assigned
|
|
1260
|
+
def secondary_audience_age=(secondary_audience_age)
|
|
1261
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1262
|
+
unless validator.valid?(secondary_audience_age)
|
|
1263
|
+
fail ArgumentError, "invalid value for \"secondary_audience_age\", must be one of #{validator.allowable_values}."
|
|
1264
|
+
end
|
|
1265
|
+
@secondary_audience_age = secondary_audience_age
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1269
|
+
# @param [Object] tertiary_audience_age Object to be assigned
|
|
1270
|
+
def tertiary_audience_age=(tertiary_audience_age)
|
|
1271
|
+
validator = EnumAttributeValidator.new('String', ["Generation Z", "Younger Generation Y", "Older Generation Y", "Generation X", "Younger Generation B", "Older Generation B"])
|
|
1272
|
+
unless validator.valid?(tertiary_audience_age)
|
|
1273
|
+
fail ArgumentError, "invalid value for \"tertiary_audience_age\", must be one of #{validator.allowable_values}."
|
|
1274
|
+
end
|
|
1275
|
+
@tertiary_audience_age = tertiary_audience_age
|
|
1276
|
+
end
|
|
1277
|
+
|
|
1278
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1279
|
+
# @param [Object] audience_gender Object to be assigned
|
|
1280
|
+
def audience_gender=(audience_gender)
|
|
1281
|
+
validator = EnumAttributeValidator.new('String', ["male", "female"])
|
|
1282
|
+
unless validator.valid?(audience_gender)
|
|
1283
|
+
fail ArgumentError, "invalid value for \"audience_gender\", must be one of #{validator.allowable_values}."
|
|
1284
|
+
end
|
|
1285
|
+
@audience_gender = audience_gender
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1289
|
+
# @param [Object] secondary_audience_region Object to be assigned
|
|
1290
|
+
def secondary_audience_region=(secondary_audience_region)
|
|
1291
|
+
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"])
|
|
1292
|
+
unless validator.valid?(secondary_audience_region)
|
|
1293
|
+
fail ArgumentError, "invalid value for \"secondary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1294
|
+
end
|
|
1295
|
+
@secondary_audience_region = secondary_audience_region
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1299
|
+
# @param [Object] tertiary_audience_region Object to be assigned
|
|
1300
|
+
def tertiary_audience_region=(tertiary_audience_region)
|
|
1301
|
+
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"])
|
|
1302
|
+
unless validator.valid?(tertiary_audience_region)
|
|
1303
|
+
fail ArgumentError, "invalid value for \"tertiary_audience_region\", must be one of #{validator.allowable_values}."
|
|
1304
|
+
end
|
|
1305
|
+
@tertiary_audience_region = tertiary_audience_region
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1309
|
+
# @param [Object] origin_region Object to be assigned
|
|
1310
|
+
def origin_region=(origin_region)
|
|
1311
|
+
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"])
|
|
1312
|
+
unless validator.valid?(origin_region)
|
|
1313
|
+
fail ArgumentError, "invalid value for \"origin_region\", must be one of #{validator.allowable_values}."
|
|
1314
|
+
end
|
|
1315
|
+
@origin_region = origin_region
|
|
1316
|
+
end
|
|
1317
|
+
|
|
1318
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1319
|
+
# @param [Object] industry_suitability Object to be assigned
|
|
1320
|
+
def industry_suitability=(industry_suitability)
|
|
1321
|
+
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"])
|
|
1322
|
+
unless validator.valid?(industry_suitability)
|
|
1323
|
+
fail ArgumentError, "invalid value for \"industry_suitability\", must be one of #{validator.allowable_values}."
|
|
1324
|
+
end
|
|
1325
|
+
@industry_suitability = industry_suitability
|
|
1326
|
+
end
|
|
1327
|
+
|
|
1328
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1329
|
+
# @param [Object] audience_region Object to be assigned
|
|
1330
|
+
def audience_region=(audience_region)
|
|
1331
|
+
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"])
|
|
1332
|
+
unless validator.valid?(audience_region)
|
|
1333
|
+
fail ArgumentError, "invalid value for \"audience_region\", must be one of #{validator.allowable_values}."
|
|
1334
|
+
end
|
|
1335
|
+
@audience_region = audience_region
|
|
1307
1336
|
end
|
|
1308
1337
|
|
|
1309
1338
|
# Checks equality by comparing each attribute.
|
|
@@ -1312,8 +1341,64 @@ module SongtradrApiClientRuby
|
|
|
1312
1341
|
return true if self.equal?(o)
|
|
1313
1342
|
self.class == o.class &&
|
|
1314
1343
|
space == o.space &&
|
|
1344
|
+
arousal == o.arousal &&
|
|
1345
|
+
valence_affinity == o.valence_affinity &&
|
|
1346
|
+
arousal_affinity == o.arousal_affinity &&
|
|
1347
|
+
pleasantness_affinity == o.pleasantness_affinity &&
|
|
1348
|
+
engagement_affinity == o.engagement_affinity &&
|
|
1349
|
+
energy_affinity == o.energy_affinity &&
|
|
1350
|
+
tempo_affinity == o.tempo_affinity &&
|
|
1351
|
+
scale_affinity == o.scale_affinity &&
|
|
1352
|
+
timbre_affinity == o.timbre_affinity &&
|
|
1353
|
+
roughness_affinity == o.roughness_affinity &&
|
|
1354
|
+
harmony_affinity == o.harmony_affinity &&
|
|
1355
|
+
texture_affinity == o.texture_affinity &&
|
|
1356
|
+
groovyness_affinity == o.groovyness_affinity &&
|
|
1357
|
+
space_affinity == o.space_affinity &&
|
|
1358
|
+
loudness_affinity == o.loudness_affinity &&
|
|
1359
|
+
key_affinity == o.key_affinity &&
|
|
1360
|
+
channel_suitability_affinity == o.channel_suitability_affinity &&
|
|
1361
|
+
language_of_performance == o.language_of_performance &&
|
|
1362
|
+
dominant_instrument == o.dominant_instrument &&
|
|
1363
|
+
energy == o.energy &&
|
|
1364
|
+
engagement == o.engagement &&
|
|
1365
|
+
groovyness == o.groovyness &&
|
|
1366
|
+
harmony == o.harmony &&
|
|
1367
|
+
pleasantness == o.pleasantness &&
|
|
1368
|
+
primary_mood_cluster == o.primary_mood_cluster &&
|
|
1369
|
+
primary_sound_character == o.primary_sound_character &&
|
|
1370
|
+
rhythm == o.rhythm &&
|
|
1371
|
+
roughness == o.roughness &&
|
|
1372
|
+
scale == o.scale &&
|
|
1373
|
+
key == o.key &&
|
|
1374
|
+
sound_generation == o.sound_generation &&
|
|
1375
|
+
tempo == o.tempo &&
|
|
1376
|
+
texture == o.texture &&
|
|
1377
|
+
timbre == o.timbre &&
|
|
1378
|
+
tonality == o.tonality &&
|
|
1379
|
+
valence == o.valence &&
|
|
1380
|
+
vocals == o.vocals &&
|
|
1381
|
+
origin_decade == o.origin_decade &&
|
|
1382
|
+
curateability == o.curateability &&
|
|
1383
|
+
use_case == o.use_case &&
|
|
1384
|
+
channel_suitability == o.channel_suitability &&
|
|
1385
|
+
loudness == o.loudness &&
|
|
1315
1386
|
primary_mood_cluster_affinity == o.primary_mood_cluster_affinity &&
|
|
1316
1387
|
secondary_mood_cluster == o.secondary_mood_cluster &&
|
|
1388
|
+
secondary_mood_cluster_affinity == o.secondary_mood_cluster_affinity &&
|
|
1389
|
+
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
|
1390
|
+
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
|
1391
|
+
vocals_affinity == o.vocals_affinity &&
|
|
1392
|
+
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
|
1393
|
+
secondary_instrument == o.secondary_instrument &&
|
|
1394
|
+
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
|
1395
|
+
tertiary_instrument == o.tertiary_instrument &&
|
|
1396
|
+
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
|
1397
|
+
sound_generation_affinity == o.sound_generation_affinity &&
|
|
1398
|
+
rhythm_affinity == o.rhythm_affinity &&
|
|
1399
|
+
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
|
1400
|
+
tonality_affinity == o.tonality_affinity &&
|
|
1401
|
+
bpm == o.bpm &&
|
|
1317
1402
|
production_rating == o.production_rating &&
|
|
1318
1403
|
production_rating_affinity == o.production_rating_affinity &&
|
|
1319
1404
|
performance_rating == o.performance_rating &&
|
|
@@ -1341,61 +1426,7 @@ module SongtradrApiClientRuby
|
|
|
1341
1426
|
use_case_affinity == o.use_case_affinity &&
|
|
1342
1427
|
industry_suitability == o.industry_suitability &&
|
|
1343
1428
|
industry_suitability_affinity == o.industry_suitability_affinity &&
|
|
1344
|
-
|
|
1345
|
-
tertiary_mood_cluster == o.tertiary_mood_cluster &&
|
|
1346
|
-
tertiary_mood_cluster_affinity == o.tertiary_mood_cluster_affinity &&
|
|
1347
|
-
vocals_affinity == o.vocals_affinity &&
|
|
1348
|
-
dominant_instrument_affinity == o.dominant_instrument_affinity &&
|
|
1349
|
-
secondary_instrument == o.secondary_instrument &&
|
|
1350
|
-
secondary_instrument_affinity == o.secondary_instrument_affinity &&
|
|
1351
|
-
tertiary_instrument == o.tertiary_instrument &&
|
|
1352
|
-
tertiary_instrument_affinity == o.tertiary_instrument_affinity &&
|
|
1353
|
-
sound_generation_affinity == o.sound_generation_affinity &&
|
|
1354
|
-
rhythm_affinity == o.rhythm_affinity &&
|
|
1355
|
-
primary_sound_character_affinity == o.primary_sound_character_affinity &&
|
|
1356
|
-
tonality_affinity == o.tonality_affinity &&
|
|
1357
|
-
bpm == o.bpm &&
|
|
1358
|
-
audience_region == o.audience_region &&
|
|
1359
|
-
dominant_instrument == o.dominant_instrument &&
|
|
1360
|
-
energy == o.energy &&
|
|
1361
|
-
engagement == o.engagement &&
|
|
1362
|
-
groovyness == o.groovyness &&
|
|
1363
|
-
harmony == o.harmony &&
|
|
1364
|
-
pleasantness == o.pleasantness &&
|
|
1365
|
-
primary_mood_cluster == o.primary_mood_cluster &&
|
|
1366
|
-
primary_sound_character == o.primary_sound_character &&
|
|
1367
|
-
rhythm == o.rhythm &&
|
|
1368
|
-
roughness == o.roughness &&
|
|
1369
|
-
scale == o.scale &&
|
|
1370
|
-
key == o.key &&
|
|
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
|
-
vocals == o.vocals &&
|
|
1378
|
-
origin_decade == o.origin_decade &&
|
|
1379
|
-
curateability == o.curateability &&
|
|
1380
|
-
use_case == o.use_case &&
|
|
1381
|
-
channel_suitability == o.channel_suitability &&
|
|
1382
|
-
language_of_performance == o.language_of_performance &&
|
|
1383
|
-
arousal == o.arousal &&
|
|
1384
|
-
valence_affinity == o.valence_affinity &&
|
|
1385
|
-
arousal_affinity == o.arousal_affinity &&
|
|
1386
|
-
pleasantness_affinity == o.pleasantness_affinity &&
|
|
1387
|
-
engagement_affinity == o.engagement_affinity &&
|
|
1388
|
-
energy_affinity == o.energy_affinity &&
|
|
1389
|
-
tempo_affinity == o.tempo_affinity &&
|
|
1390
|
-
scale_affinity == o.scale_affinity &&
|
|
1391
|
-
timbre_affinity == o.timbre_affinity &&
|
|
1392
|
-
roughness_affinity == o.roughness_affinity &&
|
|
1393
|
-
harmony_affinity == o.harmony_affinity &&
|
|
1394
|
-
texture_affinity == o.texture_affinity &&
|
|
1395
|
-
groovyness_affinity == o.groovyness_affinity &&
|
|
1396
|
-
space_affinity == o.space_affinity &&
|
|
1397
|
-
key_affinity == o.key_affinity &&
|
|
1398
|
-
channel_suitability_affinity == o.channel_suitability_affinity
|
|
1429
|
+
audience_region == o.audience_region
|
|
1399
1430
|
end
|
|
1400
1431
|
|
|
1401
1432
|
# @see the `==` method
|
|
@@ -1407,7 +1438,7 @@ module SongtradrApiClientRuby
|
|
|
1407
1438
|
# Calculates hash code according to all attributes.
|
|
1408
1439
|
# @return [Integer] Hash code
|
|
1409
1440
|
def hash
|
|
1410
|
-
[space,
|
|
1441
|
+
[space, arousal, 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, loudness_affinity, key_affinity, channel_suitability_affinity, language_of_performance, dominant_instrument, energy, engagement, groovyness, harmony, pleasantness, primary_mood_cluster, primary_sound_character, rhythm, roughness, scale, key, sound_generation, tempo, texture, timbre, tonality, valence, vocals, origin_decade, curateability, use_case, channel_suitability, loudness, 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].hash
|
|
1411
1442
|
end
|
|
1412
1443
|
|
|
1413
1444
|
# Builds the object from hash
|