spartera_api_sdk 1.0.74 → 1.0.78
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 +261 -87
- data/docs/Alerts.md +30 -0
- data/docs/AlertsApi.md +139 -139
- 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 +162 -154
- 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 +138 -0
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +124 -0
- data/docs/AssetsUpdate.md +124 -0
- data/docs/CloudProviders.md +28 -0
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +22 -0
- data/docs/CloudProvidersUpdate.md +22 -0
- data/docs/Companies.md +46 -0
- data/docs/CompaniesApi.md +312 -144
- data/docs/CompaniesInput.md +40 -0
- data/docs/CompaniesUpdate.md +40 -0
- data/docs/Connections.md +38 -0
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +32 -0
- data/docs/ConnectionsUpdate.md +32 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdGet200Response.md → CreateAlerts200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/CreateApiKeys200ResponseData.md +18 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/CreateAssetPriceHistory200ResponseData.md +18 -0
- 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/{CompaniesCompanyIdAssetsGet200Response.md → CreatePosts200Response.md} +3 -3
- 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/DeleteApiKeys200ResponseData.md +18 -0
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/DeleteAssetPriceHistory200ResponseData.md +18 -0
- 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 +34 -0
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +28 -0
- data/docs/FavoritesUpdate.md +28 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetAlertsById200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → GetApiKeysById200Response.md} +3 -3
- 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/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/{CompaniesCompanyIdApiKeysGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +3 -3
- 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/{CompaniesCompanyIdConnectionsGet200Response.md → ListPostgenIntegrations200Response.md} +3 -3
- 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 +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- 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/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/UpdateCompanies200ResponseData.md +18 -0
- 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 +36 -0
- data/docs/UsersApi.md +306 -101
- 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 +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +491 -90
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +460 -169
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +952 -228
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -137
- 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 +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 +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +581 -112
- 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/{alert.rb → alerts.rb} +46 -139
- 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/{apikey.rb → api_keys.rb} +98 -124
- 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 +1048 -0
- data/lib/spartera_api_sdk/models/assets_input.rb +898 -0
- data/lib/spartera_api_sdk/models/assets_update.rb +857 -0
- data/lib/spartera_api_sdk/models/{cloudprovider.rb → cloud_providers.rb} +35 -111
- 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/{company.rb → companies.rb} +90 -105
- 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/{connection.rb → connections.rb} +69 -186
- 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/{companies_company_id_users_user_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/{companies_company_id_assets_asset_id_get200_response.rb → create_api_keys200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{me_get200_response_api_key_info.rb → create_api_keys200_response_data.rb} +27 -94
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response.rb → create_asset_price_history200_response.rb} +6 -79
- 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/{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/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/{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/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/{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/{favorite.rb → favorites.rb} +38 -111
- 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/{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/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 +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/{companies_company_id_api_keys_get200_response.rb → inline_object6.rb} +22 -104
- 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/{companies_company_id_assets_get200_response.rb → list_api_keys200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_get200_response.rb → list_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response.rb → list_companies_analytics_assets200_response.rb} +9 -80
- 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/{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/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/{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/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/{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/{user.rb → users.rb} +112 -108
- data/lib/spartera_api_sdk/models/{me_get200_response_profile.rb → users_input.rb} +54 -139
- data/lib/spartera_api_sdk/models/{me_get200_response_token_metadata.rb → users_update.rb} +101 -110
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +149 -56
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +67 -30
- data/spec/api/asset_price_history_api_spec.rb +57 -53
- 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 -47
- 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 +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 +16 -11
- data/spec/api/users_api_spec.rb +83 -34
- data/spec/models/{me_get200_response_token_metadata_spec.rb → alerts_input_spec.rb} +12 -12
- data/spec/models/alerts_spec.rb +72 -0
- data/spec/models/alerts_update_spec.rb +54 -0
- data/spec/models/{apikey_spec.rb → api_keys_input_spec.rb} +14 -20
- data/spec/models/{assetpricehistory_spec.rb → api_keys_spec.rb} +25 -19
- data/spec/models/{user_spec.rb → api_keys_update_spec.rb} +15 -15
- 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/{asset_spec.rb → assets_input_spec.rb} +122 -28
- data/spec/models/assets_spec.rb +452 -0
- data/spec/models/assets_update_spec.rb +406 -0
- data/spec/models/{companies_company_id_assets_asset_id_get200_response_spec.rb → cloud_providers_input_spec.rb} +16 -10
- data/spec/models/{cloudprovider_spec.rb → cloud_providers_spec.rb} +14 -20
- data/spec/models/{companies_company_id_assets_asset_id_delete200_response_spec.rb → cloud_providers_update_spec.rb} +16 -10
- data/spec/models/companies_input_spec.rb +106 -0
- data/spec/models/{company_spec.rb → companies_spec.rb} +26 -16
- data/spec/models/companies_update_spec.rb +106 -0
- data/spec/models/connections_input_spec.rb +82 -0
- data/spec/models/{me_get200_response_spec.rb → connections_spec.rb} +28 -22
- 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/{companies_company_id_assets_post200_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/{companies_company_id_users_post200_response_spec.rb → create_assets_analyze200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- 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/{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 +66 -0
- data/spec/models/{favorite_spec.rb → favorites_spec.rb} +17 -23
- data/spec/models/favorites_update_spec.rb +66 -0
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_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/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/{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/{companies_company_id_connections_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 +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/{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/{alert_spec.rb → postgen_integrations_spec.rb} +17 -17
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/{connection_spec.rb → posts_input_spec.rb} +51 -27
- 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/{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 +76 -0
- data/spec/models/{me_get200_response_profile_spec.rb → users_spec.rb} +22 -22
- data/spec/models/users_update_spec.rb +76 -0
- data/spec/spec_helper.rb +2 -2
- metadata +623 -283
- data/docs/Alert.md +0 -36
- data/docs/Apikey.md +0 -36
- data/docs/Asset.md +0 -110
- data/docs/Assetpricehistory.md +0 -38
- data/docs/Cloudprovider.md +0 -30
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.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/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.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/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.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/docs/Company.md +0 -44
- data/docs/Connection.md +0 -54
- data/docs/Favorite.md +0 -36
- data/docs/MeGet200Response.md +0 -36
- data/docs/MeGet200ResponseApiKeyInfo.md +0 -20
- data/docs/MeGet200ResponseProfile.md +0 -36
- data/docs/MeGet200ResponseTokenMetadata.md +0 -24
- data/docs/User.md +0 -34
- data/example.rb +0 -51
- data/lib/spartera_api_sdk/models/asset.rb +0 -686
- data/lib/spartera_api_sdk/models/assetpricehistory.rb +0 -345
- 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_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_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_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_get200_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_post200_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_get200_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/lib/spartera_api_sdk/models/me_get200_response.rb +0 -417
- 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_patch200_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_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_get200_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_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_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_get200_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
- data/spec/models/me_get200_response_api_key_info_spec.rb +0 -42
|
@@ -0,0 +1,1048 @@
|
|
|
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
|
+
# Short code for tera.ac URL shortener (e.g., 'f78zq1')
|
|
92
|
+
attr_accessor :short_code
|
|
93
|
+
|
|
94
|
+
# Semicolon or comma-separated list of domains restricted from accessing this asset
|
|
95
|
+
attr_accessor :restricted_domains
|
|
96
|
+
|
|
97
|
+
# Optional.
|
|
98
|
+
attr_accessor :sql_logic
|
|
99
|
+
|
|
100
|
+
# Optional.
|
|
101
|
+
attr_accessor :source_schema_name
|
|
102
|
+
|
|
103
|
+
# Optional.
|
|
104
|
+
attr_accessor :source_table_name
|
|
105
|
+
|
|
106
|
+
# Required.
|
|
107
|
+
attr_accessor :sell_in_marketplace
|
|
108
|
+
|
|
109
|
+
# Whether this asset requires customization before use
|
|
110
|
+
attr_accessor :require_customization
|
|
111
|
+
|
|
112
|
+
# Optional. One of: PLOTLY, MATPLOTLIB, SEABORN.
|
|
113
|
+
attr_accessor :viz_chart_library
|
|
114
|
+
|
|
115
|
+
# Optional. One of: LINE, BAR, PIE, DOUGHNUT, POLAR, … (8 total).
|
|
116
|
+
attr_accessor :viz_chart_type
|
|
117
|
+
|
|
118
|
+
# Optional.
|
|
119
|
+
attr_accessor :viz_dep_var_col_name
|
|
120
|
+
|
|
121
|
+
# Optional.
|
|
122
|
+
attr_accessor :viz_indep_var_col_name
|
|
123
|
+
|
|
124
|
+
# Optional.
|
|
125
|
+
attr_accessor :viz_size_col_name
|
|
126
|
+
|
|
127
|
+
# Optional.
|
|
128
|
+
attr_accessor :viz_color_col_name
|
|
129
|
+
|
|
130
|
+
# Optional. One of: No Aggregation, Sum, Average, Count, Minimum, … (6 total).
|
|
131
|
+
attr_accessor :viz_data_aggregation
|
|
132
|
+
|
|
133
|
+
# Optional. One of: No Sorting, Ascending, Descending.
|
|
134
|
+
attr_accessor :viz_sort_direction
|
|
135
|
+
|
|
136
|
+
# Optional.
|
|
137
|
+
attr_accessor :viz_data_limit
|
|
138
|
+
|
|
139
|
+
# Optional. One of: Default, Sequential, Diverging, Categorical, Monochrome, … (8 total).
|
|
140
|
+
attr_accessor :viz_color_scheme
|
|
141
|
+
|
|
142
|
+
# Show/hide chart legend
|
|
143
|
+
attr_accessor :viz_show_legend
|
|
144
|
+
|
|
145
|
+
# Show/hide grid lines
|
|
146
|
+
attr_accessor :viz_show_grid
|
|
147
|
+
|
|
148
|
+
# Show trendline for scatter/line charts
|
|
149
|
+
attr_accessor :viz_show_trendline
|
|
150
|
+
|
|
151
|
+
# Enable smoothing for line charts
|
|
152
|
+
attr_accessor :viz_line_smoothing
|
|
153
|
+
|
|
154
|
+
# Stack bars instead of grouping
|
|
155
|
+
attr_accessor :viz_bar_stacked
|
|
156
|
+
|
|
157
|
+
# Whether data_limit shows TOP or BOTTOM N
|
|
158
|
+
attr_accessor :viz_filter_direction
|
|
159
|
+
|
|
160
|
+
# Required.
|
|
161
|
+
attr_accessor :allow_params
|
|
162
|
+
|
|
163
|
+
# Required.
|
|
164
|
+
attr_accessor :accept_terms
|
|
165
|
+
|
|
166
|
+
# Optional.
|
|
167
|
+
attr_accessor :cached
|
|
168
|
+
|
|
169
|
+
# Optional.
|
|
170
|
+
attr_accessor :schedule
|
|
171
|
+
|
|
172
|
+
# Optional.
|
|
173
|
+
attr_accessor :next_run
|
|
174
|
+
|
|
175
|
+
# Start date of the data time period covered
|
|
176
|
+
attr_accessor :data_time_period_start
|
|
177
|
+
|
|
178
|
+
# End date of the data time period covered
|
|
179
|
+
attr_accessor :data_time_period_end
|
|
180
|
+
|
|
181
|
+
# Type of geographic coverage
|
|
182
|
+
attr_accessor :geographic_coverage_type
|
|
183
|
+
|
|
184
|
+
# Specific regions/countries covered (e.g., 'United States, Canada, Mexico')
|
|
185
|
+
attr_accessor :geographic_coverage_details
|
|
186
|
+
|
|
187
|
+
# How often the source data is refreshed
|
|
188
|
+
attr_accessor :data_source_refresh_frequency
|
|
189
|
+
|
|
190
|
+
# When the source data was last refreshed
|
|
191
|
+
attr_accessor :data_source_last_refreshed
|
|
192
|
+
|
|
193
|
+
# Number of requests allowed per period (e.g., 100)
|
|
194
|
+
attr_accessor :rate_limit_number
|
|
195
|
+
|
|
196
|
+
# Time period for rate limiting (second, minute, hour, day)
|
|
197
|
+
attr_accessor :rate_limit_period
|
|
198
|
+
|
|
199
|
+
# Granularity level for rate limiting (USER, COMPANY, IP)
|
|
200
|
+
attr_accessor :rate_limit_granularity
|
|
201
|
+
|
|
202
|
+
class EnumAttributeValidator
|
|
203
|
+
attr_reader :datatype
|
|
204
|
+
attr_reader :allowable_values
|
|
205
|
+
|
|
206
|
+
def initialize(datatype, allowable_values)
|
|
207
|
+
@allowable_values = allowable_values.map do |value|
|
|
208
|
+
case datatype.to_s
|
|
209
|
+
when /Integer/i
|
|
210
|
+
value.to_i
|
|
211
|
+
when /Float/i
|
|
212
|
+
value.to_f
|
|
213
|
+
else
|
|
214
|
+
value
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
def valid?(value)
|
|
220
|
+
!value || allowable_values.include?(value)
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
225
|
+
def self.attribute_map
|
|
226
|
+
{
|
|
227
|
+
:'date_created' => :'date_created',
|
|
228
|
+
:'last_updated' => :'last_updated',
|
|
229
|
+
:'asset_id' => :'asset_id',
|
|
230
|
+
:'user_id' => :'user_id',
|
|
231
|
+
:'company_id' => :'company_id',
|
|
232
|
+
:'connection_id' => :'connection_id',
|
|
233
|
+
:'llm_connection_id' => :'llm_connection_id',
|
|
234
|
+
:'snippet_id' => :'snippet_id',
|
|
235
|
+
:'industry_id' => :'industry_id',
|
|
236
|
+
:'ai_job_id' => :'ai_job_id',
|
|
237
|
+
:'auc_id' => :'auc_id',
|
|
238
|
+
:'function_id' => :'function_id',
|
|
239
|
+
:'approval_status' => :'approval_status',
|
|
240
|
+
:'approved_by_user_id' => :'approved_by_user_id',
|
|
241
|
+
:'approved_at' => :'approved_at',
|
|
242
|
+
:'name' => :'name',
|
|
243
|
+
:'slug' => :'slug',
|
|
244
|
+
:'description' => :'description',
|
|
245
|
+
:'detailed_description' => :'detailed_description',
|
|
246
|
+
:'source' => :'source',
|
|
247
|
+
:'asset_type' => :'asset_type',
|
|
248
|
+
:'asset_schema' => :'asset_schema',
|
|
249
|
+
:'visibility' => :'visibility',
|
|
250
|
+
:'tags' => :'tags',
|
|
251
|
+
:'short_code' => :'short_code',
|
|
252
|
+
:'restricted_domains' => :'restricted_domains',
|
|
253
|
+
:'sql_logic' => :'sql_logic',
|
|
254
|
+
:'source_schema_name' => :'source_schema_name',
|
|
255
|
+
:'source_table_name' => :'source_table_name',
|
|
256
|
+
:'sell_in_marketplace' => :'sell_in_marketplace',
|
|
257
|
+
:'require_customization' => :'require_customization',
|
|
258
|
+
:'viz_chart_library' => :'viz_chart_library',
|
|
259
|
+
:'viz_chart_type' => :'viz_chart_type',
|
|
260
|
+
:'viz_dep_var_col_name' => :'viz_dep_var_col_name',
|
|
261
|
+
:'viz_indep_var_col_name' => :'viz_indep_var_col_name',
|
|
262
|
+
:'viz_size_col_name' => :'viz_size_col_name',
|
|
263
|
+
:'viz_color_col_name' => :'viz_color_col_name',
|
|
264
|
+
:'viz_data_aggregation' => :'viz_data_aggregation',
|
|
265
|
+
:'viz_sort_direction' => :'viz_sort_direction',
|
|
266
|
+
:'viz_data_limit' => :'viz_data_limit',
|
|
267
|
+
:'viz_color_scheme' => :'viz_color_scheme',
|
|
268
|
+
:'viz_show_legend' => :'viz_show_legend',
|
|
269
|
+
:'viz_show_grid' => :'viz_show_grid',
|
|
270
|
+
:'viz_show_trendline' => :'viz_show_trendline',
|
|
271
|
+
:'viz_line_smoothing' => :'viz_line_smoothing',
|
|
272
|
+
:'viz_bar_stacked' => :'viz_bar_stacked',
|
|
273
|
+
:'viz_filter_direction' => :'viz_filter_direction',
|
|
274
|
+
:'allow_params' => :'allow_params',
|
|
275
|
+
:'accept_terms' => :'accept_terms',
|
|
276
|
+
:'cached' => :'cached',
|
|
277
|
+
:'schedule' => :'schedule',
|
|
278
|
+
:'next_run' => :'next_run',
|
|
279
|
+
:'data_time_period_start' => :'data_time_period_start',
|
|
280
|
+
:'data_time_period_end' => :'data_time_period_end',
|
|
281
|
+
:'geographic_coverage_type' => :'geographic_coverage_type',
|
|
282
|
+
:'geographic_coverage_details' => :'geographic_coverage_details',
|
|
283
|
+
:'data_source_refresh_frequency' => :'data_source_refresh_frequency',
|
|
284
|
+
:'data_source_last_refreshed' => :'data_source_last_refreshed',
|
|
285
|
+
:'rate_limit_number' => :'rate_limit_number',
|
|
286
|
+
:'rate_limit_period' => :'rate_limit_period',
|
|
287
|
+
:'rate_limit_granularity' => :'rate_limit_granularity'
|
|
288
|
+
}
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Returns attribute mapping this model knows about
|
|
292
|
+
def self.acceptable_attribute_map
|
|
293
|
+
attribute_map
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Returns all the JSON keys this model knows about
|
|
297
|
+
def self.acceptable_attributes
|
|
298
|
+
acceptable_attribute_map.values
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# Attribute type mapping.
|
|
302
|
+
def self.openapi_types
|
|
303
|
+
{
|
|
304
|
+
:'date_created' => :'Time',
|
|
305
|
+
:'last_updated' => :'Time',
|
|
306
|
+
:'asset_id' => :'String',
|
|
307
|
+
:'user_id' => :'String',
|
|
308
|
+
:'company_id' => :'String',
|
|
309
|
+
:'connection_id' => :'String',
|
|
310
|
+
:'llm_connection_id' => :'String',
|
|
311
|
+
:'snippet_id' => :'Integer',
|
|
312
|
+
:'industry_id' => :'Integer',
|
|
313
|
+
:'ai_job_id' => :'String',
|
|
314
|
+
:'auc_id' => :'Integer',
|
|
315
|
+
:'function_id' => :'String',
|
|
316
|
+
:'approval_status' => :'String',
|
|
317
|
+
:'approved_by_user_id' => :'String',
|
|
318
|
+
:'approved_at' => :'Time',
|
|
319
|
+
:'name' => :'String',
|
|
320
|
+
:'slug' => :'String',
|
|
321
|
+
:'description' => :'String',
|
|
322
|
+
:'detailed_description' => :'String',
|
|
323
|
+
:'source' => :'String',
|
|
324
|
+
:'asset_type' => :'String',
|
|
325
|
+
:'asset_schema' => :'Object',
|
|
326
|
+
:'visibility' => :'String',
|
|
327
|
+
:'tags' => :'String',
|
|
328
|
+
:'short_code' => :'String',
|
|
329
|
+
:'restricted_domains' => :'String',
|
|
330
|
+
:'sql_logic' => :'String',
|
|
331
|
+
:'source_schema_name' => :'String',
|
|
332
|
+
:'source_table_name' => :'String',
|
|
333
|
+
:'sell_in_marketplace' => :'Boolean',
|
|
334
|
+
:'require_customization' => :'Boolean',
|
|
335
|
+
:'viz_chart_library' => :'String',
|
|
336
|
+
:'viz_chart_type' => :'String',
|
|
337
|
+
:'viz_dep_var_col_name' => :'String',
|
|
338
|
+
:'viz_indep_var_col_name' => :'String',
|
|
339
|
+
:'viz_size_col_name' => :'String',
|
|
340
|
+
:'viz_color_col_name' => :'String',
|
|
341
|
+
:'viz_data_aggregation' => :'String',
|
|
342
|
+
:'viz_sort_direction' => :'String',
|
|
343
|
+
:'viz_data_limit' => :'Integer',
|
|
344
|
+
:'viz_color_scheme' => :'String',
|
|
345
|
+
:'viz_show_legend' => :'Boolean',
|
|
346
|
+
:'viz_show_grid' => :'Boolean',
|
|
347
|
+
:'viz_show_trendline' => :'Boolean',
|
|
348
|
+
:'viz_line_smoothing' => :'Boolean',
|
|
349
|
+
:'viz_bar_stacked' => :'Boolean',
|
|
350
|
+
:'viz_filter_direction' => :'String',
|
|
351
|
+
:'allow_params' => :'Boolean',
|
|
352
|
+
:'accept_terms' => :'Boolean',
|
|
353
|
+
:'cached' => :'Boolean',
|
|
354
|
+
:'schedule' => :'String',
|
|
355
|
+
:'next_run' => :'Time',
|
|
356
|
+
:'data_time_period_start' => :'Time',
|
|
357
|
+
:'data_time_period_end' => :'Time',
|
|
358
|
+
:'geographic_coverage_type' => :'String',
|
|
359
|
+
:'geographic_coverage_details' => :'String',
|
|
360
|
+
:'data_source_refresh_frequency' => :'String',
|
|
361
|
+
:'data_source_last_refreshed' => :'Time',
|
|
362
|
+
:'rate_limit_number' => :'Integer',
|
|
363
|
+
:'rate_limit_period' => :'String',
|
|
364
|
+
:'rate_limit_granularity' => :'String'
|
|
365
|
+
}
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# List of attributes with nullable: true
|
|
369
|
+
def self.openapi_nullable
|
|
370
|
+
Set.new([
|
|
371
|
+
])
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Initializes the object
|
|
375
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
376
|
+
def initialize(attributes = {})
|
|
377
|
+
if (!attributes.is_a?(Hash))
|
|
378
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::Assets` initialize method"
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
382
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
383
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
384
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
385
|
+
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
|
|
386
|
+
end
|
|
387
|
+
h[k.to_sym] = v
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if attributes.key?(:'date_created')
|
|
391
|
+
self.date_created = attributes[:'date_created']
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
if attributes.key?(:'last_updated')
|
|
395
|
+
self.last_updated = attributes[:'last_updated']
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'asset_id')
|
|
399
|
+
self.asset_id = attributes[:'asset_id']
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
if attributes.key?(:'user_id')
|
|
403
|
+
self.user_id = attributes[:'user_id']
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
if attributes.key?(:'company_id')
|
|
407
|
+
self.company_id = attributes[:'company_id']
|
|
408
|
+
else
|
|
409
|
+
self.company_id = nil
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'connection_id')
|
|
413
|
+
self.connection_id = attributes[:'connection_id']
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
if attributes.key?(:'llm_connection_id')
|
|
417
|
+
self.llm_connection_id = attributes[:'llm_connection_id']
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
if attributes.key?(:'snippet_id')
|
|
421
|
+
self.snippet_id = attributes[:'snippet_id']
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
if attributes.key?(:'industry_id')
|
|
425
|
+
self.industry_id = attributes[:'industry_id']
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
if attributes.key?(:'ai_job_id')
|
|
429
|
+
self.ai_job_id = attributes[:'ai_job_id']
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
if attributes.key?(:'auc_id')
|
|
433
|
+
self.auc_id = attributes[:'auc_id']
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
if attributes.key?(:'function_id')
|
|
437
|
+
self.function_id = attributes[:'function_id']
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
if attributes.key?(:'approval_status')
|
|
441
|
+
self.approval_status = attributes[:'approval_status']
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
if attributes.key?(:'approved_by_user_id')
|
|
445
|
+
self.approved_by_user_id = attributes[:'approved_by_user_id']
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
if attributes.key?(:'approved_at')
|
|
449
|
+
self.approved_at = attributes[:'approved_at']
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
if attributes.key?(:'name')
|
|
453
|
+
self.name = attributes[:'name']
|
|
454
|
+
else
|
|
455
|
+
self.name = nil
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
if attributes.key?(:'slug')
|
|
459
|
+
self.slug = attributes[:'slug']
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
if attributes.key?(:'description')
|
|
463
|
+
self.description = attributes[:'description']
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
if attributes.key?(:'detailed_description')
|
|
467
|
+
self.detailed_description = attributes[:'detailed_description']
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if attributes.key?(:'source')
|
|
471
|
+
self.source = attributes[:'source']
|
|
472
|
+
else
|
|
473
|
+
self.source = nil
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
if attributes.key?(:'asset_type')
|
|
477
|
+
self.asset_type = attributes[:'asset_type']
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
if attributes.key?(:'asset_schema')
|
|
481
|
+
self.asset_schema = attributes[:'asset_schema']
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
if attributes.key?(:'visibility')
|
|
485
|
+
self.visibility = attributes[:'visibility']
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
if attributes.key?(:'tags')
|
|
489
|
+
self.tags = attributes[:'tags']
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
if attributes.key?(:'short_code')
|
|
493
|
+
self.short_code = attributes[:'short_code']
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
if attributes.key?(:'restricted_domains')
|
|
497
|
+
self.restricted_domains = attributes[:'restricted_domains']
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
if attributes.key?(:'sql_logic')
|
|
501
|
+
self.sql_logic = attributes[:'sql_logic']
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
if attributes.key?(:'source_schema_name')
|
|
505
|
+
self.source_schema_name = attributes[:'source_schema_name']
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
if attributes.key?(:'source_table_name')
|
|
509
|
+
self.source_table_name = attributes[:'source_table_name']
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
if attributes.key?(:'sell_in_marketplace')
|
|
513
|
+
self.sell_in_marketplace = attributes[:'sell_in_marketplace']
|
|
514
|
+
else
|
|
515
|
+
self.sell_in_marketplace = nil
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
if attributes.key?(:'require_customization')
|
|
519
|
+
self.require_customization = attributes[:'require_customization']
|
|
520
|
+
else
|
|
521
|
+
self.require_customization = nil
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
if attributes.key?(:'viz_chart_library')
|
|
525
|
+
self.viz_chart_library = attributes[:'viz_chart_library']
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
if attributes.key?(:'viz_chart_type')
|
|
529
|
+
self.viz_chart_type = attributes[:'viz_chart_type']
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
if attributes.key?(:'viz_dep_var_col_name')
|
|
533
|
+
self.viz_dep_var_col_name = attributes[:'viz_dep_var_col_name']
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
if attributes.key?(:'viz_indep_var_col_name')
|
|
537
|
+
self.viz_indep_var_col_name = attributes[:'viz_indep_var_col_name']
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
if attributes.key?(:'viz_size_col_name')
|
|
541
|
+
self.viz_size_col_name = attributes[:'viz_size_col_name']
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
if attributes.key?(:'viz_color_col_name')
|
|
545
|
+
self.viz_color_col_name = attributes[:'viz_color_col_name']
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
if attributes.key?(:'viz_data_aggregation')
|
|
549
|
+
self.viz_data_aggregation = attributes[:'viz_data_aggregation']
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
if attributes.key?(:'viz_sort_direction')
|
|
553
|
+
self.viz_sort_direction = attributes[:'viz_sort_direction']
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
if attributes.key?(:'viz_data_limit')
|
|
557
|
+
self.viz_data_limit = attributes[:'viz_data_limit']
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
if attributes.key?(:'viz_color_scheme')
|
|
561
|
+
self.viz_color_scheme = attributes[:'viz_color_scheme']
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
if attributes.key?(:'viz_show_legend')
|
|
565
|
+
self.viz_show_legend = attributes[:'viz_show_legend']
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
if attributes.key?(:'viz_show_grid')
|
|
569
|
+
self.viz_show_grid = attributes[:'viz_show_grid']
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
if attributes.key?(:'viz_show_trendline')
|
|
573
|
+
self.viz_show_trendline = attributes[:'viz_show_trendline']
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
if attributes.key?(:'viz_line_smoothing')
|
|
577
|
+
self.viz_line_smoothing = attributes[:'viz_line_smoothing']
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
if attributes.key?(:'viz_bar_stacked')
|
|
581
|
+
self.viz_bar_stacked = attributes[:'viz_bar_stacked']
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
if attributes.key?(:'viz_filter_direction')
|
|
585
|
+
self.viz_filter_direction = attributes[:'viz_filter_direction']
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
if attributes.key?(:'allow_params')
|
|
589
|
+
self.allow_params = attributes[:'allow_params']
|
|
590
|
+
else
|
|
591
|
+
self.allow_params = nil
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
if attributes.key?(:'accept_terms')
|
|
595
|
+
self.accept_terms = attributes[:'accept_terms']
|
|
596
|
+
else
|
|
597
|
+
self.accept_terms = nil
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
if attributes.key?(:'cached')
|
|
601
|
+
self.cached = attributes[:'cached']
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
if attributes.key?(:'schedule')
|
|
605
|
+
self.schedule = attributes[:'schedule']
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
if attributes.key?(:'next_run')
|
|
609
|
+
self.next_run = attributes[:'next_run']
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
if attributes.key?(:'data_time_period_start')
|
|
613
|
+
self.data_time_period_start = attributes[:'data_time_period_start']
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
if attributes.key?(:'data_time_period_end')
|
|
617
|
+
self.data_time_period_end = attributes[:'data_time_period_end']
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
if attributes.key?(:'geographic_coverage_type')
|
|
621
|
+
self.geographic_coverage_type = attributes[:'geographic_coverage_type']
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
if attributes.key?(:'geographic_coverage_details')
|
|
625
|
+
self.geographic_coverage_details = attributes[:'geographic_coverage_details']
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
if attributes.key?(:'data_source_refresh_frequency')
|
|
629
|
+
self.data_source_refresh_frequency = attributes[:'data_source_refresh_frequency']
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
if attributes.key?(:'data_source_last_refreshed')
|
|
633
|
+
self.data_source_last_refreshed = attributes[:'data_source_last_refreshed']
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
if attributes.key?(:'rate_limit_number')
|
|
637
|
+
self.rate_limit_number = attributes[:'rate_limit_number']
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
if attributes.key?(:'rate_limit_period')
|
|
641
|
+
self.rate_limit_period = attributes[:'rate_limit_period']
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if attributes.key?(:'rate_limit_granularity')
|
|
645
|
+
self.rate_limit_granularity = attributes[:'rate_limit_granularity']
|
|
646
|
+
end
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
650
|
+
# @return Array for valid properties with the reasons
|
|
651
|
+
def list_invalid_properties
|
|
652
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
653
|
+
invalid_properties = Array.new
|
|
654
|
+
if @company_id.nil?
|
|
655
|
+
invalid_properties.push('invalid value for "company_id", company_id cannot be nil.')
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
if @name.nil?
|
|
659
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
if @source.nil?
|
|
663
|
+
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
if @sell_in_marketplace.nil?
|
|
667
|
+
invalid_properties.push('invalid value for "sell_in_marketplace", sell_in_marketplace cannot be nil.')
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
if @require_customization.nil?
|
|
671
|
+
invalid_properties.push('invalid value for "require_customization", require_customization cannot be nil.')
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
if @allow_params.nil?
|
|
675
|
+
invalid_properties.push('invalid value for "allow_params", allow_params cannot be nil.')
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
if @accept_terms.nil?
|
|
679
|
+
invalid_properties.push('invalid value for "accept_terms", accept_terms cannot be nil.')
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
invalid_properties
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# Check to see if the all the properties in the model are valid
|
|
686
|
+
# @return true if the model is valid
|
|
687
|
+
def valid?
|
|
688
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
689
|
+
return false if @company_id.nil?
|
|
690
|
+
approval_status_validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "NEEDS_REVISION"])
|
|
691
|
+
return false unless approval_status_validator.valid?(@approval_status)
|
|
692
|
+
return false if @name.nil?
|
|
693
|
+
return false if @source.nil?
|
|
694
|
+
source_validator = EnumAttributeValidator.new('String', ["MANUAL", "AUTOMATIC"])
|
|
695
|
+
return false unless source_validator.valid?(@source)
|
|
696
|
+
asset_type_validator = EnumAttributeValidator.new('String', ["CALCULATION", "VISUALIZATION", "DATA"])
|
|
697
|
+
return false unless asset_type_validator.valid?(@asset_type)
|
|
698
|
+
visibility_validator = EnumAttributeValidator.new('String', ["PRIVATE", "SHARED"])
|
|
699
|
+
return false unless visibility_validator.valid?(@visibility)
|
|
700
|
+
return false if @sell_in_marketplace.nil?
|
|
701
|
+
return false if @require_customization.nil?
|
|
702
|
+
viz_chart_library_validator = EnumAttributeValidator.new('String', ["PLOTLY", "MATPLOTLIB", "SEABORN"])
|
|
703
|
+
return false unless viz_chart_library_validator.valid?(@viz_chart_library)
|
|
704
|
+
viz_chart_type_validator = EnumAttributeValidator.new('String', ["LINE", "BAR", "PIE", "DOUGHNUT", "POLAR", "RADAR", "BUBBLE", "SCATTER"])
|
|
705
|
+
return false unless viz_chart_type_validator.valid?(@viz_chart_type)
|
|
706
|
+
viz_data_aggregation_validator = EnumAttributeValidator.new('String', ["No Aggregation", "Sum", "Average", "Count", "Minimum", "Maximum"])
|
|
707
|
+
return false unless viz_data_aggregation_validator.valid?(@viz_data_aggregation)
|
|
708
|
+
viz_sort_direction_validator = EnumAttributeValidator.new('String', ["No Sorting", "Ascending", "Descending"])
|
|
709
|
+
return false unless viz_sort_direction_validator.valid?(@viz_sort_direction)
|
|
710
|
+
viz_color_scheme_validator = EnumAttributeValidator.new('String', ["Default", "Sequential", "Diverging", "Categorical", "Monochrome", "Pastel", "Dark", "Light"])
|
|
711
|
+
return false unless viz_color_scheme_validator.valid?(@viz_color_scheme)
|
|
712
|
+
viz_filter_direction_validator = EnumAttributeValidator.new('String', ["TOP", "BOTTOM"])
|
|
713
|
+
return false unless viz_filter_direction_validator.valid?(@viz_filter_direction)
|
|
714
|
+
return false if @allow_params.nil?
|
|
715
|
+
return false if @accept_terms.nil?
|
|
716
|
+
geographic_coverage_type_validator = EnumAttributeValidator.new('String', ["GLOBAL", "CONTINENTAL", "REGIONAL", "NATIONAL", "STATE", "LOCAL", "CUSTOM", "UNKNOWN"])
|
|
717
|
+
return false unless geographic_coverage_type_validator.valid?(@geographic_coverage_type)
|
|
718
|
+
data_source_refresh_frequency_validator = EnumAttributeValidator.new('String', ["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MONTHLY", "QUARTERLY", "ANNUAL", "ONE_TIME", "CUSTOM", "UNKNOWN"])
|
|
719
|
+
return false unless data_source_refresh_frequency_validator.valid?(@data_source_refresh_frequency)
|
|
720
|
+
rate_limit_period_validator = EnumAttributeValidator.new('String', ["SECOND", "MINUTE", "HOUR", "DAY"])
|
|
721
|
+
return false unless rate_limit_period_validator.valid?(@rate_limit_period)
|
|
722
|
+
rate_limit_granularity_validator = EnumAttributeValidator.new('String', ["USER", "COMPANY", "IP", "GLOBAL"])
|
|
723
|
+
return false unless rate_limit_granularity_validator.valid?(@rate_limit_granularity)
|
|
724
|
+
true
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
# Custom attribute writer method with validation
|
|
728
|
+
# @param [Object] company_id Value to be assigned
|
|
729
|
+
def company_id=(company_id)
|
|
730
|
+
if company_id.nil?
|
|
731
|
+
fail ArgumentError, 'company_id cannot be nil'
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
@company_id = company_id
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
738
|
+
# @param [Object] approval_status Object to be assigned
|
|
739
|
+
def approval_status=(approval_status)
|
|
740
|
+
validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "NEEDS_REVISION"])
|
|
741
|
+
unless validator.valid?(approval_status)
|
|
742
|
+
fail ArgumentError, "invalid value for \"approval_status\", must be one of #{validator.allowable_values}."
|
|
743
|
+
end
|
|
744
|
+
@approval_status = approval_status
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# Custom attribute writer method with validation
|
|
748
|
+
# @param [Object] name Value to be assigned
|
|
749
|
+
def name=(name)
|
|
750
|
+
if name.nil?
|
|
751
|
+
fail ArgumentError, 'name cannot be nil'
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
@name = name
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
758
|
+
# @param [Object] source Object to be assigned
|
|
759
|
+
def source=(source)
|
|
760
|
+
validator = EnumAttributeValidator.new('String', ["MANUAL", "AUTOMATIC"])
|
|
761
|
+
unless validator.valid?(source)
|
|
762
|
+
fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
|
|
763
|
+
end
|
|
764
|
+
@source = source
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
768
|
+
# @param [Object] asset_type Object to be assigned
|
|
769
|
+
def asset_type=(asset_type)
|
|
770
|
+
validator = EnumAttributeValidator.new('String', ["CALCULATION", "VISUALIZATION", "DATA"])
|
|
771
|
+
unless validator.valid?(asset_type)
|
|
772
|
+
fail ArgumentError, "invalid value for \"asset_type\", must be one of #{validator.allowable_values}."
|
|
773
|
+
end
|
|
774
|
+
@asset_type = asset_type
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
778
|
+
# @param [Object] visibility Object to be assigned
|
|
779
|
+
def visibility=(visibility)
|
|
780
|
+
validator = EnumAttributeValidator.new('String', ["PRIVATE", "SHARED"])
|
|
781
|
+
unless validator.valid?(visibility)
|
|
782
|
+
fail ArgumentError, "invalid value for \"visibility\", must be one of #{validator.allowable_values}."
|
|
783
|
+
end
|
|
784
|
+
@visibility = visibility
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Custom attribute writer method with validation
|
|
788
|
+
# @param [Object] sell_in_marketplace Value to be assigned
|
|
789
|
+
def sell_in_marketplace=(sell_in_marketplace)
|
|
790
|
+
if sell_in_marketplace.nil?
|
|
791
|
+
fail ArgumentError, 'sell_in_marketplace cannot be nil'
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
@sell_in_marketplace = sell_in_marketplace
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Custom attribute writer method with validation
|
|
798
|
+
# @param [Object] require_customization Value to be assigned
|
|
799
|
+
def require_customization=(require_customization)
|
|
800
|
+
if require_customization.nil?
|
|
801
|
+
fail ArgumentError, 'require_customization cannot be nil'
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
@require_customization = require_customization
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
808
|
+
# @param [Object] viz_chart_library Object to be assigned
|
|
809
|
+
def viz_chart_library=(viz_chart_library)
|
|
810
|
+
validator = EnumAttributeValidator.new('String', ["PLOTLY", "MATPLOTLIB", "SEABORN"])
|
|
811
|
+
unless validator.valid?(viz_chart_library)
|
|
812
|
+
fail ArgumentError, "invalid value for \"viz_chart_library\", must be one of #{validator.allowable_values}."
|
|
813
|
+
end
|
|
814
|
+
@viz_chart_library = viz_chart_library
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
818
|
+
# @param [Object] viz_chart_type Object to be assigned
|
|
819
|
+
def viz_chart_type=(viz_chart_type)
|
|
820
|
+
validator = EnumAttributeValidator.new('String', ["LINE", "BAR", "PIE", "DOUGHNUT", "POLAR", "RADAR", "BUBBLE", "SCATTER"])
|
|
821
|
+
unless validator.valid?(viz_chart_type)
|
|
822
|
+
fail ArgumentError, "invalid value for \"viz_chart_type\", must be one of #{validator.allowable_values}."
|
|
823
|
+
end
|
|
824
|
+
@viz_chart_type = viz_chart_type
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
828
|
+
# @param [Object] viz_data_aggregation Object to be assigned
|
|
829
|
+
def viz_data_aggregation=(viz_data_aggregation)
|
|
830
|
+
validator = EnumAttributeValidator.new('String', ["No Aggregation", "Sum", "Average", "Count", "Minimum", "Maximum"])
|
|
831
|
+
unless validator.valid?(viz_data_aggregation)
|
|
832
|
+
fail ArgumentError, "invalid value for \"viz_data_aggregation\", must be one of #{validator.allowable_values}."
|
|
833
|
+
end
|
|
834
|
+
@viz_data_aggregation = viz_data_aggregation
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
838
|
+
# @param [Object] viz_sort_direction Object to be assigned
|
|
839
|
+
def viz_sort_direction=(viz_sort_direction)
|
|
840
|
+
validator = EnumAttributeValidator.new('String', ["No Sorting", "Ascending", "Descending"])
|
|
841
|
+
unless validator.valid?(viz_sort_direction)
|
|
842
|
+
fail ArgumentError, "invalid value for \"viz_sort_direction\", must be one of #{validator.allowable_values}."
|
|
843
|
+
end
|
|
844
|
+
@viz_sort_direction = viz_sort_direction
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
848
|
+
# @param [Object] viz_color_scheme Object to be assigned
|
|
849
|
+
def viz_color_scheme=(viz_color_scheme)
|
|
850
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Sequential", "Diverging", "Categorical", "Monochrome", "Pastel", "Dark", "Light"])
|
|
851
|
+
unless validator.valid?(viz_color_scheme)
|
|
852
|
+
fail ArgumentError, "invalid value for \"viz_color_scheme\", must be one of #{validator.allowable_values}."
|
|
853
|
+
end
|
|
854
|
+
@viz_color_scheme = viz_color_scheme
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
858
|
+
# @param [Object] viz_filter_direction Object to be assigned
|
|
859
|
+
def viz_filter_direction=(viz_filter_direction)
|
|
860
|
+
validator = EnumAttributeValidator.new('String', ["TOP", "BOTTOM"])
|
|
861
|
+
unless validator.valid?(viz_filter_direction)
|
|
862
|
+
fail ArgumentError, "invalid value for \"viz_filter_direction\", must be one of #{validator.allowable_values}."
|
|
863
|
+
end
|
|
864
|
+
@viz_filter_direction = viz_filter_direction
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# Custom attribute writer method with validation
|
|
868
|
+
# @param [Object] allow_params Value to be assigned
|
|
869
|
+
def allow_params=(allow_params)
|
|
870
|
+
if allow_params.nil?
|
|
871
|
+
fail ArgumentError, 'allow_params cannot be nil'
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
@allow_params = allow_params
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
# Custom attribute writer method with validation
|
|
878
|
+
# @param [Object] accept_terms Value to be assigned
|
|
879
|
+
def accept_terms=(accept_terms)
|
|
880
|
+
if accept_terms.nil?
|
|
881
|
+
fail ArgumentError, 'accept_terms cannot be nil'
|
|
882
|
+
end
|
|
883
|
+
|
|
884
|
+
@accept_terms = accept_terms
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
888
|
+
# @param [Object] geographic_coverage_type Object to be assigned
|
|
889
|
+
def geographic_coverage_type=(geographic_coverage_type)
|
|
890
|
+
validator = EnumAttributeValidator.new('String', ["GLOBAL", "CONTINENTAL", "REGIONAL", "NATIONAL", "STATE", "LOCAL", "CUSTOM", "UNKNOWN"])
|
|
891
|
+
unless validator.valid?(geographic_coverage_type)
|
|
892
|
+
fail ArgumentError, "invalid value for \"geographic_coverage_type\", must be one of #{validator.allowable_values}."
|
|
893
|
+
end
|
|
894
|
+
@geographic_coverage_type = geographic_coverage_type
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
898
|
+
# @param [Object] data_source_refresh_frequency Object to be assigned
|
|
899
|
+
def data_source_refresh_frequency=(data_source_refresh_frequency)
|
|
900
|
+
validator = EnumAttributeValidator.new('String', ["REAL_TIME", "HOURLY", "DAILY", "WEEKLY", "MONTHLY", "QUARTERLY", "ANNUAL", "ONE_TIME", "CUSTOM", "UNKNOWN"])
|
|
901
|
+
unless validator.valid?(data_source_refresh_frequency)
|
|
902
|
+
fail ArgumentError, "invalid value for \"data_source_refresh_frequency\", must be one of #{validator.allowable_values}."
|
|
903
|
+
end
|
|
904
|
+
@data_source_refresh_frequency = data_source_refresh_frequency
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
908
|
+
# @param [Object] rate_limit_period Object to be assigned
|
|
909
|
+
def rate_limit_period=(rate_limit_period)
|
|
910
|
+
validator = EnumAttributeValidator.new('String', ["SECOND", "MINUTE", "HOUR", "DAY"])
|
|
911
|
+
unless validator.valid?(rate_limit_period)
|
|
912
|
+
fail ArgumentError, "invalid value for \"rate_limit_period\", must be one of #{validator.allowable_values}."
|
|
913
|
+
end
|
|
914
|
+
@rate_limit_period = rate_limit_period
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
918
|
+
# @param [Object] rate_limit_granularity Object to be assigned
|
|
919
|
+
def rate_limit_granularity=(rate_limit_granularity)
|
|
920
|
+
validator = EnumAttributeValidator.new('String', ["USER", "COMPANY", "IP", "GLOBAL"])
|
|
921
|
+
unless validator.valid?(rate_limit_granularity)
|
|
922
|
+
fail ArgumentError, "invalid value for \"rate_limit_granularity\", must be one of #{validator.allowable_values}."
|
|
923
|
+
end
|
|
924
|
+
@rate_limit_granularity = rate_limit_granularity
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# Checks equality by comparing each attribute.
|
|
928
|
+
# @param [Object] Object to be compared
|
|
929
|
+
def ==(o)
|
|
930
|
+
return true if self.equal?(o)
|
|
931
|
+
self.class == o.class &&
|
|
932
|
+
date_created == o.date_created &&
|
|
933
|
+
last_updated == o.last_updated &&
|
|
934
|
+
asset_id == o.asset_id &&
|
|
935
|
+
user_id == o.user_id &&
|
|
936
|
+
company_id == o.company_id &&
|
|
937
|
+
connection_id == o.connection_id &&
|
|
938
|
+
llm_connection_id == o.llm_connection_id &&
|
|
939
|
+
snippet_id == o.snippet_id &&
|
|
940
|
+
industry_id == o.industry_id &&
|
|
941
|
+
ai_job_id == o.ai_job_id &&
|
|
942
|
+
auc_id == o.auc_id &&
|
|
943
|
+
function_id == o.function_id &&
|
|
944
|
+
approval_status == o.approval_status &&
|
|
945
|
+
approved_by_user_id == o.approved_by_user_id &&
|
|
946
|
+
approved_at == o.approved_at &&
|
|
947
|
+
name == o.name &&
|
|
948
|
+
slug == o.slug &&
|
|
949
|
+
description == o.description &&
|
|
950
|
+
detailed_description == o.detailed_description &&
|
|
951
|
+
source == o.source &&
|
|
952
|
+
asset_type == o.asset_type &&
|
|
953
|
+
asset_schema == o.asset_schema &&
|
|
954
|
+
visibility == o.visibility &&
|
|
955
|
+
tags == o.tags &&
|
|
956
|
+
short_code == o.short_code &&
|
|
957
|
+
restricted_domains == o.restricted_domains &&
|
|
958
|
+
sql_logic == o.sql_logic &&
|
|
959
|
+
source_schema_name == o.source_schema_name &&
|
|
960
|
+
source_table_name == o.source_table_name &&
|
|
961
|
+
sell_in_marketplace == o.sell_in_marketplace &&
|
|
962
|
+
require_customization == o.require_customization &&
|
|
963
|
+
viz_chart_library == o.viz_chart_library &&
|
|
964
|
+
viz_chart_type == o.viz_chart_type &&
|
|
965
|
+
viz_dep_var_col_name == o.viz_dep_var_col_name &&
|
|
966
|
+
viz_indep_var_col_name == o.viz_indep_var_col_name &&
|
|
967
|
+
viz_size_col_name == o.viz_size_col_name &&
|
|
968
|
+
viz_color_col_name == o.viz_color_col_name &&
|
|
969
|
+
viz_data_aggregation == o.viz_data_aggregation &&
|
|
970
|
+
viz_sort_direction == o.viz_sort_direction &&
|
|
971
|
+
viz_data_limit == o.viz_data_limit &&
|
|
972
|
+
viz_color_scheme == o.viz_color_scheme &&
|
|
973
|
+
viz_show_legend == o.viz_show_legend &&
|
|
974
|
+
viz_show_grid == o.viz_show_grid &&
|
|
975
|
+
viz_show_trendline == o.viz_show_trendline &&
|
|
976
|
+
viz_line_smoothing == o.viz_line_smoothing &&
|
|
977
|
+
viz_bar_stacked == o.viz_bar_stacked &&
|
|
978
|
+
viz_filter_direction == o.viz_filter_direction &&
|
|
979
|
+
allow_params == o.allow_params &&
|
|
980
|
+
accept_terms == o.accept_terms &&
|
|
981
|
+
cached == o.cached &&
|
|
982
|
+
schedule == o.schedule &&
|
|
983
|
+
next_run == o.next_run &&
|
|
984
|
+
data_time_period_start == o.data_time_period_start &&
|
|
985
|
+
data_time_period_end == o.data_time_period_end &&
|
|
986
|
+
geographic_coverage_type == o.geographic_coverage_type &&
|
|
987
|
+
geographic_coverage_details == o.geographic_coverage_details &&
|
|
988
|
+
data_source_refresh_frequency == o.data_source_refresh_frequency &&
|
|
989
|
+
data_source_last_refreshed == o.data_source_last_refreshed &&
|
|
990
|
+
rate_limit_number == o.rate_limit_number &&
|
|
991
|
+
rate_limit_period == o.rate_limit_period &&
|
|
992
|
+
rate_limit_granularity == o.rate_limit_granularity
|
|
993
|
+
end
|
|
994
|
+
|
|
995
|
+
# @see the `==` method
|
|
996
|
+
# @param [Object] Object to be compared
|
|
997
|
+
def eql?(o)
|
|
998
|
+
self == o
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
# Calculates hash code according to all attributes.
|
|
1002
|
+
# @return [Integer] Hash code
|
|
1003
|
+
def hash
|
|
1004
|
+
[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, short_code, restricted_domains, sql_logic, source_schema_name, source_table_name, sell_in_marketplace, require_customization, 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, geographic_coverage_type, geographic_coverage_details, data_source_refresh_frequency, data_source_last_refreshed, rate_limit_number, rate_limit_period, rate_limit_granularity].hash
|
|
1005
|
+
end
|
|
1006
|
+
|
|
1007
|
+
# Builds the object from hash
|
|
1008
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
1009
|
+
# @return [Object] Returns the model itself
|
|
1010
|
+
def self.build_from_hash(attributes)
|
|
1011
|
+
return nil unless attributes.is_a?(Hash)
|
|
1012
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
1013
|
+
transformed_hash = {}
|
|
1014
|
+
openapi_types.each_pair do |key, type|
|
|
1015
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
1016
|
+
transformed_hash["#{key}"] = nil
|
|
1017
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
1018
|
+
# check to ensure the input is an array given that the attribute
|
|
1019
|
+
# is documented as an array but the input is not
|
|
1020
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
1021
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
1022
|
+
end
|
|
1023
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
1024
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
1025
|
+
end
|
|
1026
|
+
end
|
|
1027
|
+
new(transformed_hash)
|
|
1028
|
+
end
|
|
1029
|
+
|
|
1030
|
+
# Returns the object in the form of hash
|
|
1031
|
+
# @return [Hash] Returns the object in the form of hash
|
|
1032
|
+
def to_hash
|
|
1033
|
+
hash = {}
|
|
1034
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
1035
|
+
value = self.send(attr)
|
|
1036
|
+
if value.nil?
|
|
1037
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
1038
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
hash[param] = _to_hash(value)
|
|
1042
|
+
end
|
|
1043
|
+
hash
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
end
|