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