songtradr_api_client_ruby 1.18.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.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -7
  4. data/docs/CategoryMediumDTO.md +3 -3
  5. data/docs/FileSmallDTO.md +2 -2
  6. data/docs/MusicalFeaturesDTO.md +37 -37
  7. data/docs/RecordingApi.md +0 -68
  8. data/docs/RecordingMediumDTO.md +2 -2
  9. data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
  10. data/docs/RecordingPartyDTO.md +3 -3
  11. data/docs/RecordingSmallDTO.md +2 -2
  12. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +1 -1
  13. data/lib/songtradr_api_client_ruby/api/recording_api.rb +1 -67
  14. data/lib/songtradr_api_client_ruby/api/user_api.rb +1 -1
  15. data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
  16. data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
  17. data/lib/songtradr_api_client_ruby/configuration.rb +1 -1
  18. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +16 -16
  19. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +1 -1
  20. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +1 -1
  21. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +1 -1
  22. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +1 -1
  23. data/lib/songtradr_api_client_ruby/models/error_response.rb +1 -1
  24. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +1 -1
  25. data/lib/songtradr_api_client_ruby/models/file_dto.rb +1 -1
  26. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +1 -1
  27. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +13 -13
  28. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +1 -1
  29. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +1 -1
  30. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +1 -1
  31. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +1 -1
  32. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +1 -1
  33. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +1 -1
  34. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +1 -1
  35. data/lib/songtradr_api_client_ruby/models/image_recognition_response.rb +1 -1
  36. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +1 -1
  37. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +1 -1
  38. data/lib/songtradr_api_client_ruby/models/login_dto.rb +1 -1
  39. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +179 -179
  40. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +1 -1
  41. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +1 -1
  42. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +1 -1
  43. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +1 -1
  44. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +13 -13
  45. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +16 -16
  46. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +1 -1
  47. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +1 -1
  48. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +16 -16
  49. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +13 -13
  50. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +1 -1
  51. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +1 -1
  52. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +1 -1
  53. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +1 -1
  54. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +1 -1
  55. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +1 -1
  56. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +1 -1
  57. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +1 -1
  58. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +1 -1
  59. data/lib/songtradr_api_client_ruby/models/title_dto.rb +1 -1
  60. data/lib/songtradr_api_client_ruby/models/token_request.rb +1 -1
  61. data/lib/songtradr_api_client_ruby/models/track_dto.rb +1 -1
  62. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +1 -1
  63. data/lib/songtradr_api_client_ruby/models/user_dto.rb +1 -1
  64. data/lib/songtradr_api_client_ruby/models/video_recognition_response.rb +1 -1
  65. data/lib/songtradr_api_client_ruby/version.rb +2 -2
  66. data/lib/songtradr_api_client_ruby.rb +1 -2
  67. data/openapi-generator-config.yaml +1 -1
  68. data/songtradr_api_client_ruby.gemspec +1 -1
  69. data/spec/api/allowed_values_api_spec.rb +1 -1
  70. data/spec/api/recording_api_spec.rb +1 -12
  71. data/spec/api/user_api_spec.rb +1 -1
  72. data/spec/models/category_medium_dto_spec.rb +3 -3
  73. data/spec/models/category_minimal_dto_spec.rb +1 -1
  74. data/spec/models/config_access_dto_spec.rb +1 -1
  75. data/spec/models/config_identifier_dto_spec.rb +1 -1
  76. data/spec/models/contributor_type_dto_spec.rb +1 -1
  77. data/spec/models/error_response_spec.rb +1 -1
  78. data/spec/models/field_summary_dto_spec.rb +1 -1
  79. data/spec/models/file_dto_spec.rb +1 -1
  80. data/spec/models/file_list_dto_spec.rb +1 -1
  81. data/spec/models/file_small_dto_spec.rb +9 -9
  82. data/spec/models/file_upload_dto_spec.rb +1 -1
  83. data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
  84. data/spec/models/files_summary_dto_spec.rb +1 -1
  85. data/spec/models/forgot_password_dto_spec.rb +1 -1
  86. data/spec/models/genre_dto_spec.rb +1 -1
  87. data/spec/models/genre_minimal_dto_spec.rb +1 -1
  88. data/spec/models/genres_summary_dto_spec.rb +1 -1
  89. data/spec/models/image_recognition_response_spec.rb +1 -1
  90. data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
  91. data/spec/models/jwt_token_dto_spec.rb +1 -1
  92. data/spec/models/login_dto_spec.rb +1 -1
  93. data/spec/models/musical_features_dto_spec.rb +109 -109
  94. data/spec/models/party_small_dto_spec.rb +1 -1
  95. data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
  96. data/spec/models/recording_genre_prediction_dto_spec.rb +1 -1
  97. data/spec/models/recording_list_dto_spec.rb +1 -1
  98. data/spec/models/recording_medium_dto_spec.rb +7 -7
  99. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
  100. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
  101. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
  102. data/spec/models/recording_party_dto_spec.rb +3 -3
  103. data/spec/models/recording_small_dto_spec.rb +4 -4
  104. data/spec/models/recording_tag_small_dto_spec.rb +1 -1
  105. data/spec/models/save_user_dto_spec.rb +1 -1
  106. data/spec/models/search_filter_values_dto_spec.rb +1 -1
  107. data/spec/models/sign_up_dto_spec.rb +1 -1
  108. data/spec/models/tag_dto_spec.rb +1 -1
  109. data/spec/models/tag_small_dto_spec.rb +1 -1
  110. data/spec/models/taggram_dto_spec.rb +1 -1
  111. data/spec/models/tags_summary_dto_spec.rb +1 -1
  112. data/spec/models/tagstrength_dto_spec.rb +1 -1
  113. data/spec/models/title_dto_spec.rb +1 -1
  114. data/spec/models/token_request_spec.rb +1 -1
  115. data/spec/models/track_dto_spec.rb +1 -1
  116. data/spec/models/update_password_dto_spec.rb +1 -1
  117. data/spec/models/user_dto_spec.rb +1 -1
  118. data/spec/models/video_recognition_response_spec.rb +1 -1
  119. data/spec/spec_helper.rb +1 -1
  120. metadata +2 -6
  121. data/docs/SearchRecordingGranularDTO.md +0 -20
  122. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +0 -232
  123. data/spec/models/search_recording_granular_dto_spec.rb +0 -42
