songtradr_api_client_ruby 1.12.23 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -5
- data/docs/AllowedValuesApi.md +2 -2
- data/docs/ApiKeyDTO.md +2 -2
- data/docs/CategoryMediumDTO.md +3 -3
- data/docs/FileSmallDTO.md +3 -3
- data/docs/MusicalFeaturesDTO.md +38 -38
- data/docs/PlaylistLargeDTO.md +2 -2
- data/docs/ProductMediumDTO.md +4 -4
- data/docs/RecordingApi.md +6 -0
- data/docs/RecordingLargeDTO.md +5 -5
- data/docs/RecordingMediumDTO.md +5 -3
- data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
- data/docs/RecordingSmallDTO.md +3 -3
- data/docs/TrackDTO.md +18 -0
- data/docs/UserApi.md +4 -0
- data/docs/UserDTO.md +18 -0
- data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
- data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
- data/lib/songtradr_api_client_ruby/api/recording_api.rb +10 -1
- data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -1
- data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
- data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
- data/lib/songtradr_api_client_ruby/configuration.rb +10 -8
- data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +29 -28
- data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +30 -31
- data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
- data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +41 -36
- data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +354 -359
- data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +25 -28
- data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +46 -39
- data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +57 -40
- data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +55 -31
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
- data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
- data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
- data/lib/songtradr_api_client_ruby/models/track_dto.rb +215 -0
- data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
- data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
- data/lib/songtradr_api_client_ruby/models/user_dto.rb +196 -19
- data/lib/songtradr_api_client_ruby/version.rb +2 -2
- data/lib/songtradr_api_client_ruby.rb +2 -1
- data/openapi-generator-config.yaml +1 -1
- data/songtradr_api_client_ruby.gemspec +1 -1
- data/spec/api/allowed_values_api_spec.rb +2 -2
- data/spec/api/api_keys_api_spec.rb +1 -1
- data/spec/api/party_api_spec.rb +1 -1
- data/spec/api/playlist_api_spec.rb +1 -1
- data/spec/api/recording_api_spec.rb +4 -1
- data/spec/api/user_api_spec.rb +3 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_api_user_dto_spec.rb +1 -1
- data/spec/models/api_key_dto_spec.rb +3 -3
- data/spec/models/category_medium_dto_spec.rb +3 -3
- data/spec/models/category_minimal_dto_spec.rb +1 -1
- data/spec/models/config_access_dto_spec.rb +1 -1
- data/spec/models/config_identifier_dto_spec.rb +1 -1
- data/spec/models/contributor_type_dto_spec.rb +1 -1
- data/spec/models/create_api_key_dto_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/field_summary_dto_spec.rb +1 -1
- data/spec/models/file_dto_spec.rb +1 -1
- data/spec/models/file_list_dto_spec.rb +1 -1
- data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
- data/spec/models/file_small_dto_spec.rb +7 -7
- data/spec/models/file_upload_dto_spec.rb +1 -1
- data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
- data/spec/models/files_summary_dto_spec.rb +1 -1
- data/spec/models/forgot_password_dto_spec.rb +1 -1
- data/spec/models/genre_dto_spec.rb +1 -1
- data/spec/models/genre_minimal_dto_spec.rb +1 -1
- data/spec/models/genres_summary_dto_spec.rb +1 -1
- data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
- data/spec/models/jwt_token_dto_spec.rb +1 -1
- data/spec/models/login_dto_spec.rb +1 -1
- data/spec/models/musical_features_dto_spec.rb +163 -163
- data/spec/models/p_line_dto_spec.rb +1 -1
- data/spec/models/party_large_dto_spec.rb +1 -1
- data/spec/models/party_small_dto_spec.rb +1 -1
- data/spec/models/playlist_large_dto_spec.rb +4 -4
- data/spec/models/product_medium_dto_spec.rb +7 -7
- data/spec/models/product_party_dto_spec.rb +1 -1
- data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
- data/spec/models/recording_genre_prediction_dto_spec.rb +1 -1
- data/spec/models/recording_large_dto_spec.rb +9 -9
- data/spec/models/recording_list_dto_spec.rb +1 -1
- data/spec/models/recording_medium_dto_spec.rb +10 -4
- data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
- data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
- data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
- data/spec/models/recording_party_dto_spec.rb +1 -1
- data/spec/models/recording_playlist_dto_spec.rb +1 -1
- data/spec/models/recording_small_dto_spec.rb +4 -4
- data/spec/models/recording_tag_small_dto_spec.rb +1 -1
- data/spec/models/save_file_recording_dto_spec.rb +1 -1
- data/spec/models/save_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_genre_dto_spec.rb +1 -1
- data/spec/models/save_recording_party_dto_spec.rb +1 -1
- data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
- data/spec/models/save_recording_tag_dto_spec.rb +1 -1
- data/spec/models/save_referrer_dto_spec.rb +1 -1
- data/spec/models/save_taggrams_dto_spec.rb +1 -1
- data/spec/models/save_user_dto_spec.rb +1 -1
- data/spec/models/search_filter_values_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
- data/spec/models/search_recording_granular_dto_spec.rb +1 -1
- data/spec/models/sign_up_dto_spec.rb +1 -1
- data/spec/models/tag_dto_spec.rb +1 -1
- data/spec/models/tag_small_dto_spec.rb +1 -1
- data/spec/models/taggram_dto_spec.rb +1 -1
- data/spec/models/tags_summary_dto_spec.rb +1 -1
- data/spec/models/tagstrength_dto_spec.rb +1 -1
- data/spec/models/title_dto_spec.rb +1 -1
- data/spec/models/token_request_spec.rb +1 -1
- data/spec/models/track_dto_spec.rb +34 -0
- data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
- data/spec/models/update_password_dto_spec.rb +1 -1
- data/spec/models/usage_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +55 -1
- data/spec/spec_helper.rb +1 -1
- metadata +62 -58
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -86,16 +86,21 @@ module SongtradrApiClientRuby
|
|
|
86
86
|
|
|
87
87
|
if attributes.key?(:'full_name')
|
|
88
88
|
self.full_name = attributes[:'full_name']
|
|
89
|
+
else
|
|
90
|
+
self.full_name = nil
|
|
89
91
|
end
|
|
90
92
|
|
|
91
93
|
if attributes.key?(:'contributor_type')
|
|
92
94
|
self.contributor_type = attributes[:'contributor_type']
|
|
95
|
+
else
|
|
96
|
+
self.contributor_type = nil
|
|
93
97
|
end
|
|
94
98
|
end
|
|
95
99
|
|
|
96
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
97
101
|
# @return Array for valid properties with the reasons
|
|
98
102
|
def list_invalid_properties
|
|
103
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
104
|
invalid_properties = Array.new
|
|
100
105
|
if @full_name.nil?
|
|
101
106
|
invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
|
|
@@ -111,6 +116,7 @@ module SongtradrApiClientRuby
|
|
|
111
116
|
# Check to see if the all the properties in the model are valid
|
|
112
117
|
# @return true if the model is valid
|
|
113
118
|
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
114
120
|
return false if @full_name.nil?
|
|
115
121
|
return false if @contributor_type.nil?
|
|
116
122
|
contributor_type_validator = EnumAttributeValidator.new('String', ["trackArtist", "composer", "author"])
|
|
@@ -153,37 +159,30 @@ module SongtradrApiClientRuby
|
|
|
153
159
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
160
|
# @return [Object] Returns the model itself
|
|
155
161
|
def self.build_from_hash(attributes)
|
|
156
|
-
new.build_from_hash(attributes)
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# Builds the object from hash
|
|
160
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
161
|
-
# @return [Object] Returns the model itself
|
|
162
|
-
def build_from_hash(attributes)
|
|
163
162
|
return nil unless attributes.is_a?(Hash)
|
|
164
163
|
attributes = attributes.transform_keys(&:to_sym)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
transformed_hash = {}
|
|
165
|
+
openapi_types.each_pair do |key, type|
|
|
166
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
167
|
+
transformed_hash["#{key}"] = nil
|
|
168
168
|
elsif type =~ /\AArray<(.*)>/i
|
|
169
169
|
# check to ensure the input is an array given that the attribute
|
|
170
170
|
# is documented as an array but the input is not
|
|
171
|
-
if attributes[
|
|
172
|
-
|
|
171
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
172
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
173
173
|
end
|
|
174
|
-
elsif !attributes[
|
|
175
|
-
|
|
174
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
175
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
176
176
|
end
|
|
177
177
|
end
|
|
178
|
-
|
|
179
|
-
self
|
|
178
|
+
new(transformed_hash)
|
|
180
179
|
end
|
|
181
180
|
|
|
182
181
|
# Deserializes the data based on type
|
|
183
182
|
# @param string type Data type
|
|
184
183
|
# @param string value Value to be deserialized
|
|
185
184
|
# @return [Object] Deserialized data
|
|
186
|
-
def _deserialize(type, value)
|
|
185
|
+
def self._deserialize(type, value)
|
|
187
186
|
case type.to_sym
|
|
188
187
|
when :Time
|
|
189
188
|
Time.parse(value)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -68,10 +68,14 @@ module SongtradrApiClientRuby
|
|
|
68
68
|
|
|
69
69
|
if attributes.key?(:'songtradr_track_guid')
|
|
70
70
|
self.songtradr_track_guid = attributes[:'songtradr_track_guid']
|
|
71
|
+
else
|
|
72
|
+
self.songtradr_track_guid = nil
|
|
71
73
|
end
|
|
72
74
|
|
|
73
75
|
if attributes.key?(:'assigned_by_id')
|
|
74
76
|
self.assigned_by_id = attributes[:'assigned_by_id']
|
|
77
|
+
else
|
|
78
|
+
self.assigned_by_id = nil
|
|
75
79
|
end
|
|
76
80
|
|
|
77
81
|
if attributes.key?(:'sequence')
|
|
@@ -82,6 +86,7 @@ module SongtradrApiClientRuby
|
|
|
82
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
83
87
|
# @return Array for valid properties with the reasons
|
|
84
88
|
def list_invalid_properties
|
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
90
|
invalid_properties = Array.new
|
|
86
91
|
if @songtradr_track_guid.nil?
|
|
87
92
|
invalid_properties.push('invalid value for "songtradr_track_guid", songtradr_track_guid cannot be nil.')
|
|
@@ -97,6 +102,7 @@ module SongtradrApiClientRuby
|
|
|
97
102
|
# Check to see if the all the properties in the model are valid
|
|
98
103
|
# @return true if the model is valid
|
|
99
104
|
def valid?
|
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
106
|
return false if @songtradr_track_guid.nil?
|
|
101
107
|
return false if @assigned_by_id.nil?
|
|
102
108
|
true
|
|
@@ -128,37 +134,30 @@ module SongtradrApiClientRuby
|
|
|
128
134
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
135
|
# @return [Object] Returns the model itself
|
|
130
136
|
def self.build_from_hash(attributes)
|
|
131
|
-
new.build_from_hash(attributes)
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# Builds the object from hash
|
|
135
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
136
|
-
# @return [Object] Returns the model itself
|
|
137
|
-
def build_from_hash(attributes)
|
|
138
137
|
return nil unless attributes.is_a?(Hash)
|
|
139
138
|
attributes = attributes.transform_keys(&:to_sym)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
transformed_hash = {}
|
|
140
|
+
openapi_types.each_pair do |key, type|
|
|
141
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
142
|
+
transformed_hash["#{key}"] = nil
|
|
143
143
|
elsif type =~ /\AArray<(.*)>/i
|
|
144
144
|
# check to ensure the input is an array given that the attribute
|
|
145
145
|
# is documented as an array but the input is not
|
|
146
|
-
if attributes[
|
|
147
|
-
|
|
146
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
147
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
148
148
|
end
|
|
149
|
-
elsif !attributes[
|
|
150
|
-
|
|
149
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
150
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
|
-
|
|
154
|
-
self
|
|
153
|
+
new(transformed_hash)
|
|
155
154
|
end
|
|
156
155
|
|
|
157
156
|
# Deserializes the data based on type
|
|
158
157
|
# @param string type Data type
|
|
159
158
|
# @param string value Value to be deserialized
|
|
160
159
|
# @return [Object] Deserialized data
|
|
161
|
-
def _deserialize(type, value)
|
|
160
|
+
def self._deserialize(type, value)
|
|
162
161
|
case type.to_sym
|
|
163
162
|
when :Time
|
|
164
163
|
Time.parse(value)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -64,6 +64,8 @@ module SongtradrApiClientRuby
|
|
|
64
64
|
|
|
65
65
|
if attributes.key?(:'tag_name')
|
|
66
66
|
self.tag_name = attributes[:'tag_name']
|
|
67
|
+
else
|
|
68
|
+
self.tag_name = nil
|
|
67
69
|
end
|
|
68
70
|
|
|
69
71
|
if attributes.key?(:'affinity')
|
|
@@ -74,6 +76,7 @@ module SongtradrApiClientRuby
|
|
|
74
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
77
|
# @return Array for valid properties with the reasons
|
|
76
78
|
def list_invalid_properties
|
|
79
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
80
|
invalid_properties = Array.new
|
|
78
81
|
if @tag_name.nil?
|
|
79
82
|
invalid_properties.push('invalid value for "tag_name", tag_name cannot be nil.')
|
|
@@ -85,6 +88,7 @@ module SongtradrApiClientRuby
|
|
|
85
88
|
# Check to see if the all the properties in the model are valid
|
|
86
89
|
# @return true if the model is valid
|
|
87
90
|
def valid?
|
|
91
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
88
92
|
return false if @tag_name.nil?
|
|
89
93
|
true
|
|
90
94
|
end
|
|
@@ -114,37 +118,30 @@ module SongtradrApiClientRuby
|
|
|
114
118
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
115
119
|
# @return [Object] Returns the model itself
|
|
116
120
|
def self.build_from_hash(attributes)
|
|
117
|
-
new.build_from_hash(attributes)
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Builds the object from hash
|
|
121
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
122
|
-
# @return [Object] Returns the model itself
|
|
123
|
-
def build_from_hash(attributes)
|
|
124
121
|
return nil unless attributes.is_a?(Hash)
|
|
125
122
|
attributes = attributes.transform_keys(&:to_sym)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
transformed_hash = {}
|
|
124
|
+
openapi_types.each_pair do |key, type|
|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = nil
|
|
129
127
|
elsif type =~ /\AArray<(.*)>/i
|
|
130
128
|
# check to ensure the input is an array given that the attribute
|
|
131
129
|
# is documented as an array but the input is not
|
|
132
|
-
if attributes[
|
|
133
|
-
|
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
134
132
|
end
|
|
135
|
-
elsif !attributes[
|
|
136
|
-
|
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
137
135
|
end
|
|
138
136
|
end
|
|
139
|
-
|
|
140
|
-
self
|
|
137
|
+
new(transformed_hash)
|
|
141
138
|
end
|
|
142
139
|
|
|
143
140
|
# Deserializes the data based on type
|
|
144
141
|
# @param string type Data type
|
|
145
142
|
# @param string value Value to be deserialized
|
|
146
143
|
# @return [Object] Deserialized data
|
|
147
|
-
def _deserialize(type, value)
|
|
144
|
+
def self._deserialize(type, value)
|
|
148
145
|
case type.to_sym
|
|
149
146
|
when :Time
|
|
150
147
|
Time.parse(value)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -74,6 +74,7 @@ module SongtradrApiClientRuby
|
|
|
74
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
75
|
# @return Array for valid properties with the reasons
|
|
76
76
|
def list_invalid_properties
|
|
77
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
78
|
invalid_properties = Array.new
|
|
78
79
|
invalid_properties
|
|
79
80
|
end
|
|
@@ -81,6 +82,7 @@ module SongtradrApiClientRuby
|
|
|
81
82
|
# Check to see if the all the properties in the model are valid
|
|
82
83
|
# @return true if the model is valid
|
|
83
84
|
def valid?
|
|
85
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
84
86
|
true
|
|
85
87
|
end
|
|
86
88
|
|
|
@@ -109,37 +111,30 @@ module SongtradrApiClientRuby
|
|
|
109
111
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
112
|
# @return [Object] Returns the model itself
|
|
111
113
|
def self.build_from_hash(attributes)
|
|
112
|
-
new.build_from_hash(attributes)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# Builds the object from hash
|
|
116
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
-
# @return [Object] Returns the model itself
|
|
118
|
-
def build_from_hash(attributes)
|
|
119
114
|
return nil unless attributes.is_a?(Hash)
|
|
120
115
|
attributes = attributes.transform_keys(&:to_sym)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
transformed_hash = {}
|
|
117
|
+
openapi_types.each_pair do |key, type|
|
|
118
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
119
|
+
transformed_hash["#{key}"] = nil
|
|
124
120
|
elsif type =~ /\AArray<(.*)>/i
|
|
125
121
|
# check to ensure the input is an array given that the attribute
|
|
126
122
|
# is documented as an array but the input is not
|
|
127
|
-
if attributes[
|
|
128
|
-
|
|
123
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
124
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
129
125
|
end
|
|
130
|
-
elsif !attributes[
|
|
131
|
-
|
|
126
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
127
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
132
128
|
end
|
|
133
129
|
end
|
|
134
|
-
|
|
135
|
-
self
|
|
130
|
+
new(transformed_hash)
|
|
136
131
|
end
|
|
137
132
|
|
|
138
133
|
# Deserializes the data based on type
|
|
139
134
|
# @param string type Data type
|
|
140
135
|
# @param string value Value to be deserialized
|
|
141
136
|
# @return [Object] Deserialized data
|
|
142
|
-
def _deserialize(type, value)
|
|
137
|
+
def self._deserialize(type, value)
|
|
143
138
|
case type.to_sym
|
|
144
139
|
when :Time
|
|
145
140
|
Time.parse(value)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -388,6 +388,7 @@ module SongtradrApiClientRuby
|
|
|
388
388
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
389
389
|
# @return Array for valid properties with the reasons
|
|
390
390
|
def list_invalid_properties
|
|
391
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
391
392
|
invalid_properties = Array.new
|
|
392
393
|
invalid_properties
|
|
393
394
|
end
|
|
@@ -395,6 +396,7 @@ module SongtradrApiClientRuby
|
|
|
395
396
|
# Check to see if the all the properties in the model are valid
|
|
396
397
|
# @return true if the model is valid
|
|
397
398
|
def valid?
|
|
399
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
398
400
|
true
|
|
399
401
|
end
|
|
400
402
|
|
|
@@ -454,37 +456,30 @@ module SongtradrApiClientRuby
|
|
|
454
456
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
455
457
|
# @return [Object] Returns the model itself
|
|
456
458
|
def self.build_from_hash(attributes)
|
|
457
|
-
new.build_from_hash(attributes)
|
|
458
|
-
end
|
|
459
|
-
|
|
460
|
-
# Builds the object from hash
|
|
461
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
462
|
-
# @return [Object] Returns the model itself
|
|
463
|
-
def build_from_hash(attributes)
|
|
464
459
|
return nil unless attributes.is_a?(Hash)
|
|
465
460
|
attributes = attributes.transform_keys(&:to_sym)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
461
|
+
transformed_hash = {}
|
|
462
|
+
openapi_types.each_pair do |key, type|
|
|
463
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
464
|
+
transformed_hash["#{key}"] = nil
|
|
469
465
|
elsif type =~ /\AArray<(.*)>/i
|
|
470
466
|
# check to ensure the input is an array given that the attribute
|
|
471
467
|
# is documented as an array but the input is not
|
|
472
|
-
if attributes[
|
|
473
|
-
|
|
468
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
469
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
474
470
|
end
|
|
475
|
-
elsif !attributes[
|
|
476
|
-
|
|
471
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
472
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
477
473
|
end
|
|
478
474
|
end
|
|
479
|
-
|
|
480
|
-
self
|
|
475
|
+
new(transformed_hash)
|
|
481
476
|
end
|
|
482
477
|
|
|
483
478
|
# Deserializes the data based on type
|
|
484
479
|
# @param string type Data type
|
|
485
480
|
# @param string value Value to be deserialized
|
|
486
481
|
# @return [Object] Deserialized data
|
|
487
|
-
def _deserialize(type, value)
|
|
482
|
+
def self._deserialize(type, value)
|
|
488
483
|
case type.to_sym
|
|
489
484
|
when :Time
|
|
490
485
|
Time.parse(value)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Songtradr API. Use it to retrieve deep music metadata and trigger processes like auto-tagging. You can also use the API to manage your account and musicube cloud data. **Authentication** 1. Reach out to support@songtradr.com to receive a free account or use your login data if you are already signed up. 2. To authenticate, you need to login via the POST /api/v1/user/login endpoint. 3. The endpoint responds with a jwtToken which you can use in all following API requests as a bearer token. **Rate Limiting** The current limit is 120 Requests per minute. Reach out to us via support@songtradr.com if you need to request more. **Getting Started with auto-tagging** 1. If you want to get your own files auto-tagged, use the POST /api/v1/user/file/{name}/initUpload endpoint. It responds with a presigned S3 link where you can upload your file. 2. You can check the processing status of your file via the GET /api/v1/user/file/{name}/filesStatus endpoint. 3. As soon as processing is done, you can request the generated data via the GET /api/v1/user/files endpoint. **Getting Started with search** You can either search the released music via the /public/recording endpoints or your own private uploaded music via the /user/file/ endpoints. 1. If you want to search the world's released music, a good starting point is the GET /api/v1/public/recording/search endpoint. Please find the extensive list of parameters that serve as semantic search filters. 2. If you want to search your own previously uploaded music, a good starting point is the GET GET /api/v1/user/files endpoint. It has the same extensive list of parameters that serve as semantic search filters.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.13.0
|
|
7
7
|
Contact: info@songtradr.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 7.0.0-SNAPSHOT
|
|
@@ -107,6 +107,8 @@ module SongtradrApiClientRuby
|
|
|
107
107
|
|
|
108
108
|
if attributes.key?(:'email_address')
|
|
109
109
|
self.email_address = attributes[:'email_address']
|
|
110
|
+
else
|
|
111
|
+
self.email_address = nil
|
|
110
112
|
end
|
|
111
113
|
|
|
112
114
|
if attributes.key?(:'password')
|
|
@@ -129,6 +131,7 @@ module SongtradrApiClientRuby
|
|
|
129
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
132
|
# @return Array for valid properties with the reasons
|
|
131
133
|
def list_invalid_properties
|
|
134
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
132
135
|
invalid_properties = Array.new
|
|
133
136
|
if @email_address.nil?
|
|
134
137
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
|
@@ -140,6 +143,7 @@ module SongtradrApiClientRuby
|
|
|
140
143
|
# Check to see if the all the properties in the model are valid
|
|
141
144
|
# @return true if the model is valid
|
|
142
145
|
def valid?
|
|
146
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
147
|
system_validator = EnumAttributeValidator.new('String', ["musicube", "cloud"])
|
|
144
148
|
return false unless system_validator.valid?(@system)
|
|
145
149
|
return false if @email_address.nil?
|
|
@@ -197,37 +201,30 @@ module SongtradrApiClientRuby
|
|
|
197
201
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
198
202
|
# @return [Object] Returns the model itself
|
|
199
203
|
def self.build_from_hash(attributes)
|
|
200
|
-
new.build_from_hash(attributes)
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# Builds the object from hash
|
|
204
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
205
|
-
# @return [Object] Returns the model itself
|
|
206
|
-
def build_from_hash(attributes)
|
|
207
204
|
return nil unless attributes.is_a?(Hash)
|
|
208
205
|
attributes = attributes.transform_keys(&:to_sym)
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
206
|
+
transformed_hash = {}
|
|
207
|
+
openapi_types.each_pair do |key, type|
|
|
208
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
209
|
+
transformed_hash["#{key}"] = nil
|
|
212
210
|
elsif type =~ /\AArray<(.*)>/i
|
|
213
211
|
# check to ensure the input is an array given that the attribute
|
|
214
212
|
# is documented as an array but the input is not
|
|
215
|
-
if attributes[
|
|
216
|
-
|
|
213
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
214
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
217
215
|
end
|
|
218
|
-
elsif !attributes[
|
|
219
|
-
|
|
216
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
217
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
220
218
|
end
|
|
221
219
|
end
|
|
222
|
-
|
|
223
|
-
self
|
|
220
|
+
new(transformed_hash)
|
|
224
221
|
end
|
|
225
222
|
|
|
226
223
|
# Deserializes the data based on type
|
|
227
224
|
# @param string type Data type
|
|
228
225
|
# @param string value Value to be deserialized
|
|
229
226
|
# @return [Object] Deserialized data
|
|
230
|
-
def _deserialize(type, value)
|
|
227
|
+
def self._deserialize(type, value)
|
|
231
228
|
case type.to_sym
|
|
232
229
|
when :Time
|
|
233
230
|
Time.parse(value)
|