spartera_api_sdk 1.0.58

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 (87) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +11 -0
  3. data/Gemfile.lock +69 -0
  4. data/LICENSE +21 -0
  5. data/README.md +360 -0
  6. data/Rakefile +10 -0
  7. data/config.json +10 -0
  8. data/docs/APIKeysApi.md +353 -0
  9. data/docs/Alert.md +36 -0
  10. data/docs/AlertsApi.md +511 -0
  11. data/docs/Apikey.md +36 -0
  12. data/docs/Asset.md +110 -0
  13. data/docs/AssetPriceHistoryApi.md +573 -0
  14. data/docs/Assetpricehistory.md +38 -0
  15. data/docs/AssetsApi.md +1131 -0
  16. data/docs/CloudProvidersApi.md +341 -0
  17. data/docs/Cloudprovider.md +30 -0
  18. data/docs/CompaniesApi.md +619 -0
  19. data/docs/Company.md +44 -0
  20. data/docs/Connection.md +54 -0
  21. data/docs/ConnectionsApi.md +497 -0
  22. data/docs/Error.md +24 -0
  23. data/docs/Favorite.md +36 -0
  24. data/docs/FavoritesApi.md +581 -0
  25. data/docs/InlineObject.md +22 -0
  26. data/docs/InlineObject1.md +20 -0
  27. data/docs/InlineObject2.md +20 -0
  28. data/docs/InlineObject3.md +20 -0
  29. data/docs/User.md +34 -0
  30. data/docs/UsersApi.md +357 -0
  31. data/example.rb +51 -0
  32. data/git_push.sh +57 -0
  33. data/lib/spartera_api_sdk/api/alerts_api.rb +543 -0
  34. data/lib/spartera_api_sdk/api/api_keys_api.rb +345 -0
  35. data/lib/spartera_api_sdk/api/asset_price_history_api.rb +576 -0
  36. data/lib/spartera_api_sdk/api/assets_api.rb +1106 -0
  37. data/lib/spartera_api_sdk/api/cloud_providers_api.rb +315 -0
  38. data/lib/spartera_api_sdk/api/companies_api.rb +571 -0
  39. data/lib/spartera_api_sdk/api/connections_api.rb +501 -0
  40. data/lib/spartera_api_sdk/api/favorites_api.rb +610 -0
  41. data/lib/spartera_api_sdk/api/users_api.rb +367 -0
  42. data/lib/spartera_api_sdk/api_client.rb +393 -0
  43. data/lib/spartera_api_sdk/api_error.rb +58 -0
  44. data/lib/spartera_api_sdk/configuration.rb +320 -0
  45. data/lib/spartera_api_sdk/models/alert.rb +353 -0
  46. data/lib/spartera_api_sdk/models/apikey.rb +370 -0
  47. data/lib/spartera_api_sdk/models/asset.rb +686 -0
  48. data/lib/spartera_api_sdk/models/assetpricehistory.rb +345 -0
  49. data/lib/spartera_api_sdk/models/cloudprovider.rb +292 -0
  50. data/lib/spartera_api_sdk/models/company.rb +389 -0
  51. data/lib/spartera_api_sdk/models/connection.rb +434 -0
  52. data/lib/spartera_api_sdk/models/error.rb +285 -0
  53. data/lib/spartera_api_sdk/models/favorite.rb +353 -0
  54. data/lib/spartera_api_sdk/models/inline_object.rb +240 -0
  55. data/lib/spartera_api_sdk/models/inline_object1.rb +229 -0
  56. data/lib/spartera_api_sdk/models/inline_object2.rb +229 -0
  57. data/lib/spartera_api_sdk/models/inline_object3.rb +229 -0
  58. data/lib/spartera_api_sdk/models/user.rb +327 -0
  59. data/lib/spartera_api_sdk/version.rb +15 -0
  60. data/lib/spartera_api_sdk.rb +62 -0
  61. data/spartera_api_sdk.gemspec +28 -0
  62. data/spec/api/alerts_api_spec.rb +126 -0
  63. data/spec/api/api_keys_api_spec.rb +93 -0
  64. data/spec/api/asset_price_history_api_spec.rb +134 -0
  65. data/spec/api/assets_api_spec.rb +228 -0
  66. data/spec/api/cloud_providers_api_spec.rb +88 -0
  67. data/spec/api/companies_api_spec.rb +134 -0
  68. data/spec/api/connections_api_spec.rb +119 -0
  69. data/spec/api/favorites_api_spec.rb +138 -0
  70. data/spec/api/users_api_spec.rb +95 -0
  71. data/spec/models/alert_spec.rb +90 -0
  72. data/spec/models/apikey_spec.rb +90 -0
  73. data/spec/models/asset_spec.rb +312 -0
  74. data/spec/models/assetpricehistory_spec.rb +96 -0
  75. data/spec/models/cloudprovider_spec.rb +72 -0
  76. data/spec/models/company_spec.rb +114 -0
  77. data/spec/models/connection_spec.rb +144 -0
  78. data/spec/models/error_spec.rb +54 -0
  79. data/spec/models/favorite_spec.rb +90 -0
  80. data/spec/models/inline_object1_spec.rb +42 -0
  81. data/spec/models/inline_object2_spec.rb +42 -0
  82. data/spec/models/inline_object3_spec.rb +42 -0
  83. data/spec/models/inline_object_spec.rb +48 -0
  84. data/spec/models/user_spec.rb +84 -0
  85. data/spec/spec_helper.rb +111 -0
  86. data/test.sh +42 -0
  87. metadata +204 -0
