songtradr_api_client_ruby 1.12.22 → 1.12.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +26 -12
  4. data/docs/APIKeysApi.md +217 -0
  5. data/docs/AdminApiUserDTO.md +70 -0
  6. data/docs/AllowedValuesApi.md +2 -2
  7. data/docs/ApiKeyDTO.md +24 -0
  8. data/docs/CreateApiKeyDTO.md +18 -0
  9. data/docs/FileSmallDTO.md +16 -16
  10. data/docs/MusicalFeaturesDTO.md +82 -82
  11. data/docs/PlaylistLargeDTO.md +9 -9
  12. data/docs/ProductMediumDTO.md +2 -2
  13. data/docs/RecordingApi.md +2 -0
  14. data/docs/RecordingGenrePredictionDTO.md +3 -3
  15. data/docs/RecordingLargeDTO.md +11 -11
  16. data/docs/RecordingMediumDTO.md +7 -7
  17. data/docs/RecordingMinimalWithMusicalFeaturesDTO.md +3 -3
  18. data/docs/RecordingPlaylistDTO.md +3 -3
  19. data/docs/RecordingSmallDTO.md +3 -3
  20. data/docs/UserApi.md +4 -0
  21. data/docs/UserDTO.md +20 -0
  22. data/lib/songtradr_api_client_ruby/api/allowed_values_api.rb +4 -4
  23. data/lib/songtradr_api_client_ruby/api/api_keys_api.rb +213 -0
  24. data/lib/songtradr_api_client_ruby/api/party_api.rb +1 -1
  25. data/lib/songtradr_api_client_ruby/api/playlist_api.rb +1 -1
  26. data/lib/songtradr_api_client_ruby/api/recording_api.rb +4 -1
  27. data/lib/songtradr_api_client_ruby/api/user_api.rb +7 -1
  28. data/lib/songtradr_api_client_ruby/api_client.rb +1 -1
  29. data/lib/songtradr_api_client_ruby/api_error.rb +1 -1
  30. data/lib/songtradr_api_client_ruby/configuration.rb +10 -8
  31. data/lib/songtradr_api_client_ruby/models/admin_api_user_dto.rb +448 -0
  32. data/lib/songtradr_api_client_ruby/models/api_key_dto.rb +262 -0
  33. data/lib/songtradr_api_client_ruby/models/category_medium_dto.rb +17 -18
  34. data/lib/songtradr_api_client_ruby/models/category_minimal_dto.rb +15 -18
  35. data/lib/songtradr_api_client_ruby/models/config_access_dto.rb +17 -18
  36. data/lib/songtradr_api_client_ruby/models/config_identifier_dto.rb +17 -18
  37. data/lib/songtradr_api_client_ruby/models/contributor_type_dto.rb +15 -18
  38. data/lib/songtradr_api_client_ruby/models/create_api_key_dto.rb +214 -0
  39. data/lib/songtradr_api_client_ruby/models/error_response.rb +19 -18
  40. data/lib/songtradr_api_client_ruby/models/field_summary_dto.rb +19 -18
  41. data/lib/songtradr_api_client_ruby/models/file_dto.rb +23 -18
  42. data/lib/songtradr_api_client_ruby/models/file_list_dto.rb +21 -18
  43. data/lib/songtradr_api_client_ruby/models/file_minimal_with_url_dto.rb +19 -18
  44. data/lib/songtradr_api_client_ruby/models/file_small_dto.rb +81 -76
  45. data/lib/songtradr_api_client_ruby/models/file_upload_dto.rb +13 -18
  46. data/lib/songtradr_api_client_ruby/models/file_w_ith_url_dto.rb +17 -18
  47. data/lib/songtradr_api_client_ruby/models/files_summary_dto.rb +15 -18
  48. data/lib/songtradr_api_client_ruby/models/forgot_password_dto.rb +15 -18
  49. data/lib/songtradr_api_client_ruby/models/genre_dto.rb +17 -18
  50. data/lib/songtradr_api_client_ruby/models/genre_minimal_dto.rb +15 -18
  51. data/lib/songtradr_api_client_ruby/models/genres_summary_dto.rb +17 -18
  52. data/lib/songtradr_api_client_ruby/models/init_put_recording_audio_dto.rb +13 -18
  53. data/lib/songtradr_api_client_ruby/models/jwt_token_dto.rb +17 -18
  54. data/lib/songtradr_api_client_ruby/models/login_dto.rb +17 -18
  55. data/lib/songtradr_api_client_ruby/models/musical_features_dto.rb +529 -534
  56. data/lib/songtradr_api_client_ruby/models/p_line_dto.rb +15 -18
  57. data/lib/songtradr_api_client_ruby/models/party_large_dto.rb +15 -18
  58. data/lib/songtradr_api_client_ruby/models/party_small_dto.rb +17 -18
  59. data/lib/songtradr_api_client_ruby/models/playlist_large_dto.rb +54 -57
  60. data/lib/songtradr_api_client_ruby/models/product_medium_dto.rb +35 -28
  61. data/lib/songtradr_api_client_ruby/models/product_party_dto.rb +15 -18
  62. data/lib/songtradr_api_client_ruby/models/recording_for_similarity_search_dto.rb +17 -18
  63. data/lib/songtradr_api_client_ruby/models/recording_genre_prediction_dto.rb +37 -36
  64. data/lib/songtradr_api_client_ruby/models/recording_large_dto.rb +94 -77
  65. data/lib/songtradr_api_client_ruby/models/recording_list_dto.rb +21 -18
  66. data/lib/songtradr_api_client_ruby/models/recording_medium_dto.rb +64 -51
  67. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_musical_features_dto.rb +28 -31
  68. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_taggrams_dto.rb +15 -18
  69. data/lib/songtradr_api_client_ruby/models/recording_minimal_with_tagstrengths_dto.rb +15 -18
  70. data/lib/songtradr_api_client_ruby/models/recording_party_dto.rb +15 -18
  71. data/lib/songtradr_api_client_ruby/models/recording_playlist_dto.rb +26 -31
  72. data/lib/songtradr_api_client_ruby/models/recording_small_dto.rb +36 -31
  73. data/lib/songtradr_api_client_ruby/models/recording_tag_small_dto.rb +15 -18
  74. data/lib/songtradr_api_client_ruby/models/save_file_recording_dto.rb +17 -18
  75. data/lib/songtradr_api_client_ruby/models/save_playlist_dto.rb +21 -18
  76. data/lib/songtradr_api_client_ruby/models/save_recording_genre_dto.rb +15 -18
  77. data/lib/songtradr_api_client_ruby/models/save_recording_party_dto.rb +17 -18
  78. data/lib/songtradr_api_client_ruby/models/save_recording_playlist_dto.rb +17 -18
  79. data/lib/songtradr_api_client_ruby/models/save_recording_tag_dto.rb +15 -18
  80. data/lib/songtradr_api_client_ruby/models/save_referrer_dto.rb +13 -18
  81. data/lib/songtradr_api_client_ruby/models/save_taggrams_dto.rb +13 -18
  82. data/lib/songtradr_api_client_ruby/models/save_user_dto.rb +15 -18
  83. data/lib/songtradr_api_client_ruby/models/search_filter_values_dto.rb +95 -18
  84. data/lib/songtradr_api_client_ruby/models/search_recording_granular_abstraction_dto.rb +15 -18
  85. data/lib/songtradr_api_client_ruby/models/search_recording_granular_dto.rb +15 -18
  86. data/lib/songtradr_api_client_ruby/models/sign_up_dto.rb +19 -18
  87. data/lib/songtradr_api_client_ruby/models/tag_dto.rb +17 -18
  88. data/lib/songtradr_api_client_ruby/models/tag_small_dto.rb +17 -18
  89. data/lib/songtradr_api_client_ruby/models/taggram_dto.rb +17 -18
  90. data/lib/songtradr_api_client_ruby/models/tags_summary_dto.rb +17 -18
  91. data/lib/songtradr_api_client_ruby/models/tagstrength_dto.rb +17 -18
  92. data/lib/songtradr_api_client_ruby/models/title_dto.rb +15 -18
  93. data/lib/songtradr_api_client_ruby/models/token_request.rb +15 -18
  94. data/lib/songtradr_api_client_ruby/models/track_to_medium_product_dto.rb +17 -18
  95. data/lib/songtradr_api_client_ruby/models/update_password_dto.rb +17 -18
  96. data/lib/songtradr_api_client_ruby/models/usage_dto.rb +13 -18
  97. data/lib/songtradr_api_client_ruby/models/user_dto.rb +210 -19
  98. data/lib/songtradr_api_client_ruby/version.rb +2 -2
  99. data/lib/songtradr_api_client_ruby.rb +5 -1
  100. data/openapi-generator-config.yaml +1 -1
  101. data/songtradr_api_client_ruby.gemspec +1 -1
  102. data/spec/api/allowed_values_api_spec.rb +2 -2
  103. data/spec/api/api_keys_api_spec.rb +70 -0
  104. data/spec/api/party_api_spec.rb +1 -1
  105. data/spec/api/playlist_api_spec.rb +1 -1
  106. data/spec/api/recording_api_spec.rb +2 -1
  107. data/spec/api/user_api_spec.rb +3 -1
  108. data/spec/api_client_spec.rb +1 -1
  109. data/spec/configuration_spec.rb +1 -1
  110. data/spec/models/admin_api_user_dto_spec.rb +190 -0
  111. data/spec/models/api_key_dto_spec.rb +52 -0
  112. data/spec/models/category_medium_dto_spec.rb +1 -1
  113. data/spec/models/category_minimal_dto_spec.rb +1 -1
  114. data/spec/models/config_access_dto_spec.rb +1 -1
  115. data/spec/models/config_identifier_dto_spec.rb +1 -1
  116. data/spec/models/contributor_type_dto_spec.rb +1 -1
  117. data/spec/models/create_api_key_dto_spec.rb +34 -0
  118. data/spec/models/error_response_spec.rb +1 -1
  119. data/spec/models/field_summary_dto_spec.rb +1 -1
  120. data/spec/models/file_dto_spec.rb +1 -1
  121. data/spec/models/file_list_dto_spec.rb +1 -1
  122. data/spec/models/file_minimal_with_url_dto_spec.rb +1 -1
  123. data/spec/models/file_small_dto_spec.rb +15 -15
  124. data/spec/models/file_upload_dto_spec.rb +1 -1
  125. data/spec/models/file_w_ith_url_dto_spec.rb +1 -1
  126. data/spec/models/files_summary_dto_spec.rb +1 -1
  127. data/spec/models/forgot_password_dto_spec.rb +1 -1
  128. data/spec/models/genre_dto_spec.rb +1 -1
  129. data/spec/models/genre_minimal_dto_spec.rb +1 -1
  130. data/spec/models/genres_summary_dto_spec.rb +1 -1
  131. data/spec/models/init_put_recording_audio_dto_spec.rb +1 -1
  132. data/spec/models/jwt_token_dto_spec.rb +1 -1
  133. data/spec/models/login_dto_spec.rb +1 -1
  134. data/spec/models/musical_features_dto_spec.rb +175 -175
  135. data/spec/models/p_line_dto_spec.rb +1 -1
  136. data/spec/models/party_large_dto_spec.rb +1 -1
  137. data/spec/models/party_small_dto_spec.rb +1 -1
  138. data/spec/models/playlist_large_dto_spec.rb +10 -10
  139. data/spec/models/product_medium_dto_spec.rb +7 -7
  140. data/spec/models/product_party_dto_spec.rb +1 -1
  141. data/spec/models/recording_for_similarity_search_dto_spec.rb +1 -1
  142. data/spec/models/recording_genre_prediction_dto_spec.rb +3 -3
  143. data/spec/models/recording_large_dto_spec.rb +12 -12
  144. data/spec/models/recording_list_dto_spec.rb +1 -1
  145. data/spec/models/recording_medium_dto_spec.rb +9 -9
  146. data/spec/models/recording_minimal_with_musical_features_dto_spec.rb +3 -3
  147. data/spec/models/recording_minimal_with_taggrams_dto_spec.rb +1 -1
  148. data/spec/models/recording_minimal_with_tagstrengths_dto_spec.rb +1 -1
  149. data/spec/models/recording_party_dto_spec.rb +1 -1
  150. data/spec/models/recording_playlist_dto_spec.rb +4 -4
  151. data/spec/models/recording_small_dto_spec.rb +4 -4
  152. data/spec/models/recording_tag_small_dto_spec.rb +1 -1
  153. data/spec/models/save_file_recording_dto_spec.rb +1 -1
  154. data/spec/models/save_playlist_dto_spec.rb +1 -1
  155. data/spec/models/save_recording_genre_dto_spec.rb +1 -1
  156. data/spec/models/save_recording_party_dto_spec.rb +1 -1
  157. data/spec/models/save_recording_playlist_dto_spec.rb +1 -1
  158. data/spec/models/save_recording_tag_dto_spec.rb +1 -1
  159. data/spec/models/save_referrer_dto_spec.rb +1 -1
  160. data/spec/models/save_taggrams_dto_spec.rb +1 -1
  161. data/spec/models/save_user_dto_spec.rb +1 -1
  162. data/spec/models/search_filter_values_dto_spec.rb +1 -1
  163. data/spec/models/search_recording_granular_abstraction_dto_spec.rb +1 -1
  164. data/spec/models/search_recording_granular_dto_spec.rb +1 -1
  165. data/spec/models/sign_up_dto_spec.rb +1 -1
  166. data/spec/models/tag_dto_spec.rb +1 -1
  167. data/spec/models/tag_small_dto_spec.rb +1 -1
  168. data/spec/models/taggram_dto_spec.rb +1 -1
  169. data/spec/models/tags_summary_dto_spec.rb +1 -1
  170. data/spec/models/tagstrength_dto_spec.rb +1 -1
  171. data/spec/models/title_dto_spec.rb +1 -1
  172. data/spec/models/token_request_spec.rb +1 -1
  173. data/spec/models/track_to_medium_product_dto_spec.rb +1 -1
  174. data/spec/models/update_password_dto_spec.rb +1 -1
  175. data/spec/models/usage_dto_spec.rb +1 -1
  176. data/spec/models/user_dto_spec.rb +61 -1
  177. data/spec/spec_helper.rb +1 -1
  178. metadata +72 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9496e7db7452484fd349e9c0b8801a55995babe6369d12f5f9c0759cb7724ea8
