spartera_api_sdk 1.0.77 → 1.0.79
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/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +150 -126
- data/docs/Alerts.md +13 -13
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +7 -7
- data/docs/AlertsUpdate.md +7 -7
- data/docs/ApiKeys.md +19 -11
- data/docs/ApiKeysInput.md +13 -5
- data/docs/ApiKeysUpdate.md +13 -5
- data/docs/AssetPriceHistory.md +14 -12
- data/docs/AssetPriceHistoryApi.md +164 -164
- data/docs/AssetPriceHistoryInput.md +8 -6
- data/docs/AssetPriceHistoryUpdate.md +8 -6
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +113 -83
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +100 -70
- data/docs/AssetsUpdate.md +100 -70
- data/docs/CloudProviders.md +12 -12
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +6 -6
- data/docs/CloudProvidersUpdate.md +6 -6
- data/docs/Companies.md +27 -23
- data/docs/CompaniesApi.md +313 -147
- data/docs/CompaniesInput.md +21 -17
- data/docs/CompaniesUpdate.md +21 -17
- data/docs/Connections.md +22 -22
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +16 -16
- data/docs/ConnectionsUpdate.md +16 -16
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysPost200ResponseData.md → CreateApiKeys200ResponseData.md} +2 -2
- data/docs/{CompaniesCompanyIdPatch200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md → CreateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsPost200ResponseData.md → CreateAssetsAnalyze200ResponseData.md} +2 -2
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsPost200ResponseData.md → CreateConnections200ResponseData.md} +2 -2
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md → CreateFavorites200ResponseData.md} +2 -2
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersPost200ResponseData.md → CreateUsers200ResponseData.md} +2 -2
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md → DeleteAlerts200ResponseData.md} +2 -2
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md → DeleteApiKeys200ResponseData.md} +2 -2
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md → DeleteAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md → DeleteAssets200ResponseData.md} +2 -2
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md → DeleteConnections200ResponseData.md} +2 -2
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md → DeleteFavorites200ResponseData.md} +2 -2
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdDelete200ResponseData.md → DeleteUsers200ResponseData.md} +2 -2
- data/docs/Endpoints.md +80 -0
- data/docs/EndpointsApi.md +1043 -0
- data/docs/EndpointsInput.md +78 -0
- data/docs/EndpointsUpdate.md +78 -0
- data/docs/Favorites.md +15 -15
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +9 -9
- data/docs/FavoritesUpdate.md +9 -9
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md → GetAlertsById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md → GetApiKeysById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md → GetAssetPriceHistoryById200Response.md} +2 -2
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/{AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md → GetAssetsByIdAnalyze200Response.md} +2 -2
- data/docs/{CloudProvidersProviderIdGet200Response.md → GetCloudProvidersById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdGet200Response.md → GetCompaniesById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → GetConnectionsById200Response.md} +2 -2
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md → GetFavoritesById200Response.md} +2 -2
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/{JobFunctionsFunctionIdGet200Response.md → GetJobFunctionsById200Response.md} +2 -2
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetUsersById200Response.md} +2 -2
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +8 -8
- data/docs/JobFunctionsApi.md +38 -25
- data/docs/JobFunctionsInput.md +2 -2
- data/docs/JobFunctionsUpdate.md +2 -2
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsGet200Response.md → ListAssets200Response.md} +2 -2
- data/docs/{CloudProvidersGet200Response.md → ListCloudProviders200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAnalyticsAssetsGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListConnections200Response.md} +2 -2
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/{JobFunctionsGet200Response.md → ListJobFunctions200Response.md} +2 -2
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → ListUsers200Response.md} +2 -2
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md → UpdateApiKeys200ResponseData.md} +2 -2
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md → UpdateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/{CompaniesCompanyIdPatch200ResponseData.md → UpdateCompanies200ResponseData.md} +2 -2
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md → UpdateConnections200ResponseData.md} +2 -2
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md → UpdateFavorites200ResponseData.md} +2 -2
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdPatch200ResponseData.md → UpdateUsers200ResponseData.md} +2 -2
- data/docs/Users.md +20 -16
- data/docs/UsersApi.md +302 -97
- data/docs/UsersInput.md +14 -10
- data/docs/UsersUpdate.md +14 -10
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +386 -152
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +454 -207
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +949 -225
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -148
- data/lib/spartera_api_sdk/api/connections_api.rb +376 -142
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1416 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +456 -196
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +75 -23
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +574 -105
- data/lib/spartera_api_sdk/api_client.rb +8 -4
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +2 -2
- data/lib/spartera_api_sdk/models/alerts.rb +10 -77
- data/lib/spartera_api_sdk/models/alerts_input.rb +6 -76
- data/lib/spartera_api_sdk/models/alerts_update.rb +6 -76
- data/lib/spartera_api_sdk/models/api_keys.rb +82 -78
- data/lib/spartera_api_sdk/models/api_keys_input.rb +44 -77
- data/lib/spartera_api_sdk/models/api_keys_update.rb +44 -77
- data/lib/spartera_api_sdk/models/asset_price_history.rb +21 -96
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +17 -95
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +17 -78
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +262 -93
- data/lib/spartera_api_sdk/models/assets_input.rb +238 -91
- data/lib/spartera_api_sdk/models/assets_update.rb +238 -91
- data/lib/spartera_api_sdk/models/cloud_providers.rb +10 -77
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +6 -76
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +6 -76
- data/lib/spartera_api_sdk/models/companies.rb +72 -81
- data/lib/spartera_api_sdk/models/companies_input.rb +68 -80
- data/lib/spartera_api_sdk/models/companies_update.rb +68 -80
- data/lib/spartera_api_sdk/models/connections.rb +15 -78
- data/lib/spartera_api_sdk/models/connections_input.rb +11 -77
- data/lib/spartera_api_sdk/models/connections_update.rb +11 -77
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_get200_response.rb → create_alerts200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_post200_response_data.rb → create_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_post200_response_data.rb → create_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_post200_response_data.rb → create_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response_data.rb → create_assets_analyze200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_post200_response_data.rb → create_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_post200_response_data.rb → create_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{job_functions_function_id_get200_response.rb → create_postgen_integrations200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response_data.rb → create_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb → delete_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_delete200_response_data.rb → delete_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb → delete_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_delete200_response_data.rb → delete_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_delete200_response_data.rb → delete_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb → delete_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response_data.rb → delete_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/endpoints.rb +684 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +582 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +531 -0
- data/lib/spartera_api_sdk/models/error.rb +3 -76
- data/lib/spartera_api_sdk/models/favorites.rb +10 -77
- data/lib/spartera_api_sdk/models/favorites_input.rb +6 -76
- data/lib/spartera_api_sdk/models/favorites_update.rb +6 -76
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_get200_response.rb → get_api_keys_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb → get_asset_price_history_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{analyze_company_handle_assets_asset_slug_get200_response.rb → get_assets_by_id_analyze200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_get200_response.rb → get_cloud_providers_by_id200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_get200_response.rb → get_connections_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response.rb → get_endpoints_by_id_connections_describe200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_get200_response.rb → get_postgen_integrations_by_id200_response.rb} +7 -82
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_get200_response.rb → get_users_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object1.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object2.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object3.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_storage_engines_get200_response.rb → inline_object6.rb} +22 -102
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +8 -77
- data/lib/spartera_api_sdk/models/job_functions_input.rb +4 -76
- data/lib/spartera_api_sdk/models/job_functions_update.rb +4 -76
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_assets200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_get200_response.rb → list_companies_analytics_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{job_functions_get200_response.rb → list_connections200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb → update_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_patch200_response_data.rb → update_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb → update_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_patch200_response_data.rb → update_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response_data.rb → update_companies200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_patch200_response_data.rb → update_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb → update_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_patch200_response_data.rb → update_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/users.rb +70 -82
- data/lib/spartera_api_sdk/models/users_input.rb +32 -81
- data/lib/spartera_api_sdk/models/users_update.rb +32 -81
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +118 -67
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +53 -43
- data/spec/api/asset_price_history_api_spec.rb +57 -57
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +134 -69
- data/spec/api/cloud_providers_api_spec.rb +16 -11
- data/spec/api/companies_api_spec.rb +99 -48
- data/spec/api/connections_api_spec.rb +53 -43
- data/spec/api/endpoints_api_spec.rb +215 -0
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +14 -9
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +81 -32
- data/spec/models/alerts_input_spec.rb +3 -3
- data/spec/models/alerts_spec.rb +3 -3
- data/spec/models/alerts_update_spec.rb +3 -3
- data/spec/models/api_keys_input_spec.rb +27 -3
- data/spec/models/api_keys_spec.rb +27 -3
- data/spec/models/api_keys_update_spec.rb +27 -3
- data/spec/models/asset_price_history_input_spec.rb +9 -3
- data/spec/models/asset_price_history_spec.rb +9 -3
- data/spec/models/asset_price_history_update_spec.rb +9 -3
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +110 -4
- data/spec/models/assets_spec.rb +110 -4
- data/spec/models/assets_update_spec.rb +110 -4
- data/spec/models/cloud_providers_input_spec.rb +3 -3
- data/spec/models/cloud_providers_spec.rb +3 -3
- data/spec/models/cloud_providers_update_spec.rb +3 -3
- data/spec/models/companies_input_spec.rb +19 -3
- data/spec/models/companies_spec.rb +19 -3
- data/spec/models/companies_update_spec.rb +19 -3
- data/spec/models/connections_input_spec.rb +3 -3
- data/spec/models/connections_spec.rb +3 -3
- data/spec/models/connections_update_spec.rb +3 -3
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_post200_response_data_spec.rb → create_api_keys200_response_data_spec.rb} +8 -8
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_patch200_response_spec.rb → create_asset_price_history200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_assets_post200_response_data_spec.rb → create_assets_analyze200_response_data_spec.rb} +8 -8
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/{cloud_providers_get200_response_spec.rb → create_connections200_response_spec.rb} +8 -8
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/{job_functions_function_id_get200_response_spec.rb → create_postgen_integrations200_response_spec.rb} +8 -8
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_post200_response_data_spec.rb → create_users200_response_data_spec.rb} +8 -8
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_patch200_response_data_spec.rb → delete_assets200_response_data_spec.rb} +8 -8
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_patch200_response_data_spec.rb → delete_users200_response_data_spec.rb} +8 -8
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +236 -0
- data/spec/models/endpoints_spec.rb +242 -0
- data/spec/models/endpoints_update_spec.rb +236 -0
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/favorites_input_spec.rb +3 -3
- data/spec/models/favorites_spec.rb +3 -3
- data/spec/models/favorites_update_spec.rb +3 -3
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{job_functions_get200_response_spec.rb → get_api_keys_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_get200_response_spec.rb → get_cloud_providers_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_spec.rb → get_endpoints_by_id_connections_describe200_response_spec.rb} +8 -8
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_get200_response_spec.rb → get_postgen_integrations_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- 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_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/{cloud_providers_provider_id_get200_response_spec.rb → inline_object6_spec.rb} +15 -9
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/job_functions_input_spec.rb +3 -3
- data/spec/models/job_functions_spec.rb +3 -3
- data/spec/models/job_functions_update_spec.rb +3 -3
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_get200_response_spec.rb → list_companies_analytics_assets200_response_spec.rb} +8 -8
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_patch200_response_data_spec.rb → update_companies200_response_data_spec.rb} +8 -8
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_data_spec.rb → update_users200_response_data_spec.rb} +8 -8
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +15 -3
- data/spec/models/users_spec.rb +15 -3
- data/spec/models/users_update_spec.rb +15 -3
- data/spec/spec_helper.rb +111 -0
- metadata +515 -337
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +0 -20
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_category_category_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +0 -264
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +0 -42
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +0 -42
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,29 +19,42 @@ module SparteraApiSdk
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Get
|
|
23
|
-
# @param company_id [String]
|
|
22
|
+
# Get details of the requestor's own company
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [
|
|
26
|
-
def
|
|
27
|
-
data, _status_code, _headers =
|
|
25
|
+
# @return [GetCompaniesById200Response]
|
|
26
|
+
def get_companies_by_id(company_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = get_companies_by_id_with_http_info(company_id, opts)
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# Get
|
|
32
|
-
# @param company_id [String]
|
|
31
|
+
# Get details of the requestor's own company
|
|
32
|
+
# @param company_id [String] Unique identifier for the Company
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(
|
|
35
|
-
def
|
|
34
|
+
# @return [Array<(GetCompaniesById200Response, Integer, Hash)>] GetCompaniesById200Response data, response status code and response headers
|
|
35
|
+
def get_companies_by_id_with_http_info(company_id, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.get_companies_by_id ...'
|
|
38
38
|
end
|
|
39
39
|
# verify the required parameter 'company_id' is set
|
|
40
40
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.get_companies_by_id"
|
|
42
|
+
end
|
|
43
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
44
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.get_companies_by_id, the character length must be smaller than or equal to 255.'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
48
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.get_companies_by_id, the character length must be greater than or equal to 1.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
52
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
53
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.get_companies_by_id, must conform to the pattern #{pattern}."
|
|
42
54
|
end
|
|
55
|
+
|
|
43
56
|
# resource path
|
|
44
|
-
local_var_path = '/companies/{company_id}
|
|
57
|
+
local_var_path = '/companies/{company_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
45
58
|
|
|
46
59
|
# query parameters
|
|
47
60
|
query_params = opts[:query_params] || {}
|
|
@@ -58,13 +71,13 @@ module SparteraApiSdk
|
|
|
58
71
|
post_body = opts[:debug_body]
|
|
59
72
|
|
|
60
73
|
# return_type
|
|
61
|
-
return_type = opts[:debug_return_type] || '
|
|
74
|
+
return_type = opts[:debug_return_type] || 'GetCompaniesById200Response'
|
|
62
75
|
|
|
63
76
|
# auth_names
|
|
64
77
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
65
78
|
|
|
66
79
|
new_options = opts.merge(
|
|
67
|
-
:operation => :"CompaniesApi.
|
|
80
|
+
:operation => :"CompaniesApi.get_companies_by_id",
|
|
68
81
|
:header_params => header_params,
|
|
69
82
|
:query_params => query_params,
|
|
70
83
|
:form_params => form_params,
|
|
@@ -75,37 +88,89 @@ module SparteraApiSdk
|
|
|
75
88
|
|
|
76
89
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
77
90
|
if @api_client.config.debugging
|
|
78
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
91
|
+
@api_client.config.logger.debug "API called: CompaniesApi#get_companies_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
92
|
end
|
|
80
93
|
return data, status_code, headers
|
|
81
94
|
end
|
|
82
95
|
|
|
83
|
-
# Get
|
|
84
|
-
# @param company_id [String]
|
|
96
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
|
97
|
+
# @param company_id [String] Unique identifier for the Company
|
|
85
98
|
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
100
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
101
|
+
# @option opts [String] :sort_by Field to sort by
|
|
102
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
103
|
+
# @option opts [String] :search Search term to filter results
|
|
104
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
105
|
+
def list_companies(company_id, opts = {})
|
|
106
|
+
data, _status_code, _headers = list_companies_with_http_info(company_id, opts)
|
|
89
107
|
data
|
|
90
108
|
end
|
|
91
109
|
|
|
92
|
-
# Get
|
|
93
|
-
# @param company_id [String]
|
|
110
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
|
111
|
+
# @param company_id [String] Unique identifier for the Company
|
|
94
112
|
# @param [Hash] opts the optional parameters
|
|
95
|
-
# @
|
|
96
|
-
|
|
113
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
114
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
115
|
+
# @option opts [String] :sort_by Field to sort by
|
|
116
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
117
|
+
# @option opts [String] :search Search term to filter results
|
|
118
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
119
|
+
def list_companies_with_http_info(company_id, opts = {})
|
|
97
120
|
if @api_client.config.debugging
|
|
98
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies ...'
|
|
99
122
|
end
|
|
100
123
|
# verify the required parameter 'company_id' is set
|
|
101
124
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
102
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies"
|
|
103
126
|
end
|
|
127
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
128
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies, the character length must be smaller than or equal to 255.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
132
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies, the character length must be greater than or equal to 1.'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
136
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
137
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies, must conform to the pattern #{pattern}."
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
141
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies, must be greater than or equal to 1.'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
145
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies, must be smaller than or equal to 100.'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
149
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies, must be greater than or equal to 1.'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
allowable_values = ["asc", "desc"]
|
|
153
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
154
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
155
|
+
end
|
|
156
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
157
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies, the character length must be smaller than or equal to 255.'
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
161
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies, the character length must be greater than or equal to 1.'
|
|
162
|
+
end
|
|
163
|
+
|
|
104
164
|
# resource path
|
|
105
|
-
local_var_path = '/companies/{company_id}/
|
|
165
|
+
local_var_path = '/companies/{company_id}/requests/plan'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
106
166
|
|
|
107
167
|
# query parameters
|
|
108
168
|
query_params = opts[:query_params] || {}
|
|
169
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
170
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
171
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
172
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
173
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
109
174
|
|
|
110
175
|
# header parameters
|
|
111
176
|
header_params = opts[:header_params] || {}
|
|
@@ -119,13 +184,13 @@ module SparteraApiSdk
|
|
|
119
184
|
post_body = opts[:debug_body]
|
|
120
185
|
|
|
121
186
|
# return_type
|
|
122
|
-
return_type = opts[:debug_return_type] || '
|
|
187
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
123
188
|
|
|
124
189
|
# auth_names
|
|
125
190
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
126
191
|
|
|
127
192
|
new_options = opts.merge(
|
|
128
|
-
:operation => :"CompaniesApi.
|
|
193
|
+
:operation => :"CompaniesApi.list_companies",
|
|
129
194
|
:header_params => header_params,
|
|
130
195
|
:query_params => query_params,
|
|
131
196
|
:form_params => form_params,
|
|
@@ -136,37 +201,89 @@ module SparteraApiSdk
|
|
|
136
201
|
|
|
137
202
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
138
203
|
if @api_client.config.debugging
|
|
139
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
204
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
205
|
end
|
|
141
206
|
return data, status_code, headers
|
|
142
207
|
end
|
|
143
208
|
|
|
144
|
-
# Get
|
|
145
|
-
# @param company_id [String]
|
|
209
|
+
# Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
|
|
210
|
+
# @param company_id [String] Unique identifier for the Company
|
|
146
211
|
# @param [Hash] opts the optional parameters
|
|
147
|
-
# @
|
|
148
|
-
|
|
149
|
-
|
|
212
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
213
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
214
|
+
# @option opts [String] :sort_by Field to sort by
|
|
215
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
216
|
+
# @option opts [String] :search Search term to filter results
|
|
217
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
218
|
+
def list_companies_analytics_assets(company_id, opts = {})
|
|
219
|
+
data, _status_code, _headers = list_companies_analytics_assets_with_http_info(company_id, opts)
|
|
150
220
|
data
|
|
151
221
|
end
|
|
152
222
|
|
|
153
|
-
# Get
|
|
154
|
-
# @param company_id [String]
|
|
223
|
+
# Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
|
|
224
|
+
# @param company_id [String] Unique identifier for the Company
|
|
155
225
|
# @param [Hash] opts the optional parameters
|
|
156
|
-
# @
|
|
157
|
-
|
|
226
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
227
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
228
|
+
# @option opts [String] :sort_by Field to sort by
|
|
229
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
230
|
+
# @option opts [String] :search Search term to filter results
|
|
231
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
232
|
+
def list_companies_analytics_assets_with_http_info(company_id, opts = {})
|
|
158
233
|
if @api_client.config.debugging
|
|
159
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
234
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_analytics_assets ...'
|
|
160
235
|
end
|
|
161
236
|
# verify the required parameter 'company_id' is set
|
|
162
237
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
163
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
238
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_analytics_assets"
|
|
164
239
|
end
|
|
240
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
241
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_assets, the character length must be smaller than or equal to 255.'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
245
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_assets, the character length must be greater than or equal to 1.'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
249
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
250
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_analytics_assets, must conform to the pattern #{pattern}."
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
254
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_analytics_assets, must be greater than or equal to 1.'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
258
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_assets, must be smaller than or equal to 100.'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
262
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_assets, must be greater than or equal to 1.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
allowable_values = ["asc", "desc"]
|
|
266
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
267
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
268
|
+
end
|
|
269
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
270
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_assets, the character length must be smaller than or equal to 255.'
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
274
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_assets, the character length must be greater than or equal to 1.'
|
|
275
|
+
end
|
|
276
|
+
|
|
165
277
|
# resource path
|
|
166
|
-
local_var_path = '/companies/{company_id}/analytics/
|
|
278
|
+
local_var_path = '/companies/{company_id}/analytics/assets'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
167
279
|
|
|
168
280
|
# query parameters
|
|
169
281
|
query_params = opts[:query_params] || {}
|
|
282
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
283
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
284
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
285
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
286
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
170
287
|
|
|
171
288
|
# header parameters
|
|
172
289
|
header_params = opts[:header_params] || {}
|
|
@@ -180,13 +297,13 @@ module SparteraApiSdk
|
|
|
180
297
|
post_body = opts[:debug_body]
|
|
181
298
|
|
|
182
299
|
# return_type
|
|
183
|
-
return_type = opts[:debug_return_type] || '
|
|
300
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
184
301
|
|
|
185
302
|
# auth_names
|
|
186
303
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
187
304
|
|
|
188
305
|
new_options = opts.merge(
|
|
189
|
-
:operation => :"CompaniesApi.
|
|
306
|
+
:operation => :"CompaniesApi.list_companies_analytics_assets",
|
|
190
307
|
:header_params => header_params,
|
|
191
308
|
:query_params => query_params,
|
|
192
309
|
:form_params => form_params,
|
|
@@ -197,37 +314,89 @@ module SparteraApiSdk
|
|
|
197
314
|
|
|
198
315
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
199
316
|
if @api_client.config.debugging
|
|
200
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
317
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_analytics_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
201
318
|
end
|
|
202
319
|
return data, status_code, headers
|
|
203
320
|
end
|
|
204
321
|
|
|
205
|
-
# Get
|
|
206
|
-
# @param company_id [String]
|
|
322
|
+
# Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
|
|
323
|
+
# @param company_id [String] Unique identifier for the Company
|
|
207
324
|
# @param [Hash] opts the optional parameters
|
|
208
|
-
# @
|
|
209
|
-
|
|
210
|
-
|
|
325
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
326
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
327
|
+
# @option opts [String] :sort_by Field to sort by
|
|
328
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
329
|
+
# @option opts [String] :search Search term to filter results
|
|
330
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
331
|
+
def list_companies_analytics_customers(company_id, opts = {})
|
|
332
|
+
data, _status_code, _headers = list_companies_analytics_customers_with_http_info(company_id, opts)
|
|
211
333
|
data
|
|
212
334
|
end
|
|
213
335
|
|
|
214
|
-
# Get
|
|
215
|
-
# @param company_id [String]
|
|
336
|
+
# Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
|
|
337
|
+
# @param company_id [String] Unique identifier for the Company
|
|
216
338
|
# @param [Hash] opts the optional parameters
|
|
217
|
-
# @
|
|
218
|
-
|
|
339
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
340
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
341
|
+
# @option opts [String] :sort_by Field to sort by
|
|
342
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
343
|
+
# @option opts [String] :search Search term to filter results
|
|
344
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
345
|
+
def list_companies_analytics_customers_with_http_info(company_id, opts = {})
|
|
219
346
|
if @api_client.config.debugging
|
|
220
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
347
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_analytics_customers ...'
|
|
221
348
|
end
|
|
222
349
|
# verify the required parameter 'company_id' is set
|
|
223
350
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
224
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
351
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_analytics_customers"
|
|
352
|
+
end
|
|
353
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
354
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_customers, the character length must be smaller than or equal to 255.'
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
358
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_customers, the character length must be greater than or equal to 1.'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
362
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
363
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_analytics_customers, must conform to the pattern #{pattern}."
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
367
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_analytics_customers, must be greater than or equal to 1.'
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
371
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_customers, must be smaller than or equal to 100.'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
375
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_customers, must be greater than or equal to 1.'
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
allowable_values = ["asc", "desc"]
|
|
379
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
380
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
381
|
+
end
|
|
382
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
383
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_customers, the character length must be smaller than or equal to 255.'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
387
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_customers, the character length must be greater than or equal to 1.'
|
|
225
388
|
end
|
|
389
|
+
|
|
226
390
|
# resource path
|
|
227
|
-
local_var_path = '/companies/{company_id}/analytics/
|
|
391
|
+
local_var_path = '/companies/{company_id}/analytics/customers'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
228
392
|
|
|
229
393
|
# query parameters
|
|
230
394
|
query_params = opts[:query_params] || {}
|
|
395
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
396
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
397
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
398
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
399
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
231
400
|
|
|
232
401
|
# header parameters
|
|
233
402
|
header_params = opts[:header_params] || {}
|
|
@@ -241,13 +410,13 @@ module SparteraApiSdk
|
|
|
241
410
|
post_body = opts[:debug_body]
|
|
242
411
|
|
|
243
412
|
# return_type
|
|
244
|
-
return_type = opts[:debug_return_type] || '
|
|
413
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
245
414
|
|
|
246
415
|
# auth_names
|
|
247
416
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
248
417
|
|
|
249
418
|
new_options = opts.merge(
|
|
250
|
-
:operation => :"CompaniesApi.
|
|
419
|
+
:operation => :"CompaniesApi.list_companies_analytics_customers",
|
|
251
420
|
:header_params => header_params,
|
|
252
421
|
:query_params => query_params,
|
|
253
422
|
:form_params => form_params,
|
|
@@ -258,37 +427,89 @@ module SparteraApiSdk
|
|
|
258
427
|
|
|
259
428
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
260
429
|
if @api_client.config.debugging
|
|
261
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
430
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_analytics_customers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
262
431
|
end
|
|
263
432
|
return data, status_code, headers
|
|
264
433
|
end
|
|
265
434
|
|
|
266
|
-
# Get
|
|
267
|
-
# @param company_id [String]
|
|
435
|
+
# Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
|
|
436
|
+
# @param company_id [String] Unique identifier for the Company
|
|
268
437
|
# @param [Hash] opts the optional parameters
|
|
269
|
-
# @
|
|
270
|
-
|
|
271
|
-
|
|
438
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
439
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
440
|
+
# @option opts [String] :sort_by Field to sort by
|
|
441
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
442
|
+
# @option opts [String] :search Search term to filter results
|
|
443
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
444
|
+
def list_companies_analytics_dashboard(company_id, opts = {})
|
|
445
|
+
data, _status_code, _headers = list_companies_analytics_dashboard_with_http_info(company_id, opts)
|
|
272
446
|
data
|
|
273
447
|
end
|
|
274
448
|
|
|
275
|
-
# Get
|
|
276
|
-
# @param company_id [String]
|
|
449
|
+
# Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
|
|
450
|
+
# @param company_id [String] Unique identifier for the Company
|
|
277
451
|
# @param [Hash] opts the optional parameters
|
|
278
|
-
# @
|
|
279
|
-
|
|
452
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
453
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
454
|
+
# @option opts [String] :sort_by Field to sort by
|
|
455
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
456
|
+
# @option opts [String] :search Search term to filter results
|
|
457
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
458
|
+
def list_companies_analytics_dashboard_with_http_info(company_id, opts = {})
|
|
280
459
|
if @api_client.config.debugging
|
|
281
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
460
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_analytics_dashboard ...'
|
|
282
461
|
end
|
|
283
462
|
# verify the required parameter 'company_id' is set
|
|
284
463
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
285
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
464
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_analytics_dashboard"
|
|
465
|
+
end
|
|
466
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
467
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_dashboard, the character length must be smaller than or equal to 255.'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
471
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_dashboard, the character length must be greater than or equal to 1.'
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
475
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
476
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_analytics_dashboard, must conform to the pattern #{pattern}."
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
480
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_analytics_dashboard, must be greater than or equal to 1.'
|
|
286
481
|
end
|
|
482
|
+
|
|
483
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
484
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_dashboard, must be smaller than or equal to 100.'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
488
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_dashboard, must be greater than or equal to 1.'
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
allowable_values = ["asc", "desc"]
|
|
492
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
493
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
494
|
+
end
|
|
495
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
496
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_dashboard, the character length must be smaller than or equal to 255.'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
500
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_dashboard, the character length must be greater than or equal to 1.'
|
|
501
|
+
end
|
|
502
|
+
|
|
287
503
|
# resource path
|
|
288
|
-
local_var_path = '/companies/{company_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
504
|
+
local_var_path = '/companies/{company_id}/analytics/dashboard'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
289
505
|
|
|
290
506
|
# query parameters
|
|
291
507
|
query_params = opts[:query_params] || {}
|
|
508
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
509
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
510
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
511
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
512
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
292
513
|
|
|
293
514
|
# header parameters
|
|
294
515
|
header_params = opts[:header_params] || {}
|
|
@@ -302,13 +523,13 @@ module SparteraApiSdk
|
|
|
302
523
|
post_body = opts[:debug_body]
|
|
303
524
|
|
|
304
525
|
# return_type
|
|
305
|
-
return_type = opts[:debug_return_type] || '
|
|
526
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
306
527
|
|
|
307
528
|
# auth_names
|
|
308
529
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
309
530
|
|
|
310
531
|
new_options = opts.merge(
|
|
311
|
-
:operation => :"CompaniesApi.
|
|
532
|
+
:operation => :"CompaniesApi.list_companies_analytics_dashboard",
|
|
312
533
|
:header_params => header_params,
|
|
313
534
|
:query_params => query_params,
|
|
314
535
|
:form_params => form_params,
|
|
@@ -319,37 +540,89 @@ module SparteraApiSdk
|
|
|
319
540
|
|
|
320
541
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
321
542
|
if @api_client.config.debugging
|
|
322
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
543
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_analytics_dashboard\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
323
544
|
end
|
|
324
545
|
return data, status_code, headers
|
|
325
546
|
end
|
|
326
547
|
|
|
327
|
-
# Get
|
|
328
|
-
# @param company_id [String]
|
|
548
|
+
# Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
|
|
549
|
+
# @param company_id [String] Unique identifier for the Company
|
|
329
550
|
# @param [Hash] opts the optional parameters
|
|
330
|
-
# @
|
|
331
|
-
|
|
332
|
-
|
|
551
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
552
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
553
|
+
# @option opts [String] :sort_by Field to sort by
|
|
554
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
555
|
+
# @option opts [String] :search Search term to filter results
|
|
556
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
557
|
+
def list_companies_analytics_metrics(company_id, opts = {})
|
|
558
|
+
data, _status_code, _headers = list_companies_analytics_metrics_with_http_info(company_id, opts)
|
|
333
559
|
data
|
|
334
560
|
end
|
|
335
561
|
|
|
336
|
-
# Get
|
|
337
|
-
# @param company_id [String]
|
|
562
|
+
# Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
|
|
563
|
+
# @param company_id [String] Unique identifier for the Company
|
|
338
564
|
# @param [Hash] opts the optional parameters
|
|
339
|
-
# @
|
|
340
|
-
|
|
565
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
566
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
567
|
+
# @option opts [String] :sort_by Field to sort by
|
|
568
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
569
|
+
# @option opts [String] :search Search term to filter results
|
|
570
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
571
|
+
def list_companies_analytics_metrics_with_http_info(company_id, opts = {})
|
|
341
572
|
if @api_client.config.debugging
|
|
342
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
573
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_analytics_metrics ...'
|
|
343
574
|
end
|
|
344
575
|
# verify the required parameter 'company_id' is set
|
|
345
576
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
346
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
577
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_analytics_metrics"
|
|
578
|
+
end
|
|
579
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
580
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_metrics, the character length must be smaller than or equal to 255.'
|
|
347
581
|
end
|
|
582
|
+
|
|
583
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
584
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_metrics, the character length must be greater than or equal to 1.'
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
588
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
589
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_analytics_metrics, must conform to the pattern #{pattern}."
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
593
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_analytics_metrics, must be greater than or equal to 1.'
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
597
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_metrics, must be smaller than or equal to 100.'
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
601
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_metrics, must be greater than or equal to 1.'
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
allowable_values = ["asc", "desc"]
|
|
605
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
606
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
607
|
+
end
|
|
608
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
609
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_metrics, the character length must be smaller than or equal to 255.'
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
613
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_metrics, the character length must be greater than or equal to 1.'
|
|
614
|
+
end
|
|
615
|
+
|
|
348
616
|
# resource path
|
|
349
|
-
local_var_path = '/companies/{company_id}/
|
|
617
|
+
local_var_path = '/companies/{company_id}/analytics/metrics'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
350
618
|
|
|
351
619
|
# query parameters
|
|
352
620
|
query_params = opts[:query_params] || {}
|
|
621
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
622
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
623
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
624
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
625
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
353
626
|
|
|
354
627
|
# header parameters
|
|
355
628
|
header_params = opts[:header_params] || {}
|
|
@@ -363,13 +636,13 @@ module SparteraApiSdk
|
|
|
363
636
|
post_body = opts[:debug_body]
|
|
364
637
|
|
|
365
638
|
# return_type
|
|
366
|
-
return_type = opts[:debug_return_type] || '
|
|
639
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
367
640
|
|
|
368
641
|
# auth_names
|
|
369
642
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
370
643
|
|
|
371
644
|
new_options = opts.merge(
|
|
372
|
-
:operation => :"CompaniesApi.
|
|
645
|
+
:operation => :"CompaniesApi.list_companies_analytics_metrics",
|
|
373
646
|
:header_params => header_params,
|
|
374
647
|
:query_params => query_params,
|
|
375
648
|
:form_params => form_params,
|
|
@@ -380,68 +653,109 @@ module SparteraApiSdk
|
|
|
380
653
|
|
|
381
654
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
382
655
|
if @api_client.config.debugging
|
|
383
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
656
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_analytics_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
384
657
|
end
|
|
385
658
|
return data, status_code, headers
|
|
386
659
|
end
|
|
387
660
|
|
|
388
|
-
#
|
|
389
|
-
# @param company_id [String]
|
|
390
|
-
# @param companies_update [CompaniesUpdate]
|
|
661
|
+
# Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
|
662
|
+
# @param company_id [String] Unique identifier for the Company
|
|
391
663
|
# @param [Hash] opts the optional parameters
|
|
392
|
-
# @
|
|
393
|
-
|
|
394
|
-
|
|
664
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
665
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
666
|
+
# @option opts [String] :sort_by Field to sort by
|
|
667
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
668
|
+
# @option opts [String] :search Search term to filter results
|
|
669
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
670
|
+
def list_companies_analytics_sales(company_id, opts = {})
|
|
671
|
+
data, _status_code, _headers = list_companies_analytics_sales_with_http_info(company_id, opts)
|
|
395
672
|
data
|
|
396
673
|
end
|
|
397
674
|
|
|
398
|
-
#
|
|
399
|
-
# @param company_id [String]
|
|
400
|
-
# @param companies_update [CompaniesUpdate]
|
|
675
|
+
# Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
|
676
|
+
# @param company_id [String] Unique identifier for the Company
|
|
401
677
|
# @param [Hash] opts the optional parameters
|
|
402
|
-
# @
|
|
403
|
-
|
|
678
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
679
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
680
|
+
# @option opts [String] :sort_by Field to sort by
|
|
681
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
682
|
+
# @option opts [String] :search Search term to filter results
|
|
683
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
684
|
+
def list_companies_analytics_sales_with_http_info(company_id, opts = {})
|
|
404
685
|
if @api_client.config.debugging
|
|
405
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
686
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_analytics_sales ...'
|
|
406
687
|
end
|
|
407
688
|
# verify the required parameter 'company_id' is set
|
|
408
689
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
409
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_analytics_sales"
|
|
410
691
|
end
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
692
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
693
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_sales, the character length must be smaller than or equal to 255.'
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
697
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_analytics_sales, the character length must be greater than or equal to 1.'
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
701
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
702
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_analytics_sales, must conform to the pattern #{pattern}."
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
706
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_analytics_sales, must be greater than or equal to 1.'
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
710
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_sales, must be smaller than or equal to 100.'
|
|
414
711
|
end
|
|
712
|
+
|
|
713
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
714
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_analytics_sales, must be greater than or equal to 1.'
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
allowable_values = ["asc", "desc"]
|
|
718
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
719
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
720
|
+
end
|
|
721
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
722
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_sales, the character length must be smaller than or equal to 255.'
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
726
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_analytics_sales, the character length must be greater than or equal to 1.'
|
|
727
|
+
end
|
|
728
|
+
|
|
415
729
|
# resource path
|
|
416
|
-
local_var_path = '/companies/{company_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
730
|
+
local_var_path = '/companies/{company_id}/analytics/sales'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
417
731
|
|
|
418
732
|
# query parameters
|
|
419
733
|
query_params = opts[:query_params] || {}
|
|
734
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
735
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
736
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
737
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
738
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
420
739
|
|
|
421
740
|
# header parameters
|
|
422
741
|
header_params = opts[:header_params] || {}
|
|
423
742
|
# HTTP header 'Accept' (if needed)
|
|
424
743
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
425
|
-
# HTTP header 'Content-Type'
|
|
426
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
427
|
-
if !content_type.nil?
|
|
428
|
-
header_params['Content-Type'] = content_type
|
|
429
|
-
end
|
|
430
744
|
|
|
431
745
|
# form parameters
|
|
432
746
|
form_params = opts[:form_params] || {}
|
|
433
747
|
|
|
434
748
|
# http body (model)
|
|
435
|
-
post_body = opts[:debug_body]
|
|
749
|
+
post_body = opts[:debug_body]
|
|
436
750
|
|
|
437
751
|
# return_type
|
|
438
|
-
return_type = opts[:debug_return_type] || '
|
|
752
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
439
753
|
|
|
440
754
|
# auth_names
|
|
441
755
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
442
756
|
|
|
443
757
|
new_options = opts.merge(
|
|
444
|
-
:operation => :"CompaniesApi.
|
|
758
|
+
:operation => :"CompaniesApi.list_companies_analytics_sales",
|
|
445
759
|
:header_params => header_params,
|
|
446
760
|
:query_params => query_params,
|
|
447
761
|
:form_params => form_params,
|
|
@@ -450,39 +764,91 @@ module SparteraApiSdk
|
|
|
450
764
|
:return_type => return_type
|
|
451
765
|
)
|
|
452
766
|
|
|
453
|
-
data, status_code, headers = @api_client.call_api(:
|
|
767
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
454
768
|
if @api_client.config.debugging
|
|
455
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
769
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_analytics_sales\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
456
770
|
end
|
|
457
771
|
return data, status_code, headers
|
|
458
772
|
end
|
|
459
773
|
|
|
460
|
-
# Get
|
|
461
|
-
# @param company_id [String]
|
|
774
|
+
# Get all objects (connections, assets) of a single company
|
|
775
|
+
# @param company_id [String] Unique identifier for the Company
|
|
462
776
|
# @param [Hash] opts the optional parameters
|
|
463
|
-
# @
|
|
464
|
-
|
|
465
|
-
|
|
777
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
778
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
779
|
+
# @option opts [String] :sort_by Field to sort by
|
|
780
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
781
|
+
# @option opts [String] :search Search term to filter results
|
|
782
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
783
|
+
def list_companies_objects(company_id, opts = {})
|
|
784
|
+
data, _status_code, _headers = list_companies_objects_with_http_info(company_id, opts)
|
|
466
785
|
data
|
|
467
786
|
end
|
|
468
787
|
|
|
469
|
-
# Get
|
|
470
|
-
# @param company_id [String]
|
|
788
|
+
# Get all objects (connections, assets) of a single company
|
|
789
|
+
# @param company_id [String] Unique identifier for the Company
|
|
471
790
|
# @param [Hash] opts the optional parameters
|
|
472
|
-
# @
|
|
473
|
-
|
|
791
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
792
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
793
|
+
# @option opts [String] :sort_by Field to sort by
|
|
794
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
795
|
+
# @option opts [String] :search Search term to filter results
|
|
796
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
797
|
+
def list_companies_objects_with_http_info(company_id, opts = {})
|
|
474
798
|
if @api_client.config.debugging
|
|
475
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
799
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_objects ...'
|
|
476
800
|
end
|
|
477
801
|
# verify the required parameter 'company_id' is set
|
|
478
802
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
479
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
803
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_objects"
|
|
804
|
+
end
|
|
805
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
806
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_objects, the character length must be smaller than or equal to 255.'
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
810
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_objects, the character length must be greater than or equal to 1.'
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
814
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
815
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_objects, must conform to the pattern #{pattern}."
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
819
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_objects, must be greater than or equal to 1.'
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
823
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_objects, must be smaller than or equal to 100.'
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
827
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_objects, must be greater than or equal to 1.'
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
allowable_values = ["asc", "desc"]
|
|
831
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
832
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
833
|
+
end
|
|
834
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
835
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_objects, the character length must be smaller than or equal to 255.'
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
839
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_objects, the character length must be greater than or equal to 1.'
|
|
480
840
|
end
|
|
841
|
+
|
|
481
842
|
# resource path
|
|
482
|
-
local_var_path = '/companies/{company_id}/
|
|
843
|
+
local_var_path = '/companies/{company_id}/objects'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
483
844
|
|
|
484
845
|
# query parameters
|
|
485
846
|
query_params = opts[:query_params] || {}
|
|
847
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
848
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
849
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
850
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
851
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
486
852
|
|
|
487
853
|
# header parameters
|
|
488
854
|
header_params = opts[:header_params] || {}
|
|
@@ -496,13 +862,13 @@ module SparteraApiSdk
|
|
|
496
862
|
post_body = opts[:debug_body]
|
|
497
863
|
|
|
498
864
|
# return_type
|
|
499
|
-
return_type = opts[:debug_return_type] || '
|
|
865
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
500
866
|
|
|
501
867
|
# auth_names
|
|
502
868
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
503
869
|
|
|
504
870
|
new_options = opts.merge(
|
|
505
|
-
:operation => :"CompaniesApi.
|
|
871
|
+
:operation => :"CompaniesApi.list_companies_objects",
|
|
506
872
|
:header_params => header_params,
|
|
507
873
|
:query_params => query_params,
|
|
508
874
|
:form_params => form_params,
|
|
@@ -513,37 +879,89 @@ module SparteraApiSdk
|
|
|
513
879
|
|
|
514
880
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
515
881
|
if @api_client.config.debugging
|
|
516
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
882
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_objects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
517
883
|
end
|
|
518
884
|
return data, status_code, headers
|
|
519
885
|
end
|
|
520
886
|
|
|
521
|
-
# Get company request usage data for a specific month.
|
|
522
|
-
# @param company_id [String]
|
|
887
|
+
# Get company request usage data for a specific month.
|
|
888
|
+
# @param company_id [String] Unique identifier for the Company
|
|
523
889
|
# @param [Hash] opts the optional parameters
|
|
524
|
-
# @
|
|
525
|
-
|
|
526
|
-
|
|
890
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
891
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
892
|
+
# @option opts [String] :sort_by Field to sort by
|
|
893
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
894
|
+
# @option opts [String] :search Search term to filter results
|
|
895
|
+
# @return [ListCompaniesAnalyticsAssets200Response]
|
|
896
|
+
def list_companies_requests_usage(company_id, opts = {})
|
|
897
|
+
data, _status_code, _headers = list_companies_requests_usage_with_http_info(company_id, opts)
|
|
527
898
|
data
|
|
528
899
|
end
|
|
529
900
|
|
|
530
|
-
# Get company request usage data for a specific month.
|
|
531
|
-
# @param company_id [String]
|
|
901
|
+
# Get company request usage data for a specific month.
|
|
902
|
+
# @param company_id [String] Unique identifier for the Company
|
|
532
903
|
# @param [Hash] opts the optional parameters
|
|
533
|
-
# @
|
|
534
|
-
|
|
904
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
905
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
906
|
+
# @option opts [String] :sort_by Field to sort by
|
|
907
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
908
|
+
# @option opts [String] :search Search term to filter results
|
|
909
|
+
# @return [Array<(ListCompaniesAnalyticsAssets200Response, Integer, Hash)>] ListCompaniesAnalyticsAssets200Response data, response status code and response headers
|
|
910
|
+
def list_companies_requests_usage_with_http_info(company_id, opts = {})
|
|
535
911
|
if @api_client.config.debugging
|
|
536
|
-
@api_client.config.logger.debug 'Calling API: CompaniesApi.
|
|
912
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.list_companies_requests_usage ...'
|
|
537
913
|
end
|
|
538
914
|
# verify the required parameter 'company_id' is set
|
|
539
915
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
540
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.
|
|
916
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.list_companies_requests_usage"
|
|
917
|
+
end
|
|
918
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
919
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_requests_usage, the character length must be smaller than or equal to 255.'
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
923
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.list_companies_requests_usage, the character length must be greater than or equal to 1.'
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
927
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
928
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.list_companies_requests_usage, must conform to the pattern #{pattern}."
|
|
541
929
|
end
|
|
930
|
+
|
|
931
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
932
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling CompaniesApi.list_companies_requests_usage, must be greater than or equal to 1.'
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
936
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_requests_usage, must be smaller than or equal to 100.'
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
940
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.list_companies_requests_usage, must be greater than or equal to 1.'
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
allowable_values = ["asc", "desc"]
|
|
944
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
945
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
946
|
+
end
|
|
947
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
948
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_requests_usage, the character length must be smaller than or equal to 255.'
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
952
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling CompaniesApi.list_companies_requests_usage, the character length must be greater than or equal to 1.'
|
|
953
|
+
end
|
|
954
|
+
|
|
542
955
|
# resource path
|
|
543
956
|
local_var_path = '/companies/{company_id}/requests/usage'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
544
957
|
|
|
545
958
|
# query parameters
|
|
546
959
|
query_params = opts[:query_params] || {}
|
|
960
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
961
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
962
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
963
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
964
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
547
965
|
|
|
548
966
|
# header parameters
|
|
549
967
|
header_params = opts[:header_params] || {}
|
|
@@ -557,13 +975,13 @@ module SparteraApiSdk
|
|
|
557
975
|
post_body = opts[:debug_body]
|
|
558
976
|
|
|
559
977
|
# return_type
|
|
560
|
-
return_type = opts[:debug_return_type] || '
|
|
978
|
+
return_type = opts[:debug_return_type] || 'ListCompaniesAnalyticsAssets200Response'
|
|
561
979
|
|
|
562
980
|
# auth_names
|
|
563
981
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
564
982
|
|
|
565
983
|
new_options = opts.merge(
|
|
566
|
-
:operation => :"CompaniesApi.
|
|
984
|
+
:operation => :"CompaniesApi.list_companies_requests_usage",
|
|
567
985
|
:header_params => header_params,
|
|
568
986
|
:query_params => query_params,
|
|
569
987
|
:form_params => form_params,
|
|
@@ -574,7 +992,92 @@ module SparteraApiSdk
|
|
|
574
992
|
|
|
575
993
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
576
994
|
if @api_client.config.debugging
|
|
577
|
-
@api_client.config.logger.debug "API called: CompaniesApi#
|
|
995
|
+
@api_client.config.logger.debug "API called: CompaniesApi#list_companies_requests_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
996
|
+
end
|
|
997
|
+
return data, status_code, headers
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# Update an existing company by ID
|
|
1001
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1002
|
+
# @param companies_update [CompaniesUpdate]
|
|
1003
|
+
# @param [Hash] opts the optional parameters
|
|
1004
|
+
# @return [UpdateCompanies200Response]
|
|
1005
|
+
def update_companies(company_id, companies_update, opts = {})
|
|
1006
|
+
data, _status_code, _headers = update_companies_with_http_info(company_id, companies_update, opts)
|
|
1007
|
+
data
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
# Update an existing company by ID
|
|
1011
|
+
# @param company_id [String] Unique identifier for the Company
|
|
1012
|
+
# @param companies_update [CompaniesUpdate]
|
|
1013
|
+
# @param [Hash] opts the optional parameters
|
|
1014
|
+
# @return [Array<(UpdateCompanies200Response, Integer, Hash)>] UpdateCompanies200Response data, response status code and response headers
|
|
1015
|
+
def update_companies_with_http_info(company_id, companies_update, opts = {})
|
|
1016
|
+
if @api_client.config.debugging
|
|
1017
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.update_companies ...'
|
|
1018
|
+
end
|
|
1019
|
+
# verify the required parameter 'company_id' is set
|
|
1020
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
1021
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.update_companies"
|
|
1022
|
+
end
|
|
1023
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
1024
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.update_companies, the character length must be smaller than or equal to 255.'
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
1028
|
+
fail ArgumentError, 'invalid value for "company_id" when calling CompaniesApi.update_companies, the character length must be greater than or equal to 1.'
|
|
1029
|
+
end
|
|
1030
|
+
|
|
1031
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
1032
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
1033
|
+
fail ArgumentError, "invalid value for 'company_id' when calling CompaniesApi.update_companies, must conform to the pattern #{pattern}."
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# verify the required parameter 'companies_update' is set
|
|
1037
|
+
if @api_client.config.client_side_validation && companies_update.nil?
|
|
1038
|
+
fail ArgumentError, "Missing the required parameter 'companies_update' when calling CompaniesApi.update_companies"
|
|
1039
|
+
end
|
|
1040
|
+
# resource path
|
|
1041
|
+
local_var_path = '/companies/{company_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
1042
|
+
|
|
1043
|
+
# query parameters
|
|
1044
|
+
query_params = opts[:query_params] || {}
|
|
1045
|
+
|
|
1046
|
+
# header parameters
|
|
1047
|
+
header_params = opts[:header_params] || {}
|
|
1048
|
+
# HTTP header 'Accept' (if needed)
|
|
1049
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1050
|
+
# HTTP header 'Content-Type'
|
|
1051
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1052
|
+
if !content_type.nil?
|
|
1053
|
+
header_params['Content-Type'] = content_type
|
|
1054
|
+
end
|
|
1055
|
+
|
|
1056
|
+
# form parameters
|
|
1057
|
+
form_params = opts[:form_params] || {}
|
|
1058
|
+
|
|
1059
|
+
# http body (model)
|
|
1060
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(companies_update)
|
|
1061
|
+
|
|
1062
|
+
# return_type
|
|
1063
|
+
return_type = opts[:debug_return_type] || 'UpdateCompanies200Response'
|
|
1064
|
+
|
|
1065
|
+
# auth_names
|
|
1066
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
1067
|
+
|
|
1068
|
+
new_options = opts.merge(
|
|
1069
|
+
:operation => :"CompaniesApi.update_companies",
|
|
1070
|
+
:header_params => header_params,
|
|
1071
|
+
:query_params => query_params,
|
|
1072
|
+
:form_params => form_params,
|
|
1073
|
+
:body => post_body,
|
|
1074
|
+
:auth_names => auth_names,
|
|
1075
|
+
:return_type => return_type
|
|
1076
|
+
)
|
|
1077
|
+
|
|
1078
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1079
|
+
if @api_client.config.debugging
|
|
1080
|
+
@api_client.config.logger.debug "API called: CompaniesApi#update_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
578
1081
|
end
|
|
579
1082
|
return data, status_code, headers
|
|
580
1083
|
end
|