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,619 @@
|
|
1
|
+
# SparteraApiSdk::CompaniesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.spartera.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**companies_company_id_analytics_assets_get**](CompaniesApi.md#companies_company_id_analytics_assets_get) | **GET** /companies/{company_id}/analytics/assets | Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include |
|
8
|
+
| [**companies_company_id_analytics_customers_get**](CompaniesApi.md#companies_company_id_analytics_customers_get) | **GET** /companies/{company_id}/analytics/customers | Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by |
|
9
|
+
| [**companies_company_id_analytics_dashboard_get**](CompaniesApi.md#companies_company_id_analytics_dashboard_get) | **GET** /companies/{company_id}/analytics/dashboard | Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter) |
|
10
|
+
| [**companies_company_id_analytics_sales_get**](CompaniesApi.md#companies_company_id_analytics_sales_get) | **GET** /companies/{company_id}/analytics/sales | Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics |
|
11
|
+
| [**companies_company_id_get**](CompaniesApi.md#companies_company_id_get) | **GET** /companies/{company_id} | Get details of the requestor's own company |
|
12
|
+
| [**companies_company_id_objects_get**](CompaniesApi.md#companies_company_id_objects_get) | **GET** /companies/{company_id}/objects | Get all objects (connections, assets) of a single company |
|
13
|
+
| [**companies_company_id_patch**](CompaniesApi.md#companies_company_id_patch) | **PATCH** /companies/{company_id} | Update an existing company by ID |
|
14
|
+
| [**companies_company_id_requests_plan_get**](CompaniesApi.md#companies_company_id_requests_plan_get) | **GET** /companies/{company_id}/requests/plan | Get the total number of requests allocated in the company's current subscription plan. |
|
15
|
+
| [**companies_company_id_requests_usage_get**](CompaniesApi.md#companies_company_id_requests_usage_get) | **GET** /companies/{company_id}/requests/usage | Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included. |
|
16
|
+
|
17
|
+
|
18
|
+
## companies_company_id_analytics_assets_get
|
19
|
+
|
20
|
+
> Object companies_company_id_analytics_assets_get(company_id)
|
21
|
+
|
22
|
+
Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'spartera_api_sdk'
|
29
|
+
# setup authorization
|
30
|
+
SparteraApiSdk.configure do |config|
|
31
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
32
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
36
|
+
company_id = 'company_id_example' # String |
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
40
|
+
result = api_instance.companies_company_id_analytics_assets_get(company_id)
|
41
|
+
p result
|
42
|
+
rescue SparteraApiSdk::ApiError => e
|
43
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_assets_get: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
#### Using the companies_company_id_analytics_assets_get_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_analytics_assets_get_with_http_info(company_id)
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
begin
|
55
|
+
# Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
56
|
+
data, status_code, headers = api_instance.companies_company_id_analytics_assets_get_with_http_info(company_id)
|
57
|
+
p status_code # => 2xx
|
58
|
+
p headers # => { ... }
|
59
|
+
p data # => Object
|
60
|
+
rescue SparteraApiSdk::ApiError => e
|
61
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_assets_get_with_http_info: #{e}"
|
62
|
+
end
|
63
|
+
```
|
64
|
+
|
65
|
+
### Parameters
|
66
|
+
|
67
|
+
| Name | Type | Description | Notes |
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
69
|
+
| **company_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_analytics_customers_get
|
86
|
+
|
87
|
+
> Object companies_company_id_analytics_customers_get(company_id)
|
88
|
+
|
89
|
+
Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
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::CompaniesApi.new
|
103
|
+
company_id = 'company_id_example' # String |
|
104
|
+
|
105
|
+
begin
|
106
|
+
# Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
107
|
+
result = api_instance.companies_company_id_analytics_customers_get(company_id)
|
108
|
+
p result
|
109
|
+
rescue SparteraApiSdk::ApiError => e
|
110
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_customers_get: #{e}"
|
111
|
+
end
|
112
|
+
```
|
113
|
+
|
114
|
+
#### Using the companies_company_id_analytics_customers_get_with_http_info variant
|
115
|
+
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
117
|
+
|
118
|
+
> <Array(Object, Integer, Hash)> companies_company_id_analytics_customers_get_with_http_info(company_id)
|
119
|
+
|
120
|
+
```ruby
|
121
|
+
begin
|
122
|
+
# Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
123
|
+
data, status_code, headers = api_instance.companies_company_id_analytics_customers_get_with_http_info(company_id)
|
124
|
+
p status_code # => 2xx
|
125
|
+
p headers # => { ... }
|
126
|
+
p data # => Object
|
127
|
+
rescue SparteraApiSdk::ApiError => e
|
128
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_customers_get_with_http_info: #{e}"
|
129
|
+
end
|
130
|
+
```
|
131
|
+
|
132
|
+
### Parameters
|
133
|
+
|
134
|
+
| Name | Type | Description | Notes |
|
135
|
+
| ---- | ---- | ----------- | ----- |
|
136
|
+
| **company_id** | **String** | | |
|
137
|
+
|
138
|
+
### Return type
|
139
|
+
|
140
|
+
**Object**
|
141
|
+
|
142
|
+
### Authorization
|
143
|
+
|
144
|
+
[bearerAuth](../README.md#bearerAuth)
|
145
|
+
|
146
|
+
### HTTP request headers
|
147
|
+
|
148
|
+
- **Content-Type**: Not defined
|
149
|
+
- **Accept**: application/json
|
150
|
+
|
151
|
+
|
152
|
+
## companies_company_id_analytics_dashboard_get
|
153
|
+
|
154
|
+
> Object companies_company_id_analytics_dashboard_get(company_id)
|
155
|
+
|
156
|
+
Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
|
157
|
+
|
158
|
+
### Examples
|
159
|
+
|
160
|
+
```ruby
|
161
|
+
require 'time'
|
162
|
+
require 'spartera_api_sdk'
|
163
|
+
# setup authorization
|
164
|
+
SparteraApiSdk.configure do |config|
|
165
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
166
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
167
|
+
end
|
168
|
+
|
169
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
170
|
+
company_id = 'company_id_example' # String |
|
171
|
+
|
172
|
+
begin
|
173
|
+
# Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
|
174
|
+
result = api_instance.companies_company_id_analytics_dashboard_get(company_id)
|
175
|
+
p result
|
176
|
+
rescue SparteraApiSdk::ApiError => e
|
177
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_dashboard_get: #{e}"
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
#### Using the companies_company_id_analytics_dashboard_get_with_http_info variant
|
182
|
+
|
183
|
+
This returns an Array which contains the response data, status code and headers.
|
184
|
+
|
185
|
+
> <Array(Object, Integer, Hash)> companies_company_id_analytics_dashboard_get_with_http_info(company_id)
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
begin
|
189
|
+
# Get comprehensive dashboard analytics for seller dashboard Includes all metrics needed for dashboard charts in one call Query params: start_date, end_date, period (day/week/month/quarter)
|
190
|
+
data, status_code, headers = api_instance.companies_company_id_analytics_dashboard_get_with_http_info(company_id)
|
191
|
+
p status_code # => 2xx
|
192
|
+
p headers # => { ... }
|
193
|
+
p data # => Object
|
194
|
+
rescue SparteraApiSdk::ApiError => e
|
195
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_dashboard_get_with_http_info: #{e}"
|
196
|
+
end
|
197
|
+
```
|
198
|
+
|
199
|
+
### Parameters
|
200
|
+
|
201
|
+
| Name | Type | Description | Notes |
|
202
|
+
| ---- | ---- | ----------- | ----- |
|
203
|
+
| **company_id** | **String** | | |
|
204
|
+
|
205
|
+
### Return type
|
206
|
+
|
207
|
+
**Object**
|
208
|
+
|
209
|
+
### Authorization
|
210
|
+
|
211
|
+
[bearerAuth](../README.md#bearerAuth)
|
212
|
+
|
213
|
+
### HTTP request headers
|
214
|
+
|
215
|
+
- **Content-Type**: Not defined
|
216
|
+
- **Accept**: application/json
|
217
|
+
|
218
|
+
|
219
|
+
## companies_company_id_analytics_sales_get
|
220
|
+
|
221
|
+
> Object companies_company_id_analytics_sales_get(company_id)
|
222
|
+
|
223
|
+
Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
224
|
+
|
225
|
+
### Examples
|
226
|
+
|
227
|
+
```ruby
|
228
|
+
require 'time'
|
229
|
+
require 'spartera_api_sdk'
|
230
|
+
# setup authorization
|
231
|
+
SparteraApiSdk.configure do |config|
|
232
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
233
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
234
|
+
end
|
235
|
+
|
236
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
237
|
+
company_id = 'company_id_example' # String |
|
238
|
+
|
239
|
+
begin
|
240
|
+
# Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
241
|
+
result = api_instance.companies_company_id_analytics_sales_get(company_id)
|
242
|
+
p result
|
243
|
+
rescue SparteraApiSdk::ApiError => e
|
244
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_sales_get: #{e}"
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
248
|
+
#### Using the companies_company_id_analytics_sales_get_with_http_info variant
|
249
|
+
|
250
|
+
This returns an Array which contains the response data, status code and headers.
|
251
|
+
|
252
|
+
> <Array(Object, Integer, Hash)> companies_company_id_analytics_sales_get_with_http_info(company_id)
|
253
|
+
|
254
|
+
```ruby
|
255
|
+
begin
|
256
|
+
# Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
257
|
+
data, status_code, headers = api_instance.companies_company_id_analytics_sales_get_with_http_info(company_id)
|
258
|
+
p status_code # => 2xx
|
259
|
+
p headers # => { ... }
|
260
|
+
p data # => Object
|
261
|
+
rescue SparteraApiSdk::ApiError => e
|
262
|
+
puts "Error when calling CompaniesApi->companies_company_id_analytics_sales_get_with_http_info: #{e}"
|
263
|
+
end
|
264
|
+
```
|
265
|
+
|
266
|
+
### Parameters
|
267
|
+
|
268
|
+
| Name | Type | Description | Notes |
|
269
|
+
| ---- | ---- | ----------- | ----- |
|
270
|
+
| **company_id** | **String** | | |
|
271
|
+
|
272
|
+
### Return type
|
273
|
+
|
274
|
+
**Object**
|
275
|
+
|
276
|
+
### Authorization
|
277
|
+
|
278
|
+
[bearerAuth](../README.md#bearerAuth)
|
279
|
+
|
280
|
+
### HTTP request headers
|
281
|
+
|
282
|
+
- **Content-Type**: Not defined
|
283
|
+
- **Accept**: application/json
|
284
|
+
|
285
|
+
|
286
|
+
## companies_company_id_get
|
287
|
+
|
288
|
+
> Object companies_company_id_get(company_id)
|
289
|
+
|
290
|
+
Get details of the requestor's own company
|
291
|
+
|
292
|
+
### Examples
|
293
|
+
|
294
|
+
```ruby
|
295
|
+
require 'time'
|
296
|
+
require 'spartera_api_sdk'
|
297
|
+
# setup authorization
|
298
|
+
SparteraApiSdk.configure do |config|
|
299
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
300
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
301
|
+
end
|
302
|
+
|
303
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
304
|
+
company_id = 'company_id_example' # String |
|
305
|
+
|
306
|
+
begin
|
307
|
+
# Get details of the requestor's own company
|
308
|
+
result = api_instance.companies_company_id_get(company_id)
|
309
|
+
p result
|
310
|
+
rescue SparteraApiSdk::ApiError => e
|
311
|
+
puts "Error when calling CompaniesApi->companies_company_id_get: #{e}"
|
312
|
+
end
|
313
|
+
```
|
314
|
+
|
315
|
+
#### Using the companies_company_id_get_with_http_info variant
|
316
|
+
|
317
|
+
This returns an Array which contains the response data, status code and headers.
|
318
|
+
|
319
|
+
> <Array(Object, Integer, Hash)> companies_company_id_get_with_http_info(company_id)
|
320
|
+
|
321
|
+
```ruby
|
322
|
+
begin
|
323
|
+
# Get details of the requestor's own company
|
324
|
+
data, status_code, headers = api_instance.companies_company_id_get_with_http_info(company_id)
|
325
|
+
p status_code # => 2xx
|
326
|
+
p headers # => { ... }
|
327
|
+
p data # => Object
|
328
|
+
rescue SparteraApiSdk::ApiError => e
|
329
|
+
puts "Error when calling CompaniesApi->companies_company_id_get_with_http_info: #{e}"
|
330
|
+
end
|
331
|
+
```
|
332
|
+
|
333
|
+
### Parameters
|
334
|
+
|
335
|
+
| Name | Type | Description | Notes |
|
336
|
+
| ---- | ---- | ----------- | ----- |
|
337
|
+
| **company_id** | **String** | | |
|
338
|
+
|
339
|
+
### Return type
|
340
|
+
|
341
|
+
**Object**
|
342
|
+
|
343
|
+
### Authorization
|
344
|
+
|
345
|
+
[bearerAuth](../README.md#bearerAuth)
|
346
|
+
|
347
|
+
### HTTP request headers
|
348
|
+
|
349
|
+
- **Content-Type**: Not defined
|
350
|
+
- **Accept**: application/json
|
351
|
+
|
352
|
+
|
353
|
+
## companies_company_id_objects_get
|
354
|
+
|
355
|
+
> Object companies_company_id_objects_get(company_id)
|
356
|
+
|
357
|
+
Get all objects (connections, assets) of a single company
|
358
|
+
|
359
|
+
### Examples
|
360
|
+
|
361
|
+
```ruby
|
362
|
+
require 'time'
|
363
|
+
require 'spartera_api_sdk'
|
364
|
+
# setup authorization
|
365
|
+
SparteraApiSdk.configure do |config|
|
366
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
367
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
368
|
+
end
|
369
|
+
|
370
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
371
|
+
company_id = 'company_id_example' # String |
|
372
|
+
|
373
|
+
begin
|
374
|
+
# Get all objects (connections, assets) of a single company
|
375
|
+
result = api_instance.companies_company_id_objects_get(company_id)
|
376
|
+
p result
|
377
|
+
rescue SparteraApiSdk::ApiError => e
|
378
|
+
puts "Error when calling CompaniesApi->companies_company_id_objects_get: #{e}"
|
379
|
+
end
|
380
|
+
```
|
381
|
+
|
382
|
+
#### Using the companies_company_id_objects_get_with_http_info variant
|
383
|
+
|
384
|
+
This returns an Array which contains the response data, status code and headers.
|
385
|
+
|
386
|
+
> <Array(Object, Integer, Hash)> companies_company_id_objects_get_with_http_info(company_id)
|
387
|
+
|
388
|
+
```ruby
|
389
|
+
begin
|
390
|
+
# Get all objects (connections, assets) of a single company
|
391
|
+
data, status_code, headers = api_instance.companies_company_id_objects_get_with_http_info(company_id)
|
392
|
+
p status_code # => 2xx
|
393
|
+
p headers # => { ... }
|
394
|
+
p data # => Object
|
395
|
+
rescue SparteraApiSdk::ApiError => e
|
396
|
+
puts "Error when calling CompaniesApi->companies_company_id_objects_get_with_http_info: #{e}"
|
397
|
+
end
|
398
|
+
```
|
399
|
+
|
400
|
+
### Parameters
|
401
|
+
|
402
|
+
| Name | Type | Description | Notes |
|
403
|
+
| ---- | ---- | ----------- | ----- |
|
404
|
+
| **company_id** | **String** | | |
|
405
|
+
|
406
|
+
### Return type
|
407
|
+
|
408
|
+
**Object**
|
409
|
+
|
410
|
+
### Authorization
|
411
|
+
|
412
|
+
[bearerAuth](../README.md#bearerAuth)
|
413
|
+
|
414
|
+
### HTTP request headers
|
415
|
+
|
416
|
+
- **Content-Type**: Not defined
|
417
|
+
- **Accept**: application/json
|
418
|
+
|
419
|
+
|
420
|
+
## companies_company_id_patch
|
421
|
+
|
422
|
+
> Object companies_company_id_patch(company_id)
|
423
|
+
|
424
|
+
Update an existing company by ID
|
425
|
+
|
426
|
+
### Examples
|
427
|
+
|
428
|
+
```ruby
|
429
|
+
require 'time'
|
430
|
+
require 'spartera_api_sdk'
|
431
|
+
# setup authorization
|
432
|
+
SparteraApiSdk.configure do |config|
|
433
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
434
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
435
|
+
end
|
436
|
+
|
437
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
438
|
+
company_id = 'company_id_example' # String |
|
439
|
+
|
440
|
+
begin
|
441
|
+
# Update an existing company by ID
|
442
|
+
result = api_instance.companies_company_id_patch(company_id)
|
443
|
+
p result
|
444
|
+
rescue SparteraApiSdk::ApiError => e
|
445
|
+
puts "Error when calling CompaniesApi->companies_company_id_patch: #{e}"
|
446
|
+
end
|
447
|
+
```
|
448
|
+
|
449
|
+
#### Using the companies_company_id_patch_with_http_info variant
|
450
|
+
|
451
|
+
This returns an Array which contains the response data, status code and headers.
|
452
|
+
|
453
|
+
> <Array(Object, Integer, Hash)> companies_company_id_patch_with_http_info(company_id)
|
454
|
+
|
455
|
+
```ruby
|
456
|
+
begin
|
457
|
+
# Update an existing company by ID
|
458
|
+
data, status_code, headers = api_instance.companies_company_id_patch_with_http_info(company_id)
|
459
|
+
p status_code # => 2xx
|
460
|
+
p headers # => { ... }
|
461
|
+
p data # => Object
|
462
|
+
rescue SparteraApiSdk::ApiError => e
|
463
|
+
puts "Error when calling CompaniesApi->companies_company_id_patch_with_http_info: #{e}"
|
464
|
+
end
|
465
|
+
```
|
466
|
+
|
467
|
+
### Parameters
|
468
|
+
|
469
|
+
| Name | Type | Description | Notes |
|
470
|
+
| ---- | ---- | ----------- | ----- |
|
471
|
+
| **company_id** | **String** | | |
|
472
|
+
|
473
|
+
### Return type
|
474
|
+
|
475
|
+
**Object**
|
476
|
+
|
477
|
+
### Authorization
|
478
|
+
|
479
|
+
[bearerAuth](../README.md#bearerAuth)
|
480
|
+
|
481
|
+
### HTTP request headers
|
482
|
+
|
483
|
+
- **Content-Type**: Not defined
|
484
|
+
- **Accept**: application/json
|
485
|
+
|
486
|
+
|
487
|
+
## companies_company_id_requests_plan_get
|
488
|
+
|
489
|
+
> Object companies_company_id_requests_plan_get(company_id)
|
490
|
+
|
491
|
+
Get the total number of requests allocated in the company's current subscription plan.
|
492
|
+
|
493
|
+
### Examples
|
494
|
+
|
495
|
+
```ruby
|
496
|
+
require 'time'
|
497
|
+
require 'spartera_api_sdk'
|
498
|
+
# setup authorization
|
499
|
+
SparteraApiSdk.configure do |config|
|
500
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
501
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
502
|
+
end
|
503
|
+
|
504
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
505
|
+
company_id = 'company_id_example' # String |
|
506
|
+
|
507
|
+
begin
|
508
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
509
|
+
result = api_instance.companies_company_id_requests_plan_get(company_id)
|
510
|
+
p result
|
511
|
+
rescue SparteraApiSdk::ApiError => e
|
512
|
+
puts "Error when calling CompaniesApi->companies_company_id_requests_plan_get: #{e}"
|
513
|
+
end
|
514
|
+
```
|
515
|
+
|
516
|
+
#### Using the companies_company_id_requests_plan_get_with_http_info variant
|
517
|
+
|
518
|
+
This returns an Array which contains the response data, status code and headers.
|
519
|
+
|
520
|
+
> <Array(Object, Integer, Hash)> companies_company_id_requests_plan_get_with_http_info(company_id)
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
begin
|
524
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
525
|
+
data, status_code, headers = api_instance.companies_company_id_requests_plan_get_with_http_info(company_id)
|
526
|
+
p status_code # => 2xx
|
527
|
+
p headers # => { ... }
|
528
|
+
p data # => Object
|
529
|
+
rescue SparteraApiSdk::ApiError => e
|
530
|
+
puts "Error when calling CompaniesApi->companies_company_id_requests_plan_get_with_http_info: #{e}"
|
531
|
+
end
|
532
|
+
```
|
533
|
+
|
534
|
+
### Parameters
|
535
|
+
|
536
|
+
| Name | Type | Description | Notes |
|
537
|
+
| ---- | ---- | ----------- | ----- |
|
538
|
+
| **company_id** | **String** | | |
|
539
|
+
|
540
|
+
### Return type
|
541
|
+
|
542
|
+
**Object**
|
543
|
+
|
544
|
+
### Authorization
|
545
|
+
|
546
|
+
[bearerAuth](../README.md#bearerAuth)
|
547
|
+
|
548
|
+
### HTTP request headers
|
549
|
+
|
550
|
+
- **Content-Type**: Not defined
|
551
|
+
- **Accept**: application/json
|
552
|
+
|
553
|
+
|
554
|
+
## companies_company_id_requests_usage_get
|
555
|
+
|
556
|
+
> Object companies_company_id_requests_usage_get(company_id)
|
557
|
+
|
558
|
+
Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
559
|
+
|
560
|
+
### Examples
|
561
|
+
|
562
|
+
```ruby
|
563
|
+
require 'time'
|
564
|
+
require 'spartera_api_sdk'
|
565
|
+
# setup authorization
|
566
|
+
SparteraApiSdk.configure do |config|
|
567
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
568
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
569
|
+
end
|
570
|
+
|
571
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
572
|
+
company_id = 'company_id_example' # String |
|
573
|
+
|
574
|
+
begin
|
575
|
+
# Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
576
|
+
result = api_instance.companies_company_id_requests_usage_get(company_id)
|
577
|
+
p result
|
578
|
+
rescue SparteraApiSdk::ApiError => e
|
579
|
+
puts "Error when calling CompaniesApi->companies_company_id_requests_usage_get: #{e}"
|
580
|
+
end
|
581
|
+
```
|
582
|
+
|
583
|
+
#### Using the companies_company_id_requests_usage_get_with_http_info variant
|
584
|
+
|
585
|
+
This returns an Array which contains the response data, status code and headers.
|
586
|
+
|
587
|
+
> <Array(Object, Integer, Hash)> companies_company_id_requests_usage_get_with_http_info(company_id)
|
588
|
+
|
589
|
+
```ruby
|
590
|
+
begin
|
591
|
+
# Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
592
|
+
data, status_code, headers = api_instance.companies_company_id_requests_usage_get_with_http_info(company_id)
|
593
|
+
p status_code # => 2xx
|
594
|
+
p headers # => { ... }
|
595
|
+
p data # => Object
|
596
|
+
rescue SparteraApiSdk::ApiError => e
|
597
|
+
puts "Error when calling CompaniesApi->companies_company_id_requests_usage_get_with_http_info: #{e}"
|
598
|
+
end
|
599
|
+
```
|
600
|
+
|
601
|
+
### Parameters
|
602
|
+
|
603
|
+
| Name | Type | Description | Notes |
|
604
|
+
| ---- | ---- | ----------- | ----- |
|
605
|
+
| **company_id** | **String** | | |
|
606
|
+
|
607
|
+
### Return type
|
608
|
+
|
609
|
+
**Object**
|
610
|
+
|
611
|
+
### Authorization
|
612
|
+
|
613
|
+
[bearerAuth](../README.md#bearerAuth)
|
614
|
+
|
615
|
+
### HTTP request headers
|
616
|
+
|
617
|
+
- **Content-Type**: Not defined
|
618
|
+
- **Accept**: application/json
|
619
|
+
|
data/docs/Company.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# SparteraApiSdk::Company
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **company_id** | **String** | | [optional] |
|
8
|
+
| **industry_id** | **String** | | [optional] |
|
9
|
+
| **country_id** | **String** | | [optional] |
|
10
|
+
| **company_name** | **String** | | [optional] |
|
11
|
+
| **company_description** | **String** | | [optional] |
|
12
|
+
| **company_handle** | **String** | | |
|
13
|
+
| **company_domain** | **String** | | |
|
14
|
+
| **credits_balance** | **String** | | |
|
15
|
+
| **accepted_eula** | **String** | | [optional] |
|
16
|
+
| **stripe_account_id** | **String** | | [optional] |
|
17
|
+
| **stripe_account_status** | **String** | | [optional] |
|
18
|
+
| **date_created** | **String** | | [optional] |
|
19
|
+
| **last_updated** | **String** | | [optional] |
|
20
|
+
| **active** | **String** | | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'spartera_api_sdk'
|
26
|
+
|
27
|
+
instance = SparteraApiSdk::Company.new(
|
28
|
+
company_id: null,
|
29
|
+
industry_id: null,
|
30
|
+
country_id: null,
|
31
|
+
company_name: null,
|
32
|
+
company_description: null,
|
33
|
+
company_handle: null,
|
34
|
+
company_domain: null,
|
35
|
+
credits_balance: null,
|
36
|
+
accepted_eula: null,
|
37
|
+
stripe_account_id: null,
|
38
|
+
stripe_account_status: null,
|
39
|
+
date_created: null,
|
40
|
+
last_updated: null,
|
41
|
+
active: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
data/docs/Connection.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# SparteraApiSdk::Connection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **connection_id** | **String** | | [optional] |
|
8
|
+
| **user_id** | **String** | | [optional] |
|
9
|
+
| **engine_id** | **String** | | |
|
10
|
+
| **company_id** | **String** | | |
|
11
|
+
| **credential_type** | **String** | | [optional] |
|
12
|
+
| **api_provider** | **String** | | [optional] |
|
13
|
+
| **api_endpoint** | **String** | | [optional] |
|
14
|
+
| **api_key_location** | **String** | | [optional] |
|
15
|
+
| **api_key_param** | **String** | | [optional] |
|
16
|
+
| **api_key_value** | **String** | | [optional] |
|
17
|
+
| **visibility** | **String** | | |
|
18
|
+
| **name** | **String** | | [optional] |
|
19
|
+
| **description** | **String** | | [optional] |
|
20
|
+
| **gcp_secret_id** | **String** | | [optional] |
|
21
|
+
| **provider_domain** | **String** | | [optional] |
|
22
|
+
| **verified_usage_ability** | **String** | | [optional] |
|
23
|
+
| **date_created** | **String** | | [optional] |
|
24
|
+
| **last_updated** | **String** | | [optional] |
|
25
|
+
| **active** | **String** | | [optional] |
|
26
|
+
|
27
|
+
## Example
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'spartera_api_sdk'
|
31
|
+
|
32
|
+
instance = SparteraApiSdk::Connection.new(
|
33
|
+
connection_id: null,
|
34
|
+
user_id: null,
|
35
|
+
engine_id: null,
|
36
|
+
company_id: null,
|
37
|
+
credential_type: null,
|
38
|
+
api_provider: null,
|
39
|
+
api_endpoint: null,
|
40
|
+
api_key_location: null,
|
41
|
+
api_key_param: null,
|
42
|
+
api_key_value: null,
|
43
|
+
visibility: null,
|
44
|
+
name: null,
|
45
|
+
description: null,
|
46
|
+
gcp_secret_id: null,
|
47
|
+
provider_domain: null,
|
48
|
+
verified_usage_ability: null,
|
49
|
+
date_created: null,
|
50
|
+
last_updated: null,
|
51
|
+
active: null
|
52
|
+
)
|
53
|
+
```
|
54
|
+
|