data/docs/AlertsApi.md ADDED
@@ -0,0 +1,511 @@
1
+ # SparteraApiSdk::AlertsApi
2
+
3
+ All URIs are relative to *https://api.spartera.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
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
+ | [**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
+ | [**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 |
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
+ | [**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
+
15
+
16
+ ## companies_company_id_users_user_id_alerts_alert_id_delete
17
+
18
+ > Object companies_company_id_users_user_id_alerts_alert_id_delete(company_id, user_id, alert_id)
19
+
20
+ Delete single alert by ID
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'spartera_api_sdk'
27
+ # setup authorization
28
+ SparteraApiSdk.configure do |config|
29
+ # Configure Bearer authorization (JWT): bearerAuth
30
+ config.access_token = 'YOUR_BEARER_TOKEN'
31
+ end
32
+
33
+ api_instance = SparteraApiSdk::AlertsApi.new
34
+ company_id = 'company_id_example' # String |
35
+ user_id = 'user_id_example' # String |
36
+ alert_id = 'alert_id_example' # String |
37
+
38
+ begin
39
+ # Delete single alert by ID
40
+ result = api_instance.companies_company_id_users_user_id_alerts_alert_id_delete(company_id, user_id, alert_id)
41
+ p result
42
+ rescue SparteraApiSdk::ApiError => e
43
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_delete: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info(company_id, user_id, alert_id)
52
+
53
+ ```ruby
54
+ begin
55
+ # Delete single alert by ID
56
+ data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info(company_id, user_id, alert_id)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => Object
60
+ rescue SparteraApiSdk::ApiError => e
61
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **company_id** | **String** | | |
70
+ | **user_id** | **String** | | |
71
+ | **alert_id** | **String** | | |
72
+
73
+ ### Return type
74
+
75
+ **Object**
76
+
77
+ ### Authorization
78
+
79
+ [bearerAuth](../README.md#bearerAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## companies_company_id_users_user_id_alerts_alert_id_get
88
+
89
+ > Object companies_company_id_users_user_id_alerts_alert_id_get(company_id, user_id, alert_id)
90
+
91
+ Get single alert by ID
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'spartera_api_sdk'
98
+ # setup authorization
99
+ SparteraApiSdk.configure do |config|
100
+ # Configure Bearer authorization (JWT): bearerAuth
101
+ config.access_token = 'YOUR_BEARER_TOKEN'
102
+ end
103
+
104
+ api_instance = SparteraApiSdk::AlertsApi.new
105
+ company_id = 'company_id_example' # String |
106
+ user_id = 'user_id_example' # String |
107
+ alert_id = 'alert_id_example' # String |
108
+
109
+ begin
110
+ # Get single alert by ID
111
+ result = api_instance.companies_company_id_users_user_id_alerts_alert_id_get(company_id, user_id, alert_id)
112
+ p result
113
+ rescue SparteraApiSdk::ApiError => e
114
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_get: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the companies_company_id_users_user_id_alerts_alert_id_get_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_alert_id_get_with_http_info(company_id, user_id, alert_id)
123
+
124
+ ```ruby
125
+ begin
126
+ # Get single alert by ID
127
+ data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_alert_id_get_with_http_info(company_id, user_id, alert_id)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => Object
131
+ rescue SparteraApiSdk::ApiError => e
132
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_get_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **company_id** | **String** | | |
141
+ | **user_id** | **String** | | |
142
+ | **alert_id** | **String** | | |
143
+
144
+ ### Return type
145
+
146
+ **Object**
147
+
148
+ ### Authorization
149
+
150
+ [bearerAuth](../README.md#bearerAuth)
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: application/json
156
+
157
+
158
+ ## companies_company_id_users_user_id_alerts_alert_id_patch
159
+
160
+ > Object companies_company_id_users_user_id_alerts_alert_id_patch(company_id, user_id, alert_id, alert)
161
+
162
+ Update an existing alert by ID
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'spartera_api_sdk'
169
+ # setup authorization
170
+ SparteraApiSdk.configure do |config|
171
+ # Configure Bearer authorization (JWT): bearerAuth
172
+ config.access_token = 'YOUR_BEARER_TOKEN'
173
+ end
174
+
175
+ api_instance = SparteraApiSdk::AlertsApi.new
176
+ company_id = 'company_id_example' # String |
177
+ user_id = 'user_id_example' # String |
178
+ alert_id = 'alert_id_example' # String |
179
+ alert = SparteraApiSdk::Alert.new({asset_id: 'asset_id_example', company_id: 'company_id_example', alert_type: 'alert_type_example'}) # Alert |
180
+
181
+ begin
182
+ # Update an existing alert by ID
183
+ result = api_instance.companies_company_id_users_user_id_alerts_alert_id_patch(company_id, user_id, alert_id, alert)
184
+ p result
185
+ rescue SparteraApiSdk::ApiError => e
186
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_patch: #{e}"
187
+ end
188
+ ```
189
+
190
+ #### Using the companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info variant
191
+
192
+ This returns an Array which contains the response data, status code and headers.
193
+
194
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info(company_id, user_id, alert_id, alert)
195
+
196
+ ```ruby
197
+ begin
198
+ # Update an existing alert by ID
199
+ data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info(company_id, user_id, alert_id, alert)
200
+ p status_code # => 2xx
201
+ p headers # => { ... }
202
+ p data # => Object
203
+ rescue SparteraApiSdk::ApiError => e
204
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info: #{e}"
205
+ end
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ | Name | Type | Description | Notes |
211
+ | ---- | ---- | ----------- | ----- |
212
+ | **company_id** | **String** | | |
213
+ | **user_id** | **String** | | |
214
+ | **alert_id** | **String** | | |
215
+ | **alert** | [**Alert**](Alert.md) | | |
216
+
217
+ ### Return type
218
+
219
+ **Object**
220
+
221
+ ### Authorization
222
+
223
+ [bearerAuth](../README.md#bearerAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
231
+ ## companies_company_id_users_user_id_alerts_asset_asset_id_all_get
232
+
233
+ > Object companies_company_id_users_user_id_alerts_asset_asset_id_all_get(company_id, user_id, asset_id)
234
+
235
+ Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
236
+
237
+ ### Examples
238
+
239
+ ```ruby
240
+ require 'time'
241
+ require 'spartera_api_sdk'
242
+ # setup authorization
243
+ SparteraApiSdk.configure do |config|
244
+ # Configure Bearer authorization (JWT): bearerAuth
245
+ config.access_token = 'YOUR_BEARER_TOKEN'
246
+ end
247
+
248
+ api_instance = SparteraApiSdk::AlertsApi.new
249
+ company_id = 'company_id_example' # String |
250
+ user_id = 'user_id_example' # String |
251
+ asset_id = 'asset_id_example' # String |
252
+
253
+ begin
254
+ # Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
255
+ result = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_all_get(company_id, user_id, asset_id)
256
+ p result
257
+ rescue SparteraApiSdk::ApiError => e
258
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_asset_asset_id_all_get: #{e}"
259
+ end
260
+ ```
261
+
262
+ #### Using the companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info variant
263
+
264
+ This returns an Array which contains the response data, status code and headers.
265
+
266
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info(company_id, user_id, asset_id)
267
+
268
+ ```ruby
269
+ begin
270
+ # Get all alerts for a specific asset (from all users) This would typically be restricted to asset owners or admins
271
+ 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
+ p status_code # => 2xx
273
+ p headers # => { ... }
274
+ p data # => Object
275
+ rescue SparteraApiSdk::ApiError => e
276
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info: #{e}"
277
+ end
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+ | Name | Type | Description | Notes |
283
+ | ---- | ---- | ----------- | ----- |
284
+ | **company_id** | **String** | | |
285
+ | **user_id** | **String** | | |
286
+ | **asset_id** | **String** | | |
287
+
288
+ ### Return type
289
+
290
+ **Object**
291
+
292
+ ### Authorization
293
+
294
+ [bearerAuth](../README.md#bearerAuth)
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: Not defined
299
+ - **Accept**: application/json
300
+
301
+
302
+ ## companies_company_id_users_user_id_alerts_asset_asset_id_get
303
+
304
+ > Object companies_company_id_users_user_id_alerts_asset_asset_id_get(company_id, user_id, asset_id)
305
+
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
307
+
308
+ ### Examples
309
+
310
+ ```ruby
311
+ require 'time'
312
+ require 'spartera_api_sdk'
313
+ # setup authorization
314
+ SparteraApiSdk.configure do |config|
315
+ # Configure Bearer authorization (JWT): bearerAuth
316
+ config.access_token = 'YOUR_BEARER_TOKEN'
317
+ end
318
+
319
+ api_instance = SparteraApiSdk::AlertsApi.new
320
+ company_id = 'company_id_example' # String |
321
+ user_id = 'user_id_example' # String |
322
+ asset_id = 'asset_id_example' # String |
323
+
324
+ 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
326
+ result = api_instance.companies_company_id_users_user_id_alerts_asset_asset_id_get(company_id, user_id, asset_id)
327
+ p result
328
+ rescue SparteraApiSdk::ApiError => e
329
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_asset_asset_id_get: #{e}"
330
+ end
331
+ ```
332
+
333
+ #### Using the companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info variant
334
+
335
+ This returns an Array which contains the response data, status code and headers.
336
+
337
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info(company_id, user_id, asset_id)
338
+
339
+ ```ruby
340
+ 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
342
+ 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
+ p status_code # => 2xx
344
+ p headers # => { ... }
345
+ p data # => Object
346
+ rescue SparteraApiSdk::ApiError => e
347
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info: #{e}"
348
+ end
349
+ ```
350
+
351
+ ### Parameters
352
+
353
+ | Name | Type | Description | Notes |
354
+ | ---- | ---- | ----------- | ----- |
355
+ | **company_id** | **String** | | |
356
+ | **user_id** | **String** | | |
357
+ | **asset_id** | **String** | | |
358
+
359
+ ### Return type
360
+
361
+ **Object**
362
+
363
+ ### Authorization
364
+
365
+ [bearerAuth](../README.md#bearerAuth)
366
+
367
+ ### HTTP request headers
368
+
369
+ - **Content-Type**: Not defined
370
+ - **Accept**: application/json
371
+
372
+
373
+ ## companies_company_id_users_user_id_alerts_get
374
+
375
+ > Object companies_company_id_users_user_id_alerts_get(company_id, user_id)
376
+
377
+ Get a list of all alerts for a specific user
378
+
379
+ ### Examples
380
+
381
+ ```ruby
382
+ require 'time'
383
+ require 'spartera_api_sdk'
384
+ # setup authorization
385
+ SparteraApiSdk.configure do |config|
386
+ # Configure Bearer authorization (JWT): bearerAuth
387
+ config.access_token = 'YOUR_BEARER_TOKEN'
388
+ end
389
+
390
+ api_instance = SparteraApiSdk::AlertsApi.new
391
+ company_id = 'company_id_example' # String |
392
+ user_id = 'user_id_example' # String |
393
+
394
+ begin
395
+ # Get a list of all alerts for a specific user
396
+ result = api_instance.companies_company_id_users_user_id_alerts_get(company_id, user_id)
397
+ p result
398
+ rescue SparteraApiSdk::ApiError => e
399
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_get: #{e}"
400
+ end
401
+ ```
402
+
403
+ #### Using the companies_company_id_users_user_id_alerts_get_with_http_info variant
404
+
405
+ This returns an Array which contains the response data, status code and headers.
406
+
407
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_get_with_http_info(company_id, user_id)
408
+
409
+ ```ruby
410
+ begin
411
+ # Get a list of all alerts for a specific user
412
+ data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_get_with_http_info(company_id, user_id)
413
+ p status_code # => 2xx
414
+ p headers # => { ... }
415
+ p data # => Object
416
+ rescue SparteraApiSdk::ApiError => e
417
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_get_with_http_info: #{e}"
418
+ end
419
+ ```
420
+
421
+ ### Parameters
422
+
423
+ | Name | Type | Description | Notes |
424
+ | ---- | ---- | ----------- | ----- |
425
+ | **company_id** | **String** | | |
426
+ | **user_id** | **String** | | |
427
+
428
+ ### Return type
429
+
430
+ **Object**
431
+
432
+ ### Authorization
433
+
434
+ [bearerAuth](../README.md#bearerAuth)
435
+
436
+ ### HTTP request headers
437
+
438
+ - **Content-Type**: Not defined
439
+ - **Accept**: application/json
440
+
441
+
442
+ ## companies_company_id_users_user_id_alerts_post
443
+
444
+ > Object companies_company_id_users_user_id_alerts_post(company_id, user_id, alert)
445
+
446
+ POST /companies/{company_id}/users/{user_id}/alerts
447
+
448
+ ### Examples
449
+
450
+ ```ruby
451
+ require 'time'
452
+ require 'spartera_api_sdk'
453
+ # setup authorization
454
+ SparteraApiSdk.configure do |config|
455
+ # Configure Bearer authorization (JWT): bearerAuth
456
+ config.access_token = 'YOUR_BEARER_TOKEN'
457
+ end
458
+
459
+ api_instance = SparteraApiSdk::AlertsApi.new
460
+ company_id = 'company_id_example' # String |
461
+ user_id = 'user_id_example' # String |
462
+ alert = SparteraApiSdk::Alert.new({asset_id: 'asset_id_example', company_id: 'company_id_example', alert_type: 'alert_type_example'}) # Alert |
463
+
464
+ begin
465
+ # POST /companies/{company_id}/users/{user_id}/alerts
466
+ result = api_instance.companies_company_id_users_user_id_alerts_post(company_id, user_id, alert)
467
+ p result
468
+ rescue SparteraApiSdk::ApiError => e
469
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_post: #{e}"
470
+ end
471
+ ```
472
+
473
+ #### Using the companies_company_id_users_user_id_alerts_post_with_http_info variant
474
+
475
+ This returns an Array which contains the response data, status code and headers.
476
+
477
+ > <Array(Object, Integer, Hash)> companies_company_id_users_user_id_alerts_post_with_http_info(company_id, user_id, alert)
478
+
479
+ ```ruby
480
+ begin
481
+ # POST /companies/{company_id}/users/{user_id}/alerts
482
+ data, status_code, headers = api_instance.companies_company_id_users_user_id_alerts_post_with_http_info(company_id, user_id, alert)
483
+ p status_code # => 2xx
484
+ p headers # => { ... }
485
+ p data # => Object
486
+ rescue SparteraApiSdk::ApiError => e
487
+ puts "Error when calling AlertsApi->companies_company_id_users_user_id_alerts_post_with_http_info: #{e}"
488
+ end
489
+ ```
490
+
491
+ ### Parameters
492
+
493
+ | Name | Type | Description | Notes |
494
+ | ---- | ---- | ----------- | ----- |
495
+ | **company_id** | **String** | | |
496
+ | **user_id** | **String** | | |
497
+ | **alert** | [**Alert**](Alert.md) | | |
498
+
499
+ ### Return type
500
+
501
+ **Object**
502
+
503
+ ### Authorization
504
+
505
+ [bearerAuth](../README.md#bearerAuth)
506
+
507
+ ### HTTP request headers
508
+
509
+ - **Content-Type**: application/json
510
+ - **Accept**: application/json
511
+
data/docs/Apikey.md ADDED
@@ -0,0 +1,36 @@
1
+ # SparteraApiSdk::Apikey
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **api_key_id** | **String** | | [readonly] |
8
+ | **user_id** | **String** | | [optional] |
9
+ | **company_id** | **String** | | |
10
+ | **role_id** | **String** | | |
11
+ | **token** | **String** | | |
12
+ | **name** | **String** | | [optional] |
13
+ | **expiration_date_utc** | **String** | | [optional] |
14
+ | **date_created** | **String** | | [optional] |
15
+ | **last_updated** | **String** | | [optional] |
16
+ | **active** | **String** | | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'spartera_api_sdk'
22
+
23
+ instance = SparteraApiSdk::Apikey.new(
24
+ api_key_id: null,
25
+ user_id: null,
26
+ company_id: null,
27
+ role_id: null,
28
+ token: null,
29
+ name: null,
30
+ expiration_date_utc: null,
31
+ date_created: null,
32
+ last_updated: null,
33
+ active: null
34
+ )
35
+ ```
36
+
data/docs/Asset.md ADDED
@@ -0,0 +1,110 @@
1
+ # SparteraApiSdk::Asset
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **asset_id** | **String** | | [optional] |
8
+ | **user_id** | **String** | | [optional] |
9
+ | **company_id** | **String** | | |
10
+ | **connection_id** | **String** | | [optional] |
11
+ | **llm_connection_id** | **String** | | [optional] |
12
+ | **snippet_id** | **String** | | [optional] |
13
+ | **industry_id** | **String** | | [optional] |
14
+ | **ai_job_id** | **String** | | [optional] |
15
+ | **approval_status** | **String** | | [optional] |
16
+ | **approved_by_user_id** | **String** | | [optional] |
17
+ | **approved_at** | **String** | | [optional] |
18
+ | **name** | **String** | | |
19
+ | **slug** | **String** | | [optional] |
20
+ | **description** | **String** | | [optional] |
21
+ | **source** | **String** | | |
22
+ | **asset_type** | **String** | | [optional] |
23
+ | **asset_schema** | **String** | | [optional] |
24
+ | **visibility** | **String** | | [optional] |
25
+ | **tags** | **String** | | [optional] |
26
+ | **sql_logic** | **String** | | [optional] |
27
+ | **source_schema_name** | **String** | | [optional] |
28
+ | **source_table_name** | **String** | | [optional] |
29
+ | **sell_in_marketplace** | **String** | | [optional] |
30
+ | **viz_chart_library** | **String** | | [optional] |
31
+ | **viz_chart_type** | **String** | | [optional] |
32
+ | **viz_dep_var_col_name** | **String** | | [optional] |
33
+ | **viz_indep_var_col_name** | **String** | | [optional] |
34
+ | **viz_size_col_name** | **String** | | [optional] |
35
+ | **viz_color_col_name** | **String** | | [optional] |
36
+ | **viz_data_aggregation** | **String** | | [optional] |
37
+ | **viz_sort_direction** | **String** | | [optional] |
38
+ | **viz_data_limit** | **String** | | [optional] |
39
+ | **viz_color_scheme** | **String** | | [optional] |
40
+ | **allow_params** | **String** | | [optional] |
41
+ | **accept_terms** | **String** | | [optional] |
42
+ | **cached** | **String** | | [optional] |
43
+ | **schedule** | **String** | | [optional] |
44
+ | **next_run** | **String** | | [optional] |
45
+ | **data_time_period_start** | **String** | | [optional] |
46
+ | **data_time_period_end** | **String** | | [optional] |
47
+ | **geographic_coverage_type** | **String** | | [optional] |
48
+ | **geographic_coverage_details** | **String** | | [optional] |
49
+ | **data_source_refresh_frequency** | **String** | | [optional] |
50
+ | **data_source_last_refreshed** | **String** | | [optional] |
51
+ | **date_created** | **String** | | [optional] |
52
+ | **last_updated** | **String** | | [optional] |
53
+ | **active** | **String** | | [optional] |
54
+
55
+ ## Example
56
+
57
+ ```ruby
58
+ require 'spartera_api_sdk'
59
+
60
+ instance = SparteraApiSdk::Asset.new(
61
+ asset_id: null,
62
+ user_id: null,
63
+ company_id: null,
64
+ connection_id: null,
65
+ llm_connection_id: null,
66
+ snippet_id: null,
67
+ industry_id: null,
68
+ ai_job_id: null,
69
+ approval_status: null,
70
+ approved_by_user_id: null,
71
+ approved_at: null,
72
+ name: null,
73
+ slug: null,
74
+ description: null,
75
+ source: null,
76
+ asset_type: null,
77
+ asset_schema: null,
78
+ visibility: null,
79
+ tags: null,
80
+ sql_logic: null,
81
+ source_schema_name: null,
82
+ source_table_name: null,
83
+ sell_in_marketplace: null,
84
+ viz_chart_library: null,
85
+ viz_chart_type: null,
86
+ viz_dep_var_col_name: null,
87
+ viz_indep_var_col_name: null,
88
+ viz_size_col_name: null,
89
+ viz_color_col_name: null,
90
+ viz_data_aggregation: null,
91
+ viz_sort_direction: null,
92
+ viz_data_limit: null,
93
+ viz_color_scheme: null,
94
+ allow_params: null,
95
+ accept_terms: null,
96
+ cached: null,
97
+ schedule: null,
98
+ next_run: null,
99
+ data_time_period_start: null,
100
+ data_time_period_end: null,
101
+ geographic_coverage_type: null,
102
+ geographic_coverage_details: null,
103
+ data_source_refresh_frequency: null,
104
+ data_source_last_refreshed: null,
105
+ date_created: null,
106
+ last_updated: null,
107
+ active: null
108
+ )
109
+ ```
110
+