@@ -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.18.0
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
9
  OpenAPI Generator version: 7.4.0-SNAPSHOT
@@ -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.18.0
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
9
  OpenAPI Generator version: 7.4.0-SNAPSHOT
@@ -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.18.0
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
9
  OpenAPI Generator version: 7.4.0-SNAPSHOT
@@ -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.18.0
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
9
  OpenAPI Generator version: 7.4.0-SNAPSHOT
data/spec/spec_helper.rb CHANGED
@@ -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.18.0
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
9
  OpenAPI Generator version: 7.4.0-SNAPSHOT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: songtradr_api_client_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - songtradr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -126,7 +126,6 @@ files:
126
126
  - docs/RecordingTagSmallDTO.md
127
127
  - docs/SaveUserDTO.md
128
128
  - docs/SearchFilterValuesDTO.md
129
- - docs/SearchRecordingGranularDTO.md
130
129
  - docs/SignUpDTO.md
131
130
  - docs/TagDTO.md
132
131
  - docs/TagSmallDTO.md
@@ -184,7 +183,6 @@ files:
184
183
  - lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb
185
184
  - lib/songtradr_api_client_ruby/models/save_user_dto.rb
186
185
  - lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb
187
- - lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb
188
186
  - lib/songtradr_api_client_ruby/models/sign_up_dto.rb
189
187
  - lib/songtradr_api_client_ruby/models/tag_dto.rb
190
188
  - lib/songtradr_api_client_ruby/models/tag_small_dto.rb
@@ -238,7 +236,6 @@ files:
238
236
  - spec/models/recording_tag_small_dto_spec.rb
239
237
  - spec/models/save_user_dto_spec.rb
240
238
  - spec/models/search_filter_values_dto_spec.rb