4
- data.tar.gz: c76963a03ad269009cdb5b6a3e43be94427afb208187430030ac9c8106b196de
3
+ metadata.gz: f66f5d36b93dd1a67f830deb98b9f9db2b28486bd1e53650c09beffdb6467005
4
+ data.tar.gz: 5130fd5e458a1606b6e23a5ba75ff0b5ec136cbc08170e1a6fbe547d2b573667
5
5
  SHA512:
6
- metadata.gz: c6f8b98686bf5eaa89ba0dec350271d2384c3f88af348283a09df72976c4f698e5570d72fc31c00a05eed54188be3d795028a1d290e44682137f08a7550dca71
7
- data.tar.gz: bbae3628a9c165262cdcd31e90b53ddc37484da4cab4d9038151468ec5081154d4f17189964d7a4e259f85fb91f169aa0ed307f7a70a870b76c64820bf791a39
6
+ metadata.gz: 73653116ee27dc261a3a549e859d1c3a32ecb6383e180cba33d07e9c872727997fdf7fd962c4db0c5288f390137c7a7fc4cfa236307dff5645a67fbf47a88fdc
7
+ data.tar.gz: 7e5b40ba2cbf318cb0ba53367f5ee91954743793e5397fbf8a368de5df2815721c96a6b2a13a1fb069401082126d926a469098acbc4b32f1442f0b6e996100c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- songtradr_api_client_ruby (1.12.22)
4
+ songtradr_api_client_ruby (1.12.24)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
 
