spartera_api_sdk 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +372 -0
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +537 -0
- data/docs/Alerts.md +30 -0
- data/docs/AlertsApi.md +525 -0
- data/docs/AlertsInput.md +24 -0
- data/docs/AlertsUpdate.md +24 -0
- data/docs/ApiKeys.md +40 -0
- data/docs/ApiKeysInput.md +34 -0
- data/docs/ApiKeysUpdate.md +34 -0
- data/docs/AssetPriceHistory.md +30 -0
- data/docs/AssetPriceHistoryApi.md +597 -0
- data/docs/AssetPriceHistoryInput.md +24 -0
- data/docs/AssetPriceHistoryUpdate.md +24 -0
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +142 -0
- data/docs/AssetsApi.md +1197 -0
- data/docs/AssetsInput.md +128 -0
- data/docs/AssetsUpdate.md +128 -0
- data/docs/CloudProviders.md +28 -0
- data/docs/CloudProvidersApi.md +157 -0
- data/docs/CloudProvidersInput.md +22 -0
- data/docs/CloudProvidersUpdate.md +22 -0
- data/docs/Companies.md +46 -0
- data/docs/CompaniesApi.md +805 -0
- data/docs/CompaniesInput.md +40 -0
- data/docs/CompaniesUpdate.md +40 -0
- data/docs/Connections.md +38 -0
- data/docs/ConnectionsApi.md +607 -0
- data/docs/ConnectionsInput.md +32 -0
- data/docs/ConnectionsUpdate.md +32 -0
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/CreateAlerts200ResponseData.md +18 -0
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/CreateApiKeys200ResponseData.md +18 -0
- data/docs/CreateAssetPriceHistory200Response.md +20 -0
- data/docs/CreateAssetPriceHistory200ResponseData.md +18 -0
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/CreateAssetsAnalyze200ResponseData.md +18 -0
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/CreateConnections200ResponseData.md +18 -0
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/CreateFavorites200ResponseData.md +18 -0
- 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/CreateUsers200ResponseData.md +18 -0
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/DeleteAlerts200ResponseData.md +18 -0
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/DeleteApiKeys200ResponseData.md +18 -0
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/DeleteAssetPriceHistory200ResponseData.md +18 -0
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/DeleteAssets200ResponseData.md +18 -0
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/DeleteConnections200ResponseData.md +18 -0
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/DeleteFavorites200ResponseData.md +18 -0
- 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/DeleteUsers200ResponseData.md +18 -0
- data/docs/Endpoints.md +96 -0
- data/docs/EndpointsApi.md +1189 -0
- data/docs/EndpointsInput.md +94 -0
- data/docs/EndpointsUpdate.md +94 -0
- data/docs/Error.md +24 -0
- data/docs/Favorites.md +34 -0
- data/docs/FavoritesApi.md +597 -0
- data/docs/FavoritesInput.md +28 -0
- data/docs/FavoritesUpdate.md +28 -0
- data/docs/GetAlertsById200Response.md +20 -0
- data/docs/GetApiKeysById200Response.md +20 -0
- data/docs/GetAssetPriceHistoryById200Response.md +20 -0
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/GetAssetsByIdAnalyze200Response.md +20 -0
- data/docs/GetCloudProvidersById200Response.md +20 -0
- data/docs/GetCompaniesById200Response.md +20 -0
- data/docs/GetConnectionsById200Response.md +20 -0
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/GetFavoritesById200Response.md +20 -0
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/GetJobFunctionsById200Response.md +20 -0
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/GetUsersById200Response.md +20 -0
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject.md +22 -0
- data/docs/InlineObject1.md +20 -0
- data/docs/InlineObject2.md +20 -0
- data/docs/InlineObject3.md +20 -0
- data/docs/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 +24 -0
- data/docs/JobFunctionsApi.md +157 -0
- data/docs/JobFunctionsInput.md +18 -0
- data/docs/JobFunctionsUpdate.md +18 -0
- data/docs/ListApiKeys200Response.md +20 -0
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/ListAssets200Response.md +20 -0
- data/docs/ListCloudProviders200Response.md +20 -0
- data/docs/ListCompaniesAnalyticsAssets200Response.md +20 -0
- data/docs/ListConnections200Response.md +20 -0
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/ListJobFunctions200Response.md +20 -0
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/ListUsers200Response.md +20 -0
- 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 +161 -0
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/UpdateAlerts200ResponseData.md +18 -0
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/UpdateApiKeys200ResponseData.md +18 -0
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/UpdateAssetPriceHistory200ResponseData.md +18 -0
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/UpdateAssets200ResponseData.md +18 -0
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/UpdateCompanies200ResponseData.md +18 -0
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/UpdateConnections200ResponseData.md +18 -0
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/UpdateFavorites200ResponseData.md +18 -0
- 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/UpdateUsers200ResponseData.md +18 -0
- data/docs/Users.md +36 -0
- data/docs/UsersApi.md +639 -0
- data/docs/UsersInput.md +30 -0
- data/docs/UsersUpdate.md +30 -0
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +790 -0
- data/lib/spartera_api_sdk/api/api_keys_api.rb +746 -0
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +867 -0
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +1554 -0
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +190 -0
- data/lib/spartera_api_sdk/api/companies_api.rb +1085 -0
- data/lib/spartera_api_sdk/api/connections_api.rb +828 -0
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1613 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +870 -0
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +190 -0
- 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 +228 -0
- data/lib/spartera_api_sdk/api/users_api.rb +891 -0
- data/lib/spartera_api_sdk/api_client.rb +397 -0
- data/lib/spartera_api_sdk/api_error.rb +58 -0
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +312 -0
- data/lib/spartera_api_sdk/models/alerts.rb +260 -0
- data/lib/spartera_api_sdk/models/alerts_input.rb +213 -0
- data/lib/spartera_api_sdk/models/alerts_update.rb +179 -0
- data/lib/spartera_api_sdk/models/api_keys.rb +344 -0
- data/lib/spartera_api_sdk/models/api_keys_input.rb +263 -0
- data/lib/spartera_api_sdk/models/api_keys_update.rb +229 -0
- data/lib/spartera_api_sdk/models/asset_price_history.rb +209 -0
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +1068 -0
- data/lib/spartera_api_sdk/models/assets_input.rb +918 -0
- data/lib/spartera_api_sdk/models/assets_update.rb +877 -0
- data/lib/spartera_api_sdk/models/cloud_providers.rb +216 -0
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +186 -0
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +169 -0
- data/lib/spartera_api_sdk/models/companies.rb +374 -0
- data/lib/spartera_api_sdk/models/companies_input.rb +327 -0
- data/lib/spartera_api_sdk/models/companies_update.rb +293 -0
- data/lib/spartera_api_sdk/models/connections.rb +317 -0
- data/lib/spartera_api_sdk/models/connections_input.rb +287 -0
- data/lib/spartera_api_sdk/models/connections_update.rb +253 -0
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +165 -0
- 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/create_favorites200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +191 -0
- 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/create_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +165 -0
- 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/delete_favorites200_response_data.rb +165 -0
- 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/delete_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/endpoints.rb +788 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +686 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +635 -0
- data/lib/spartera_api_sdk/models/error.rb +212 -0
- data/lib/spartera_api_sdk/models/favorites.rb +280 -0
- data/lib/spartera_api_sdk/models/favorites_input.rb +233 -0
- data/lib/spartera_api_sdk/models/favorites_update.rb +199 -0
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +191 -0
- 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/get_postgen_integrations_by_id200_response.rb +191 -0
- 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/get_users_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +167 -0
- data/lib/spartera_api_sdk/models/inline_object1.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object2.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object3.rb +156 -0
- 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/inline_object6.rb +166 -0
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +213 -0
- data/lib/spartera_api_sdk/models/job_functions_input.rb +166 -0
- data/lib/spartera_api_sdk/models/job_functions_update.rb +149 -0
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +193 -0
- 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/update_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +165 -0
- 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/update_favorites200_response_data.rb +165 -0
- 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/update_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/users.rb +331 -0
- data/lib/spartera_api_sdk/models/users_input.rb +260 -0
- data/lib/spartera_api_sdk/models/users_update.rb +243 -0
- data/lib/spartera_api_sdk/version.rb +15 -0
- data/lib/spartera_api_sdk.rb +201 -0
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +126 -0
- data/spec/api/api_keys_api_spec.rb +130 -0
- data/spec/api/asset_price_history_api_spec.rb +138 -0
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +243 -0
- data/spec/api/cloud_providers_api_spec.rb +61 -0
- data/spec/api/companies_api_spec.rb +186 -0
- data/spec/api/connections_api_spec.rb +141 -0
- data/spec/api/endpoints_api_spec.rb +240 -0
- data/spec/api/favorites_api_spec.rb +138 -0
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +61 -0
- 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 +63 -0
- data/spec/api/users_api_spec.rb +154 -0
- data/spec/models/alerts_input_spec.rb +54 -0
- data/spec/models/alerts_spec.rb +72 -0
- data/spec/models/alerts_update_spec.rb +54 -0
- data/spec/models/api_keys_input_spec.rb +84 -0
- data/spec/models/api_keys_spec.rb +102 -0
- data/spec/models/api_keys_update_spec.rb +84 -0
- data/spec/models/asset_price_history_input_spec.rb +54 -0
- data/spec/models/asset_price_history_spec.rb +72 -0
- data/spec/models/asset_price_history_update_spec.rb +54 -0
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +418 -0
- data/spec/models/assets_spec.rb +464 -0
- data/spec/models/assets_update_spec.rb +418 -0
- data/spec/models/cloud_providers_input_spec.rb +48 -0
- data/spec/models/cloud_providers_spec.rb +66 -0
- data/spec/models/cloud_providers_update_spec.rb +48 -0
- data/spec/models/companies_input_spec.rb +106 -0
- data/spec/models/companies_spec.rb +124 -0
- data/spec/models/companies_update_spec.rb +106 -0
- data/spec/models/connections_input_spec.rb +82 -0
- data/spec/models/connections_spec.rb +100 -0
- data/spec/models/connections_update_spec.rb +82 -0
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/create_api_keys200_response_data_spec.rb +36 -0
- 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/create_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/create_assets_analyze200_response_data_spec.rb +36 -0
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/create_connections200_response_data_spec.rb +36 -0
- data/spec/models/create_connections200_response_spec.rb +42 -0
- 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/create_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/create_users200_response_data_spec.rb +36 -0
- 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/delete_assets200_response_data_spec.rb +36 -0
- 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/delete_users200_response_data_spec.rb +36 -0
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +292 -0
- data/spec/models/endpoints_spec.rb +298 -0
- data/spec/models/endpoints_update_spec.rb +292 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/favorites_input_spec.rb +66 -0
- data/spec/models/favorites_spec.rb +84 -0
- data/spec/models/favorites_update_spec.rb +66 -0
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_api_keys_by_id200_response_spec.rb +42 -0
- 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/get_cloud_providers_by_id200_response_spec.rb +42 -0
- 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/get_endpoints_by_id_connections_describe200_response_spec.rb +42 -0
- 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/get_postgen_integrations_by_id200_response_spec.rb +42 -0
- 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 +42 -0
- data/spec/models/inline_object2_spec.rb +42 -0
- data/spec/models/inline_object3_spec.rb +42 -0
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/inline_object6_spec.rb +48 -0
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +48 -0
- data/spec/models/job_functions_input_spec.rb +36 -0
- data/spec/models/job_functions_spec.rb +54 -0
- data/spec/models/job_functions_update_spec.rb +36 -0
- 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/list_companies_analytics_assets200_response_spec.rb +42 -0
- 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/update_companies200_response_data_spec.rb +36 -0
- 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/update_users200_response_data_spec.rb +36 -0
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +76 -0
- data/spec/models/users_spec.rb +94 -0
- data/spec/models/users_update_spec.rb +76 -0
- data/spec/spec_helper.rb +111 -0
- metadata +742 -0
|
@@ -0,0 +1,1068 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spartera API Documentation
|
|
3
|
+
|
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
|
+
Contact: support@spartera.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SparteraApiSdk
|
|
17
|
+
# A published analytics asset — a calculation or visualization built on a data connection
|
|
18
|
+
class Assets < ApiModelBase
|
|
19
|
+
# Optional.
|
|
20
|
+
attr_accessor :date_created
|
|
21
|
+
|
|
22
|
+
# Optional.
|
|
23
|
+
attr_accessor :last_updated
|
|
24
|
+
|
|
25
|
+
# Unique identifier.
|
|
26
|
+
attr_accessor :asset_id
|
|
27
|
+
|
|
28
|
+
# References users.user_id — An individual user account within a company. See GET /users for valid values. Optional.
|
|
29
|
+
attr_accessor :user_id
|
|
30
|
+
|
|
31
|
+
# References companies.company_id — A Spartera seller or buyer company account. See GET /companies for valid values. Required.
|
|
32
|
+
attr_accessor :company_id
|
|
33
|
+
|
|
34
|
+
# Optional.
|
|
35
|
+
attr_accessor :connection_id
|
|
36
|
+
|
|
37
|
+
# References connections.connection_id — Secure connections from Spartera to your databases and data warehouses. See GET /connections for valid values. Optional.
|
|
38
|
+
attr_accessor :llm_connection_id
|
|
39
|
+
|
|
40
|
+
# References snippets.snippet_id — Predefined code snippets to accelerate insight creation. See GET /snippets for valid values. Optional.
|
|
41
|
+
attr_accessor :snippet_id
|
|
42
|
+
|
|
43
|
+
# References industries.industry_id — Available industry categories for asset classification. Based on US NAISC codes.. See GET /industries for valid values. Optional.
|
|
44
|
+
attr_accessor :industry_id
|
|
45
|
+
|
|
46
|
+
# Links to the AutoInsights job that created this asset
|
|
47
|
+
attr_accessor :ai_job_id
|
|
48
|
+
|
|
49
|
+
# Primary use case for this asset, from clustering analysis
|
|
50
|
+
attr_accessor :auc_id
|
|
51
|
+
|
|
52
|
+
# Optional identifier for routing to specific functions/models at seller endpoint. For GET: appended to URL path. For POST: included in JSON body.
|
|
53
|
+
attr_accessor :function_id
|
|
54
|
+
|
|
55
|
+
# Approval status for AI-generated assets
|
|
56
|
+
attr_accessor :approval_status
|
|
57
|
+
|
|
58
|
+
# User who approved this asset for marketplace
|
|
59
|
+
attr_accessor :approved_by_user_id
|
|
60
|
+
|
|
61
|
+
# When this asset was approved for marketplace
|
|
62
|
+
attr_accessor :approved_at
|
|
63
|
+
|
|
64
|
+
# Required.
|
|
65
|
+
attr_accessor :name
|
|
66
|
+
|
|
67
|
+
# Optional.
|
|
68
|
+
attr_accessor :slug
|
|
69
|
+
|
|
70
|
+
# Optional.
|
|
71
|
+
attr_accessor :description
|
|
72
|
+
|
|
73
|
+
# Long-form HTML description for product pages and SEO
|
|
74
|
+
attr_accessor :detailed_description
|
|
75
|
+
|
|
76
|
+
# Required. One of: MANUAL, AUTOMATIC.
|
|
77
|
+
attr_accessor :source
|
|
78
|
+
|
|
79
|
+
# Optional. One of: CALCULATION, VISUALIZATION, DATA.
|
|
80
|
+
attr_accessor :asset_type
|
|
81
|
+
|
|
82
|
+
# Stores database table schema data including columns, types, and metadata
|
|
83
|
+
attr_accessor :asset_schema
|
|
84
|
+
|
|
85
|
+
# Optional. One of: PRIVATE, SHARED.
|
|
86
|
+
attr_accessor :visibility
|
|
87
|
+
|
|
88
|
+
# Optional.
|
|
89
|
+
attr_accessor :tags
|
|
90
|
+
|
|
91
|
+
# Top 3 questions this asset can help answer, in English. Stored as JSON array of strings (1-3 items, 15-200 chars each). Required for marketplace assets.
|
|
92
|
+
attr_accessor :top_questions
|
|
93
|
+
|
|
94
|
+
# Short code for tera.ac URL shortener (e.g., 'f78zq1')
|
|
95
|
+
attr_accessor :short_code
|
|
96
|
+
|
|
97
|
+
# Semicolon or comma-separated list of domains restricted from accessing this asset
|
|
98
|
+
attr_accessor :restricted_domains
|
|
99
|
+
|
|
100
|
+
# Optional.
|
|
101
|
+
attr_accessor :sql_logic
|
|
102
|
+
|
|
103
|
+
# Optional.
|
|
104
|
+
attr_accessor :source_schema_name
|
|
105
|
+
|
|
106
|
+
# Optional.
|
|
107
|
+
attr_accessor :source_table_name
|
|
108
|
+
|
|
109
|
+
# Required.
|
|
110
|
+
attr_accessor :sell_in_marketplace
|
|
111
|
+
|
|
112
|
+
# Whether this asset requires customization before use
|
|
113
|
+
attr_accessor :require_customization
|
|
114
|
+
|
|
115
|
+
# Plotly figure JSON describing the visualization. Authored via the visual editor or via API. When populated, takes precedence over the legacy viz_* fields. Shape follows Plotly's figure schema: {data: [{type: '...', xsrc: '...', ...}], layout: {...}}. Column references use *src keys (xsrc, ysrc, labelssrc, etc.) and are hydrated with actual data at render time.
|
|
116
|
+
attr_accessor :viz_spec
|
|
117
|
+
|
|
118
|
+
# Optional. One of: PLOTLY, MATPLOTLIB, SEABORN.
|
|
119
|
+
attr_accessor :viz_chart_library
|
|
120
|
+
|
|
121
|
+
# Optional. One of: LINE, BAR, PIE, DOUGHNUT, POLAR, … (8 total).
|
|
122
|
+
attr_accessor :viz_chart_type
|
|
123
|
+
|
|
124
|
+
# Optional.
|
|
125
|
+
attr_accessor :viz_dep_var_col_name
|
|
126
|
+
|
|
127
|
+
# Optional.
|
|
128
|
+
attr_accessor :viz_indep_var_col_name
|
|
129
|
+
|
|
130
|
+
# Optional.
|
|
131
|
+
attr_accessor :viz_size_col_name
|
|
132
|
+
|
|
133
|
+
# Optional.
|
|
134
|
+
attr_accessor :viz_color_col_name
|
|
135
|
+
|
|
136
|
+
# Optional. One of: No Aggregation, Sum, Average, Count, Minimum, … (6 total).
|
|
137
|
+
attr_accessor :viz_data_aggregation
|
|
138
|
+
|
|
139
|
+
# Optional. One of: No Sorting, Ascending, Descending.
|
|
140
|
+
attr_accessor :viz_sort_direction
|
|
141
|
+
|
|
142
|
+
# Optional.
|
|
143
|
+
attr_accessor :viz_data_limit
|
|
144
|
+
|
|
145
|
+
# Optional. One of: Default, Sequential, Diverging, Categorical, Monochrome, … (8 total).
|
|
146
|
+
attr_accessor :viz_color_scheme
|
|
147
|
+
|
|
148
|
+
# Show/hide chart legend
|
|
149
|
+
attr_accessor :viz_show_legend
|
|
150
|
+
|
|
151
|
+
# Show/hide grid lines
|
|
152
|
+
attr_accessor :viz_show_grid
|
|
153
|
+
|
|
154
|
+
# Show trendline for scatter/line charts
|
|
155
|
+
attr_accessor :viz_show_trendline
|
|
156
|
+
|
|
157
|
+
# Enable smoothing for line charts
|
|
158
|
+
attr_accessor :viz_line_smoothing
|
|
159
|
+
|
|
160
|
+
# Stack bars instead of grouping
|
|
161
|
+
attr_accessor :viz_bar_stacked
|
|
162
|
+
|
|
163
|
+
# Whether data_limit shows TOP or BOTTOM N
|
|
164
|
+
attr_accessor :viz_filter_direction
|
|
165
|
+
|
|
166
|
+
# Required.
|
|
167
|
+
attr_accessor :allow_params
|
|
168
|
+
|
|
169
|
+
# Required.
|
|
170
|
+
attr_accessor :accept_terms
|
|
171
|
+
|
|
172
|
+
# Optional.
|
|
173
|
+
attr_accessor :cached
|
|
174
|
+
|
|
175
|
+
# Optional.
|
|
176
|
+
attr_accessor :schedule
|
|
177
|
+
|
|
178
|
+
# Optional.
|
|
179
|
+
attr_accessor :next_run
|
|
180
|
+
|
|
181
|
+
# Start date of the data time period covered
|
|
182
|
+
attr_accessor :data_time_period_start
|
|
183
|
+
|
|
184
|
+
# End date of the data time period covered
|
|
185
|
+
attr_accessor :data_time_period_end
|
|
186
|
+
|
|
187
|
+
# When the seller began actively collecting this data. Distinct from data_time_period_start, which describes when the records themselves begin. Backfilled historical data will have date_collection_start > data_time_period_start.
|
|
188
|
+
attr_accessor :date_collection_start
|
|
189
|
+
|
|
190
|
+
# Type of geographic coverage
|
|
191
|
+
attr_accessor :geographic_coverage_type
|
|
192
|
+
|
|
193
|
+
# Specific regions/countries covered (e.g., 'United States, Canada, Mexico')
|
|
194
|
+
attr_accessor :geographic_coverage_details
|
|
195
|
+
|
|
196
|
+
# How often the source data is refreshed
|
|
197
|
+
attr_accessor :data_source_refresh_frequency
|
|
198
|
+
|
|
199
|
+
# Number of requests allowed per period (e.g., 100)
|
|
200
|
+
attr_accessor :rate_limit_number
|
|
201
|
+
|
|
202
|
+
# Time period for rate limiting (second, minute, hour, day)
|
|
203
|
+
attr_accessor :rate_limit_period
|
|
204
|
+
|
|
205
|
+
# Granularity level for rate limiting (USER, COMPANY, IP)
|
|
206
|
+
attr_accessor :rate_limit_granularity
|
|
207
|
+
|
|
208
|
+
class EnumAttributeValidator
|
|
209
|
+
attr_reader :datatype
|
|
210
|
+
attr_reader :allowable_values
|
|
211
|
+
|
|
212
|
+
def initialize(datatype, allowable_values)
|
|
213
|
+
@allowable_values = allowable_values.map do |value|
|
|
214
|
+
case datatype.to_s
|
|
215
|
+
when /Integer/i
|
|
216
|
+
value.to_i
|
|
217
|
+
when /Float/i
|
|
218
|
+
value.to_f
|
|
219
|
+
else
|
|
220
|
+
value
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
def valid?(value)
|
|
226
|
+
!value || allowable_values.include?(value)
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
231
|
+
def self.attribute_map
|
|
232
|
+
{
|
|
233
|
+
:'date_created' => :'date_created',
|
|
234
|
+
:'last_updated' => :'last_updated',
|
|
235
|
+
:'asset_id' => :'asset_id',
|
|
236
|
+
:'user_id' => :'user_id',
|
|
237
|
+
:'company_id' => :'company_id',
|
|
238
|
+
:'connection_id' => :'connection_id',
|
|
239
|
+
:'llm_connection_id' => :'llm_connection_id',
|
|
240
|
+
:'snippet_id' => :'snippet_id',
|
|
241
|
+
:'industry_id' => :'industry_id',
|
|
242
|
+
:'ai_job_id' => :'ai_job_id',
|
|
243
|
+
:'auc_id' => :'auc_id',
|
|
244
|
+
:'function_id' => :'function_id',
|
|
245
|
+
:'approval_status' => :'approval_status',
|
|
246
|
+
:'approved_by_user_id' => :'approved_by_user_id',
|
|
247
|
+
:'approved_at' => :'approved_at',
|
|
248
|
+
:'name' => :'name',
|
|
249
|
+
:'slug' => :'slug',
|
|
250
|
+
:'description' => :'description',
|
|
251
|
+
:'detailed_description' => :'detailed_description',
|
|
252
|
+
:'source' => :'source',
|
|
253
|
+
:'asset_type' => :'asset_type',
|
|
254
|
+
:'asset_schema' => :'asset_schema',
|
|
255
|
+
:'visibility' => :'visibility',
|
|
256
|
+
:'tags' => :'tags',
|
|
257
|
+
:'top_questions' => :'top_questions',
|
|
258
|
+
:'short_code' => :'short_code',
|
|
259
|
+
:'restricted_domains' => :'restricted_domains',
|
|
260
|
+
:'sql_logic' => :'sql_logic',
|
|
261
|
+
:'source_schema_name' => :'source_schema_name',
|
|
262
|
+
:'source_table_name' => :'source_table_name',
|
|
263
|
+
:'sell_in_marketplace' => :'sell_in_marketplace',
|
|
264
|
+
:'require_customization' => :'require_customization',
|
|
265
|
+
:'viz_spec' => :'viz_spec',
|
|
266
|
+
:'viz_chart_library' => :'viz_chart_library',
|
|
267
|
+
:'viz_chart_type' => :'viz_chart_type',
|
|
268
|
+
:'viz_dep_var_col_name' => :'viz_dep_var_col_name',
|
|
269
|
+
:'viz_indep_var_col_name' => :'viz_indep_var_col_name',
|
|
270
|
+
:'viz_size_col_name' => :'viz_size_col_name',
|
|
271
|
+
:'viz_color_col_name' => :'viz_color_col_name',
|
|
272
|
+
:'viz_data_aggregation' => :'viz_data_aggregation',
|
|
273
|
+
:'viz_sort_direction' => :'viz_sort_direction',
|
|
274
|
+
:'viz_data_limit' => :'viz_data_limit',
|
|
275
|
+
:'viz_color_scheme' => :'viz_color_scheme',
|
|
276
|
+
:'viz_show_legend' => :'viz_show_legend',
|
|
277
|
+
:'viz_show_grid' => :'viz_show_grid',
|
|
278
|
+
:'viz_show_trendline' => :'viz_show_trendline',
|
|
279
|
+
:'viz_line_smoothing' => :'viz_line_smoothing',
|
|
280
|
+
:'viz_bar_stacked' => :'viz_bar_stacked',
|
|
281
|
+
:'viz_filter_direction' => :'viz_filter_direction',
|
|
282
|
+
:'allow_params' => :'allow_params',
|
|
283
|
+
:'accept_terms' => :'accept_terms',
|
|
284
|
+
:'cached' => :'cached',
|
|
285
|
+
:'schedule' => :'schedule',
|
|
286
|
+
:'next_run' => :'next_run',
|
|
287
|
+
:'data_time_period_start' => :'data_time_period_start',
|
|
288
|
+
:'data_time_period_end' => :'data_time_period_end',
|
|
289
|
+
:'date_collection_start' => :'date_collection_start',
|
|
290
|
+
:'geographic_coverage_type' => :'geographic_coverage_type',
|
|
291
|
+
:'geographic_coverage_details' => :'geographic_coverage_details',
|
|
292
|
+
:'data_source_refresh_frequency' => :'data_source_refresh_frequency',
|
|
293
|
+
:'rate_limit_number' => :'rate_limit_number',
|
|
294
|
+
:'rate_limit_period' => :'rate_limit_period',
|
|
295
|
+
:'rate_limit_granularity' => :'rate_limit_granularity'
|
|
296
|
+
}
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# Returns attribute mapping this model knows about
|
|
300
|
+
def self.acceptable_attribute_map
|
|
301
|
+
attribute_map
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Returns all the JSON keys this model knows about
|
|
305
|
+
def self.acceptable_attributes
|
|
306
|
+
acceptable_attribute_map.values
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Attribute type mapping.
|
|
310
|
+
def self.openapi_types
|
|
311
|
+
{
|
|
312
|
+
:'date_created' => :'Time',
|
|
313
|
+
:'last_updated' => :'Time',
|
|
314
|
+
:'asset_id' => :'String',
|
|
315
|
+
:'user_id' => :'String',
|
|
316
|
+
:'company_id' => :'String',
|
|
317
|
+
:'connection_id' => :'String',
|
|
318
|
+
:'llm_connection_id' => :'String',
|
|
319
|
+
:'snippet_id' => :'Integer',
|
|
320
|
+
:'industry_id' => :'Integer',
|
|
321
|
+
:'ai_job_id' => :'String',
|
|
322
|
+
:'auc_id' => :'Integer',
|
|
323
|
+
:'function_id' => :'String',
|
|
324
|
+
:'approval_status' => :'String',
|
|
325
|
+
:'approved_by_user_id' => :'String',
|
|
326
|
+
:'approved_at' => :'Time',
|
|
327
|
+
:'name' => :'String',
|
|
328
|
+
:'slug' => :'String',
|
|
329
|
+
:'description' => :'String',
|
|
330
|
+
:'detailed_description' => :'String',
|
|
331
|
+
:'source' => :'String',
|
|
332
|
+
:'asset_type' => :'String',
|
|
333
|
+
:'asset_schema' => :'Object',
|
|
334
|
+
:'visibility' => :'String',
|
|
335
|
+
:'tags' => :'String',
|
|
336
|
+
:'top_questions' => :'String',
|
|
337
|
+
:'short_code' => :'String',
|
|
338
|
+
:'restricted_domains' => :'String',
|
|
339
|
+
:'sql_logic' => :'String',
|
|
340
|
+
:'source_schema_name' => :'String',
|
|
341
|
+
:'source_table_name' => :'String',
|
|
342
|
+
:'sell_in_marketplace' => :'Boolean',
|
|
343
|
+
:'require_customization' => :'Boolean',
|
|
344
|
+
:'viz_spec' => :'Object',
|
|
345
|
+
:'viz_chart_library' => :'String',
|
|
346
|
+
:'viz_chart_type' => :'String',
|
|
347
|
+
:'viz_dep_var_col_name' => :'String',
|
|
348
|
+
:'viz_indep_var_col_name' => :'String',
|
|
349
|
+
:'viz_size_col_name' => :'String',
|
|
350
|
+
:'viz_color_col_name' => :'String',
|
|
351
|
+
:'viz_data_aggregation' => :'String',
|
|
352
|
+
:'viz_sort_direction' => :'String',
|
|
353
|
+
:'viz_data_limit' => :'Integer',
|
|
354
|
+
:'viz_color_scheme' => :'String',
|
|
355
|
+
:'viz_show_legend' => :'Boolean',
|
|
356
|
+
:'viz_show_grid' => :'Boolean',
|
|
357
|
+
:'viz_show_trendline' => :'Boolean',
|
|
358
|
+
:'viz_line_smoothing' => :'Boolean',
|
|
359
|
+
:'viz_bar_stacked' => :'Boolean',
|
|
360
|
+
:'viz_filter_direction' => :'String',
|
|
361
|
+
:'allow_params' => :'Boolean',
|
|
362
|
+
:'accept_terms' => :'Boolean',
|
|
363
|
+
:'cached' => :'Boolean',
|
|
364
|
+
:'schedule' => :'String',
|
|
365
|
+
:'next_run' => :'Time',
|
|
366
|
+
:'data_time_period_start' => :'Time',
|
|
367
|
+
:'data_time_period_end' => :'Time',
|
|
368
|
+
:'date_collection_start' => :'Time',
|
|
369
|
+
:'geographic_coverage_type' => :'String',
|
|
370
|
+
:'geographic_coverage_details' => :'String',
|
|
371
|
+
:'data_source_refresh_frequency' => :'String',
|
|
372
|
+
:'rate_limit_number' => :'Integer',
|
|
373
|
+
:'rate_limit_period' => :'String',
|
|
374
|
+
:'rate_limit_granularity' => :'String'
|
|
375
|
+
}
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# List of attributes with nullable: true
|
|
379
|
+
def self.openapi_nullable
|
|
380
|
+
Set.new([
|
|
381
|
+
])
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Initializes the object
|
|
385
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
386
|
+
def initialize(attributes = {})
|
|
387
|
+
if (!attributes.is_a?(Hash))
|
|
388
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::Assets` initialize method"
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
392
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
393
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
394
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
395
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::Assets`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
396
|
+
end
|
|
397
|
+
h[k.to_sym] = v
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if attributes.key?(:'date_created')
|
|
401
|
+
self.date_created = attributes[:'date_created']
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
if attributes.key?(:'last_updated')
|
|
405
|
+
self.last_updated = attributes[:'last_updated']
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if attributes.key?(:'asset_id')
|
|
409
|
+
self.asset_id = attributes[:'asset_id']
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'user_id')
|
|
413
|
+
self.user_id = attributes[:'user_id']
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
if attributes.key?(:'company_id')
|
|
417
|
+
self.company_id = attributes[:'company_id']
|
|
418
|
+
else
|
|
419
|
+
self.company_id = nil
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
if attributes.key?(:'connection_id')
|
|
423
|
+
self.connection_id = attributes[:'connection_id']
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
if attributes.key?(:'llm_connection_id')
|
|
427
|
+
self.llm_connection_id = attributes[:'llm_connection_id']
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
if attributes.key?(:'snippet_id')
|
|
431
|
+
self.snippet_id = attributes[:'snippet_id']
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
if attributes.key?(:'industry_id')
|
|
435
|
+
self.industry_id = attributes[:'industry_id']
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
if attributes.key?(:'ai_job_id')
|
|
439
|
+
self.ai_job_id = attributes[:'ai_job_id']
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
if attributes.key?(:'auc_id')
|
|
443
|
+
self.auc_id = attributes[:'auc_id']
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
if attributes.key?(:'function_id')
|
|
447
|
+
self.function_id = attributes[:'function_id']
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
if attributes.key?(:'approval_status')
|
|
451
|
+
self.approval_status = attributes[:'approval_status']
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
if attributes.key?(:'approved_by_user_id')
|
|
455
|
+
self.approved_by_user_id = attributes[:'approved_by_user_id']
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
if attributes.key?(:'approved_at')
|
|
459
|
+
self.approved_at = attributes[:'approved_at']
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
if attributes.key?(:'name')
|
|
463
|
+
self.name = attributes[:'name']
|
|
464
|
+
else
|
|
465
|
+
self.name = nil
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
if attributes.key?(:'slug')
|
|
469
|
+
self.slug = attributes[:'slug']
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
if attributes.key?(:'description')
|
|
473
|
+
self.description = attributes[:'description']
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
if attributes.key?(:'detailed_description')
|
|
477
|
+
self.detailed_description = attributes[:'detailed_description']
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
if attributes.key?(:'source')
|
|
481
|
+
self.source = attributes[:'source']
|
|
482
|
+
else
|
|
483
|
+
self.source = nil
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
if attributes.key?(:'asset_type')
|
|
487
|
+
self.asset_type = attributes[:'asset_type']
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
if attributes.key?(:'asset_schema')
|
|
491
|
+
self.asset_schema = attributes[:'asset_schema']
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
if attributes.key?(:'visibility')
|
|
495
|
+
self.visibility = attributes[:'visibility']
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
if attributes.key?(:'tags')
|
|
499
|
+
self.tags = attributes[:'tags']
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
if attributes.key?(:'top_questions')
|
|
503
|
+
self.top_questions = attributes[:'top_questions']
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
if attributes.key?(:'short_code')
|
|
507
|
+
self.short_code = attributes[:'short_code']
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
if attributes.key?(:'restricted_domains')
|
|
511
|
+
self.restricted_domains = attributes[:'restricted_domains']
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
if attributes.key?(:'sql_logic')
|
|
515
|
+
self.sql_logic = attributes[:'sql_logic']
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
if attributes.key?(:'source_schema_name')
|
|
519
|
+
self.source_schema_name = attributes[:'source_schema_name']
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
if attributes.key?(:'source_table_name')
|
|
523
|
+
self.source_table_name = attributes[:'source_table_name']
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
if attributes.key?(:'sell_in_marketplace')
|
|
527
|
+
self.sell_in_marketplace = attributes[:'sell_in_marketplace']
|
|
528
|
+
else
|
|
529
|
+
self.sell_in_marketplace = nil
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
if attributes.key?(:'require_customization')
|
|
533
|
+
self.require_customization = attributes[:'require_customization']
|
|
534
|
+
else
|
|
535
|
+
self.require_customization = nil
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
if attributes.key?(:'viz_spec')
|
|
539
|
+
self.viz_spec = attributes[:'viz_spec']
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
if attributes.key?(:'viz_chart_library')
|
|
543
|
+
self.viz_chart_library = attributes[:'viz_chart_library']
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
if attributes.key?(:'viz_chart_type')
|
|
547
|
+
self.viz_chart_type = attributes[:'viz_chart_type']
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
if attributes.key?(:'viz_dep_var_col_name')
|
|
551
|
+
self.viz_dep_var_col_name = attributes[:'viz_dep_var_col_name']
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
if attributes.key?(:'viz_indep_var_col_name')
|
|
555
|
+
self.viz_indep_var_col_name = attributes[:'viz_indep_var_col_name']
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
if attributes.key?(:'viz_size_col_name')
|
|
559
|
+
self.viz_size_col_name = attributes[:'viz_size_col_name']
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
if attributes.key?(:'viz_color_col_name')
|
|
563
|
+
self.viz_color_col_name = attributes[:'viz_color_col_name']
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
if attributes.key?(:'viz_data_aggregation')
|
|
567
|
+
self.viz_data_aggregation = attributes[:'viz_data_aggregation']
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
if attributes.key?(:'viz_sort_direction')
|
|
571
|
+
self.viz_sort_direction = attributes[:'viz_sort_direction']
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
if attributes.key?(:'viz_data_limit')
|
|
575
|
+
self.viz_data_limit = attributes[:'viz_data_limit']
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
if attributes.key?(:'viz_color_scheme')
|
|
579
|
+
self.viz_color_scheme = attributes[:'viz_color_scheme']
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if attributes.key?(:'viz_show_legend')
|
|
583
|
+
self.viz_show_legend = attributes[:'viz_show_legend']
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
if attributes.key?(:'viz_show_grid')
|
|
587
|
+
self.viz_show_grid = attributes[:'viz_show_grid']
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
if attributes.key?(:'viz_show_trendline')
|
|
591
|
+
self.viz_show_trendline = attributes[:'viz_show_trendline']
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
if attributes.key?(:'viz_line_smoothing')
|
|
595
|
+
self.viz_line_smoothing = attributes[:'viz_line_smoothing']
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
if attributes.key?(:'viz_bar_stacked')
|
|
599
|
+
self.viz_bar_stacked = attributes[:'viz_bar_stacked']
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
if attributes.key?(:'viz_filter_direction')
|
|
603
|
+
self.viz_filter_direction = attributes[:'viz_filter_direction']
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
if attributes.key?(:'allow_params')
|
|
607
|
+
self.allow_params = attributes[:'allow_params']
|
|
608
|
+
else
|
|
609
|
+
self.allow_params = nil
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
if attributes.key?(:'accept_terms')
|
|
613
|
+
self.accept_terms = attributes[:'accept_terms']
|
|
614
|
+
else
|
|
615
|
+
self.accept_terms = nil
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
if attributes.key?(:'cached')
|
|
619
|
+
self.cached = attributes[:'cached']
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
if attributes.key?(:'schedule')
|
|
623
|
+
self.schedule = attributes[:'schedule']
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
if attributes.key?(:'next_run')
|
|
627
|
+
self.next_run = attributes[:'next_run']
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
if attributes.key?(:'data_time_period_start')
|
|
631
|
+
self.data_time_period_start = attributes[:'data_time_period_start']
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
if attributes.key?(:'data_time_period_end')
|
|
635
|
+
self.data_time_period_end = attributes[:'data_time_period_end']
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
if attributes.key?(:'date_collection_start')
|
|
639
|
+
self.date_collection_start = attributes[:'date_collection_start']
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
if attributes.key?(:'geographic_coverage_type')
|
|
643
|
+
self.geographic_coverage_type = attributes[:'geographic_coverage_type']
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
if attributes.key?(:'geographic_coverage_details')
|
|
647
|
+
self.geographic_coverage_details = attributes[:'geographic_coverage_details']
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
if attributes.key?(:'data_source_refresh_frequency')
|
|
651
|
+
self.data_source_refresh_frequency = attributes[:'data_source_refresh_frequency']
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
if attributes.key?(:'rate_limit_number')
|
|
655
|
+
self.rate_limit_number = attributes[:'rate_limit_number']
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
if attributes.key?(:'rate_limit_period')
|
|
659
|
+
self.rate_limit_period = attributes[:'rate_limit_period']
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
if attributes.key?(:'rate_limit_granularity')
|
|
663
|
+
self.rate_limit_granularity = attributes[:'rate_limit_granularity']
|
|
664
|
+
end
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
668
|
+
# @return Array for valid properties with the reasons
|
|
669
|
+
def list_invalid_properties
|
|
670
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
671
|
+
invalid_properties = Array.new
|
|
672
|
+
if @company_id.nil?
|
|
673
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
if @name.nil?
|
|
677
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
if @source.nil?
|
|
681
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
if @sell_in_marketplace.nil?
|
|
685
|
+
invalid_properties.push('invalid value for "sell_in_marketplace", sell_in_marketplace cannot be nil.')
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
if @require_customization.nil?
|
|
689
|
+
invalid_properties.push('invalid value for "require_customization", require_customization cannot be nil.')
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
if @allow_params.nil?
|
|
693
|
+
invalid_properties.push('invalid value for "allow_params", allow_params cannot be nil.')
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
if @accept_terms.nil?
|
|
697
|
+
invalid_properties.push('invalid value for "accept_terms", accept_terms cannot be nil.')
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
invalid_properties
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# Check to see if the all the properties in the model are valid
|
|
704
|
+
# @return true if the model is valid
|
|
705
|
+
def valid?
|
|
706
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
707
|
+
return false if @company_id.nil?
|
|
708
|
+
approval_status_validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "NEEDS_REVISION"])
|
|
709
|
+
return false unless approval_status_validator.valid?(@approval_status)
|
|
710
|
+
return false if @name.nil?
|
|
711
|
+
return false if @source.nil?
|
|
712
|
+
source_validator = EnumAttributeValidator.new('String', ["MANUAL", "AUTOMATIC"])
|
|
713
|
+
return false unless source_validator.valid?(@source)
|
|
714
|
+
asset_type_validator = EnumAttributeValidator.new('String', ["CALCULATION", "VISUALIZATION", "DATA"])
|
|
715
|
+
return false unless asset_type_validator.valid?(@asset_type)
|
|
716
|
+
visibility_validator = EnumAttributeValidator.new('String', ["PRIVATE", "SHARED"])
|
|
717
|
+
return false unless visibility_validator.valid?(@visibility)
|
|
718
|
+
return false if @sell_in_marketplace.nil?
|
|
719
|
+
return false if @require_customization.nil?
|
|
720
|
+
viz_chart_library_validator = EnumAttributeValidator.new('String', ["PLOTLY", "MATPLOTLIB", "SEABORN"])
|
|
721
|
+
return false unless viz_chart_library_validator.valid?(@viz_chart_library)
|
|
722
|
+
viz_chart_type_validator = EnumAttributeValidator.new('String', ["LINE", "BAR", "PIE", "DOUGHNUT", "POLAR", "RADAR", "BUBBLE", "SCATTER"])
|
|
723
|
+
return false unless viz_chart_type_validator.valid?(@viz_chart_type)
|
|
724
|
+
viz_data_aggregation_validator = EnumAttributeValidator.new('String', ["No Aggregation", "Sum", "Average", "Count", "Minimum", "Maximum"])
|
|
725
|
+
return false unless viz_data_aggregation_validator.valid?(@viz_data_aggregation)
|
|
726
|
+
viz_sort_direction_validator = EnumAttributeValidator.new('String', ["No Sorting", "Ascending", "Descending"])
|
|
727
|
+
return false unless viz_sort_direction_validator.valid?(@viz_sort_direction)
|
|
728
|
+
viz_color_scheme_validator = EnumAttributeValidator.new('String', ["Default", "Sequential", "Diverging", "Categorical", "Monochrome", "Pastel", "Dark", "Light"])
|
|
729
|
+
return false unless viz_color_scheme_validator.valid?(@viz_color_scheme)
|
|
730
|
+
viz_filter_direction_validator = EnumAttributeValidator.new('String', ["TOP", "BOTTOM"])
|
|
731
|
+
return false unless viz_filter_direction_validator.valid?(@viz_filter_direction)
|
|
732
|
+
return false if @allow_params.nil?
|
|
733
|
+
return false if @accept_terms.nil?
|
|
734
|
+
geographic_coverage_type_validator = EnumAttributeValidator.new('String', ["GLOBAL", "CONTINENTAL", "REGIONAL", "NATIONAL", "STATE", "LOCAL", "CUSTOM", "UNKNOWN"])
|
|
735
|
+
return false unless geographic_coverage_type_validator.valid?(@geographic_coverage_type)
|
|
736
|
+
data_source_refresh_frequency_validator = EnumAttributeValidator.new('String', ["EVERY_SECOND", "EVERY_MINUTE", "EVERY_HOUR", "EVERY_DAY", "EVERY_WEEK", "EVERY_MONTH", "EVERY_QUARTER", "EVERY_YEAR", "NEVER", "UNKNOWN"])
|
|
737
|
+
return false unless data_source_refresh_frequency_validator.valid?(@data_source_refresh_frequency)
|
|
738
|
+
rate_limit_period_validator = EnumAttributeValidator.new('String', ["SECOND", "MINUTE", "HOUR", "DAY"])
|
|
739
|
+
return false unless rate_limit_period_validator.valid?(@rate_limit_period)
|
|
740
|
+
rate_limit_granularity_validator = EnumAttributeValidator.new('String', ["USER", "COMPANY", "IP", "GLOBAL"])
|
|
741
|
+
return false unless rate_limit_granularity_validator.valid?(@rate_limit_granularity)
|
|
742
|
+
true
|
|
743
|
+
end
|
|
744
|
+
|
|
745
|
+
# Custom attribute writer method with validation
|
|
746
|
+
# @param [Object] company_id Value to be assigned
|
|
747
|
+
def company_id=(company_id)
|
|
748
|
+
if company_id.nil?
|
|
749
|
+
fail ArgumentError, 'company_id cannot be nil'
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
@company_id = company_id
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
756
|
+
# @param [Object] approval_status Object to be assigned
|
|
757
|
+
def approval_status=(approval_status)
|
|
758
|
+
validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "NEEDS_REVISION"])
|
|
759
|
+
unless validator.valid?(approval_status)
|
|
760
|
+
fail ArgumentError, "invalid value for \"approval_status\", must be one of #{validator.allowable_values}."
|
|
761
|
+
end
|
|
762
|
+
@approval_status = approval_status
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# Custom attribute writer method with validation
|
|
766
|
+
# @param [Object] name Value to be assigned
|
|
767
|
+
def name=(name)
|
|
768
|
+
if name.nil?
|
|
769
|
+
fail ArgumentError, 'name cannot be nil'
|
|
770
|
+
end
|
|
771
|
+
|
|
772
|
+
@name = name
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
776
|
+
# @param [Object] source Object to be assigned
|
|
777
|
+
def source=(source)
|
|
778
|
+
validator = EnumAttributeValidator.new('String', ["MANUAL", "AUTOMATIC"])
|
|
779
|
+
unless validator.valid?(source)
|
|
780
|
+
fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
|
|
781
|
+
end
|
|
782
|
+
@source = source
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
786
|
+
# @param [Object] asset_type Object to be assigned
|
|
787
|
+
def asset_type=(asset_type)
|
|
788
|
+
validator = EnumAttributeValidator.new('String', ["CALCULATION", "VISUALIZATION", "DATA"])
|
|
789
|
+
unless validator.valid?(asset_type)
|
|
790
|
+
fail ArgumentError, "invalid value for \"asset_type\", must be one of #{validator.allowable_values}."
|
|
791
|
+
end
|
|
792
|
+
@asset_type = asset_type
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
796
|
+
# @param [Object] visibility Object to be assigned
|
|
797
|
+
def visibility=(visibility)
|
|
798
|
+
validator = EnumAttributeValidator.new('String', ["PRIVATE", "SHARED"])
|
|
799
|
+
unless validator.valid?(visibility)
|
|
800
|
+
fail ArgumentError, "invalid value for \"visibility\", must be one of #{validator.allowable_values}."
|
|
801
|
+
end
|
|
802
|
+
@visibility = visibility
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
# Custom attribute writer method with validation
|
|
806
|
+
# @param [Object] sell_in_marketplace Value to be assigned
|
|
807
|
+
def sell_in_marketplace=(sell_in_marketplace)
|
|
808
|
+
if sell_in_marketplace.nil?
|
|
809
|
+
fail ArgumentError, 'sell_in_marketplace cannot be nil'
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
@sell_in_marketplace = sell_in_marketplace
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Custom attribute writer method with validation
|
|
816
|
+
# @param [Object] require_customization Value to be assigned
|
|
817
|
+
def require_customization=(require_customization)
|
|
818
|
+
if require_customization.nil?
|
|
819
|
+
fail ArgumentError, 'require_customization cannot be nil'
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
@require_customization = require_customization
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
826
|
+
# @param [Object] viz_chart_library Object to be assigned
|
|
827
|
+
def viz_chart_library=(viz_chart_library)
|
|
828
|
+
validator = EnumAttributeValidator.new('String', ["PLOTLY", "MATPLOTLIB", "SEABORN"])
|
|
829
|
+
unless validator.valid?(viz_chart_library)
|
|
830
|
+
fail ArgumentError, "invalid value for \"viz_chart_library\", must be one of #{validator.allowable_values}."
|
|
831
|
+
end
|
|
832
|
+
@viz_chart_library = viz_chart_library
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
836
|
+
# @param [Object] viz_chart_type Object to be assigned
|
|
837
|
+
def viz_chart_type=(viz_chart_type)
|
|
838
|
+
validator = EnumAttributeValidator.new('String', ["LINE", "BAR", "PIE", "DOUGHNUT", "POLAR", "RADAR", "BUBBLE", "SCATTER"])
|
|
839
|
+
unless validator.valid?(viz_chart_type)
|
|
840
|
+
fail ArgumentError, "invalid value for \"viz_chart_type\", must be one of #{validator.allowable_values}."
|
|
841
|
+
end
|
|
842
|
+
@viz_chart_type = viz_chart_type
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
846
|
+
# @param [Object] viz_data_aggregation Object to be assigned
|
|
847
|
+
def viz_data_aggregation=(viz_data_aggregation)
|
|
848
|
+
validator = EnumAttributeValidator.new('String', ["No Aggregation", "Sum", "Average", "Count", "Minimum", "Maximum"])
|
|
849
|
+
unless validator.valid?(viz_data_aggregation)
|
|
850
|
+
fail ArgumentError, "invalid value for \"viz_data_aggregation\", must be one of #{validator.allowable_values}."
|
|
851
|
+
end
|
|
852
|
+
@viz_data_aggregation = viz_data_aggregation
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
856
|
+
# @param [Object] viz_sort_direction Object to be assigned
|
|
857
|
+
def viz_sort_direction=(viz_sort_direction)
|
|
858
|
+
validator = EnumAttributeValidator.new('String', ["No Sorting", "Ascending", "Descending"])
|
|
859
|
+
unless validator.valid?(viz_sort_direction)
|
|
860
|
+
fail ArgumentError, "invalid value for \"viz_sort_direction\", must be one of #{validator.allowable_values}."
|
|
861
|
+
end
|
|
862
|
+
@viz_sort_direction = viz_sort_direction
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
866
|
+
# @param [Object] viz_color_scheme Object to be assigned
|
|
867
|
+
def viz_color_scheme=(viz_color_scheme)
|
|
868
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Sequential", "Diverging", "Categorical", "Monochrome", "Pastel", "Dark", "Light"])
|
|
869
|
+
unless validator.valid?(viz_color_scheme)
|
|
870
|
+
fail ArgumentError, "invalid value for \"viz_color_scheme\", must be one of #{validator.allowable_values}."
|
|
871
|
+
end
|
|
872
|
+
@viz_color_scheme = viz_color_scheme
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
876
|
+
# @param [Object] viz_filter_direction Object to be assigned
|
|
877
|
+
def viz_filter_direction=(viz_filter_direction)
|
|
878
|
+
validator = EnumAttributeValidator.new('String', ["TOP", "BOTTOM"])
|
|
879
|
+
unless validator.valid?(viz_filter_direction)
|
|
880
|
+
fail ArgumentError, "invalid value for \"viz_filter_direction\", must be one of #{validator.allowable_values}."
|
|
881
|
+
end
|
|
882
|
+
@viz_filter_direction = viz_filter_direction
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
# Custom attribute writer method with validation
|
|
886
|
+
# @param [Object] allow_params Value to be assigned
|
|
887
|
+
def allow_params=(allow_params)
|
|
888
|
+
if allow_params.nil?
|
|
889
|
+
fail ArgumentError, 'allow_params cannot be nil'
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
@allow_params = allow_params
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# Custom attribute writer method with validation
|
|
896
|
+
# @param [Object] accept_terms Value to be assigned
|
|
897
|
+
def accept_terms=(accept_terms)
|
|
898
|
+
if accept_terms.nil?
|
|
899
|
+
fail ArgumentError, 'accept_terms cannot be nil'
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
@accept_terms = accept_terms
|
|
903
|
+
end
|
|
904
|
+
|
|
905
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
906
|
+
# @param [Object] geographic_coverage_type Object to be assigned
|
|
907
|
+
def geographic_coverage_type=(geographic_coverage_type)
|
|
908
|
+
validator = EnumAttributeValidator.new('String', ["GLOBAL", "CONTINENTAL", "REGIONAL", "NATIONAL", "STATE", "LOCAL", "CUSTOM", "UNKNOWN"])
|
|
909
|
+
unless validator.valid?(geographic_coverage_type)
|
|
910
|
+
fail ArgumentError, "invalid value for \"geographic_coverage_type\", must be one of #{validator.allowable_values}."
|
|
911
|
+
end
|
|
912
|
+
@geographic_coverage_type = geographic_coverage_type
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
916
|
+
# @param [Object] data_source_refresh_frequency Object to be assigned
|
|
917
|
+
def data_source_refresh_frequency=(data_source_refresh_frequency)
|
|
918
|
+
validator = EnumAttributeValidator.new('String', ["EVERY_SECOND", "EVERY_MINUTE", "EVERY_HOUR", "EVERY_DAY", "EVERY_WEEK", "EVERY_MONTH", "EVERY_QUARTER", "EVERY_YEAR", "NEVER", "UNKNOWN"])
|
|
919
|
+
unless validator.valid?(data_source_refresh_frequency)
|
|
920
|
+
fail ArgumentError, "invalid value for \"data_source_refresh_frequency\", must be one of #{validator.allowable_values}."
|
|
921
|
+
end
|
|
922
|
+
@data_source_refresh_frequency = data_source_refresh_frequency
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
926
|
+
# @param [Object] rate_limit_period Object to be assigned
|
|
927
|
+
def rate_limit_period=(rate_limit_period)
|
|
928
|
+
validator = EnumAttributeValidator.new('String', ["SECOND", "MINUTE", "HOUR", "DAY"])
|
|
929
|
+
unless validator.valid?(rate_limit_period)
|
|
930
|
+
fail ArgumentError, "invalid value for \"rate_limit_period\", must be one of #{validator.allowable_values}."
|
|
931
|
+
end
|
|
932
|
+
@rate_limit_period = rate_limit_period
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
936
|
+
# @param [Object] rate_limit_granularity Object to be assigned
|
|
937
|
+
def rate_limit_granularity=(rate_limit_granularity)
|
|
938
|
+
validator = EnumAttributeValidator.new('String', ["USER", "COMPANY", "IP", "GLOBAL"])
|
|
939
|
+
unless validator.valid?(rate_limit_granularity)
|
|
940
|
+
fail ArgumentError, "invalid value for \"rate_limit_granularity\", must be one of #{validator.allowable_values}."
|
|
941
|
+
end
|
|
942
|
+
@rate_limit_granularity = rate_limit_granularity
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
# Checks equality by comparing each attribute.
|
|
946
|
+
# @param [Object] Object to be compared
|
|
947
|
+
def ==(o)
|
|
948
|
+
return true if self.equal?(o)
|
|
949
|
+
self.class == o.class &&
|
|
950
|
+
date_created == o.date_created &&
|
|
951
|
+
last_updated == o.last_updated &&
|
|
952
|
+
asset_id == o.asset_id &&
|
|
953
|
+
user_id == o.user_id &&
|
|
954
|
+
company_id == o.company_id &&
|
|
955
|
+
connection_id == o.connection_id &&
|
|
956
|
+
llm_connection_id == o.llm_connection_id &&
|
|
957
|
+
snippet_id == o.snippet_id &&
|
|
958
|
+
industry_id == o.industry_id &&
|
|
959
|
+
ai_job_id == o.ai_job_id &&
|
|
960
|
+
auc_id == o.auc_id &&
|
|
961
|
+
function_id == o.function_id &&
|
|
962
|
+
approval_status == o.approval_status &&
|
|
963
|
+
approved_by_user_id == o.approved_by_user_id &&
|
|
964
|
+
approved_at == o.approved_at &&
|
|
965
|
+
name == o.name &&
|
|
966
|
+
slug == o.slug &&
|
|
967
|
+
description == o.description &&
|
|
968
|
+
detailed_description == o.detailed_description &&
|
|
969
|
+
source == o.source &&
|
|
970
|
+
asset_type == o.asset_type &&
|
|
971
|
+
asset_schema == o.asset_schema &&
|
|
972
|
+
visibility == o.visibility &&
|
|
973
|
+
tags == o.tags &&
|
|
974
|
+
top_questions == o.top_questions &&
|
|
975
|
+
short_code == o.short_code &&
|
|
976
|
+
restricted_domains == o.restricted_domains &&
|
|
977
|
+
sql_logic == o.sql_logic &&
|
|
978
|
+
source_schema_name == o.source_schema_name &&
|
|
979
|
+
source_table_name == o.source_table_name &&
|
|
980
|
+
sell_in_marketplace == o.sell_in_marketplace &&
|
|
981
|
+
require_customization == o.require_customization &&
|
|
982
|
+
viz_spec == o.viz_spec &&
|
|
983
|
+
viz_chart_library == o.viz_chart_library &&
|
|
984
|
+
viz_chart_type == o.viz_chart_type &&
|
|
985
|
+
viz_dep_var_col_name == o.viz_dep_var_col_name &&
|
|
986
|
+
viz_indep_var_col_name == o.viz_indep_var_col_name &&
|
|
987
|
+
viz_size_col_name == o.viz_size_col_name &&
|
|
988
|
+
viz_color_col_name == o.viz_color_col_name &&
|
|
989
|
+
viz_data_aggregation == o.viz_data_aggregation &&
|
|
990
|
+
viz_sort_direction == o.viz_sort_direction &&
|
|
991
|
+
viz_data_limit == o.viz_data_limit &&
|
|
992
|
+
viz_color_scheme == o.viz_color_scheme &&
|
|
993
|
+
viz_show_legend == o.viz_show_legend &&
|
|
994
|
+
viz_show_grid == o.viz_show_grid &&
|
|
995
|
+
viz_show_trendline == o.viz_show_trendline &&
|
|
996
|
+
viz_line_smoothing == o.viz_line_smoothing &&
|
|
997
|
+
viz_bar_stacked == o.viz_bar_stacked &&
|
|
998
|
+
viz_filter_direction == o.viz_filter_direction &&
|
|
999
|
+
allow_params == o.allow_params &&
|
|
1000
|
+
accept_terms == o.accept_terms &&
|
|
1001
|
+
cached == o.cached &&
|
|
1002
|
+
schedule == o.schedule &&
|
|
1003
|
+
next_run == o.next_run &&
|
|
1004
|
+
data_time_period_start == o.data_time_period_start &&
|
|
1005
|
+
data_time_period_end == o.data_time_period_end &&
|
|
1006
|
+
date_collection_start == o.date_collection_start &&
|
|
1007
|
+
geographic_coverage_type == o.geographic_coverage_type &&
|
|
1008
|
+
geographic_coverage_details == o.geographic_coverage_details &&
|
|
1009
|
+
data_source_refresh_frequency == o.data_source_refresh_frequency &&
|
|
1010
|
+
rate_limit_number == o.rate_limit_number &&
|
|
1011
|
+
rate_limit_period == o.rate_limit_period &&
|
|
1012
|
+
rate_limit_granularity == o.rate_limit_granularity
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
# @see the `==` method
|
|
1016
|
+
# @param [Object] Object to be compared
|
|
1017
|
+
def eql?(o)
|
|
1018
|
+
self == o
|
|
1019
|
+
end
|
|
1020
|
+
|
|
1021
|
+
# Calculates hash code according to all attributes.
|
|
1022
|
+
# @return [Integer] Hash code
|
|
1023
|
+
def hash
|
|
1024
|
+
[date_created, last_updated, asset_id, user_id, company_id, connection_id, llm_connection_id, snippet_id, industry_id, ai_job_id, auc_id, function_id, approval_status, approved_by_user_id, approved_at, name, slug, description, detailed_description, source, asset_type, asset_schema, visibility, tags, top_questions, short_code, restricted_domains, sql_logic, source_schema_name, source_table_name, sell_in_marketplace, require_customization, viz_spec, viz_chart_library, viz_chart_type, viz_dep_var_col_name, viz_indep_var_col_name, viz_size_col_name, viz_color_col_name, viz_data_aggregation, viz_sort_direction, viz_data_limit, viz_color_scheme, viz_show_legend, viz_show_grid, viz_show_trendline, viz_line_smoothing, viz_bar_stacked, viz_filter_direction, allow_params, accept_terms, cached, schedule, next_run, data_time_period_start, data_time_period_end, date_collection_start, geographic_coverage_type, geographic_coverage_details, data_source_refresh_frequency, rate_limit_number, rate_limit_period, rate_limit_granularity].hash
|
|
1025
|
+
end
|
|
1026
|
+
|
|
1027
|
+
# Builds the object from hash
|
|
1028
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
1029
|
+
# @return [Object] Returns the model itself
|
|
1030
|
+
def self.build_from_hash(attributes)
|
|
1031
|
+
return nil unless attributes.is_a?(Hash)
|
|
1032
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
1033
|
+
transformed_hash = {}
|
|
1034
|
+
openapi_types.each_pair do |key, type|
|
|
1035
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
1036
|
+
transformed_hash["#{key}"] = nil
|
|
1037
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
1038
|
+
# check to ensure the input is an array given that the attribute
|
|
1039
|
+
# is documented as an array but the input is not
|
|
1040
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
1041
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
1042
|
+
end
|
|
1043
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
1044
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
1045
|
+
end
|
|
1046
|
+
end
|
|
1047
|
+
new(transformed_hash)
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1050
|
+
# Returns the object in the form of hash
|
|
1051
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1052
|
+
def to_hash
|
|
1053
|
+
hash = {}
|
|
1054
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
1055
|
+
value = self.send(attr)
|
|
1056
|
+
if value.nil?
|
|
1057
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
1058
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
hash[param] = _to_hash(value)
|
|
1062
|
+
end
|
|
1063
|
+
hash
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
end
|
|
1067
|
+
|
|
1068
|
+
end
|