spartera_api_sdk 1.0.58 → 1.0.68

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/config.json +1 -1
  3. data/docs/APIKeysApi.md +25 -15
  4. data/docs/AlertsApi.md +43 -29
  5. data/docs/AssetPriceHistoryApi.md +48 -32
  6. data/docs/AssetsApi.md +74 -336
  7. data/docs/CloudProvidersApi.md +10 -207
  8. data/docs/CompaniesApi.md +45 -27
  9. data/docs/ConnectionsApi.md +39 -25
  10. data/docs/FavoritesApi.md +52 -36
  11. data/docs/StorageEnginesApi.md +149 -0
  12. data/docs/UsersApi.md +29 -19
  13. data/lib/spartera_api_sdk/api/alerts_api.rb +11 -11
  14. data/lib/spartera_api_sdk/api/api_keys_api.rb +5 -5
  15. data/lib/spartera_api_sdk/api/asset_price_history_api.rb +12 -12
  16. data/lib/spartera_api_sdk/api/assets_api.rb +26 -302
  17. data/lib/spartera_api_sdk/api/cloud_providers_api.rb +2 -179
  18. data/lib/spartera_api_sdk/api/companies_api.rb +9 -9
  19. data/lib/spartera_api_sdk/api/connections_api.rb +9 -9
  20. data/lib/spartera_api_sdk/api/favorites_api.rb +14 -14
  21. data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
  22. data/lib/spartera_api_sdk/api/users_api.rb +7 -7
  23. data/lib/spartera_api_sdk/configuration.rb +2 -10
  24. data/lib/spartera_api_sdk/version.rb +1 -1
  25. data/lib/spartera_api_sdk.rb +1 -0
  26. data/spec/api/alerts_api_spec.rb +2 -2
  27. data/spec/api/asset_price_history_api_spec.rb +2 -2
  28. data/spec/api/assets_api_spec.rb +3 -53
  29. data/spec/api/cloud_providers_api_spec.rb +0 -32
  30. data/spec/api/connections_api_spec.rb +1 -1
  31. data/spec/api/favorites_api_spec.rb +3 -3
  32. data/spec/api/storage_engines_api_spec.rb +58 -0
  33. data/spec/api/users_api_spec.rb +1 -1
  34. metadata +28 -22
  35. data/Gemfile.lock +0 -69
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6d65b4c64e6ac1a91252149df7bc5f7add045f68779b159da3c991b85d151b3
4
- data.tar.gz: 4278e31c87be48c22ede9b646e7d1aa0cbbc83c6dd18f8dabb1949b600f3dcce
3
+ metadata.gz: 00f7b52ae32ecf9341a6f644753e4d9b11837ee4f352144e80c5f2ffe8db5f93
4
+ data.tar.gz: 36560a935e57c1fd3bf6c5634afd2250bf8c73db25122dc1b11869db1fb843a8
5
5
  SHA512:
6
- metadata.gz: 26b5c022aac4399e2564602125befc3542066ce3ce1652a59b1d64ed54900dd7482a5387c84016e7d7b3ebec633fb9dbfee374e6aba86deed37501495cda2130
7
- data.tar.gz: 301d140cc89222517b18f6876bd5ae8efb67e8306fd17efee5125f5849dccdb5a941e86b1b1b89b4fddbf80df1c7474c65e720a22dbdb41c13a212f6a40b4eef
6
+ metadata.gz: c7e3560405e1fde6af38d1a64a62003365839120b3b6ba09852ccf527ed893cd5afdde748c47518a892d294f83a63732dda462472f965e0bc73c083cec03e5f4
7
+ data.tar.gz: b547034225f1660482c8885f5ce5f838fc076a157aa3233d44a512a38ea5ab2a208aafbf90259d42a3d0cf19b37e7536655b358394bcc7899ed15406b1bcaeee
data/config.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "gemName": "spartera_api_sdk",
3
- "gemVersion": "1.0.58",
3
+ "gemVersion": "1.0.68",
4
4
  "gemDescription": "Official SDK for Spartera API - Interface to manage companies' accounts and process insights remotely",
5
5
  "gemAuthor": "Tony D",