@@ -12,7 +12,7 @@ GEM
12
12
  byebug (11.1.3)
13
13
  coderay (1.1.3)
14
14
  diff-lcs (1.5.0)
15
- faraday (2.7.6)
15
+ faraday (2.7.10)
16
16
  faraday-net_http (>= 2.0, < 3.1)
17
17
  ruby2_keywords (>= 0.0.4)
18
18
  faraday-multipart (1.0.4)
@@ -45,10 +45,10 @@ GEM
45
45
  rspec-expectations (3.12.3)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
47
  rspec-support (~> 3.12.0)
48
- rspec-mocks (3.12.5)
48
+ rspec-mocks (3.12.6)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
50
  rspec-support (~> 3.12.0)
51
- rspec-support (3.12.0)
51
+ rspec-support (3.12.1)
52
52
  rubocop (0.66.0)
53
53
  jaro_winkler (~> 1.5.1)
54
54
  parallel (~> 1.10)
data/README.md CHANGED
@@ -33,8 +33,8 @@ You can either search the released music via the /public/recording endpoints or
33
33
 
34
34
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
35
35
 
36
- - API version: 1.12.22
37
- - Package version: 1.12.22
36
+ - API version: 1.12.24
37
+ - Package version: 1.12.24
38
38
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
39
39
  For more information, please visit [https://songtradr.com](https://songtradr.com)
40
40
 
@@ -51,16 +51,16 @@ gem build songtradr_api_client_ruby.gemspec
51
51
  Then either install the gem locally:
52
52
 
53
53
  ```shell
54
- gem install ./songtradr_api_client_ruby-1.12.22.gem
54
+ gem install ./songtradr_api_client_ruby-1.12.24.gem
55
55
  ```
56
56
 
57
- (for development, run `gem install --dev ./songtradr_api_client_ruby-1.12.22.gem` to install the development dependencies)
57
+ (for development, run `gem install --dev ./songtradr_api_client_ruby-1.12.24.gem` to install the development dependencies)
58
58
 
59
59
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
60
60
 
61
61
  Finally add this to the Gemfile:
62
62
 
63
- gem 'songtradr_api_client_ruby', '~> 1.12.22'
63
+ gem 'songtradr_api_client_ruby', '~> 1.12.24'
64
64
 
65
65
  ### Install from Git
66
66
 
@@ -84,17 +84,25 @@ Please follow the [installation](#installation) procedure and then run the follo
84
84
  # Load the gem
85
85
  require 'songtradr_api_client_ruby'
86
86
 
87
- api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
88
- opts = {
89
- response_size: 's' # String | Size the response should have.
90
- }
87
+ # Setup authorization
88
+ SongtradrApiClientRuby.configure do |config|
89
+ # Configure Bearer authorization (JWT): bearer-jwt
90
+ config.access_token = 'YOUR_BEARER_TOKEN'
91
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
92
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
93
+ # Configure faraday connection
94
+ config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
95
+ end
96
+
97
+ api_instance = SongtradrApiClientRuby::APIKeysApi.new
98
+ create_api_key_dto = SongtradrApiClientRuby::CreateApiKeyDTO.new # CreateApiKeyDTO |
91
99
 
92
100
  begin
93
- #Allowed values for music descriptive parameters to be used in the searchAll endpoint.
94
- result = api_instance.allowed_musical_features(opts)
101
+ #create an API key
102
+ result = api_instance.create_api_key(create_api_key_dto)
95
103
  p result
96
104
  rescue SongtradrApiClientRuby::ApiError => e
97
- puts "Exception when calling AllowedValuesApi->allowed_musical_features: #{e}"
105
+ puts "Exception when calling APIKeysApi->create_api_key: #{e}"
98
106
  end
99
107
 
100
108
  ```
@@ -105,6 +113,9 @@ All URIs are relative to *https://api.songtradr.com*
105
113
 
106
114
  Class | Method | HTTP request | Description
107
115
  ------------ | ------------- | ------------- | -------------
116
+ *SongtradrApiClientRuby::APIKeysApi* | [**create_api_key**](docs/APIKeysApi.md#create_api_key) | **POST** /api/v1/user/apiKeys | create an API key
117
+ *SongtradrApiClientRuby::APIKeysApi* | [**delete_api_key**](docs/APIKeysApi.md#delete_api_key) | **DELETE** /api/v1/user/apiKeys/{id} | delete an API key
118
+ *SongtradrApiClientRuby::APIKeysApi* | [**get_api_keys**](docs/APIKeysApi.md#get_api_keys) | **GET** /api/v1/user/apiKeys | list API keys
108
119
  *SongtradrApiClientRuby::AllowedValuesApi* | [**allowed_musical_features**](docs/AllowedValuesApi.md#allowed_musical_features) | **GET** /api/v1/allowedValues/musicalFeatures | Allowed values for music descriptive parameters to be used in the searchAll endpoint.
109
120
  *SongtradrApiClientRuby::AllowedValuesApi* | [**genres**](docs/AllowedValuesApi.md#genres) | **GET** /api/v1/allowedValues/genre | Allowed values for genres.
110
121
  *SongtradrApiClientRuby::AllowedValuesApi* | [**tags**](docs/AllowedValuesApi.md#tags) | **GET** /api/v1/allowedValues/tag | All descriptive tags inside of tag-categories.
@@ -147,11 +158,14 @@ Class | Method | HTTP request | Description
147
158
 
148
159
  ## Documentation for Models
149
160
 
161
+ - [SongtradrApiClientRuby::AdminApiUserDTO](docs/AdminApiUserDTO.md)
162
+ - [SongtradrApiClientRuby::ApiKeyDTO](docs/ApiKeyDTO.md)
150
163
  - [SongtradrApiClientRuby::CategoryMediumDTO](docs/CategoryMediumDTO.md)
151
164
  - [SongtradrApiClientRuby::CategoryMinimalDTO](docs/CategoryMinimalDTO.md)
152
165
  - [SongtradrApiClientRuby::ConfigAccessDTO](docs/ConfigAccessDTO.md)
153
166
  - [SongtradrApiClientRuby::ConfigIdentifierDTO](docs/ConfigIdentifierDTO.md)
154
167
  - [SongtradrApiClientRuby::ContributorTypeDTO](docs/ContributorTypeDTO.md)
168
+ - [SongtradrApiClientRuby::CreateApiKeyDTO](docs/CreateApiKeyDTO.md)
155
169
  - [SongtradrApiClientRuby::ErrorResponse](docs/ErrorResponse.md)
156
170
  - [SongtradrApiClientRuby::FieldSummaryDTO](docs/FieldSummaryDTO.md)
157
171
  - [SongtradrApiClientRuby::FileDTO](docs/FileDTO.md)
@@ -0,0 +1,217 @@
1
+ # SongtradrApiClientRuby::APIKeysApi
2
+
3
+ All URIs are relative to *https://api.songtradr.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_api_key**](APIKeysApi.md#create_api_key) | **POST** /api/v1/user/apiKeys | create an API key |
8
+ | [**delete_api_key**](APIKeysApi.md#delete_api_key) | **DELETE** /api/v1/user/apiKeys/{id} | delete an API key |
9
+ | [**get_api_keys**](APIKeysApi.md#get_api_keys) | **GET** /api/v1/user/apiKeys | list API keys |
10
+
11
+
12
+ ## create_api_key
13
+
14
+ > <AdminApiUserDTO> create_api_key(create_api_key_dto)
15
+
16
+ create an API key
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'songtradr_api_client_ruby'
23
+ # setup authorization
24
+ SongtradrApiClientRuby.configure do |config|
25
+ # Configure Bearer authorization (JWT): bearer-jwt
26
+ config.access_token = 'YOUR_BEARER_TOKEN'
27
+ end
28
+
29
+ api_instance = SongtradrApiClientRuby::APIKeysApi.new
30
+ create_api_key_dto = SongtradrApiClientRuby::CreateApiKeyDTO.new # CreateApiKeyDTO |
31
+
32
+ begin
33
+ # create an API key
34
+ result = api_instance.create_api_key(create_api_key_dto)
35
+ p result
36
+ rescue SongtradrApiClientRuby::ApiError => e
37
+ puts "Error when calling APIKeysApi->create_api_key: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the create_api_key_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(<AdminApiUserDTO>, Integer, Hash)> create_api_key_with_http_info(create_api_key_dto)
46
+
47
+ ```ruby
48
+ begin
49
+ # create an API key
50
+ data, status_code, headers = api_instance.create_api_key_with_http_info(create_api_key_dto)
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => <AdminApiUserDTO>
54
+ rescue SongtradrApiClientRuby::ApiError => e
55
+ puts "Error when calling APIKeysApi->create_api_key_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ | Name | Type | Description | Notes |
62
+ | ---- | ---- | ----------- | ----- |
63
+ | **create_api_key_dto** | [**CreateApiKeyDTO**](CreateApiKeyDTO.md) | | |
64
+
65
+ ### Return type
66
+
67
+ [**AdminApiUserDTO**](AdminApiUserDTO.md)
68
+
69
+ ### Authorization
70
+
71
+ [bearer-jwt](../README.md#bearer-jwt)
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: application/json
76
+ - **Accept**: application/json
77
+
78
+
79
+ ## delete_api_key
80
+
81
+ > Object delete_api_key(id)
82
+
83
+ delete an API key
84
+
85
+ ### Examples
86
+
87
+ ```ruby
88
+ require 'time'
89
+ require 'songtradr_api_client_ruby'
90
+ # setup authorization
91
+ SongtradrApiClientRuby.configure do |config|
92
+ # Configure Bearer authorization (JWT): bearer-jwt
93
+ config.access_token = 'YOUR_BEARER_TOKEN'
94
+ end
95
+
96
+ api_instance = SongtradrApiClientRuby::APIKeysApi.new
97
+ id = 'id_example' # String |
98
+
99
+ begin
100
+ # delete an API key
101
+ result = api_instance.delete_api_key(id)
102
+ p result
103
+ rescue SongtradrApiClientRuby::ApiError => e
104
+ puts "Error when calling APIKeysApi->delete_api_key: #{e}"
105
+ end
106
+ ```
107
+
108
+ #### Using the delete_api_key_with_http_info variant
109
+
110
+ This returns an Array which contains the response data, status code and headers.
111
+
112
+ > <Array(Object, Integer, Hash)> delete_api_key_with_http_info(id)
113
+
114
+ ```ruby
115
+ begin
116
+ # delete an API key
117
+ data, status_code, headers = api_instance.delete_api_key_with_http_info(id)
118
+ p status_code # => 2xx
119
+ p headers # => { ... }
120
+ p data # => Object
121
+ rescue SongtradrApiClientRuby::ApiError => e
122
+ puts "Error when calling APIKeysApi->delete_api_key_with_http_info: #{e}"
123
+ end
124
+ ```
125
+
126
+ ### Parameters
127
+
128
+ | Name | Type | Description | Notes |
129
+ | ---- | ---- | ----------- | ----- |
130
+ | **id** | **String** | | |
131
+
132
+ ### Return type
133
+
134
+ **Object**
135
+
136
+ ### Authorization
137
+
138
+ [bearer-jwt](../README.md#bearer-jwt)
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: application/json
144
+
145
+
146
+ ## get_api_keys
147
+
148
+ > <Array<ApiKeyDTO>> get_api_keys(opts)
149
+
150
+ list API keys
151
+
152
+ ### Examples
153
+
154
+ ```ruby
155
+ require 'time'
156
+ require 'songtradr_api_client_ruby'
157
+ # setup authorization
158
+ SongtradrApiClientRuby.configure do |config|
159
+ # Configure Bearer authorization (JWT): bearer-jwt
160
+ config.access_token = 'YOUR_BEARER_TOKEN'
161
+ end
162
+
163
+ api_instance = SongtradrApiClientRuby::APIKeysApi.new
164
+ opts = {
165
+ page: 56, # Integer | Zero-based page index (0..N)
166
+ size: 56, # Integer | The size of the page to be returned
167
+ sort: ['inner_example'] # Array<String> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
168
+ }
169
+
170
+ begin
171
+ # list API keys
172
+ result = api_instance.get_api_keys(opts)
173
+ p result
174
+ rescue SongtradrApiClientRuby::ApiError => e
175
+ puts "Error when calling APIKeysApi->get_api_keys: #{e}"
176
+ end
177
+ ```
178
+
179
+ #### Using the get_api_keys_with_http_info variant
180
+
181
+ This returns an Array which contains the response data, status code and headers.
182
+
183
+ > <Array(<Array<ApiKeyDTO>>, Integer, Hash)> get_api_keys_with_http_info(opts)
184
+
185
+ ```ruby
186
+ begin
187
+ # list API keys
188
+ data, status_code, headers = api_instance.get_api_keys_with_http_info(opts)
189
+ p status_code # => 2xx
190
+ p headers # => { ... }
191
+ p data # => <Array<ApiKeyDTO>>
192
+ rescue SongtradrApiClientRuby::ApiError => e
193
+ puts "Error when calling APIKeysApi->get_api_keys_with_http_info: #{e}"
194
+ end
195
+ ```
196
+
197
+ ### Parameters
198
+
199
+ | Name | Type | Description | Notes |
200
+ | ---- | ---- | ----------- | ----- |
201
+ | **page** | **Integer** | Zero-based page index (0..N) | [optional][default to 0] |
202
+ | **size** | **Integer** | The size of the page to be returned | [optional][default to 20] |
203
+ | **sort** | [**Array&lt;String&gt;**](String.md) | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] |
204
+
205
+ ### Return type
206
+
207
+ [**Array&lt;ApiKeyDTO&gt;**](ApiKeyDTO.md)
208
+
209
+ ### Authorization
210
+
211
+ [bearer-jwt](../README.md#bearer-jwt)
212
+
213
+ ### HTTP request headers
214
+
215
+ - **Content-Type**: Not defined
216
+ - **Accept**: application/json
217
+
@@ -0,0 +1,70 @@
1
+ # SongtradrApiClientRuby::AdminApiUserDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | [optional] |
8
+ | **username** | **String** | | [optional] |
9
+ | **email** | **String** | | [optional] |
10
+ | **full_name** | **String** | | [optional] |
11
+ | **language** | **String** | | [optional] |
12
+ | **is_admin** | **Boolean** | | [optional] |
13
+ | **widgets_allowed** | **Boolean** | | [optional] |
14
+ | **full_search_allowed** | **Boolean** | | [optional] |
15
+ | **voice_search_allowed** | **Boolean** | | [optional] |
16
+ | **recording_detail_allowed** | **Boolean** | | [optional] |
17
+ | **artist_detail_allowed** | **Boolean** | | [optional] |
18
+ | **playlist_prediction_allowed** | **Boolean** | | [optional] |
19
+ | **signup_allowed** | **Boolean** | | [optional] |
20
+ | **upload_allowed** | **Boolean** | | [optional] |
21
+ | **fingerprint_allowed** | **Boolean** | | [optional] |
22
+ | **audiotagging_allowed** | **Boolean** | | [optional] |
23
+ | **b2b_allowed** | **Boolean** | | [optional] |
24
+ | **editor_allowed** | **Boolean** | | [optional] |
25
+ | **reduced_musical_features** | **Boolean** | | [optional] |
26
+ | **confirmed** | **Boolean** | | [optional] |
27
+ | **gdpr_confirmation_timestamp** | **Time** | | [optional] |
28
+ | **last_login** | **Time** | | [optional] |
29
+ | **total_logins** | **Integer** | | [optional] |
30
+ | **total_searches** | **Integer** | | [optional] |
31
+ | **total_uploads** | **Integer** | | [optional] |
32
+ | **total_downloads** | **Integer** | | [optional] |
33
+ | **total_updates** | **Integer** | | [optional] |
34
+
35
+ ## Example
36
+
37
+ ```ruby
38
+ require 'songtradr_api_client_ruby'
39
+
40
+ instance = SongtradrApiClientRuby::AdminApiUserDTO.new(
41
+ id: null,
42
+ username: null,
43
+ email: null,
44
+ full_name: null,
45
+ language: null,
46
+ is_admin: null,
47
+ widgets_allowed: null,
48
+ full_search_allowed: null,
49
+ voice_search_allowed: null,
50
+ recording_detail_allowed: null,
51
+ artist_detail_allowed: null,
52
+ playlist_prediction_allowed: null,
53
+ signup_allowed: null,
54
+ upload_allowed: null,
55
+ fingerprint_allowed: null,
56
+ audiotagging_allowed: null,
57
+ b2b_allowed: null,
58
+ editor_allowed: null,
59
+ reduced_musical_features: null,
60
+ confirmed: null,
61
+ gdpr_confirmation_timestamp: null,
62
+ last_login: null,
63
+ total_logins: null,
64
+ total_searches: null,
65
+ total_uploads: null,
66
+ total_downloads: null,
67
+ total_updates: null
68
+ )
69
+ ```
70
+
@@ -86,7 +86,7 @@ require 'time'
86
86
  require 'songtradr_api_client_ruby'
87
87
 
88
88
  api_instance = SongtradrApiClientRuby::AllowedValuesApi.new
89
- genre_type = 'level1Genre' # String | Type of the response should have.
89
+ genre_type = 'musicubeLevel1Genre' # String | Type of the response should have. Deprecated: level1Genre, level2Genre - use musicubeLevel1Genre, musicubeLevel2Genre instead.
90
90
 
91
91
  begin
92
92
  # Allowed values for genres.
@@ -119,7 +119,7 @@ end
119
119
 
120
120
  | Name | Type | Description | Notes |
121
121
  | ---- | ---- | ----------- | ----- |
122
- | **genre_type** | **String** | Type of the response should have. | |
122
+ | **genre_type** | **String** | Type of the response should have. Deprecated: level1Genre, level2Genre - use musicubeLevel1Genre, musicubeLevel2Genre instead. | |
123
123
 
124
124
  ### Return type
125
125
 
data/docs/ApiKeyDTO.md ADDED
@@ -0,0 +1,24 @@
1
+ # SongtradrApiClientRuby::ApiKeyDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **last_used_at** | **Time** | | [optional] |
9
+ | **created_at** | **Time** | | |
10
+ | **id** | **String** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'songtradr_api_client_ruby'
16
+
17
+ instance = SongtradrApiClientRuby::ApiKeyDTO.new(
18
+ name: null,
19
+ last_used_at: null,
20
+ created_at: null,
21
+ id: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # SongtradrApiClientRuby::CreateApiKeyDTO
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'songtradr_api_client_ruby'
13
+
14
+ instance = SongtradrApiClientRuby::CreateApiKeyDTO.new(
15
+ name: null
16
+ )
17
+ ```
18
+
data/docs/FileSmallDTO.md CHANGED
@@ -8,17 +8,17 @@
8
8
  | **id** | **Integer** | | |
9
9
  | **extension** | **String** | extension of the file | |
10
10
  | **error_message** | **String** | | [optional] |
11
- | **folder** | **String** | | |
12
- | **object_key** | **String** | | |
13
- | **upload_start_time** | **Time** | | [optional] |
14
- | **upload_end_time** | **Time** | | [optional] |
15
- | **fingerprint_status** | **String** | status of the audio recognition | [optional] |
16
- | **fingerprint_start_time** | **Time** | | [optional] |
11
+ | **error_time** | **Time** | | [optional] |
17
12
  | **fingerprint_end_time** | **Time** | | [optional] |
18
- | **inference_status** | **String** | status of the auto-tagging | [optional] |
19
13
  | **inference_start_time** | **Time** | | [optional] |
14
+ | **fingerprint_start_time** | **Time** | | [optional] |
15
+ | **fingerprint_status** | **String** | status of the audio recognition | [optional] |
16
+ | **inference_status** | **String** | status of the auto-tagging | [optional] |
20
17
  | **inference_end_time** | **Time** | | [optional] |
21
- | **error_time** | **Time** | | [optional] |
18
+ | **folder** | **String** | | |
19
+ | **upload_end_time** | **Time** | | [optional] |
20
+ | **upload_start_time** | **Time** | | [optional] |
21
+ | **object_key** | **String** | | |
22
22
 
23
23
  ## Example
24
24
 
@@ -30,17 +30,17 @@ instance = SongtradrApiClientRuby::FileSmallDTO.new(
30
30
  id: null,
31
31
  extension: null,
32
32
  error_message: null,
33
- folder: null,
34
- object_key: null,
35
- upload_start_time: null,
36
- upload_end_time: null,
37
- fingerprint_status: null,
38
- fingerprint_start_time: null,
33
+ error_time: null,
39
34
  fingerprint_end_time: null,
40
- inference_status: null,
41
35
  inference_start_time: null,
36
+ fingerprint_start_time: null,
37
+ fingerprint_status: null,
38
+ inference_status: null,
42
39
  inference_end_time: null,
43
- error_time: null
40
+ folder: null,
41
+ upload_end_time: null,
42
+ upload_start_time: null,
43
+ object_key: null
44
44
  )
45
45
  ```
46
46