spartera_api_sdk 1.0.62 → 1.0.69
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 +4 -4
- data/config.json +1 -1
- data/docs/APIKeysApi.md +45 -35
- data/docs/AlertsApi.md +71 -57
- data/docs/AssetPriceHistoryApi.md +80 -64
- data/docs/AssetsApi.md +116 -378
- data/docs/CloudProvidersApi.md +18 -215
- data/docs/CompaniesApi.md +81 -63
- data/docs/CompaniesCompanyIdApiKeysGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200ResponseData.md +18 -0
- data/docs/ConnectionsApi.md +67 -53
- data/docs/FavoritesApi.md +84 -68
- data/docs/MeGet200Response.md +36 -0
- data/docs/MeGet200ResponseApiKeyInfo.md +20 -0
- data/docs/MeGet200ResponseProfile.md +36 -0
- data/docs/MeGet200ResponseTokenMetadata.md +24 -0
- data/docs/StorageEnginesApi.md +149 -0
- data/docs/UsersApi.md +116 -39
- data/lib/spartera_api_sdk/api/alerts_api.rb +32 -32
- data/lib/spartera_api_sdk/api/api_keys_api.rb +20 -20
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +36 -36
- data/lib/spartera_api_sdk/api/assets_api.rb +52 -328
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +8 -185
- data/lib/spartera_api_sdk/api/companies_api.rb +36 -36
- data/lib/spartera_api_sdk/api/connections_api.rb +30 -30
- data/lib/spartera_api_sdk/api/favorites_api.rb +38 -38
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +150 -0
- data/lib/spartera_api_sdk/api/users_api.rb +77 -22
- data/lib/spartera_api_sdk/configuration.rb +2 -10
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_get200_response.rb +248 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/me_get200_response.rb +417 -0
- data/lib/spartera_api_sdk/models/me_get200_response_api_key_info.rb +232 -0
- data/lib/spartera_api_sdk/models/me_get200_response_profile.rb +345 -0
- data/lib/spartera_api_sdk/models/me_get200_response_token_metadata.rb +252 -0
- data/lib/spartera_api_sdk/version.rb +1 -1
- data/lib/spartera_api_sdk.rb +46 -0
- data/spec/api/alerts_api_spec.rb +9 -9
- data/spec/api/api_keys_api_spec.rb +5 -5
- data/spec/api/asset_price_history_api_spec.rb +10 -10
- data/spec/api/assets_api_spec.rb +14 -64
- data/spec/api/cloud_providers_api_spec.rb +2 -34
- data/spec/api/companies_api_spec.rb +9 -9
- data/spec/api/connections_api_spec.rb +8 -8
- data/spec/api/favorites_api_spec.rb +11 -11
- data/spec/api/storage_engines_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +16 -6
- data/spec/models/companies_company_id_api_keys_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +42 -0
- data/spec/models/me_get200_response_api_key_info_spec.rb +42 -0
- data/spec/models/me_get200_response_profile_spec.rb +94 -0
- data/spec/models/me_get200_response_spec.rb +94 -0
- data/spec/models/me_get200_response_token_metadata_spec.rb +54 -0
- metadata +208 -22
- data/Gemfile.lock +0 -69
@@ -21,7 +21,7 @@ module SparteraApiSdk
|
|
21
21
|
end
|
22
22
|
# Get a list of all cloud providers
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
|
-
# @return [
|
24
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
25
25
|
def cloud_providers_get(opts = {})
|
26
26
|
data, _status_code, _headers = cloud_providers_get_with_http_info(opts)
|
27
27
|
data
|
@@ -29,7 +29,7 @@ module SparteraApiSdk
|
|
29
29
|
|
30
30
|
# Get a list of all cloud providers
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [Array<(
|
32
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
33
33
|
def cloud_providers_get_with_http_info(opts = {})
|
34
34
|
if @api_client.config.debugging
|
35
35
|
@api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_get ...'
|
@@ -52,10 +52,10 @@ module SparteraApiSdk
|
|
52
52
|
post_body = opts[:debug_body]
|
53
53
|
|
54
54
|
# return_type
|
55
|
-
return_type = opts[:debug_return_type] || '
|
55
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
56
56
|
|
57
57
|
# auth_names
|
58
|
-
auth_names = opts[:debug_auth_names] || ['
|
58
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
59
59
|
|
60
60
|
new_options = opts.merge(
|
61
61
|
:operation => :"CloudProvidersApi.cloud_providers_get",
|
@@ -74,126 +74,10 @@ module SparteraApiSdk
|
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
76
|
|
77
|
-
# Create single cloud provider
|
78
|
-
# @param [Hash] opts the optional parameters
|
79
|
-
# @return [Object]
|
80
|
-
def cloud_providers_post(opts = {})
|
81
|
-
data, _status_code, _headers = cloud_providers_post_with_http_info(opts)
|
82
|
-
data
|
83
|
-
end
|
84
|
-
|
85
|
-
# Create single cloud provider
|
86
|
-
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
88
|
-
def cloud_providers_post_with_http_info(opts = {})
|
89
|
-
if @api_client.config.debugging
|
90
|
-
@api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_post ...'
|
91
|
-
end
|
92
|
-
# resource path
|
93
|
-
local_var_path = '/cloud-providers'
|
94
|
-
|
95
|
-
# query parameters
|
96
|
-
query_params = opts[:query_params] || {}
|
97
|
-
|
98
|
-
# header parameters
|
99
|
-
header_params = opts[:header_params] || {}
|
100
|
-
# HTTP header 'Accept' (if needed)
|
101
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
102
|
-
|
103
|
-
# form parameters
|
104
|
-
form_params = opts[:form_params] || {}
|
105
|
-
|
106
|
-
# http body (model)
|
107
|
-
post_body = opts[:debug_body]
|
108
|
-
|
109
|
-
# return_type
|
110
|
-
return_type = opts[:debug_return_type] || 'Object'
|
111
|
-
|
112
|
-
# auth_names
|
113
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
114
|
-
|
115
|
-
new_options = opts.merge(
|
116
|
-
:operation => :"CloudProvidersApi.cloud_providers_post",
|
117
|
-
:header_params => header_params,
|
118
|
-
:query_params => query_params,
|
119
|
-
:form_params => form_params,
|
120
|
-
:body => post_body,
|
121
|
-
:auth_names => auth_names,
|
122
|
-
:return_type => return_type
|
123
|
-
)
|
124
|
-
|
125
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
126
|
-
if @api_client.config.debugging
|
127
|
-
@api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
-
end
|
129
|
-
return data, status_code, headers
|
130
|
-
end
|
131
|
-
|
132
|
-
# Delete single cloud provider by ID
|
133
|
-
# @param provider_id [String]
|
134
|
-
# @param [Hash] opts the optional parameters
|
135
|
-
# @return [Object]
|
136
|
-
def cloud_providers_provider_id_delete(provider_id, opts = {})
|
137
|
-
data, _status_code, _headers = cloud_providers_provider_id_delete_with_http_info(provider_id, opts)
|
138
|
-
data
|
139
|
-
end
|
140
|
-
|
141
|
-
# Delete single cloud provider by ID
|
142
|
-
# @param provider_id [String]
|
143
|
-
# @param [Hash] opts the optional parameters
|
144
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
145
|
-
def cloud_providers_provider_id_delete_with_http_info(provider_id, opts = {})
|
146
|
-
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_provider_id_delete ...'
|
148
|
-
end
|
149
|
-
# verify the required parameter 'provider_id' is set
|
150
|
-
if @api_client.config.client_side_validation && provider_id.nil?
|
151
|
-
fail ArgumentError, "Missing the required parameter 'provider_id' when calling CloudProvidersApi.cloud_providers_provider_id_delete"
|
152
|
-
end
|
153
|
-
# resource path
|
154
|
-
local_var_path = '/cloud-providers/{provider_id}'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s))
|
155
|
-
|
156
|
-
# query parameters
|
157
|
-
query_params = opts[:query_params] || {}
|
158
|
-
|
159
|
-
# header parameters
|
160
|
-
header_params = opts[:header_params] || {}
|
161
|
-
# HTTP header 'Accept' (if needed)
|
162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
163
|
-
|
164
|
-
# form parameters
|
165
|
-
form_params = opts[:form_params] || {}
|
166
|
-
|
167
|
-
# http body (model)
|
168
|
-
post_body = opts[:debug_body]
|
169
|
-
|
170
|
-
# return_type
|
171
|
-
return_type = opts[:debug_return_type] || 'Object'
|
172
|
-
|
173
|
-
# auth_names
|
174
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
175
|
-
|
176
|
-
new_options = opts.merge(
|
177
|
-
:operation => :"CloudProvidersApi.cloud_providers_provider_id_delete",
|
178
|
-
:header_params => header_params,
|
179
|
-
:query_params => query_params,
|
180
|
-
:form_params => form_params,
|
181
|
-
:body => post_body,
|
182
|
-
:auth_names => auth_names,
|
183
|
-
:return_type => return_type
|
184
|
-
)
|
185
|
-
|
186
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
187
|
-
if @api_client.config.debugging
|
188
|
-
@api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_provider_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
-
end
|
190
|
-
return data, status_code, headers
|
191
|
-
end
|
192
|
-
|
193
77
|
# Get single cloud provider by ID
|
194
78
|
# @param provider_id [String]
|
195
79
|
# @param [Hash] opts the optional parameters
|
196
|
-
# @return [
|
80
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
197
81
|
def cloud_providers_provider_id_get(provider_id, opts = {})
|
198
82
|
data, _status_code, _headers = cloud_providers_provider_id_get_with_http_info(provider_id, opts)
|
199
83
|
data
|
@@ -202,7 +86,7 @@ module SparteraApiSdk
|
|
202
86
|
# Get single cloud provider by ID
|
203
87
|
# @param provider_id [String]
|
204
88
|
# @param [Hash] opts the optional parameters
|
205
|
-
# @return [Array<(
|
89
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
206
90
|
def cloud_providers_provider_id_get_with_http_info(provider_id, opts = {})
|
207
91
|
if @api_client.config.debugging
|
208
92
|
@api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_provider_id_get ...'
|
@@ -229,10 +113,10 @@ module SparteraApiSdk
|
|
229
113
|
post_body = opts[:debug_body]
|
230
114
|
|
231
115
|
# return_type
|
232
|
-
return_type = opts[:debug_return_type] || '
|
116
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
233
117
|
|
234
118
|
# auth_names
|
235
|
-
auth_names = opts[:debug_auth_names] || ['
|
119
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
236
120
|
|
237
121
|
new_options = opts.merge(
|
238
122
|
:operation => :"CloudProvidersApi.cloud_providers_provider_id_get",
|
@@ -250,66 +134,5 @@ module SparteraApiSdk
|
|
250
134
|
end
|
251
135
|
return data, status_code, headers
|
252
136
|
end
|
253
|
-
|
254
|
-
# Update an existing cloud provider by ID
|
255
|
-
# @param provider_id [String]
|
256
|
-
# @param [Hash] opts the optional parameters
|
257
|
-
# @return [Object]
|
258
|
-
def cloud_providers_provider_id_patch(provider_id, opts = {})
|
259
|
-
data, _status_code, _headers = cloud_providers_provider_id_patch_with_http_info(provider_id, opts)
|
260
|
-
data
|
261
|
-
end
|
262
|
-
|
263
|
-
# Update an existing cloud provider by ID
|
264
|
-
# @param provider_id [String]
|
265
|
-
# @param [Hash] opts the optional parameters
|
266
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
267
|
-
def cloud_providers_provider_id_patch_with_http_info(provider_id, opts = {})
|
268
|
-
if @api_client.config.debugging
|
269
|
-
@api_client.config.logger.debug 'Calling API: CloudProvidersApi.cloud_providers_provider_id_patch ...'
|
270
|
-
end
|
271
|
-
# verify the required parameter 'provider_id' is set
|
272
|
-
if @api_client.config.client_side_validation && provider_id.nil?
|
273
|
-
fail ArgumentError, "Missing the required parameter 'provider_id' when calling CloudProvidersApi.cloud_providers_provider_id_patch"
|
274
|
-
end
|
275
|
-
# resource path
|
276
|
-
local_var_path = '/cloud-providers/{provider_id}'.sub('{' + 'provider_id' + '}', CGI.escape(provider_id.to_s))
|
277
|
-
|
278
|
-
# query parameters
|
279
|
-
query_params = opts[:query_params] || {}
|
280
|
-
|
281
|
-
# header parameters
|
282
|
-
header_params = opts[:header_params] || {}
|
283
|
-
# HTTP header 'Accept' (if needed)
|
284
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
285
|
-
|
286
|
-
# form parameters
|
287
|
-
form_params = opts[:form_params] || {}
|
288
|
-
|
289
|
-
# http body (model)
|
290
|
-
post_body = opts[:debug_body]
|
291
|
-
|
292
|
-
# return_type
|
293
|
-
return_type = opts[:debug_return_type] || 'Object'
|
294
|
-
|
295
|
-
# auth_names
|
296
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
297
|
-
|
298
|
-
new_options = opts.merge(
|
299
|
-
:operation => :"CloudProvidersApi.cloud_providers_provider_id_patch",
|
300
|
-
:header_params => header_params,
|
301
|
-
:query_params => query_params,
|
302
|
-
:form_params => form_params,
|
303
|
-
:body => post_body,
|
304
|
-
:auth_names => auth_names,
|
305
|
-
:return_type => return_type
|
306
|
-
)
|
307
|
-
|
308
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
309
|
-
if @api_client.config.debugging
|
310
|
-
@api_client.config.logger.debug "API called: CloudProvidersApi#cloud_providers_provider_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
311
|
-
end
|
312
|
-
return data, status_code, headers
|
313
|
-
end
|
314
137
|
end
|
315
138
|
end
|
@@ -22,7 +22,7 @@ module SparteraApiSdk
|
|
22
22
|
# Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
23
23
|
# @param company_id [String]
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [
|
25
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
26
26
|
def companies_company_id_analytics_assets_get(company_id, opts = {})
|
27
27
|
data, _status_code, _headers = companies_company_id_analytics_assets_get_with_http_info(company_id, opts)
|
28
28
|
data
|
@@ -31,7 +31,7 @@ module SparteraApiSdk
|
|
31
31
|
# Get asset performance analytics Query params: start_date, end_date, limit, sort_by, include
|
32
32
|
# @param company_id [String]
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(
|
34
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
35
35
|
def companies_company_id_analytics_assets_get_with_http_info(company_id, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_analytics_assets_get ...'
|
@@ -58,10 +58,10 @@ module SparteraApiSdk
|
|
58
58
|
post_body = opts[:debug_body]
|
59
59
|
|
60
60
|
# return_type
|
61
|
-
return_type = opts[:debug_return_type] || '
|
61
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
62
62
|
|
63
63
|
# auth_names
|
64
|
-
auth_names = opts[:debug_auth_names] || ['
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
65
65
|
|
66
66
|
new_options = opts.merge(
|
67
67
|
:operation => :"CompaniesApi.companies_company_id_analytics_assets_get",
|
@@ -83,7 +83,7 @@ module SparteraApiSdk
|
|
83
83
|
# Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
84
84
|
# @param company_id [String]
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
|
-
# @return [
|
86
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
87
87
|
def companies_company_id_analytics_customers_get(company_id, opts = {})
|
88
88
|
data, _status_code, _headers = companies_company_id_analytics_customers_get_with_http_info(company_id, opts)
|
89
89
|
data
|
@@ -92,7 +92,7 @@ module SparteraApiSdk
|
|
92
92
|
# Get customer analytics including growth and segmentation Query params: start_date, end_date, group_by, segment_by
|
93
93
|
# @param company_id [String]
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [Array<(
|
95
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
96
96
|
def companies_company_id_analytics_customers_get_with_http_info(company_id, opts = {})
|
97
97
|
if @api_client.config.debugging
|
98
98
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_analytics_customers_get ...'
|
@@ -119,10 +119,10 @@ module SparteraApiSdk
|
|
119
119
|
post_body = opts[:debug_body]
|
120
120
|
|
121
121
|
# return_type
|
122
|
-
return_type = opts[:debug_return_type] || '
|
122
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
123
123
|
|
124
124
|
# auth_names
|
125
|
-
auth_names = opts[:debug_auth_names] || ['
|
125
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
126
126
|
|
127
127
|
new_options = opts.merge(
|
128
128
|
:operation => :"CompaniesApi.companies_company_id_analytics_customers_get",
|
@@ -144,7 +144,7 @@ module SparteraApiSdk
|
|
144
144
|
# 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)
|
145
145
|
# @param company_id [String]
|
146
146
|
# @param [Hash] opts the optional parameters
|
147
|
-
# @return [
|
147
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
148
148
|
def companies_company_id_analytics_dashboard_get(company_id, opts = {})
|
149
149
|
data, _status_code, _headers = companies_company_id_analytics_dashboard_get_with_http_info(company_id, opts)
|
150
150
|
data
|
@@ -153,7 +153,7 @@ module SparteraApiSdk
|
|
153
153
|
# 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)
|
154
154
|
# @param company_id [String]
|
155
155
|
# @param [Hash] opts the optional parameters
|
156
|
-
# @return [Array<(
|
156
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
157
157
|
def companies_company_id_analytics_dashboard_get_with_http_info(company_id, opts = {})
|
158
158
|
if @api_client.config.debugging
|
159
159
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_analytics_dashboard_get ...'
|
@@ -180,10 +180,10 @@ module SparteraApiSdk
|
|
180
180
|
post_body = opts[:debug_body]
|
181
181
|
|
182
182
|
# return_type
|
183
|
-
return_type = opts[:debug_return_type] || '
|
183
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
184
184
|
|
185
185
|
# auth_names
|
186
|
-
auth_names = opts[:debug_auth_names] || ['
|
186
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
187
187
|
|
188
188
|
new_options = opts.merge(
|
189
189
|
:operation => :"CompaniesApi.companies_company_id_analytics_dashboard_get",
|
@@ -205,7 +205,7 @@ module SparteraApiSdk
|
|
205
205
|
# Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
206
206
|
# @param company_id [String]
|
207
207
|
# @param [Hash] opts the optional parameters
|
208
|
-
# @return [
|
208
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
209
209
|
def companies_company_id_analytics_sales_get(company_id, opts = {})
|
210
210
|
data, _status_code, _headers = companies_company_id_analytics_sales_get_with_http_info(company_id, opts)
|
211
211
|
data
|
@@ -214,7 +214,7 @@ module SparteraApiSdk
|
|
214
214
|
# Get sales over time analytics Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
215
215
|
# @param company_id [String]
|
216
216
|
# @param [Hash] opts the optional parameters
|
217
|
-
# @return [Array<(
|
217
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
218
218
|
def companies_company_id_analytics_sales_get_with_http_info(company_id, opts = {})
|
219
219
|
if @api_client.config.debugging
|
220
220
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_analytics_sales_get ...'
|
@@ -241,10 +241,10 @@ module SparteraApiSdk
|
|
241
241
|
post_body = opts[:debug_body]
|
242
242
|
|
243
243
|
# return_type
|
244
|
-
return_type = opts[:debug_return_type] || '
|
244
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
245
245
|
|
246
246
|
# auth_names
|
247
|
-
auth_names = opts[:debug_auth_names] || ['
|
247
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
248
248
|
|
249
249
|
new_options = opts.merge(
|
250
250
|
:operation => :"CompaniesApi.companies_company_id_analytics_sales_get",
|
@@ -266,7 +266,7 @@ module SparteraApiSdk
|
|
266
266
|
# Get details of the requestor's own company
|
267
267
|
# @param company_id [String]
|
268
268
|
# @param [Hash] opts the optional parameters
|
269
|
-
# @return [
|
269
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
270
270
|
def companies_company_id_get(company_id, opts = {})
|
271
271
|
data, _status_code, _headers = companies_company_id_get_with_http_info(company_id, opts)
|
272
272
|
data
|
@@ -275,7 +275,7 @@ module SparteraApiSdk
|
|
275
275
|
# Get details of the requestor's own company
|
276
276
|
# @param company_id [String]
|
277
277
|
# @param [Hash] opts the optional parameters
|
278
|
-
# @return [Array<(
|
278
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
279
279
|
def companies_company_id_get_with_http_info(company_id, opts = {})
|
280
280
|
if @api_client.config.debugging
|
281
281
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_get ...'
|
@@ -302,10 +302,10 @@ module SparteraApiSdk
|
|
302
302
|
post_body = opts[:debug_body]
|
303
303
|
|
304
304
|
# return_type
|
305
|
-
return_type = opts[:debug_return_type] || '
|
305
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
306
306
|
|
307
307
|
# auth_names
|
308
|
-
auth_names = opts[:debug_auth_names] || ['
|
308
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
309
309
|
|
310
310
|
new_options = opts.merge(
|
311
311
|
:operation => :"CompaniesApi.companies_company_id_get",
|
@@ -327,7 +327,7 @@ module SparteraApiSdk
|
|
327
327
|
# Get all objects (connections, assets) of a single company
|
328
328
|
# @param company_id [String]
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
|
-
# @return [
|
330
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
331
331
|
def companies_company_id_objects_get(company_id, opts = {})
|
332
332
|
data, _status_code, _headers = companies_company_id_objects_get_with_http_info(company_id, opts)
|
333
333
|
data
|
@@ -336,7 +336,7 @@ module SparteraApiSdk
|
|
336
336
|
# Get all objects (connections, assets) of a single company
|
337
337
|
# @param company_id [String]
|
338
338
|
# @param [Hash] opts the optional parameters
|
339
|
-
# @return [Array<(
|
339
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
340
340
|
def companies_company_id_objects_get_with_http_info(company_id, opts = {})
|
341
341
|
if @api_client.config.debugging
|
342
342
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_objects_get ...'
|
@@ -363,10 +363,10 @@ module SparteraApiSdk
|
|
363
363
|
post_body = opts[:debug_body]
|
364
364
|
|
365
365
|
# return_type
|
366
|
-
return_type = opts[:debug_return_type] || '
|
366
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
367
367
|
|
368
368
|
# auth_names
|
369
|
-
auth_names = opts[:debug_auth_names] || ['
|
369
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
370
370
|
|
371
371
|
new_options = opts.merge(
|
372
372
|
:operation => :"CompaniesApi.companies_company_id_objects_get",
|
@@ -388,7 +388,7 @@ module SparteraApiSdk
|
|
388
388
|
# Update an existing company by ID
|
389
389
|
# @param company_id [String]
|
390
390
|
# @param [Hash] opts the optional parameters
|
391
|
-
# @return [
|
391
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
392
392
|
def companies_company_id_patch(company_id, opts = {})
|
393
393
|
data, _status_code, _headers = companies_company_id_patch_with_http_info(company_id, opts)
|
394
394
|
data
|
@@ -397,7 +397,7 @@ module SparteraApiSdk
|
|
397
397
|
# Update an existing company by ID
|
398
398
|
# @param company_id [String]
|
399
399
|
# @param [Hash] opts the optional parameters
|
400
|
-
# @return [Array<(
|
400
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
401
401
|
def companies_company_id_patch_with_http_info(company_id, opts = {})
|
402
402
|
if @api_client.config.debugging
|
403
403
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_patch ...'
|
@@ -424,10 +424,10 @@ module SparteraApiSdk
|
|
424
424
|
post_body = opts[:debug_body]
|
425
425
|
|
426
426
|
# return_type
|
427
|
-
return_type = opts[:debug_return_type] || '
|
427
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
428
428
|
|
429
429
|
# auth_names
|
430
|
-
auth_names = opts[:debug_auth_names] || ['
|
430
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
431
431
|
|
432
432
|
new_options = opts.merge(
|
433
433
|
:operation => :"CompaniesApi.companies_company_id_patch",
|
@@ -449,7 +449,7 @@ module SparteraApiSdk
|
|
449
449
|
# Get the total number of requests allocated in the company's current subscription plan.
|
450
450
|
# @param company_id [String]
|
451
451
|
# @param [Hash] opts the optional parameters
|
452
|
-
# @return [
|
452
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
453
453
|
def companies_company_id_requests_plan_get(company_id, opts = {})
|
454
454
|
data, _status_code, _headers = companies_company_id_requests_plan_get_with_http_info(company_id, opts)
|
455
455
|
data
|
@@ -458,7 +458,7 @@ module SparteraApiSdk
|
|
458
458
|
# Get the total number of requests allocated in the company's current subscription plan.
|
459
459
|
# @param company_id [String]
|
460
460
|
# @param [Hash] opts the optional parameters
|
461
|
-
# @return [Array<(
|
461
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
462
462
|
def companies_company_id_requests_plan_get_with_http_info(company_id, opts = {})
|
463
463
|
if @api_client.config.debugging
|
464
464
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_requests_plan_get ...'
|
@@ -485,10 +485,10 @@ module SparteraApiSdk
|
|
485
485
|
post_body = opts[:debug_body]
|
486
486
|
|
487
487
|
# return_type
|
488
|
-
return_type = opts[:debug_return_type] || '
|
488
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
489
489
|
|
490
490
|
# auth_names
|
491
|
-
auth_names = opts[:debug_auth_names] || ['
|
491
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
492
492
|
|
493
493
|
new_options = opts.merge(
|
494
494
|
:operation => :"CompaniesApi.companies_company_id_requests_plan_get",
|
@@ -510,7 +510,7 @@ module SparteraApiSdk
|
|
510
510
|
# Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
511
511
|
# @param company_id [String]
|
512
512
|
# @param [Hash] opts the optional parameters
|
513
|
-
# @return [
|
513
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
514
514
|
def companies_company_id_requests_usage_get(company_id, opts = {})
|
515
515
|
data, _status_code, _headers = companies_company_id_requests_usage_get_with_http_info(company_id, opts)
|
516
516
|
data
|
@@ -519,7 +519,7 @@ module SparteraApiSdk
|
|
519
519
|
# Get company request usage data for a specific month. Returns JSON metrics by default or CSV logs when download parameter is included.
|
520
520
|
# @param company_id [String]
|
521
521
|
# @param [Hash] opts the optional parameters
|
522
|
-
# @return [Array<(
|
522
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
523
523
|
def companies_company_id_requests_usage_get_with_http_info(company_id, opts = {})
|
524
524
|
if @api_client.config.debugging
|
525
525
|
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_id_requests_usage_get ...'
|
@@ -546,10 +546,10 @@ module SparteraApiSdk
|
|
546
546
|
post_body = opts[:debug_body]
|
547
547
|
|
548
548
|
# return_type
|
549
|
-
return_type = opts[:debug_return_type] || '
|
549
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
550
550
|
|
551
551
|
# auth_names
|
552
|
-
auth_names = opts[:debug_auth_names] || ['
|
552
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
553
553
|
|
554
554
|
new_options = opts.merge(
|
555
555
|
:operation => :"CompaniesApi.companies_company_id_requests_usage_get",
|