6
6
  "gemAuthorEmail": "tony@spartera.com",
data/docs/APIKeysApi.md CHANGED
@@ -24,8 +24,10 @@ require 'time'
24
24
  require 'spartera_api_sdk'
25
25
  # setup authorization
26
26
  SparteraApiSdk.configure do |config|
27
- # Configure Bearer authorization (JWT): bearerAuth
28
- config.access_token = 'YOUR_BEARER_TOKEN'
27
+ # Configure API key authorization: ApiKeyAuth
28
+ config.api_key['x-api-key'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
29
31
  end
30
32
 
31
33
  api_instance = SparteraApiSdk::APIKeysApi.new
@@ -72,7 +74,7 @@ end
72
74
 
73
75
  ### Authorization
74
76
 
75
- [bearerAuth](../README.md#bearerAuth)
77
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
76
78
 
77
79
  ### HTTP request headers
78
80
 
@@ -93,8 +95,10 @@ require 'time'
93
95
  require 'spartera_api_sdk'
94
96
  # setup authorization
95
97
  SparteraApiSdk.configure do |config|
96
- # Configure Bearer authorization (JWT): bearerAuth
97
- config.access_token = 'YOUR_BEARER_TOKEN'
98
+ # Configure API key authorization: ApiKeyAuth
99
+ config.api_key['x-api-key'] = 'YOUR API KEY'
100
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
98
102
  end
99
103
 
100
104
  api_instance = SparteraApiSdk::APIKeysApi.new
@@ -141,7 +145,7 @@ end
141
145
 
142
146
  ### Authorization
143
147
 
144
- [bearerAuth](../README.md#bearerAuth)
148
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
145
149
 
146
150
  ### HTTP request headers
147
151
 
@@ -162,8 +166,10 @@ require 'time'
162
166
  require 'spartera_api_sdk'
163
167
  # setup authorization
164
168
  SparteraApiSdk.configure do |config|
165
- # Configure Bearer authorization (JWT): bearerAuth
166
- config.access_token = 'YOUR_BEARER_TOKEN'
169
+ # Configure API key authorization: ApiKeyAuth
170
+ config.api_key['x-api-key'] = 'YOUR API KEY'
171
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
172
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
167
173
  end
168
174
 
169
175
  api_instance = SparteraApiSdk::APIKeysApi.new
@@ -208,7 +214,7 @@ end
208
214
 
209
215
  ### Authorization
210
216
 
211
- [bearerAuth](../README.md#bearerAuth)
217
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
212
218
 
213
219
  ### HTTP request headers
214
220
 
@@ -229,8 +235,10 @@ require 'time'
229
235
  require 'spartera_api_sdk'
230
236
  # setup authorization
231
237
  SparteraApiSdk.configure do |config|
232
- # Configure Bearer authorization (JWT): bearerAuth
233
- config.access_token = 'YOUR_BEARER_TOKEN'
238
+ # Configure API key authorization: ApiKeyAuth
239
+ config.api_key['x-api-key'] = 'YOUR API KEY'
240
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
241
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
234
242
  end
235
243
 
236
244
  api_instance = SparteraApiSdk::APIKeysApi.new
@@ -275,7 +283,7 @@ end
275
283
 
276
284
  ### Authorization
277
285
 
278
- [bearerAuth](../README.md#bearerAuth)
286
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
279
287
 
280
288
  ### HTTP request headers
281
289
 
@@ -296,8 +304,10 @@ require 'time'
296
304
  require 'spartera_api_sdk'
297
305
  # setup authorization
298
306
  SparteraApiSdk.configure do |config|
299
- # Configure Bearer authorization (JWT): bearerAuth
300
- config.access_token = 'YOUR_BEARER_TOKEN'
307
+ # Configure API key authorization: ApiKeyAuth
308
+ config.api_key['x-api-key'] = 'YOUR API KEY'
309
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
310
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
301
311
  end
302
312
 
303
313
  api_instance = SparteraApiSdk::APIKeysApi.new
@@ -344,7 +354,7 @@ end
344
354
 
345
355
  ### Authorization
346
356
 
347
- [bearerAuth](../README.md#bearerAuth)
357
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
348
358
 
349
359
  ### HTTP request headers
350
360
 
data/docs/AlertsApi.md CHANGED
@@ -7,8 +7,8 @@ All URIs are relative to *https://api.spartera.com*
7
7
  | [**companies_company_id_users_user_id_alerts_alert_id_delete**](AlertsApi.md#companies_company_id_users_user_id_alerts_alert_id_delete) | **DELETE** /companies/{company_id}/users/{user_id}/alerts/{alert_id} | Delete single alert by ID |
8
8
  | [**companies_company_id_users_user_id_alerts_alert_id_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_alert_id_get) | **GET** /companies/{company_id}/users/{user_id}/alerts/{alert_id} | Get single alert by ID |
9
9
  | [**companies_company_id_users_user_id_alerts_alert_id_patch**](AlertsApi.md#companies_company_id_users_user_id_alerts_alert_id_patch) | **PATCH** /companies/{company_id}/users/{user_id}/alerts/{alert_id} | Update an existing alert by ID |
10
- | [**companies_company_id_users_user_id_alerts_asset_asset_id_all_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_asset_asset_id_all_get) | **GET** /companies/{company_id}/users/{user_id}/alerts/asset/{asset_id}/all | Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins |
11
- | [**companies_company_id_users_user_id_alerts_asset_asset_id_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_asset_asset_id_get) | **GET** /companies/{company_id}/users/{user_id}/alerts/asset/{asset_id} | Get all alerts for a specific asset by the specified user Useful for checking if user already has an alert set up for an asset |
10
+ | [**companies_company_id_users_user_id_alerts_asset_asset_id_all_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_asset_asset_id_all_get) | **GET** /companies/{company_id}/users/{user_id}/alerts/asset/{asset_id}/all | Get all alerts for a specific asset |
11
+ | [**companies_company_id_users_user_id_alerts_asset_asset_id_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_asset_asset_id_get) | **GET** /companies/{company_id}/users/{user_id}/alerts/asset/{asset_id} | Get all alerts for a specific asset (by user) |
12
12
  | [**companies_company_id_users_user_id_alerts_get**](AlertsApi.md#companies_company_id_users_user_id_alerts_get) | **GET** /companies/{company_id}/users/{user_id}/alerts | Get a list of all alerts for a specific user |
13
13
  | [**companies_company_id_users_user_id_alerts_post**](AlertsApi.md#companies_company_id_users_user_id_alerts_post) | **POST** /companies/{company_id}/users/{user_id}/alerts | POST /companies/{company_id}/users/{user_id}/alerts |
14
14
 
@@ -26,8 +26,10 @@ require 'time'
26
26
  require 'spartera_api_sdk'
27
27
  # setup authorization
28
28
  SparteraApiSdk.configure do |config|
29
- # Configure Bearer authorization (JWT): bearerAuth
30
- config.access_token = 'YOUR_BEARER_TOKEN'
29
+ # Configure API key authorization: ApiKeyAuth
30
+ config.api_key['x-api-key'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
31
33
  end
32
34
 
33
35
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -76,7 +78,7 @@ end
76
78
 
77
79
  ### Authorization
78
80
 
79
- [bearerAuth](../README.md#bearerAuth)
81
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
80
82
 
81
83
  ### HTTP request headers
82
84
 
@@ -97,8 +99,10 @@ require 'time'
97
99
  require 'spartera_api_sdk'
98
100
  # setup authorization
99
101
  SparteraApiSdk.configure do |config|
100
- # Configure Bearer authorization (JWT): bearerAuth
101
- config.access_token = 'YOUR_BEARER_TOKEN'
102
+ # Configure API key authorization: ApiKeyAuth
103
+ config.api_key['x-api-key'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
102
106
  end
103
107
 
104
108
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -147,7 +151,7 @@ end
147
151
 
148
152
  ### Authorization
149
153
 
150
- [bearerAuth](../README.md#bearerAuth)
154
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
151
155
 
152
156
  ### HTTP request headers
153
157
 
@@ -168,8 +172,10 @@ require 'time'
168
172
  require 'spartera_api_sdk'
169
173
  # setup authorization
170
174
  SparteraApiSdk.configure do |config|
171
- # Configure Bearer authorization (JWT): bearerAuth
172
- config.access_token = 'YOUR_BEARER_TOKEN'
175
+ # Configure API key authorization: ApiKeyAuth
176
+ config.api_key['x-api-key'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
173
179
  end
174
180
 
175
181
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -220,7 +226,7 @@ end
220
226
 
221
227
  ### Authorization
222
228
 
223
- [bearerAuth](../README.md#bearerAuth)
229
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
224
230
 
225
231
  ### HTTP request headers
226
232
 
@@ -232,7 +238,7 @@ end
232
238
 
233
239
  > Object companies_company_id_users_user_id_alerts_asset_asset_id_all_get(company_id, user_id, asset_id)
234
240
 
235
- Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
241
+ Get all alerts for a specific asset
236
242
 
237
243
  ### Examples
238
244
 
@@ -241,8 +247,10 @@ require 'time'
241
247
  require 'spartera_api_sdk'
242
248
  # setup authorization
243
249
  SparteraApiSdk.configure do |config|
244
- # Configure Bearer authorization (JWT): bearerAuth
245
- config.access_token = 'YOUR_BEARER_TOKEN'
250
+ # Configure API key authorization: ApiKeyAuth
251
+ config.api_key['x-api-key'] = 'YOUR API KEY'
252
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
253
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
246
254
  end
247
255
 
248
256
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -251,7 +259,7 @@ user_id = 'user_id_example' # String |
251
259
  asset_id = 'asset_id_example' # String |
252
260
 
253
261
  begin
254
- # Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
262
+ # Get all alerts for a specific asset
255
263
  result = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_all_get(company_id, user_id, asset_id)
256
264
  p result
257
265
  rescue SparteraApiSdk::ApiError => e
@@ -267,7 +275,7 @@ This returns an Array which contains the response data, status code and headers.
267
275
 
268
276
  ```ruby
269
277
  begin
270
- # Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
278
+ # Get all alerts for a specific asset
271
279
  data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info(company_id, user_id, asset_id)
272
280
  p status_code # => 2xx
273
281
  p headers # => { ... }
@@ -291,7 +299,7 @@ end
291
299
 
292
300
  ### Authorization
293
301
 
294
- [bearerAuth](../README.md#bearerAuth)
302
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
295
303
 
296
304
  ### HTTP request headers
297
305
 
@@ -303,7 +311,7 @@ end
303
311
 
304
312
  > Object companies_company_id_users_user_id_alerts_asset_asset_id_get(company_id, user_id, asset_id)
305
313
 
306
- Get all alerts for a specific asset by the specified user Useful for checking if user already has an alert set up for an asset
314
+ Get all alerts for a specific asset (by user)
307
315
 
308
316
  ### Examples
309
317
 
@@ -312,8 +320,10 @@ require 'time'
312
320
  require 'spartera_api_sdk'
313
321
  # setup authorization
314
322
  SparteraApiSdk.configure do |config|
315
- # Configure Bearer authorization (JWT): bearerAuth
316
- config.access_token = 'YOUR_BEARER_TOKEN'
323
+ # Configure API key authorization: ApiKeyAuth
324
+ config.api_key['x-api-key'] = 'YOUR API KEY'
325
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
326
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
317
327
  end
318
328
 
319
329
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -322,7 +332,7 @@ user_id = 'user_id_example' # String |
322
332
  asset_id = 'asset_id_example' # String |
323
333
 
324
334
  begin
325
- # Get all alerts for a specific asset by the specified user Useful for checking if user already has an alert set up for an asset
335
+ # Get all alerts for a specific asset (by user)
326
336
  result = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_get(company_id, user_id, asset_id)
327
337
  p result
328
338
  rescue SparteraApiSdk::ApiError => e
@@ -338,7 +348,7 @@ This returns an Array which contains the response data, status code and headers.
338
348
 
339
349
  ```ruby
340
350
  begin
341
- # Get all alerts for a specific asset by the specified user Useful for checking if user already has an alert set up for an asset
351
+ # Get all alerts for a specific asset (by user)
342
352
  data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info(company_id, user_id, asset_id)
343
353
  p status_code # => 2xx
344
354
  p headers # => { ... }
@@ -362,7 +372,7 @@ end
362
372
 
363
373
  ### Authorization
364
374
 
365
- [bearerAuth](../README.md#bearerAuth)
375
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
366
376
 
367
377
  ### HTTP request headers
368
378
 
@@ -383,8 +393,10 @@ require 'time'
383
393
  require 'spartera_api_sdk'
384
394
  # setup authorization
385
395
  SparteraApiSdk.configure do |config|
386
- # Configure Bearer authorization (JWT): bearerAuth
387
- config.access_token = 'YOUR_BEARER_TOKEN'
396
+ # Configure API key authorization: ApiKeyAuth
397
+ config.api_key['x-api-key'] = 'YOUR API KEY'
398
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
399
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
388
400
  end
389
401
 
390
402
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -431,7 +443,7 @@ end
431
443
 
432
444
  ### Authorization
433
445
 
434
- [bearerAuth](../README.md#bearerAuth)
446
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
435
447
 
436
448
  ### HTTP request headers
437
449
 
@@ -452,8 +464,10 @@ require 'time'
452
464
  require 'spartera_api_sdk'
453
465
  # setup authorization
454
466
  SparteraApiSdk.configure do |config|
455
- # Configure Bearer authorization (JWT): bearerAuth
456
- config.access_token = 'YOUR_BEARER_TOKEN'
467
+ # Configure API key authorization: ApiKeyAuth
468
+ config.api_key['x-api-key'] = 'YOUR API KEY'
469
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
470
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
457
471
  end
458
472
 
459
473
  api_instance = SparteraApiSdk::AlertsApi.new
@@ -502,7 +516,7 @@ end
502
516
 
503
517
  ### Authorization
504
518
 
505
- [bearerAuth](../README.md#bearerAuth)
519
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
506
520
 
507
521
  ### HTTP request headers
508
522
 
@@ -8,8 +8,8 @@ All URIs are relative to *https://api.spartera.com*
8
8
  | [**companies_company_id_assets_asset_id_prices_aph_id_delete**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_delete) | **DELETE** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Delete single price history record by ID |
9
9
  | [**companies_company_id_assets_asset_id_prices_aph_id_get**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_get) | **GET** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Get single price history record by ID |
10
10
  | [**companies_company_id_assets_asset_id_prices_aph_id_patch**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_aph_id_patch) | **PATCH** /companies/{company_id}/assets/{asset_id}/prices/{aph_id} | Update an existing price history record by ID |
11
- | [**companies_company_id_assets_asset_id_prices_calculate_credits_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_calculate_credits_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/calculate_credits | Calculate the credit equivalent for a given USD price without saving |
12
- | [**companies_company_id_assets_asset_id_prices_discount_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_discount_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/discount | Apply a discount to the active price for an asset |
11
+ | [**companies_company_id_assets_asset_id_prices_calculate_credits_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_calculate_credits_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/calculate_credits | POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits |
12
+ | [**companies_company_id_assets_asset_id_prices_discount_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_discount_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices/discount | POST /companies/{company_id}/assets/{asset_id}/prices/discount |
13
13
  | [**companies_company_id_assets_asset_id_prices_get**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_get) | **GET** /companies/{company_id}/assets/{asset_id}/prices | Get all price history records for a specific asset |
14
14
  | [**companies_company_id_assets_asset_id_prices_post**](AssetPriceHistoryApi.md#companies_company_id_assets_asset_id_prices_post) | **POST** /companies/{company_id}/assets/{asset_id}/prices | Create a new price history record for an asset |
15
15
 
@@ -27,8 +27,10 @@ require 'time'
27
27
  require 'spartera_api_sdk'
28
28
  # setup authorization
29
29
  SparteraApiSdk.configure do |config|
30
- # Configure Bearer authorization (JWT): bearerAuth
31
- config.access_token = 'YOUR_BEARER_TOKEN'
30
+ # Configure API key authorization: ApiKeyAuth
31
+ config.api_key['x-api-key'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
32
34
  end
33
35
 
34
36
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -75,7 +77,7 @@ end
75
77
 
76
78
  ### Authorization
77
79
 
78
- [bearerAuth](../README.md#bearerAuth)
80
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
79
81
 
80
82
  ### HTTP request headers
81
83
 
@@ -96,8 +98,10 @@ require 'time'
96
98
  require 'spartera_api_sdk'
97
99
  # setup authorization
98
100
  SparteraApiSdk.configure do |config|
99
- # Configure Bearer authorization (JWT): bearerAuth
100
- config.access_token = 'YOUR_BEARER_TOKEN'
101
+ # Configure API key authorization: ApiKeyAuth
102
+ config.api_key['x-api-key'] = 'YOUR API KEY'
103
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
104
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
101
105
  end
102
106
 
103
107
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -146,7 +150,7 @@ end
146
150
 
147
151
  ### Authorization
148
152
 
149
- [bearerAuth](../README.md#bearerAuth)
153
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
150
154
 
151
155
  ### HTTP request headers
152
156
 
@@ -167,8 +171,10 @@ require 'time'
167
171
  require 'spartera_api_sdk'
168
172
  # setup authorization
169
173
  SparteraApiSdk.configure do |config|
170
- # Configure Bearer authorization (JWT): bearerAuth
171
- config.access_token = 'YOUR_BEARER_TOKEN'
174
+ # Configure API key authorization: ApiKeyAuth
175
+ config.api_key['x-api-key'] = 'YOUR API KEY'
176
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
177
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
172
178
  end
173
179
 
174
180
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -217,7 +223,7 @@ end
217
223
 
218
224
  ### Authorization
219
225
 
220
- [bearerAuth](../README.md#bearerAuth)
226
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
221
227
 
222
228
  ### HTTP request headers
223
229
 
@@ -238,8 +244,10 @@ require 'time'
238
244
  require 'spartera_api_sdk'
239
245
  # setup authorization
240
246
  SparteraApiSdk.configure do |config|
241
- # Configure Bearer authorization (JWT): bearerAuth
242
- config.access_token = 'YOUR_BEARER_TOKEN'
247
+ # Configure API key authorization: ApiKeyAuth
248
+ config.api_key['x-api-key'] = 'YOUR API KEY'
249
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
250
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
243
251
  end
244
252
 
245
253
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -288,7 +296,7 @@ end
288
296
 
289
297
  ### Authorization
290
298
 
291
- [bearerAuth](../README.md#bearerAuth)
299
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
292
300
 
293
301
  ### HTTP request headers
294
302
 
@@ -300,7 +308,7 @@ end
300
308
 
301
309
  > Object companies_company_id_assets_asset_id_prices_calculate_credits_post(company_id, asset_id)
302
310
 
303
- Calculate the credit equivalent for a given USD price without saving
311
+ POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits
304
312
 
305
313
  ### Examples
306
314
 
@@ -309,8 +317,10 @@ require 'time'
309
317
  require 'spartera_api_sdk'
310
318
  # setup authorization
311
319
  SparteraApiSdk.configure do |config|
312
- # Configure Bearer authorization (JWT): bearerAuth
313
- config.access_token = 'YOUR_BEARER_TOKEN'
320
+ # Configure API key authorization: ApiKeyAuth
321
+ config.api_key['x-api-key'] = 'YOUR API KEY'
322
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
323
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
314
324
  end
315
325
 
316
326
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -318,7 +328,7 @@ company_id = 'company_id_example' # String |
318
328
  asset_id = 'asset_id_example' # String |
319
329
 
320
330
  begin
321
- # Calculate the credit equivalent for a given USD price without saving
331
+ # POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits
322
332
  result = api_instance.companies_company_id_assets_asset_id_prices_calculate_credits_post(company_id, asset_id)
323
333
  p result
324
334
  rescue SparteraApiSdk::ApiError => e
@@ -334,7 +344,7 @@ This returns an Array which contains the response data, status code and headers.
334
344
 
335
345
  ```ruby
336
346
  begin
337
- # Calculate the credit equivalent for a given USD price without saving
347
+ # POST /companies/{company_id}/assets/{asset_id}/prices/calculate_credits
338
348
  data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_calculate_credits_post_with_http_info(company_id, asset_id)
339
349
  p status_code # => 2xx
340
350
  p headers # => { ... }
@@ -357,7 +367,7 @@ end
357
367
 
358
368
  ### Authorization
359
369
 
360
- [bearerAuth](../README.md#bearerAuth)
370
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
361
371
 
362
372
  ### HTTP request headers
363
373
 
@@ -369,7 +379,7 @@ end
369
379
 
370
380
  > Object companies_company_id_assets_asset_id_prices_discount_post(company_id, asset_id)
371
381
 
372
- Apply a discount to the active price for an asset
382
+ POST /companies/{company_id}/assets/{asset_id}/prices/discount
373
383
 
374
384
  ### Examples
375
385
 
@@ -378,8 +388,10 @@ require 'time'
378
388
  require 'spartera_api_sdk'
379
389
  # setup authorization
380
390
  SparteraApiSdk.configure do |config|
381
- # Configure Bearer authorization (JWT): bearerAuth
382
- config.access_token = 'YOUR_BEARER_TOKEN'
391
+ # Configure API key authorization: ApiKeyAuth
392
+ config.api_key['x-api-key'] = 'YOUR API KEY'
393
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
394
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
383
395
  end
384
396
 
385
397
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -387,7 +399,7 @@ company_id = 'company_id_example' # String |
387
399
  asset_id = 'asset_id_example' # String |
388
400
 
389
401
  begin
390
- # Apply a discount to the active price for an asset
402
+ # POST /companies/{company_id}/assets/{asset_id}/prices/discount
391
403
  result = api_instance.companies_company_id_assets_asset_id_prices_discount_post(company_id, asset_id)
392
404
  p result
393
405
  rescue SparteraApiSdk::ApiError => e
@@ -403,7 +415,7 @@ This returns an Array which contains the response data, status code and headers.
403
415
 
404
416
  ```ruby
405
417
  begin
406
- # Apply a discount to the active price for an asset
418
+ # POST /companies/{company_id}/assets/{asset_id}/prices/discount
407
419
  data, status_code, headers = api_instance.companies_company_id_assets_asset_id_prices_discount_post_with_http_info(company_id, asset_id)
408
420
  p status_code # => 2xx
409
421
  p headers # => { ... }
@@ -426,7 +438,7 @@ end
426
438
 
427
439
  ### Authorization
428
440
 
429
- [bearerAuth](../README.md#bearerAuth)
441
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
430
442
 
431
443
  ### HTTP request headers
432
444
 
@@ -447,8 +459,10 @@ require 'time'
447
459
  require 'spartera_api_sdk'
448
460
  # setup authorization
449
461
  SparteraApiSdk.configure do |config|
450
- # Configure Bearer authorization (JWT): bearerAuth
451
- config.access_token = 'YOUR_BEARER_TOKEN'
462
+ # Configure API key authorization: ApiKeyAuth
463
+ config.api_key['x-api-key'] = 'YOUR API KEY'
464
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
465
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
452
466
  end
453
467
 
454
468
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -495,7 +509,7 @@ end
495
509
 
496
510
  ### Authorization
497
511
 
498
- [bearerAuth](../README.md#bearerAuth)
512
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
499
513
 
500
514
  ### HTTP request headers
501
515
 
@@ -516,8 +530,10 @@ require 'time'
516
530
  require 'spartera_api_sdk'
517
531
  # setup authorization
518
532
  SparteraApiSdk.configure do |config|
519
- # Configure Bearer authorization (JWT): bearerAuth
520
- config.access_token = 'YOUR_BEARER_TOKEN'
533
+ # Configure API key authorization: ApiKeyAuth
534
+ config.api_key['x-api-key'] = 'YOUR API KEY'
535
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
536
+ # config.api_key_prefix['x-api-key'] = 'Bearer'
521
537
  end
522
538
 
523
539
  api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
@@ -564,7 +580,7 @@ end
564
580
 
565
581
  ### Authorization
566
582
 
567
- [bearerAuth](../README.md#bearerAuth)
583
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
568
584
 
569
585
  ### HTTP request headers
570
586