241
- - spec/models/search_recording_granular_dto_spec.rb
242
239
  - spec/models/sign_up_dto_spec.rb
243
240
  - spec/models/tag_dto_spec.rb
244
241
  - spec/models/tag_small_dto_spec.rb
@@ -300,7 +297,6 @@ test_files:
300
297
  - spec/models/tags_summary_dto_spec.rb
301
298
  - spec/models/genre_minimal_dto_spec.rb
302
299
  - spec/models/category_medium_dto_spec.rb
303
- - spec/models/search_recording_granular_dto_spec.rb
304
300
  - spec/models/contributor_type_dto_spec.rb
305
301
  - spec/models/party_small_dto_spec.rb
306
302
  - spec/models/category_minimal_dto_spec.rb
@@ -1,20 +0,0 @@
1
- # SongtradrApiClientRuby::SearchRecordingGranularDTO
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **strength** | **Float** | Strength of presence of the corresponding category, tag or genre. | [optional] |
8
- | **tag_name** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'songtradr_api_client_ruby'
14
-
15
- instance = SongtradrApiClientRuby::SearchRecordingGranularDTO.new(
16
- strength: null,
17
- tag_name: null
18
- )
19
- ```
20
-
@@ -1,232 +0,0 @@
1
- =begin
2
- #Songtradr API
3
-
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
-
6
- The version of the OpenAPI document: 1.18.0
7
- Contact: info@songtradr.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.4.0-SNAPSHOT
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module SongtradrApiClientRuby
17
- # Timeseries of tags.
18
- class SearchRecordingGranularDTO
19
- # Strength of presence of the corresponding category, tag or genre.
20
- attr_accessor :strength
21
-
22
- attr_accessor :tag_name
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'strength' => :'strength',
28
- :'tag_name' => :'tagName'
29
- }
30
- end
31
-
32
- # Returns all the JSON keys this model knows about
33
- def self.acceptable_attributes
34
- attribute_map.values
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.openapi_types
39
- {
40
- :'strength' => :'Float',
41
- :'tag_name' => :'String'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `SongtradrApiClientRuby::SearchRecordingGranularDTO` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `SongtradrApiClientRuby::SearchRecordingGranularDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
- end
63
- h[k.to_sym] = v
64
- }
65
-
66
- if attributes.key?(:'strength')
67
- self.strength = attributes[:'strength']
68
- end
69
-
70
- if attributes.key?(:'tag_name')
71
- self.tag_name = attributes[:'tag_name']
72
- else
73
- self.tag_name = nil
74
- end
75
- end
76
-
77
- # Show invalid properties with the reasons. Usually used together with valid?
78
- # @return Array for valid properties with the reasons
79
- def list_invalid_properties
80
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
81
- invalid_properties = Array.new
82
- if @tag_name.nil?
83
- invalid_properties.push('invalid value for "tag_name", tag_name cannot be nil.')
84
- end
85
-
86
- invalid_properties
87
- end
88
-
89
- # Check to see if the all the properties in the model are valid
90
- # @return true if the model is valid
91
- def valid?
92
- warn '[DEPRECATED] the `valid?` method is obsolete'
93
- return false if @tag_name.nil?
94
- true
95
- end
96
-
97
- # Checks equality by comparing each attribute.
98
- # @param [Object] Object to be compared
99
- def ==(o)
100
- return true if self.equal?(o)
101
- self.class == o.class &&
102
- strength == o.strength &&
103
- tag_name == o.tag_name
104
- end
105
-
106
- # @see the `==` method
107
- # @param [Object] Object to be compared
108
- def eql?(o)
109
- self == o
110
- end
111
-
112
- # Calculates hash code according to all attributes.
113
- # @return [Integer] Hash code
114
- def hash
115
- [strength, tag_name].hash
116
- end
117
-
118
- # Builds the object from hash
119
- # @param [Hash] attributes Model attributes in the form of hash
120
- # @return [Object] Returns the model itself
121
- def self.build_from_hash(attributes)
122
- return nil unless attributes.is_a?(Hash)
123
- attributes = attributes.transform_keys(&:to_sym)
124
- transformed_hash = {}
125
- openapi_types.each_pair do |key, type|
126
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
127
- transformed_hash["#{key}"] = nil
128
- elsif type =~ /\AArray<(.*)>/i
129
- # check to ensure the input is an array given that the attribute
130
- # is documented as an array but the input is not
131
- if attributes[attribute_map[key]].is_a?(Array)
132
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
133
- end
134
- elsif !attributes[attribute_map[key]].nil?
135
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
136
- end
137
- end
138
- new(transformed_hash)
139
- end
140
-
141
- # Deserializes the data based on type
142
- # @param string type Data type
143
- # @param string value Value to be deserialized
144
- # @return [Object] Deserialized data
145
- def self._deserialize(type, value)
146
- case type.to_sym
147
- when :Time
148
- Time.parse(value)
149
- when :Date
150
- Date.parse(value)
151
- when :String
152
- value.to_s
153
- when :Integer
154
- value.to_i
155
- when :Float
156
- value.to_f
157
- when :Boolean
158
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
- true
160
- else
161
- false
162
- end
163
- when :Object
164
- # generic object (usually a Hash), return directly
165
- value
166
- when /\AArray<(?<inner_type>.+)>\z/
167
- inner_type = Regexp.last_match[:inner_type]
168
- value.map { |v| _deserialize(inner_type, v) }
169
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
- k_type = Regexp.last_match[:k_type]
171
- v_type = Regexp.last_match[:v_type]
172
- {}.tap do |hash|
173
- value.each do |k, v|
174
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
- end
176
- end
177
- else # model
178
- # models (e.g. Pet) or oneOf
179
- klass = SongtradrApiClientRuby.const_get(type)
180
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
- end
182
- end
183
-
184
- # Returns the string representation of the object
185
- # @return [String] String presentation of the object
186
- def to_s
187
- to_hash.to_s
188
- end
189
-
190
- # to_body is an alias to to_hash (backward compatibility)
191
- # @return [Hash] Returns the object in the form of hash
192
- def to_body
193
- to_hash
194
- end
195
-
196
- # Returns the object in the form of hash
197
- # @return [Hash] Returns the object in the form of hash
198
- def to_hash
199
- hash = {}
200
- self.class.attribute_map.each_pair do |attr, param|
201
- value = self.send(attr)
202
- if value.nil?
203
- is_nullable = self.class.openapi_nullable.include?(attr)
204
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
- end
206
-
207
- hash[param] = _to_hash(value)
208
- end
209
- hash
210
- end
211
-
212
- # Outputs non-array value in the form of hash
213
- # For object, use to_hash. Otherwise, just return the value
214
- # @param [Object] value Any valid value
215
- # @return [Hash] Returns the value in the form of hash
216
- def _to_hash(value)
217
- if value.is_a?(Array)
218
- value.compact.map { |v| _to_hash(v) }
219
- elsif value.is_a?(Hash)
220
- {}.tap do |hash|
221
- value.each { |k, v| hash[k] = _to_hash(v) }
222
- end
223
- elsif value.respond_to? :to_hash
224
- value.to_hash
225
- else
226
- value
227
- end
228
- end
229
-
230
- end
231
-
232
- end
@@ -1,42 +0,0 @@
1
- =begin
2
- #Songtradr API
3
-
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
-
6
- The version of the OpenAPI document: 1.18.0
7
- Contact: info@songtradr.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.4.0-SNAPSHOT
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for SongtradrApiClientRuby::SearchRecordingGranularDTO
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SongtradrApiClientRuby::SearchRecordingGranularDTO do
21
- let(:instance) { SongtradrApiClientRuby::SearchRecordingGranularDTO.new }
22
-
23
- describe 'test an instance of SearchRecordingGranularDTO' do
24
- it 'should create an instance of SearchRecordingGranularDTO' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SongtradrApiClientRuby::SearchRecordingGranularDTO)
27
- end
28
- end
29
-
30
- describe 'test attribute "strength"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- end
34
- end
35
-
36
- describe 'test attribute "tag_name"' do
37
- it 'should work' do
38
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- end
40
- end
41
-
42
- end