spartera_api_sdk 0.4.2 → 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 +4 -4
- data/Gemfile +5 -3
- data/Gemfile.lock +69 -0
- data/README.md +324 -336
- data/config.json +10 -0
- data/docs/APIKeysApi.md +102 -286
- data/docs/Alert.md +36 -0
- data/docs/AlertsApi.md +163 -177
- data/docs/Apikey.md +36 -0
- data/docs/Asset.md +110 -0
- data/docs/AssetPriceHistoryApi.md +178 -202
- data/docs/Assetpricehistory.md +38 -0
- data/docs/AssetsApi.md +352 -418
- data/docs/CloudProvidersApi.md +233 -49
- data/docs/Cloudprovider.md +30 -0
- data/docs/CompaniesApi.md +171 -357
- data/docs/Company.md +44 -0
- data/docs/Connection.md +54 -0
- data/docs/ConnectionsApi.md +139 -249
- data/docs/Favorite.md +36 -0
- data/docs/FavoritesApi.md +183 -199
- data/docs/User.md +34 -0
- data/docs/UsersApi.md +97 -379
- data/example.rb +51 -0
- data/git_push.sh +2 -2
- data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
- data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
- data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
- data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
- data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
- data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
- data/lib/spartera_api_sdk/api/users_api.rb +95 -619
- data/lib/spartera_api_sdk/api_client.rb +4 -8
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/configuration.rb +12 -4
- data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
- data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
- data/lib/spartera_api_sdk/models/asset.rb +686 -0
- data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
- data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
- data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
- data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
- data/lib/spartera_api_sdk/models/error.rb +76 -3
- data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
- data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
- data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
- data/lib/spartera_api_sdk/version.rb +3 -3
- data/lib/spartera_api_sdk.rb +11 -150
- data/spartera_api_sdk.gemspec +8 -19
- data/spec/api/alerts_api_spec.rb +51 -51
- data/spec/api/api_keys_api_spec.rb +30 -67
- data/spec/api/asset_price_history_api_spec.rb +53 -57
- data/spec/api/assets_api_spec.rb +99 -114
- data/spec/api/cloud_providers_api_spec.rb +42 -15
- data/spec/api/companies_api_spec.rb +47 -99
- data/spec/api/connections_api_spec.rb +41 -63
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/users_api_spec.rb +29 -88
- data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
- data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
- data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
- data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
- data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
- data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
- data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
- data/spec/spec_helper.rb +2 -2
- data/test.sh +42 -0
- metadata +78 -616
- data/CHANGELOG.md +0 -25
- data/docs/Alerts.md +0 -30
- data/docs/AlertsInput.md +0 -24
- data/docs/AlertsUpdate.md +0 -24
- data/docs/ApiKeys.md +0 -40
- data/docs/ApiKeysInput.md +0 -34
- data/docs/ApiKeysUpdate.md +0 -34
- data/docs/AssetPriceHistory.md +0 -30
- data/docs/AssetPriceHistoryInput.md +0 -24
- data/docs/AssetPriceHistoryUpdate.md +0 -24
- data/docs/AssetUsecases.md +0 -28
- data/docs/AssetUsecasesApi.md +0 -157
- data/docs/Assets.md +0 -142
- data/docs/AssetsInput.md +0 -128
- data/docs/AssetsUpdate.md +0 -128
- data/docs/CloudProviders.md +0 -28
- data/docs/CloudProvidersInput.md +0 -22
- data/docs/CloudProvidersUpdate.md +0 -22
- data/docs/Companies.md +0 -46
- data/docs/CompaniesInput.md +0 -40
- data/docs/CompaniesUpdate.md +0 -40
- data/docs/Connections.md +0 -38
- data/docs/ConnectionsInput.md +0 -32
- data/docs/ConnectionsUpdate.md +0 -32
- data/docs/CreateAlerts200Response.md +0 -20
- data/docs/CreateAlerts200ResponseData.md +0 -18
- data/docs/CreateApiKeys200Response.md +0 -20
- data/docs/CreateApiKeys200ResponseData.md +0 -18
- data/docs/CreateAssetPriceHistory200Response.md +0 -20
- data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/CreateAssetsAnalyze200Response.md +0 -20
- data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
- data/docs/CreateConnections200Response.md +0 -20
- data/docs/CreateConnections200ResponseData.md +0 -18
- data/docs/CreateEndpoints200Response.md +0 -20
- data/docs/CreateEndpoints200ResponseData.md +0 -18
- data/docs/CreateFavorites200Response.md +0 -20
- data/docs/CreateFavorites200ResponseData.md +0 -18
- data/docs/CreatePostgenIntegrations200Response.md +0 -20
- data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/CreatePosts200Response.md +0 -20
- data/docs/CreatePosts200ResponseData.md +0 -18
- data/docs/CreateUsers200Response.md +0 -20
- data/docs/CreateUsers200ResponseData.md +0 -18
- data/docs/DeleteAlerts200Response.md +0 -20
- data/docs/DeleteAlerts200ResponseData.md +0 -18
- data/docs/DeleteApiKeys200Response.md +0 -20
- data/docs/DeleteApiKeys200ResponseData.md +0 -18
- data/docs/DeleteAssetPriceHistory200Response.md +0 -20
- data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
- data/docs/DeleteAssets200Response.md +0 -20
- data/docs/DeleteAssets200ResponseData.md +0 -18
- data/docs/DeleteConnections200Response.md +0 -20
- data/docs/DeleteConnections200ResponseData.md +0 -18
- data/docs/DeleteEndpoints200Response.md +0 -20
- data/docs/DeleteEndpoints200ResponseData.md +0 -18
- data/docs/DeleteFavorites200Response.md +0 -20
- data/docs/DeleteFavorites200ResponseData.md +0 -18
- data/docs/DeletePostgenIntegrations200Response.md +0 -20
- data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
- data/docs/DeletePosts200Response.md +0 -20
- data/docs/DeletePosts200ResponseData.md +0 -18
- data/docs/DeleteUsers200Response.md +0 -20
- data/docs/DeleteUsers200ResponseData.md +0 -18
- data/docs/Endpoints.md +0 -96
- data/docs/EndpointsApi.md +0 -1189
- data/docs/EndpointsInput.md +0 -94
- data/docs/EndpointsUpdate.md +0 -94
- data/docs/Favorites.md +0 -34
- data/docs/FavoritesInput.md +0 -28
- data/docs/FavoritesUpdate.md +0 -28
- data/docs/GetAlertsById200Response.md +0 -20
- data/docs/GetApiKeysById200Response.md +0 -20
- data/docs/GetAssetPriceHistoryById200Response.md +0 -20
- data/docs/GetAssetUsecasesById200Response.md +0 -20
- data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
- data/docs/GetCloudProvidersById200Response.md +0 -20
- data/docs/GetCompaniesById200Response.md +0 -20
- data/docs/GetConnectionsById200Response.md +0 -20
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
- data/docs/GetFavoritesById200Response.md +0 -20
- data/docs/GetIndustriesById200Response.md +0 -20
- data/docs/GetJobFunctionsById200Response.md +0 -20
- data/docs/GetPostgenIntegrationsById200Response.md +0 -20
- data/docs/GetPostsById200Response.md +0 -20
- data/docs/GetStorageEnginesById200Response.md +0 -20
- data/docs/GetUsersById200Response.md +0 -20
- data/docs/Industries.md +0 -32
- data/docs/IndustriesApi.md +0 -237
- data/docs/InlineObject4.md +0 -20
- data/docs/InlineObject5.md +0 -20
- data/docs/InlineObject6.md +0 -22
- data/docs/InlineObject7.md +0 -20
- data/docs/JobFunctions.md +0 -24
- data/docs/JobFunctionsApi.md +0 -157
- data/docs/JobFunctionsInput.md +0 -18
- data/docs/JobFunctionsUpdate.md +0 -18
- data/docs/ListApiKeys200Response.md +0 -20
- data/docs/ListAssetUsecases200Response.md +0 -20
- data/docs/ListAssets200Response.md +0 -20
- data/docs/ListCloudProviders200Response.md +0 -20
- data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
- data/docs/ListConnections200Response.md +0 -20
- data/docs/ListEndpoints200Response.md +0 -20
- data/docs/ListIndustries200Response.md +0 -20
- data/docs/ListJobFunctions200Response.md +0 -20
- data/docs/ListPostgenIntegrations200Response.md +0 -20
- data/docs/ListPosts200Response.md +0 -20
- data/docs/ListStorageEngines200Response.md +0 -20
- data/docs/ListUsers200Response.md +0 -20
- data/docs/PostPublications.md +0 -40
- data/docs/PostPublicationsInput.md +0 -34
- data/docs/PostPublicationsUpdate.md +0 -34
- data/docs/PostgenIntegrations.md +0 -36
- data/docs/PostgenIntegrationsApi.md +0 -463
- data/docs/PostgenIntegrationsInput.md +0 -30
- data/docs/PostgenIntegrationsUpdate.md +0 -30
- data/docs/Posts.md +0 -68
- data/docs/PostsApi.md +0 -843
- data/docs/PostsInput.md +0 -62
- data/docs/PostsUpdate.md +0 -62
- data/docs/StorageEngines.md +0 -32
- data/docs/StorageEnginesApi.md +0 -161
- data/docs/UpdateAlerts200Response.md +0 -20
- data/docs/UpdateAlerts200ResponseData.md +0 -18
- data/docs/UpdateApiKeys200Response.md +0 -20
- data/docs/UpdateApiKeys200ResponseData.md +0 -18
- data/docs/UpdateAssetPriceHistory200Response.md +0 -20
- data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/UpdateAssets200Response.md +0 -20
- data/docs/UpdateAssets200ResponseData.md +0 -18
- data/docs/UpdateCompanies200Response.md +0 -20
- data/docs/UpdateCompanies200ResponseData.md +0 -18
- data/docs/UpdateConnections200Response.md +0 -20
- data/docs/UpdateConnections200ResponseData.md +0 -18
- data/docs/UpdateEndpoints200Response.md +0 -20
- data/docs/UpdateEndpoints200ResponseData.md +0 -18
- data/docs/UpdateFavorites200Response.md +0 -20
- data/docs/UpdateFavorites200ResponseData.md +0 -18
- data/docs/UpdatePostgenIntegrations200Response.md +0 -20
- data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/UpdatePosts200Response.md +0 -20
- data/docs/UpdatePosts200ResponseData.md +0 -18
- data/docs/UpdateUsers200Response.md +0 -20
- data/docs/UpdateUsers200ResponseData.md +0 -18
- data/docs/Users.md +0 -36
- data/docs/UsersInput.md +0 -30
- data/docs/UsersUpdate.md +0 -30
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
- data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
- data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
- data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
- data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
- data/lib/spartera_api_sdk/api_model_base.rb +0 -88
- data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
- data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
- data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
- data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
- data/lib/spartera_api_sdk/models/assets.rb +0 -1068
- data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
- data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
- data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
- data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
- data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
- data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
- data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
- data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
- data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
- data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/industries.rb +0 -253
- data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
- data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
- data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
- data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
- data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
- data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
- data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
- data/lib/spartera_api_sdk/models/posts.rb +0 -586
- data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
- data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
- data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/users_input.rb +0 -260
- data/lib/spartera_api_sdk/models/users_update.rb +0 -243
- data/spec/api/asset_usecases_api_spec.rb +0 -61
- data/spec/api/endpoints_api_spec.rb +0 -240
- data/spec/api/industries_api_spec.rb +0 -76
- data/spec/api/job_functions_api_spec.rb +0 -61
- data/spec/api/postgen_integrations_api_spec.rb +0 -117
- data/spec/api/posts_api_spec.rb +0 -186
- data/spec/api/storage_engines_api_spec.rb +0 -63
- data/spec/models/alerts_input_spec.rb +0 -54
- data/spec/models/alerts_spec.rb +0 -72
- data/spec/models/alerts_update_spec.rb +0 -54
- data/spec/models/asset_price_history_input_spec.rb +0 -54
- data/spec/models/asset_price_history_spec.rb +0 -72
- data/spec/models/asset_price_history_update_spec.rb +0 -54
- data/spec/models/asset_usecases_spec.rb +0 -66
- data/spec/models/assets_input_spec.rb +0 -418
- data/spec/models/assets_spec.rb +0 -464
- data/spec/models/assets_update_spec.rb +0 -418
- data/spec/models/cloud_providers_input_spec.rb +0 -48
- data/spec/models/cloud_providers_update_spec.rb +0 -48
- data/spec/models/companies_input_spec.rb +0 -106
- data/spec/models/companies_update_spec.rb +0 -106
- data/spec/models/connections_input_spec.rb +0 -82
- data/spec/models/connections_spec.rb +0 -100
- data/spec/models/connections_update_spec.rb +0 -82
- data/spec/models/create_alerts200_response_data_spec.rb +0 -36
- data/spec/models/create_alerts200_response_spec.rb +0 -42
- data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/create_api_keys200_response_spec.rb +0 -42
- data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
- data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
- data/spec/models/create_connections200_response_data_spec.rb +0 -36
- data/spec/models/create_connections200_response_spec.rb +0 -42
- data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/create_endpoints200_response_spec.rb +0 -42
- data/spec/models/create_favorites200_response_data_spec.rb +0 -36
- data/spec/models/create_favorites200_response_spec.rb +0 -42
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/create_posts200_response_data_spec.rb +0 -36
- data/spec/models/create_posts200_response_spec.rb +0 -42
- data/spec/models/create_users200_response_data_spec.rb +0 -36
- data/spec/models/create_users200_response_spec.rb +0 -42
- data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
- data/spec/models/delete_alerts200_response_spec.rb +0 -42
- data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/delete_api_keys200_response_spec.rb +0 -42
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/delete_assets200_response_data_spec.rb +0 -36
- data/spec/models/delete_assets200_response_spec.rb +0 -42
- data/spec/models/delete_connections200_response_data_spec.rb +0 -36
- data/spec/models/delete_connections200_response_spec.rb +0 -42
- data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/delete_endpoints200_response_spec.rb +0 -42
- data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
- data/spec/models/delete_favorites200_response_spec.rb +0 -42
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/delete_posts200_response_data_spec.rb +0 -36
- data/spec/models/delete_posts200_response_spec.rb +0 -42
- data/spec/models/delete_users200_response_data_spec.rb +0 -36
- data/spec/models/delete_users200_response_spec.rb +0 -42
- data/spec/models/endpoints_input_spec.rb +0 -292
- data/spec/models/endpoints_update_spec.rb +0 -292
- data/spec/models/favorites_input_spec.rb +0 -66
- data/spec/models/favorites_update_spec.rb +0 -66
- data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
- data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
- data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
- data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
- data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
- data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
- data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
- data/spec/models/get_users_by_id200_response_spec.rb +0 -42
- data/spec/models/industries_spec.rb +0 -78
- data/spec/models/inline_object4_spec.rb +0 -42
- data/spec/models/inline_object5_spec.rb +0 -42
- data/spec/models/inline_object6_spec.rb +0 -48
- data/spec/models/inline_object7_spec.rb +0 -42
- data/spec/models/job_functions_input_spec.rb +0 -36
- data/spec/models/job_functions_spec.rb +0 -54
- data/spec/models/job_functions_update_spec.rb +0 -36
- data/spec/models/list_api_keys200_response_spec.rb +0 -42
- data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
- data/spec/models/list_assets200_response_spec.rb +0 -42
- data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
- data/spec/models/list_connections200_response_spec.rb +0 -42
- data/spec/models/list_endpoints200_response_spec.rb +0 -42
- data/spec/models/list_industries200_response_spec.rb +0 -42
- data/spec/models/list_job_functions200_response_spec.rb +0 -42
- data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/list_posts200_response_spec.rb +0 -42
- data/spec/models/list_storage_engines200_response_spec.rb +0 -42
- data/spec/models/list_users200_response_spec.rb +0 -42
- data/spec/models/post_publications_input_spec.rb +0 -84
- data/spec/models/post_publications_spec.rb +0 -102
- data/spec/models/post_publications_update_spec.rb +0 -84
- data/spec/models/postgen_integrations_input_spec.rb +0 -72
- data/spec/models/postgen_integrations_update_spec.rb +0 -72
- data/spec/models/posts_spec.rb +0 -186
- data/spec/models/posts_update_spec.rb +0 -168
- data/spec/models/storage_engines_spec.rb +0 -82
- data/spec/models/update_alerts200_response_data_spec.rb +0 -36
- data/spec/models/update_alerts200_response_spec.rb +0 -42
- data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/update_api_keys200_response_spec.rb +0 -42
- data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/update_assets200_response_data_spec.rb +0 -36
- data/spec/models/update_assets200_response_spec.rb +0 -42
- data/spec/models/update_companies200_response_data_spec.rb +0 -36
- data/spec/models/update_companies200_response_spec.rb +0 -42
- data/spec/models/update_connections200_response_data_spec.rb +0 -36
- data/spec/models/update_connections200_response_spec.rb +0 -42
- data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/update_endpoints200_response_spec.rb +0 -42
- data/spec/models/update_favorites200_response_data_spec.rb +0 -36
- data/spec/models/update_favorites200_response_spec.rb +0 -42
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/update_posts200_response_data_spec.rb +0 -36
- data/spec/models/update_posts200_response_spec.rb +0 -42
- data/spec/models/update_users200_response_data_spec.rb +0 -36
- data/spec/models/update_users200_response_spec.rb +0 -42
- data/spec/models/users_input_spec.rb +0 -76
- data/spec/models/users_spec.rb +0 -94
- data/spec/models/users_update_spec.rb +0 -76
|
@@ -1,243 +0,0 @@
|
|
|
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: 1.25.0
|
|
7
|
-
Contact: support@spartera.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module SparteraApiSdk
|
|
17
|
-
# Update schema for modifying User
|
|
18
|
-
class UsersUpdate < ApiModelBase
|
|
19
|
-
# References companies.company_id — A Spartera seller or buyer company account. See GET /companies for valid values. Required.
|
|
20
|
-
attr_accessor :company_id
|
|
21
|
-
|
|
22
|
-
# User's role for RBAC - single source of truth
|
|
23
|
-
attr_accessor :role_id
|
|
24
|
-
|
|
25
|
-
# User's job function/title
|
|
26
|
-
attr_accessor :function_id
|
|
27
|
-
|
|
28
|
-
# Required. One of: ACTIVE, PENDING, INACTIVE, BANNED.
|
|
29
|
-
attr_accessor :status
|
|
30
|
-
|
|
31
|
-
# Optional. Must be unique.
|
|
32
|
-
attr_accessor :email_address
|
|
33
|
-
|
|
34
|
-
# Optional.
|
|
35
|
-
attr_accessor :timezone
|
|
36
|
-
|
|
37
|
-
# Whether user has opted out of marketing communications. Default false = opted in per ToS.
|
|
38
|
-
attr_accessor :marketing_opt_out
|
|
39
|
-
|
|
40
|
-
class EnumAttributeValidator
|
|
41
|
-
attr_reader :datatype
|
|
42
|
-
attr_reader :allowable_values
|
|
43
|
-
|
|
44
|
-
def initialize(datatype, allowable_values)
|
|
45
|
-
@allowable_values = allowable_values.map do |value|
|
|
46
|
-
case datatype.to_s
|
|
47
|
-
when /Integer/i
|
|
48
|
-
value.to_i
|
|
49
|
-
when /Float/i
|
|
50
|
-
value.to_f
|
|
51
|
-
else
|
|
52
|
-
value
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def valid?(value)
|
|
58
|
-
!value || allowable_values.include?(value)
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
63
|
-
def self.attribute_map
|
|
64
|
-
{
|
|
65
|
-
:'company_id' => :'company_id',
|
|
66
|
-
:'role_id' => :'role_id',
|
|
67
|
-
:'function_id' => :'function_id',
|
|
68
|
-
:'status' => :'status',
|
|
69
|
-
:'email_address' => :'email_address',
|
|
70
|
-
:'timezone' => :'timezone',
|
|
71
|
-
:'marketing_opt_out' => :'marketing_opt_out'
|
|
72
|
-
}
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
# Returns attribute mapping this model knows about
|
|
76
|
-
def self.acceptable_attribute_map
|
|
77
|
-
attribute_map
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
# Returns all the JSON keys this model knows about
|
|
81
|
-
def self.acceptable_attributes
|
|
82
|
-
acceptable_attribute_map.values
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# Attribute type mapping.
|
|
86
|
-
def self.openapi_types
|
|
87
|
-
{
|
|
88
|
-
:'company_id' => :'String',
|
|
89
|
-
:'role_id' => :'Integer',
|
|
90
|
-
:'function_id' => :'Integer',
|
|
91
|
-
:'status' => :'String',
|
|
92
|
-
:'email_address' => :'String',
|
|
93
|
-
:'timezone' => :'String',
|
|
94
|
-
:'marketing_opt_out' => :'Boolean'
|
|
95
|
-
}
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
# List of attributes with nullable: true
|
|
99
|
-
def self.openapi_nullable
|
|
100
|
-
Set.new([
|
|
101
|
-
])
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# Initializes the object
|
|
105
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
106
|
-
def initialize(attributes = {})
|
|
107
|
-
if (!attributes.is_a?(Hash))
|
|
108
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::UsersUpdate` initialize method"
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
112
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
113
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
114
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::UsersUpdate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
116
|
-
end
|
|
117
|
-
h[k.to_sym] = v
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if attributes.key?(:'company_id')
|
|
121
|
-
self.company_id = attributes[:'company_id']
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
if attributes.key?(:'role_id')
|
|
125
|
-
self.role_id = attributes[:'role_id']
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if attributes.key?(:'function_id')
|
|
129
|
-
self.function_id = attributes[:'function_id']
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if attributes.key?(:'status')
|
|
133
|
-
self.status = attributes[:'status']
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
if attributes.key?(:'email_address')
|
|
137
|
-
self.email_address = attributes[:'email_address']
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if attributes.key?(:'timezone')
|
|
141
|
-
self.timezone = attributes[:'timezone']
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
if attributes.key?(:'marketing_opt_out')
|
|
145
|
-
self.marketing_opt_out = attributes[:'marketing_opt_out']
|
|
146
|
-
end
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
150
|
-
# @return Array for valid properties with the reasons
|
|
151
|
-
def list_invalid_properties
|
|
152
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
153
|
-
invalid_properties = Array.new
|
|
154
|
-
invalid_properties
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# Check to see if the all the properties in the model are valid
|
|
158
|
-
# @return true if the model is valid
|
|
159
|
-
def valid?
|
|
160
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
161
|
-
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "PENDING", "INACTIVE", "BANNED"])
|
|
162
|
-
return false unless status_validator.valid?(@status)
|
|
163
|
-
true
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
167
|
-
# @param [Object] status Object to be assigned
|
|
168
|
-
def status=(status)
|
|
169
|
-
validator = EnumAttributeValidator.new('String', ["ACTIVE", "PENDING", "INACTIVE", "BANNED"])
|
|
170
|
-
unless validator.valid?(status)
|
|
171
|
-
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
172
|
-
end
|
|
173
|
-
@status = status
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Checks equality by comparing each attribute.
|
|
177
|
-
# @param [Object] Object to be compared
|
|
178
|
-
def ==(o)
|
|
179
|
-
return true if self.equal?(o)
|
|
180
|
-
self.class == o.class &&
|
|
181
|
-
company_id == o.company_id &&
|
|
182
|
-
role_id == o.role_id &&
|
|
183
|
-
function_id == o.function_id &&
|
|
184
|
-
status == o.status &&
|
|
185
|
-
email_address == o.email_address &&
|
|
186
|
-
timezone == o.timezone &&
|
|
187
|
-
marketing_opt_out == o.marketing_opt_out
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# @see the `==` method
|
|
191
|
-
# @param [Object] Object to be compared
|
|
192
|
-
def eql?(o)
|
|
193
|
-
self == o
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# Calculates hash code according to all attributes.
|
|
197
|
-
# @return [Integer] Hash code
|
|
198
|
-
def hash
|
|
199
|
-
[company_id, role_id, function_id, status, email_address, timezone, marketing_opt_out].hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Builds the object from hash
|
|
203
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
204
|
-
# @return [Object] Returns the model itself
|
|
205
|
-
def self.build_from_hash(attributes)
|
|
206
|
-
return nil unless attributes.is_a?(Hash)
|
|
207
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
208
|
-
transformed_hash = {}
|
|
209
|
-
openapi_types.each_pair do |key, type|
|
|
210
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
211
|
-
transformed_hash["#{key}"] = nil
|
|
212
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
213
|
-
# check to ensure the input is an array given that the attribute
|
|
214
|
-
# is documented as an array but the input is not
|
|
215
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
216
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
217
|
-
end
|
|
218
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
219
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
220
|
-
end
|
|
221
|
-
end
|
|
222
|
-
new(transformed_hash)
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
# Returns the object in the form of hash
|
|
226
|
-
# @return [Hash] Returns the object in the form of hash
|
|
227
|
-
def to_hash
|
|
228
|
-
hash = {}
|
|
229
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
230
|
-
value = self.send(attr)
|
|
231
|
-
if value.nil?
|
|
232
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
233
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
hash[param] = _to_hash(value)
|
|
237
|
-
end
|
|
238
|
-
hash
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
end
|
|
@@ -1,61 +0,0 @@
|
|
|
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: 1.25.0
|
|
7
|
-
Contact: support@spartera.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for SparteraApiSdk::AssetUsecasesApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'AssetUsecasesApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = SparteraApiSdk::AssetUsecasesApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of AssetUsecasesApi' do
|
|
30
|
-
it 'should create an instance of AssetUsecasesApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(SparteraApiSdk::AssetUsecasesApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for get_asset_usecases_by_id
|
|
36
|
-
# Get single asset use case by ID
|
|
37
|
-
# @param auc_id Unique identifier for the Auc
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [GetAssetUsecasesById200Response]
|
|
40
|
-
describe 'get_asset_usecases_by_id 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 list_asset_usecases
|
|
47
|
-
# Get a list of all asset use cases
|
|
48
|
-
# @param [Hash] opts the optional parameters
|
|
49
|
-
# @option opts [Integer] :page Page number for pagination
|
|
50
|
-
# @option opts [Integer] :limit Number of items per page
|
|
51
|
-
# @option opts [String] :sort_by Field to sort by
|
|
52
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
53
|
-
# @option opts [String] :search Search term to filter results
|
|
54
|
-
# @return [ListAssetUsecases200Response]
|
|
55
|
-
describe 'list_asset_usecases test' do
|
|
56
|
-
it 'should work' do
|
|
57
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
end
|
|
@@ -1,240 +0,0 @@
|
|
|
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: 1.25.0
|
|
7
|
-
Contact: support@spartera.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for SparteraApiSdk::EndpointsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'EndpointsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = SparteraApiSdk::EndpointsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of EndpointsApi' do
|
|
30
|
-
it 'should create an instance of EndpointsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(SparteraApiSdk::EndpointsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for create_endpoints
|
|
36
|
-
# Create a new endpoint
|
|
37
|
-
# @param company_id Unique identifier for the Company
|
|
38
|
-
# @param endpoints_input
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Integer] :page Page number for pagination
|
|
41
|
-
# @option opts [Integer] :limit Number of items per page
|
|
42
|
-
# @option opts [String] :sort_by Field to sort by
|
|
43
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
44
|
-
# @option opts [String] :search Search term to filter results
|
|
45
|
-
# @return [CreateEndpoints200Response]
|
|
46
|
-
describe 'create_endpoints test' do
|
|
47
|
-
it 'should work' do
|
|
48
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# unit tests for create_endpoints_keys
|
|
53
|
-
# POST /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
54
|
-
# @param company_id Unique identifier for the Company
|
|
55
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
56
|
-
# @param endpoints_input
|
|
57
|
-
# @param [Hash] opts the optional parameters
|
|
58
|
-
# @return [CreateEndpoints200Response]
|
|
59
|
-
describe 'create_endpoints_keys test' do
|
|
60
|
-
it 'should work' do
|
|
61
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# unit tests for create_endpoints_scan_column
|
|
66
|
-
# POST /companies/{company_id}/endpoints/{endpoint_id}/scan_column
|
|
67
|
-
# @param company_id Unique identifier for the Company
|
|
68
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
69
|
-
# @param endpoints_input
|
|
70
|
-
# @param [Hash] opts the optional parameters
|
|
71
|
-
# @return [CreateEndpoints200Response]
|
|
72
|
-
describe 'create_endpoints_scan_column test' do
|
|
73
|
-
it 'should work' do
|
|
74
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# unit tests for delete_endpoints
|
|
79
|
-
# Delete single endpoint by ID
|
|
80
|
-
# @param company_id Unique identifier for the Company
|
|
81
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
82
|
-
# @param [Hash] opts the optional parameters
|
|
83
|
-
# @return [DeleteEndpoints200Response]
|
|
84
|
-
describe 'delete_endpoints 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 delete_endpoints_keys
|
|
91
|
-
# DELETE /companies/{company_id}/endpoints/{endpoint_id}/keys/{api_key_id}
|
|
92
|
-
# @param company_id Unique identifier for the Company
|
|
93
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
94
|
-
# @param api_key_id Unique identifier for the Api Key
|
|
95
|
-
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @return [DeleteEndpoints200Response]
|
|
97
|
-
describe 'delete_endpoints_keys test' do
|
|
98
|
-
it 'should work' do
|
|
99
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
# unit tests for get_endpoints_by_id
|
|
104
|
-
# Get single endpoint by ID
|
|
105
|
-
# @param company_id Unique identifier for the Company
|
|
106
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
107
|
-
# @param [Hash] opts the optional parameters
|
|
108
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
109
|
-
describe 'get_endpoints_by_id test' do
|
|
110
|
-
it 'should work' do
|
|
111
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# unit tests for get_endpoints_by_id_available_endpoints
|
|
116
|
-
# GET /companies/{company_id}/endpoints/{endpoint_id}/available-endpoints
|
|
117
|
-
# @param company_id Unique identifier for the Company
|
|
118
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
119
|
-
# @param [Hash] opts the optional parameters
|
|
120
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
121
|
-
describe 'get_endpoints_by_id_available_endpoints test' do
|
|
122
|
-
it 'should work' do
|
|
123
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# unit tests for get_endpoints_by_id_connections_describe
|
|
128
|
-
# Get schema information for a connection Query parameters: include_fields: Whether to include field information (default: true) schemas: Optional comma-separated schemas to include tables: Optional comma-separated tables to include
|
|
129
|
-
# @param company_id Unique identifier for the Company
|
|
130
|
-
# @param connection_id Unique identifier for the Connection
|
|
131
|
-
# @param [Hash] opts the optional parameters
|
|
132
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
133
|
-
describe 'get_endpoints_by_id_connections_describe test' do
|
|
134
|
-
it 'should work' do
|
|
135
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# unit tests for get_endpoints_by_id_execute
|
|
140
|
-
# Execute an endpoint with pagination support. Customer-facing route that returns paginated data. Query params: ?start=0&limit=100
|
|
141
|
-
# @param company_id Unique identifier for the Company
|
|
142
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
143
|
-
# @param [Hash] opts the optional parameters
|
|
144
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
145
|
-
describe 'get_endpoints_by_id_execute test' do
|
|
146
|
-
it 'should work' do
|
|
147
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
# unit tests for get_endpoints_by_id_keys
|
|
152
|
-
# GET /companies/{company_id}/endpoints/{endpoint_id}/keys
|
|
153
|
-
# @param company_id Unique identifier for the Company
|
|
154
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
155
|
-
# @param [Hash] opts the optional parameters
|
|
156
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
157
|
-
describe 'get_endpoints_by_id_keys test' do
|
|
158
|
-
it 'should work' do
|
|
159
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
# unit tests for get_endpoints_by_id_recommendations
|
|
164
|
-
# GET /companies/{company_id}/endpoints/{endpoint_id}/recommendations
|
|
165
|
-
# @param company_id Unique identifier for the Company
|
|
166
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
167
|
-
# @param [Hash] opts the optional parameters
|
|
168
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
169
|
-
describe 'get_endpoints_by_id_recommendations test' do
|
|
170
|
-
it 'should work' do
|
|
171
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# unit tests for get_endpoints_by_id_stats
|
|
176
|
-
# Get usage statistics for an endpoint Query parameters: days: Number of days to analyze (default: 30)
|
|
177
|
-
# @param company_id Unique identifier for the Company
|
|
178
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
179
|
-
# @param [Hash] opts the optional parameters
|
|
180
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
181
|
-
describe 'get_endpoints_by_id_stats test' do
|
|
182
|
-
it 'should work' do
|
|
183
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# unit tests for get_endpoints_by_id_test
|
|
188
|
-
# Test an endpoint with sample data Request body (optional): limit: Number of sample rows to return (default: 10)
|
|
189
|
-
# @param company_id Unique identifier for the Company
|
|
190
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
191
|
-
# @param [Hash] opts the optional parameters
|
|
192
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
193
|
-
describe 'get_endpoints_by_id_test test' do
|
|
194
|
-
it 'should work' do
|
|
195
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
# unit tests for get_endpoints_by_id_url
|
|
200
|
-
# GET /companies/{company_id}/endpoints/{endpoint_id}/url
|
|
201
|
-
# @param company_id Unique identifier for the Company
|
|
202
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
203
|
-
# @param [Hash] opts the optional parameters
|
|
204
|
-
# @return [GetEndpointsByIdConnectionsDescribe200Response]
|
|
205
|
-
describe 'get_endpoints_by_id_url test' do
|
|
206
|
-
it 'should work' do
|
|
207
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
# unit tests for list_endpoints
|
|
212
|
-
# Get all endpoints for a specific company with pagination, filtering, and sorting
|
|
213
|
-
# @param company_id Unique identifier for the Company
|
|
214
|
-
# @param [Hash] opts the optional parameters
|
|
215
|
-
# @option opts [Integer] :page Page number for pagination
|
|
216
|
-
# @option opts [Integer] :limit Number of items per page
|
|
217
|
-
# @option opts [String] :sort_by Field to sort by
|
|
218
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
219
|
-
# @option opts [String] :search Search term to filter results
|
|
220
|
-
# @return [ListEndpoints200Response]
|
|
221
|
-
describe 'list_endpoints test' do
|
|
222
|
-
it 'should work' do
|
|
223
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
# unit tests for update_endpoints
|
|
228
|
-
# Update an existing endpoint by ID
|
|
229
|
-
# @param company_id Unique identifier for the Company
|
|
230
|
-
# @param endpoint_id Unique identifier for the Endpoint
|
|
231
|
-
# @param endpoints_update
|
|
232
|
-
# @param [Hash] opts the optional parameters
|
|
233
|
-
# @return [UpdateEndpoints200Response]
|
|
234
|
-
describe 'update_endpoints test' do
|
|
235
|
-
it 'should work' do
|
|
236
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
237
|
-
end
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
end
|
|
@@ -1,76 +0,0 @@
|
|
|
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: 1.25.0
|
|
7
|
-
Contact: support@spartera.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for SparteraApiSdk::IndustriesApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'IndustriesApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = SparteraApiSdk::IndustriesApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of IndustriesApi' do
|
|
30
|
-
it 'should create an instance of IndustriesApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(SparteraApiSdk::IndustriesApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for get_industries_by_id
|
|
36
|
-
# Get single industry by ID
|
|
37
|
-
# @param industry_id Unique identifier for the Industry
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [GetIndustriesById200Response]
|
|
40
|
-
describe 'get_industries_by_id 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 list_industries
|
|
47
|
-
# Get a list of all industries
|
|
48
|
-
# @param [Hash] opts the optional parameters
|
|
49
|
-
# @option opts [Integer] :page Page number for pagination
|
|
50
|
-
# @option opts [Integer] :limit Number of items per page
|
|
51
|
-
# @option opts [String] :sort_by Field to sort by
|
|
52
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
53
|
-
# @option opts [String] :search Search term to filter results
|
|
54
|
-
# @return [ListIndustries200Response]
|
|
55
|
-
describe 'list_industries test' do
|
|
56
|
-
it 'should work' do
|
|
57
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# unit tests for list_industries_active
|
|
62
|
-
# Get a list of industries that have active marketplace products
|
|
63
|
-
# @param [Hash] opts the optional parameters
|
|
64
|
-
# @option opts [Integer] :page Page number for pagination
|
|
65
|
-
# @option opts [Integer] :limit Number of items per page
|
|
66
|
-
# @option opts [String] :sort_by Field to sort by
|
|
67
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
68
|
-
# @option opts [String] :search Search term to filter results
|
|
69
|
-
# @return [ListIndustries200Response]
|
|
70
|
-
describe 'list_industries_active test' do
|
|
71
|
-
it 'should work' do
|
|
72
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
end
|
|
@@ -1,61 +0,0 @@
|
|
|
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: 1.25.0
|
|
7
|
-
Contact: support@spartera.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
|
|
16
|
-
# Unit tests for SparteraApiSdk::JobFunctionsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'JobFunctionsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = SparteraApiSdk::JobFunctionsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of JobFunctionsApi' do
|
|
30
|
-
it 'should create an instance of JobFunctionsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(SparteraApiSdk::JobFunctionsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for get_job_functions_by_id
|
|
36
|
-
# Get single job function by ID
|
|
37
|
-
# @param function_id Unique identifier for the Function
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [GetJobFunctionsById200Response]
|
|
40
|
-
describe 'get_job_functions_by_id 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 list_job_functions
|
|
47
|
-
# Get a list of all job functions
|
|
48
|
-
# @param [Hash] opts the optional parameters
|
|
49
|
-
# @option opts [Integer] :page Page number for pagination
|
|
50
|
-
# @option opts [Integer] :limit Number of items per page
|
|
51
|
-
# @option opts [String] :sort_by Field to sort by
|
|
52
|
-
# @option opts [String] :sort_order Sort order (ascending or descending)
|
|
53
|
-
# @option opts [String] :search Search term to filter results
|
|
54
|
-
# @return [ListJobFunctions200Response]
|
|
55
|
-
describe 'list_job_functions test' do
|
|
56
|
-
it 'should work' do
|
|
57
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
end
|