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,134 @@
|
|
1
|
+
=begin
|
2
|
+
#Spartera API Documentation
|
3
|
+
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
7
|
+
Contact: support@spartera.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SparteraApiSdk::AssetPriceHistoryApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AssetPriceHistoryApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = SparteraApiSdk::AssetPriceHistoryApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AssetPriceHistoryApi' do
|
30
|
+
it 'should create an instance of AssetPriceHistoryApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(SparteraApiSdk::AssetPriceHistoryApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for companies_company_id_assets_asset_id_prices_active_get
|
36
|
+
# Get the currently active price for an asset
|
37
|
+
# @param company_id
|
38
|
+
# @param asset_id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Object]
|
41
|
+
describe 'companies_company_id_assets_asset_id_prices_active_get test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for companies_company_id_assets_asset_id_prices_aph_id_delete
|
48
|
+
# Delete single price history record by ID
|
49
|
+
# @param company_id
|
50
|
+
# @param asset_id
|
51
|
+
# @param aph_id
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Object]
|
54
|
+
describe 'companies_company_id_assets_asset_id_prices_aph_id_delete test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for companies_company_id_assets_asset_id_prices_aph_id_get
|
61
|
+
# Get single price history record by ID
|
62
|
+
# @param company_id
|
63
|
+
# @param asset_id
|
64
|
+
# @param aph_id
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [Object]
|
67
|
+
describe 'companies_company_id_assets_asset_id_prices_aph_id_get test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for companies_company_id_assets_asset_id_prices_aph_id_patch
|
74
|
+
# Update an existing price history record by ID
|
75
|
+
# @param company_id
|
76
|
+
# @param asset_id
|
77
|
+
# @param aph_id
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @return [Object]
|
80
|
+
describe 'companies_company_id_assets_asset_id_prices_aph_id_patch test' do
|
81
|
+
it 'should work' do
|
82
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# unit tests for companies_company_id_assets_asset_id_prices_calculate_credits_post
|
87
|
+
# Calculate the credit equivalent for a given USD price without saving
|
88
|
+
# @param company_id
|
89
|
+
# @param asset_id
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [Object]
|
92
|
+
describe 'companies_company_id_assets_asset_id_prices_calculate_credits_post test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# unit tests for companies_company_id_assets_asset_id_prices_discount_post
|
99
|
+
# Apply a discount to the active price for an asset
|
100
|
+
# @param company_id
|
101
|
+
# @param asset_id
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Object]
|
104
|
+
describe 'companies_company_id_assets_asset_id_prices_discount_post test' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for companies_company_id_assets_asset_id_prices_get
|
111
|
+
# Get all price history records for a specific asset
|
112
|
+
# @param company_id
|
113
|
+
# @param asset_id
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [Object]
|
116
|
+
describe 'companies_company_id_assets_asset_id_prices_get test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for companies_company_id_assets_asset_id_prices_post
|
123
|
+
# Create a new price history record for an asset
|
124
|
+
# @param company_id
|
125
|
+
# @param asset_id
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [Object]
|
128
|
+
describe 'companies_company_id_assets_asset_id_prices_post test' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#Spartera API Documentation
|
3
|
+
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
7
|
+
Contact: support@spartera.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SparteraApiSdk::AssetsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AssetsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = SparteraApiSdk::AssetsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AssetsApi' do
|
30
|
+
it 'should create an instance of AssetsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(SparteraApiSdk::AssetsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for analyze_company_handle_assets_asset_slug_get
|
36
|
+
# Process assets route that handles both owned and purchased assets. Minimal route function that passes all logic to crudder.process_asset Args: asset_path: The path after /analyze/ containing asset information company_handle: The subdomain from Flask's routing (if available)
|
37
|
+
# @param company_handle
|
38
|
+
# @param asset_slug
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Object]
|
41
|
+
describe 'analyze_company_handle_assets_asset_slug_get test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for companies_company_id_assets_asset_id_delete
|
48
|
+
# Delete single asset by ID
|
49
|
+
# @param company_id
|
50
|
+
# @param asset_id
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Object]
|
53
|
+
describe 'companies_company_id_assets_asset_id_delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for companies_company_id_assets_asset_id_get
|
60
|
+
# Get single asset by ID
|
61
|
+
# @param company_id
|
62
|
+
# @param asset_id
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [Object]
|
65
|
+
describe 'companies_company_id_assets_asset_id_get test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for companies_company_id_assets_asset_id_infoschema_get
|
72
|
+
# Get the information schema for a specific asset's table
|
73
|
+
# @param company_id
|
74
|
+
# @param asset_id
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [Object]
|
77
|
+
describe 'companies_company_id_assets_asset_id_infoschema_get test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for companies_company_id_assets_asset_id_infoschema_save_get
|
84
|
+
# Get the information schema for a specific asset and save it to the asset's asset_schema field
|
85
|
+
# @param company_id
|
86
|
+
# @param asset_id
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [Object]
|
89
|
+
describe 'companies_company_id_assets_asset_id_infoschema_save_get test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for companies_company_id_assets_asset_id_patch
|
96
|
+
# Update an existing asset by ID
|
97
|
+
# @param company_id
|
98
|
+
# @param asset_id
|
99
|
+
# @param asset
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [Object]
|
102
|
+
describe 'companies_company_id_assets_asset_id_patch test' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# unit tests for companies_company_id_assets_asset_id_predicted_price_get
|
109
|
+
# Get AI-predicted pricing for a specific asset
|
110
|
+
# @param company_id
|
111
|
+
# @param asset_id
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [Object]
|
114
|
+
describe 'companies_company_id_assets_asset_id_predicted_price_get test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# unit tests for companies_company_id_assets_asset_id_recommendations_explain_get
|
121
|
+
# Get detailed explanation of how asset recommendations are calculated for debugging purposes.
|
122
|
+
# @param company_id
|
123
|
+
# @param asset_id
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @return [Object]
|
126
|
+
describe 'companies_company_id_assets_asset_id_recommendations_explain_get test' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# unit tests for companies_company_id_assets_asset_id_recommendations_get
|
133
|
+
# Get asset recommendations for a specific asset using heuristic waterfall matching Returns list of similar assets based on industry, company, connection, tags, etc. Query Parameters: - limit: Number of recommendations to return (default: 12, max: 50) - min_score: Minimum similarity score threshold (default: 0.1) - include_details: Include component similarity scores (default: false)
|
134
|
+
# @param company_id
|
135
|
+
# @param asset_id
|
136
|
+
# @param [Hash] opts the optional parameters
|
137
|
+
# @option opts [String] :limit
|
138
|
+
# @option opts [String] :min_score
|
139
|
+
# @option opts [String] :include_details
|
140
|
+
# @return [Object]
|
141
|
+
describe 'companies_company_id_assets_asset_id_recommendations_get test' do
|
142
|
+
it 'should work' do
|
143
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# unit tests for companies_company_id_assets_asset_id_statistics_get
|
148
|
+
# Get statistics for a specific asset (public endpoint)
|
149
|
+
# @param company_id
|
150
|
+
# @param asset_id
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @return [Object]
|
153
|
+
describe 'companies_company_id_assets_asset_id_statistics_get test' do
|
154
|
+
it 'should work' do
|
155
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# unit tests for companies_company_id_assets_asset_id_test_get
|
160
|
+
# Test out an Asset (on a subset of data)
|
161
|
+
# @param company_id
|
162
|
+
# @param asset_id
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @return [Object]
|
165
|
+
describe 'companies_company_id_assets_asset_id_test_get test' do
|
166
|
+
it 'should work' do
|
167
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# unit tests for companies_company_id_assets_get
|
172
|
+
# Get all assets for a specific company
|
173
|
+
# @param company_id
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @return [Object]
|
176
|
+
describe 'companies_company_id_assets_get test' do
|
177
|
+
it 'should work' do
|
178
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# unit tests for companies_company_id_assets_post
|
183
|
+
# Create a new asset
|
184
|
+
# @param company_id
|
185
|
+
# @param asset
|
186
|
+
# @param [Hash] opts the optional parameters
|
187
|
+
# @return [Object]
|
188
|
+
describe 'companies_company_id_assets_post test' do
|
189
|
+
it 'should work' do
|
190
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# unit tests for companies_company_id_assets_recommendations_bulk_post
|
195
|
+
# Get recommendations for multiple assets in a single request. Useful for pre-loading recommendations.
|
196
|
+
# @param company_id
|
197
|
+
# @param asset
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [Object]
|
200
|
+
describe 'companies_company_id_assets_recommendations_bulk_post test' do
|
201
|
+
it 'should work' do
|
202
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# unit tests for companies_company_id_assets_recommendations_health_get
|
207
|
+
# Health check for the recommendations system with sample data and performance metrics.
|
208
|
+
# @param company_id
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Object]
|
211
|
+
describe 'companies_company_id_assets_recommendations_health_get test' do
|
212
|
+
it 'should work' do
|
213
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# unit tests for companies_company_id_assets_statistics_get
|
218
|
+
# Get statistics for all assets the user has access to
|
219
|
+
# @param company_id
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Object]
|
222
|
+
describe 'companies_company_id_assets_statistics_get test' do
|
223
|
+
it 'should work' do
|
224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#Spartera API Documentation
|
3
|
+
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
7
|
+
Contact: support@spartera.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SparteraApiSdk::CloudProvidersApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CloudProvidersApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = SparteraApiSdk::CloudProvidersApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CloudProvidersApi' do
|
30
|
+
it 'should create an instance of CloudProvidersApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(SparteraApiSdk::CloudProvidersApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for cloud_providers_get
|
36
|
+
# Get a list of all cloud providers
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Object]
|
39
|
+
describe 'cloud_providers_get test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# unit tests for cloud_providers_post
|
46
|
+
# Create single cloud provider
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Object]
|
49
|
+
describe 'cloud_providers_post test' do
|
50
|
+
it 'should work' do
|
51
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# unit tests for cloud_providers_provider_id_delete
|
56
|
+
# Delete single cloud provider by ID
|
57
|
+
# @param provider_id
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @return [Object]
|
60
|
+
describe 'cloud_providers_provider_id_delete test' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# unit tests for cloud_providers_provider_id_get
|
67
|
+
# Get single cloud provider by ID
|
68
|
+
# @param provider_id
|
69
|
+
# @param [Hash] opts the optional parameters
|
70
|
+
# @return [Object]
|
71
|
+
describe 'cloud_providers_provider_id_get test' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# unit tests for cloud_providers_provider_id_patch
|
78
|
+
# Update an existing cloud provider by ID
|
79
|
+
# @param provider_id
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [Object]
|
82
|
+
describe 'cloud_providers_provider_id_patch test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
=begin
|
2
|
+
#Spartera API Documentation
|
3
|
+
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
7
|
+
Contact: support@spartera.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for SparteraApiSdk::CompaniesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CompaniesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = SparteraApiSdk::CompaniesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CompaniesApi' do
|
30
|
+
it 'should create an instance of CompaniesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(SparteraApiSdk::CompaniesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for companies_company_id_analytics_assets_get
|
36
|
+
# Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
37
|
+
# @param company_id
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Object]
|
40
|
+
describe 'companies_company_id_analytics_assets_get test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for companies_company_id_analytics_customers_get
|
47
|
+
# Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
48
|
+
# @param company_id
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [Object]
|
51
|
+
describe 'companies_company_id_analytics_customers_get test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for companies_company_id_analytics_dashboard_get
|
58
|
+
# 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)
|
59
|
+
# @param company_id
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @return [Object]
|
62
|
+
describe 'companies_company_id_analytics_dashboard_get test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for companies_company_id_analytics_sales_get
|
69
|
+
# Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
70
|
+
# @param company_id
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [Object]
|
73
|
+
describe 'companies_company_id_analytics_sales_get test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for companies_company_id_get
|
80
|
+
# Get details of the requestor's own company
|
81
|
+
# @param company_id
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @return [Object]
|
84
|
+
describe 'companies_company_id_get test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for companies_company_id_objects_get
|
91
|
+
# Get all objects (connections, assets) of a single company
|
92
|
+
# @param company_id
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [Object]
|
95
|
+
describe 'companies_company_id_objects_get test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for companies_company_id_patch
|
102
|
+
# Update an existing company by ID
|
103
|
+
# @param company_id
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Object]
|
106
|
+
describe 'companies_company_id_patch test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for companies_company_id_requests_plan_get
|
113
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
114
|
+
# @param company_id
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @return [Object]
|
117
|
+
describe 'companies_company_id_requests_plan_get test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for companies_company_id_requests_usage_get
|
124
|
+
# Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
125
|
+
# @param company_id
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @return [Object]
|
128
|
+
describe 'companies_company_id_requests_usage_get test' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|