spartera_api_sdk 1.0.77 → 1.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +150 -126
- data/docs/Alerts.md +13 -13
- data/docs/AlertsApi.md +139 -139
- data/docs/AlertsInput.md +7 -7
- data/docs/AlertsUpdate.md +7 -7
- data/docs/ApiKeys.md +19 -11
- data/docs/ApiKeysInput.md +13 -5
- data/docs/ApiKeysUpdate.md +13 -5
- data/docs/AssetPriceHistory.md +14 -12
- data/docs/AssetPriceHistoryApi.md +164 -164
- data/docs/AssetPriceHistoryInput.md +8 -6
- data/docs/AssetPriceHistoryUpdate.md +8 -6
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +113 -83
- data/docs/AssetsApi.md +534 -206
- data/docs/AssetsInput.md +100 -70
- data/docs/AssetsUpdate.md +100 -70
- data/docs/CloudProviders.md +12 -12
- data/docs/CloudProvidersApi.md +44 -31
- data/docs/CloudProvidersInput.md +6 -6
- data/docs/CloudProvidersUpdate.md +6 -6
- data/docs/Companies.md +27 -23
- data/docs/CompaniesApi.md +313 -147
- data/docs/CompaniesInput.md +21 -17
- data/docs/CompaniesUpdate.md +21 -17
- data/docs/Connections.md +22 -22
- data/docs/ConnectionsApi.md +149 -125
- data/docs/ConnectionsInput.md +16 -16
- data/docs/ConnectionsUpdate.md +16 -16
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md → CreateAlerts200ResponseData.md} +2 -2
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysPost200ResponseData.md → CreateApiKeys200ResponseData.md} +2 -2
- data/docs/{CompaniesCompanyIdPatch200Response.md → CreateAssetPriceHistory200Response.md} +3 -3
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesPost200ResponseData.md → CreateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsPost200ResponseData.md → CreateAssetsAnalyze200ResponseData.md} +2 -2
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsPost200ResponseData.md → CreateConnections200ResponseData.md} +2 -2
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md → CreateFavorites200ResponseData.md} +2 -2
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersPost200ResponseData.md → CreateUsers200ResponseData.md} +2 -2
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md → DeleteAlerts200ResponseData.md} +2 -2
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdDelete200ResponseData.md → DeleteApiKeys200ResponseData.md} +2 -2
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200ResponseData.md → DeleteAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md → DeleteAssets200ResponseData.md} +2 -2
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md → DeleteConnections200ResponseData.md} +2 -2
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md → DeleteFavorites200ResponseData.md} +2 -2
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdDelete200ResponseData.md → DeleteUsers200ResponseData.md} +2 -2
- data/docs/Endpoints.md +80 -0
- data/docs/EndpointsApi.md +1043 -0
- data/docs/EndpointsInput.md +78 -0
- data/docs/EndpointsUpdate.md +78 -0
- data/docs/Favorites.md +15 -15
- data/docs/FavoritesApi.md +159 -159
- data/docs/FavoritesInput.md +9 -9
- data/docs/FavoritesUpdate.md +9 -9
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAssetAssetIdGet200Response.md → GetAlertsById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdGet200Response.md → GetApiKeysById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdGet200Response.md → GetAssetPriceHistoryById200Response.md} +2 -2
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/{AnalyzeCompanyHandleAssetsAssetSlugGet200Response.md → GetAssetsByIdAnalyze200Response.md} +2 -2
- data/docs/{CloudProvidersProviderIdGet200Response.md → GetCloudProvidersById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdGet200Response.md → GetCompaniesById200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdGet200Response.md → GetConnectionsById200Response.md} +2 -2
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesCategoryCategoryGet200Response.md → GetFavoritesById200Response.md} +2 -2
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/{JobFunctionsFunctionIdGet200Response.md → GetJobFunctionsById200Response.md} +2 -2
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdGet200Response.md → GetUsersById200Response.md} +2 -2
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +8 -8
- data/docs/JobFunctionsApi.md +38 -25
- data/docs/JobFunctionsInput.md +2 -2
- data/docs/JobFunctionsUpdate.md +2 -2
- data/docs/{CompaniesCompanyIdApiKeysGet200Response.md → ListApiKeys200Response.md} +2 -2
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsGet200Response.md → ListAssets200Response.md} +2 -2
- data/docs/{CloudProvidersGet200Response.md → ListCloudProviders200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdAnalyticsAssetsGet200Response.md → ListCompaniesAnalyticsAssets200Response.md} +2 -2
- data/docs/{CompaniesCompanyIdConnectionsGet200Response.md → ListConnections200Response.md} +2 -2
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/{JobFunctionsGet200Response.md → ListJobFunctions200Response.md} +2 -2
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersGet200Response.md → ListUsers200Response.md} +2 -2
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +40 -28
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md → UpdateAlerts200ResponseData.md} +2 -2
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/{CompaniesCompanyIdApiKeysApiKeyIdPatch200ResponseData.md → UpdateApiKeys200ResponseData.md} +2 -2
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200ResponseData.md → UpdateAssetPriceHistory200ResponseData.md} +2 -2
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/{CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md → UpdateAssets200ResponseData.md} +2 -2
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/{CompaniesCompanyIdPatch200ResponseData.md → UpdateCompanies200ResponseData.md} +2 -2
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/{CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md → UpdateConnections200ResponseData.md} +2 -2
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md → UpdateFavorites200ResponseData.md} +2 -2
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/{CompaniesCompanyIdUsersUserIdPatch200ResponseData.md → UpdateUsers200ResponseData.md} +2 -2
- data/docs/Users.md +20 -16
- data/docs/UsersApi.md +302 -97
- data/docs/UsersInput.md +14 -10
- data/docs/UsersUpdate.md +14 -10
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +414 -167
- data/lib/spartera_api_sdk/api/api_keys_api.rb +386 -152
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +454 -207
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +949 -225
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +83 -31
- data/lib/spartera_api_sdk/api/companies_api.rb +651 -148
- data/lib/spartera_api_sdk/api/connections_api.rb +376 -142
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1416 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +456 -196
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +75 -23
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +107 -29
- data/lib/spartera_api_sdk/api/users_api.rb +574 -105
- data/lib/spartera_api_sdk/api_client.rb +8 -4
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +2 -2
- data/lib/spartera_api_sdk/models/alerts.rb +10 -77
- data/lib/spartera_api_sdk/models/alerts_input.rb +6 -76
- data/lib/spartera_api_sdk/models/alerts_update.rb +6 -76
- data/lib/spartera_api_sdk/models/api_keys.rb +82 -78
- data/lib/spartera_api_sdk/models/api_keys_input.rb +44 -77
- data/lib/spartera_api_sdk/models/api_keys_update.rb +44 -77
- data/lib/spartera_api_sdk/models/asset_price_history.rb +21 -96
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +17 -95
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +17 -78
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +262 -93
- data/lib/spartera_api_sdk/models/assets_input.rb +238 -91
- data/lib/spartera_api_sdk/models/assets_update.rb +238 -91
- data/lib/spartera_api_sdk/models/cloud_providers.rb +10 -77
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +6 -76
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +6 -76
- data/lib/spartera_api_sdk/models/companies.rb +72 -81
- data/lib/spartera_api_sdk/models/companies_input.rb +68 -80
- data/lib/spartera_api_sdk/models/companies_update.rb +68 -80
- data/lib/spartera_api_sdk/models/connections.rb +15 -78
- data/lib/spartera_api_sdk/models/connections_input.rb +11 -77
- data/lib/spartera_api_sdk/models/connections_update.rb +11 -77
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_get200_response.rb → create_alerts200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_post200_response_data.rb → create_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_post200_response_data.rb → create_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response.rb → create_asset_price_history200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_post200_response_data.rb → create_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_post200_response_data.rb → create_assets_analyze200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_post200_response_data.rb → create_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_post200_response_data.rb → create_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/{job_functions_function_id_get200_response.rb → create_postgen_integrations200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_post200_response_data.rb → create_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb → delete_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_delete200_response_data.rb → delete_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data.rb → delete_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_delete200_response_data.rb → delete_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_delete200_response_data.rb → delete_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb → delete_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response_data.rb → delete_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/endpoints.rb +684 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +582 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +531 -0
- data/lib/spartera_api_sdk/models/error.rb +3 -76
- data/lib/spartera_api_sdk/models/favorites.rb +10 -77
- data/lib/spartera_api_sdk/models/favorites_input.rb +6 -76
- data/lib/spartera_api_sdk/models/favorites_update.rb +6 -76
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_get200_response.rb → get_api_keys_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_get200_response.rb → get_asset_price_history_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{analyze_company_handle_assets_asset_slug_get200_response.rb → get_assets_by_id_analyze200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_get200_response.rb → get_cloud_providers_by_id200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_get200_response.rb → get_connections_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_delete200_response.rb → get_endpoints_by_id_connections_describe200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_get200_response.rb → get_postgen_integrations_by_id200_response.rb} +7 -82
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_get200_response.rb → get_users_by_id200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object1.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object2.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object3.rb +3 -76
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_provider_id_storage_engines_get200_response.rb → inline_object6.rb} +22 -102
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +8 -77
- data/lib/spartera_api_sdk/models/job_functions_input.rb +4 -76
- data/lib/spartera_api_sdk/models/job_functions_update.rb +4 -76
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{cloud_providers_get200_response.rb → list_asset_usecases200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_get200_response.rb → list_assets200_response.rb} +5 -78
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_get200_response.rb → list_companies_analytics_assets200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/{job_functions_get200_response.rb → list_connections200_response.rb} +6 -79
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb → update_alerts200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_api_keys_api_key_id_patch200_response_data.rb → update_api_keys200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data.rb → update_asset_price_history200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_assets_asset_id_patch200_response_data.rb → update_assets200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_patch200_response_data.rb → update_companies200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_connections_connection_id_patch200_response_data.rb → update_connections200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb → update_favorites200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/{companies_company_id_users_user_id_patch200_response_data.rb → update_users200_response_data.rb} +5 -78
- data/lib/spartera_api_sdk/models/users.rb +70 -82
- data/lib/spartera_api_sdk/models/users_input.rb +32 -81
- data/lib/spartera_api_sdk/models/users_update.rb +32 -81
- data/lib/spartera_api_sdk/version.rb +13 -1
- data/lib/spartera_api_sdk.rb +118 -67
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +50 -50
- data/spec/api/api_keys_api_spec.rb +53 -43
- data/spec/api/asset_price_history_api_spec.rb +57 -57
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +134 -69
- data/spec/api/cloud_providers_api_spec.rb +16 -11
- data/spec/api/companies_api_spec.rb +99 -48
- data/spec/api/connections_api_spec.rb +53 -43
- data/spec/api/endpoints_api_spec.rb +215 -0
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +14 -9
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +16 -11
- data/spec/api/users_api_spec.rb +81 -32
- data/spec/models/alerts_input_spec.rb +3 -3
- data/spec/models/alerts_spec.rb +3 -3
- data/spec/models/alerts_update_spec.rb +3 -3
- data/spec/models/api_keys_input_spec.rb +27 -3
- data/spec/models/api_keys_spec.rb +27 -3
- data/spec/models/api_keys_update_spec.rb +27 -3
- data/spec/models/asset_price_history_input_spec.rb +9 -3
- data/spec/models/asset_price_history_spec.rb +9 -3
- data/spec/models/asset_price_history_update_spec.rb +9 -3
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +110 -4
- data/spec/models/assets_spec.rb +110 -4
- data/spec/models/assets_update_spec.rb +110 -4
- data/spec/models/cloud_providers_input_spec.rb +3 -3
- data/spec/models/cloud_providers_spec.rb +3 -3
- data/spec/models/cloud_providers_update_spec.rb +3 -3
- data/spec/models/companies_input_spec.rb +19 -3
- data/spec/models/companies_spec.rb +19 -3
- data/spec/models/companies_update_spec.rb +19 -3
- data/spec/models/connections_input_spec.rb +3 -3
- data/spec/models/connections_spec.rb +3 -3
- data/spec/models/connections_update_spec.rb +3 -3
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_post200_response_data_spec.rb → create_api_keys200_response_data_spec.rb} +8 -8
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/{companies_company_id_patch200_response_spec.rb → create_asset_price_history200_response_spec.rb} +8 -8
- data/spec/models/{companies_company_id_assets_post200_response_data_spec.rb → create_assets_analyze200_response_data_spec.rb} +8 -8
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_connections_post200_response_data_spec.rb → create_connections200_response_data_spec.rb} +8 -8
- data/spec/models/{cloud_providers_get200_response_spec.rb → create_connections200_response_spec.rb} +8 -8
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/{job_functions_function_id_get200_response_spec.rb → create_postgen_integrations200_response_spec.rb} +8 -8
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_post200_response_data_spec.rb → create_users200_response_data_spec.rb} +8 -8
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_assets_asset_id_patch200_response_data_spec.rb → delete_assets200_response_data_spec.rb} +8 -8
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_patch200_response_data_spec.rb → delete_users200_response_data_spec.rb} +8 -8
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +236 -0
- data/spec/models/endpoints_spec.rb +242 -0
- data/spec/models/endpoints_update_spec.rb +236 -0
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/favorites_input_spec.rb +3 -3
- data/spec/models/favorites_spec.rb +3 -3
- data/spec/models/favorites_update_spec.rb +3 -3
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/{job_functions_get200_response_spec.rb → get_api_keys_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_get200_response_spec.rb → get_cloud_providers_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_spec.rb → get_endpoints_by_id_connections_describe200_response_spec.rb} +8 -8
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_get200_response_spec.rb → get_postgen_integrations_by_id200_response_spec.rb} +8 -8
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/{cloud_providers_provider_id_get200_response_spec.rb → inline_object6_spec.rb} +15 -9
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/job_functions_input_spec.rb +3 -3
- data/spec/models/job_functions_spec.rb +3 -3
- data/spec/models/job_functions_update_spec.rb +3 -3
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_api_keys_get200_response_spec.rb → list_companies_analytics_assets200_response_spec.rb} +8 -8
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_patch200_response_data_spec.rb → update_companies200_response_data_spec.rb} +8 -8
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/{companies_company_id_users_user_id_delete200_response_data_spec.rb → update_users200_response_data_spec.rb} +8 -8
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +15 -3
- data/spec/models/users_spec.rb +15 -3
- data/spec/models/users_update_spec.rb +15 -3
- data/spec/spec_helper.rb +111 -0
- metadata +515 -337
- data/docs/CloudProvidersProviderIdStorageEnginesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysApiKeyIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdApiKeysPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesAphIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsAssetIdPricesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +0 -20
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +0 -20
- data/lib/spartera_api_sdk/models/companies_company_id_analytics_assets_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_api_key_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_prices_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_category_category_get200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +0 -266
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +0 -264
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +0 -264
- data/spec/models/analyze_company_handle_assets_asset_slug_get200_response_spec.rb +0 -42
- data/spec/models/cloud_providers_provider_id_storage_engines_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_analytics_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_api_keys_api_key_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_api_keys_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_aph_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_assets_asset_id_prices_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_asset_asset_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_category_category_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +0 -36
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +0 -42
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +0 -42
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#Auto-generated API documentation for REST services of the Spartera platform
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.25.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,41 +19,67 @@ module SparteraApiSdk
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
# @param company_id [String]
|
|
24
|
-
# @param user_id [String]
|
|
25
|
-
# @param
|
|
22
|
+
# POST /companies/{company_id}/users/{user_id}/favorites
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
|
+
# @param user_id [String] Unique identifier for the User
|
|
25
|
+
# @param favorites_input [FavoritesInput]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
27
|
+
# @return [CreateFavorites200Response]
|
|
28
|
+
def create_favorites(company_id, user_id, favorites_input, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_favorites_with_http_info(company_id, user_id, favorites_input, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
# @param company_id [String]
|
|
35
|
-
# @param user_id [String]
|
|
36
|
-
# @param
|
|
33
|
+
# POST /companies/{company_id}/users/{user_id}/favorites
|
|
34
|
+
# @param company_id [String] Unique identifier for the Company
|
|
35
|
+
# @param user_id [String] Unique identifier for the User
|
|
36
|
+
# @param favorites_input [FavoritesInput]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
39
|
-
def
|
|
38
|
+
# @return [Array<(CreateFavorites200Response, Integer, Hash)>] CreateFavorites200Response data, response status code and response headers
|
|
39
|
+
def create_favorites_with_http_info(company_id, user_id, favorites_input, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.create_favorites ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'company_id' is set
|
|
44
44
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.create_favorites"
|
|
46
46
|
end
|
|
47
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
48
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.create_favorites, the character length must be smaller than or equal to 255.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
52
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.create_favorites, the character length must be greater than or equal to 1.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
56
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
57
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.create_favorites, must conform to the pattern #{pattern}."
|
|
58
|
+
end
|
|
59
|
+
|
|
47
60
|
# verify the required parameter 'user_id' is set
|
|
48
61
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
62
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.create_favorites"
|
|
50
63
|
end
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
65
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.create_favorites, the character length must be smaller than or equal to 255.'
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
69
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.create_favorites, the character length must be greater than or equal to 1.'
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
73
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
74
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.create_favorites, must conform to the pattern #{pattern}."
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# verify the required parameter 'favorites_input' is set
|
|
78
|
+
if @api_client.config.client_side_validation && favorites_input.nil?
|
|
79
|
+
fail ArgumentError, "Missing the required parameter 'favorites_input' when calling FavoritesApi.create_favorites"
|
|
54
80
|
end
|
|
55
81
|
# resource path
|
|
56
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites
|
|
82
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
57
83
|
|
|
58
84
|
# query parameters
|
|
59
85
|
query_params = opts[:query_params] || {}
|
|
@@ -62,21 +88,26 @@ module SparteraApiSdk
|
|
|
62
88
|
header_params = opts[:header_params] || {}
|
|
63
89
|
# HTTP header 'Accept' (if needed)
|
|
64
90
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
91
|
+
# HTTP header 'Content-Type'
|
|
92
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
93
|
+
if !content_type.nil?
|
|
94
|
+
header_params['Content-Type'] = content_type
|
|
95
|
+
end
|
|
65
96
|
|
|
66
97
|
# form parameters
|
|
67
98
|
form_params = opts[:form_params] || {}
|
|
68
99
|
|
|
69
100
|
# http body (model)
|
|
70
|
-
post_body = opts[:debug_body]
|
|
101
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(favorites_input)
|
|
71
102
|
|
|
72
103
|
# return_type
|
|
73
|
-
return_type = opts[:debug_return_type] || '
|
|
104
|
+
return_type = opts[:debug_return_type] || 'CreateFavorites200Response'
|
|
74
105
|
|
|
75
106
|
# auth_names
|
|
76
107
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
77
108
|
|
|
78
109
|
new_options = opts.merge(
|
|
79
|
-
:operation => :"FavoritesApi.
|
|
110
|
+
:operation => :"FavoritesApi.create_favorites",
|
|
80
111
|
:header_params => header_params,
|
|
81
112
|
:query_params => query_params,
|
|
82
113
|
:form_params => form_params,
|
|
@@ -85,48 +116,87 @@ module SparteraApiSdk
|
|
|
85
116
|
:return_type => return_type
|
|
86
117
|
)
|
|
87
118
|
|
|
88
|
-
data, status_code, headers = @api_client.call_api(:
|
|
119
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
89
120
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
121
|
+
@api_client.config.logger.debug "API called: FavoritesApi#create_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
122
|
end
|
|
92
123
|
return data, status_code, headers
|
|
93
124
|
end
|
|
94
125
|
|
|
95
|
-
#
|
|
96
|
-
# @param company_id [String]
|
|
97
|
-
# @param user_id [String]
|
|
98
|
-
# @param
|
|
126
|
+
# Delete single favorite by ID (unfavorite an asset)
|
|
127
|
+
# @param company_id [String] Unique identifier for the Company
|
|
128
|
+
# @param user_id [String] Unique identifier for the User
|
|
129
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
99
130
|
# @param [Hash] opts the optional parameters
|
|
100
|
-
# @return [
|
|
101
|
-
def
|
|
102
|
-
data, _status_code, _headers =
|
|
131
|
+
# @return [DeleteFavorites200Response]
|
|
132
|
+
def delete_favorites(company_id, user_id, favorite_id, opts = {})
|
|
133
|
+
data, _status_code, _headers = delete_favorites_with_http_info(company_id, user_id, favorite_id, opts)
|
|
103
134
|
data
|
|
104
135
|
end
|
|
105
136
|
|
|
106
|
-
#
|
|
107
|
-
# @param company_id [String]
|
|
108
|
-
# @param user_id [String]
|
|
109
|
-
# @param
|
|
137
|
+
# Delete single favorite by ID (unfavorite an asset)
|
|
138
|
+
# @param company_id [String] Unique identifier for the Company
|
|
139
|
+
# @param user_id [String] Unique identifier for the User
|
|
140
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
110
141
|
# @param [Hash] opts the optional parameters
|
|
111
|
-
# @return [Array<(
|
|
112
|
-
def
|
|
142
|
+
# @return [Array<(DeleteFavorites200Response, Integer, Hash)>] DeleteFavorites200Response data, response status code and response headers
|
|
143
|
+
def delete_favorites_with_http_info(company_id, user_id, favorite_id, opts = {})
|
|
113
144
|
if @api_client.config.debugging
|
|
114
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
145
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.delete_favorites ...'
|
|
115
146
|
end
|
|
116
147
|
# verify the required parameter 'company_id' is set
|
|
117
148
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
118
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
149
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.delete_favorites"
|
|
150
|
+
end
|
|
151
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
152
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.delete_favorites, the character length must be smaller than or equal to 255.'
|
|
119
153
|
end
|
|
154
|
+
|
|
155
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
156
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.delete_favorites, the character length must be greater than or equal to 1.'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
160
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
161
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.delete_favorites, must conform to the pattern #{pattern}."
|
|
162
|
+
end
|
|
163
|
+
|
|
120
164
|
# verify the required parameter 'user_id' is set
|
|
121
165
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
122
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.delete_favorites"
|
|
123
167
|
end
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
fail ArgumentError, "Missing the required parameter 'asset_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get"
|
|
168
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
169
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.delete_favorites, the character length must be smaller than or equal to 255.'
|
|
127
170
|
end
|
|
171
|
+
|
|
172
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
173
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.delete_favorites, the character length must be greater than or equal to 1.'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
177
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
178
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.delete_favorites, must conform to the pattern #{pattern}."
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# verify the required parameter 'favorite_id' is set
|
|
182
|
+
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.delete_favorites"
|
|
184
|
+
end
|
|
185
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length > 255
|
|
186
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.delete_favorites, the character length must be smaller than or equal to 255.'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.delete_favorites, the character length must be greater than or equal to 1.'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
194
|
+
if @api_client.config.client_side_validation && favorite_id !~ pattern
|
|
195
|
+
fail ArgumentError, "invalid value for 'favorite_id' when calling FavoritesApi.delete_favorites, must conform to the pattern #{pattern}."
|
|
196
|
+
end
|
|
197
|
+
|
|
128
198
|
# resource path
|
|
129
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/
|
|
199
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/{favorite_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'favorite_id' + '}', CGI.escape(favorite_id.to_s))
|
|
130
200
|
|
|
131
201
|
# query parameters
|
|
132
202
|
query_params = opts[:query_params] || {}
|
|
@@ -143,13 +213,13 @@ module SparteraApiSdk
|
|
|
143
213
|
post_body = opts[:debug_body]
|
|
144
214
|
|
|
145
215
|
# return_type
|
|
146
|
-
return_type = opts[:debug_return_type] || '
|
|
216
|
+
return_type = opts[:debug_return_type] || 'DeleteFavorites200Response'
|
|
147
217
|
|
|
148
218
|
# auth_names
|
|
149
219
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
150
220
|
|
|
151
221
|
new_options = opts.merge(
|
|
152
|
-
:operation => :"FavoritesApi.
|
|
222
|
+
:operation => :"FavoritesApi.delete_favorites",
|
|
153
223
|
:header_params => header_params,
|
|
154
224
|
:query_params => query_params,
|
|
155
225
|
:form_params => form_params,
|
|
@@ -158,48 +228,68 @@ module SparteraApiSdk
|
|
|
158
228
|
:return_type => return_type
|
|
159
229
|
)
|
|
160
230
|
|
|
161
|
-
data, status_code, headers = @api_client.call_api(:
|
|
231
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
162
232
|
if @api_client.config.debugging
|
|
163
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
233
|
+
@api_client.config.logger.debug "API called: FavoritesApi#delete_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
234
|
end
|
|
165
235
|
return data, status_code, headers
|
|
166
236
|
end
|
|
167
237
|
|
|
168
|
-
#
|
|
169
|
-
# @param company_id [String]
|
|
170
|
-
# @param user_id [String]
|
|
171
|
-
# @param favorite_id [String]
|
|
238
|
+
# Get a list of all favorites for a specific user
|
|
239
|
+
# @param company_id [String] Unique identifier for the Company
|
|
240
|
+
# @param user_id [String] Unique identifier for the User
|
|
172
241
|
# @param [Hash] opts the optional parameters
|
|
173
|
-
# @return [
|
|
174
|
-
def
|
|
175
|
-
data, _status_code, _headers =
|
|
242
|
+
# @return [GetFavoritesById200Response]
|
|
243
|
+
def get_favorites_by_id(company_id, user_id, opts = {})
|
|
244
|
+
data, _status_code, _headers = get_favorites_by_id_with_http_info(company_id, user_id, opts)
|
|
176
245
|
data
|
|
177
246
|
end
|
|
178
247
|
|
|
179
|
-
#
|
|
180
|
-
# @param company_id [String]
|
|
181
|
-
# @param user_id [String]
|
|
182
|
-
# @param favorite_id [String]
|
|
248
|
+
# Get a list of all favorites for a specific user
|
|
249
|
+
# @param company_id [String] Unique identifier for the Company
|
|
250
|
+
# @param user_id [String] Unique identifier for the User
|
|
183
251
|
# @param [Hash] opts the optional parameters
|
|
184
|
-
# @return [Array<(
|
|
185
|
-
def
|
|
252
|
+
# @return [Array<(GetFavoritesById200Response, Integer, Hash)>] GetFavoritesById200Response data, response status code and response headers
|
|
253
|
+
def get_favorites_by_id_with_http_info(company_id, user_id, opts = {})
|
|
186
254
|
if @api_client.config.debugging
|
|
187
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
255
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.get_favorites_by_id ...'
|
|
188
256
|
end
|
|
189
257
|
# verify the required parameter 'company_id' is set
|
|
190
258
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
191
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.get_favorites_by_id"
|
|
192
260
|
end
|
|
261
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
262
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id, the character length must be smaller than or equal to 255.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
266
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id, the character length must be greater than or equal to 1.'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
270
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
271
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.get_favorites_by_id, must conform to the pattern #{pattern}."
|
|
272
|
+
end
|
|
273
|
+
|
|
193
274
|
# verify the required parameter 'user_id' is set
|
|
194
275
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
195
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.get_favorites_by_id"
|
|
196
277
|
end
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
278
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
279
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id, the character length must be smaller than or equal to 255.'
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
283
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id, the character length must be greater than or equal to 1.'
|
|
200
284
|
end
|
|
285
|
+
|
|
286
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
287
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
288
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.get_favorites_by_id, must conform to the pattern #{pattern}."
|
|
289
|
+
end
|
|
290
|
+
|
|
201
291
|
# resource path
|
|
202
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites
|
|
292
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
203
293
|
|
|
204
294
|
# query parameters
|
|
205
295
|
query_params = opts[:query_params] || {}
|
|
@@ -216,13 +306,13 @@ module SparteraApiSdk
|
|
|
216
306
|
post_body = opts[:debug_body]
|
|
217
307
|
|
|
218
308
|
# return_type
|
|
219
|
-
return_type = opts[:debug_return_type] || '
|
|
309
|
+
return_type = opts[:debug_return_type] || 'GetFavoritesById200Response'
|
|
220
310
|
|
|
221
311
|
# auth_names
|
|
222
312
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
223
313
|
|
|
224
314
|
new_options = opts.merge(
|
|
225
|
-
:operation => :"FavoritesApi.
|
|
315
|
+
:operation => :"FavoritesApi.get_favorites_by_id",
|
|
226
316
|
:header_params => header_params,
|
|
227
317
|
:query_params => query_params,
|
|
228
318
|
:form_params => form_params,
|
|
@@ -231,46 +321,85 @@ module SparteraApiSdk
|
|
|
231
321
|
:return_type => return_type
|
|
232
322
|
)
|
|
233
323
|
|
|
234
|
-
data, status_code, headers = @api_client.call_api(:
|
|
324
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
235
325
|
if @api_client.config.debugging
|
|
236
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
326
|
+
@api_client.config.logger.debug "API called: FavoritesApi#get_favorites_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
237
327
|
end
|
|
238
328
|
return data, status_code, headers
|
|
239
329
|
end
|
|
240
330
|
|
|
241
331
|
# Get single favorite by ID
|
|
242
|
-
# @param company_id [String]
|
|
243
|
-
# @param user_id [String]
|
|
244
|
-
# @param favorite_id [String]
|
|
332
|
+
# @param company_id [String] Unique identifier for the Company
|
|
333
|
+
# @param user_id [String] Unique identifier for the User
|
|
334
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
245
335
|
# @param [Hash] opts the optional parameters
|
|
246
|
-
# @return [
|
|
247
|
-
def
|
|
248
|
-
data, _status_code, _headers =
|
|
336
|
+
# @return [GetFavoritesById200Response]
|
|
337
|
+
def get_favorites_by_id_users(company_id, user_id, favorite_id, opts = {})
|
|
338
|
+
data, _status_code, _headers = get_favorites_by_id_users_with_http_info(company_id, user_id, favorite_id, opts)
|
|
249
339
|
data
|
|
250
340
|
end
|
|
251
341
|
|
|
252
342
|
# Get single favorite by ID
|
|
253
|
-
# @param company_id [String]
|
|
254
|
-
# @param user_id [String]
|
|
255
|
-
# @param favorite_id [String]
|
|
343
|
+
# @param company_id [String] Unique identifier for the Company
|
|
344
|
+
# @param user_id [String] Unique identifier for the User
|
|
345
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
256
346
|
# @param [Hash] opts the optional parameters
|
|
257
|
-
# @return [Array<(
|
|
258
|
-
def
|
|
347
|
+
# @return [Array<(GetFavoritesById200Response, Integer, Hash)>] GetFavoritesById200Response data, response status code and response headers
|
|
348
|
+
def get_favorites_by_id_users_with_http_info(company_id, user_id, favorite_id, opts = {})
|
|
259
349
|
if @api_client.config.debugging
|
|
260
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
350
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.get_favorites_by_id_users ...'
|
|
261
351
|
end
|
|
262
352
|
# verify the required parameter 'company_id' is set
|
|
263
353
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
264
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
354
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.get_favorites_by_id_users"
|
|
355
|
+
end
|
|
356
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
357
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be smaller than or equal to 255.'
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
361
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be greater than or equal to 1.'
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
365
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
366
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.get_favorites_by_id_users, must conform to the pattern #{pattern}."
|
|
265
367
|
end
|
|
368
|
+
|
|
266
369
|
# verify the required parameter 'user_id' is set
|
|
267
370
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
268
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
371
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.get_favorites_by_id_users"
|
|
372
|
+
end
|
|
373
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
374
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be smaller than or equal to 255.'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
378
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be greater than or equal to 1.'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
382
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
383
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.get_favorites_by_id_users, must conform to the pattern #{pattern}."
|
|
269
384
|
end
|
|
385
|
+
|
|
270
386
|
# verify the required parameter 'favorite_id' is set
|
|
271
387
|
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
272
|
-
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.
|
|
388
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.get_favorites_by_id_users"
|
|
273
389
|
end
|
|
390
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length > 255
|
|
391
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be smaller than or equal to 255.'
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length < 1
|
|
395
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.get_favorites_by_id_users, the character length must be greater than or equal to 1.'
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
399
|
+
if @api_client.config.client_side_validation && favorite_id !~ pattern
|
|
400
|
+
fail ArgumentError, "invalid value for 'favorite_id' when calling FavoritesApi.get_favorites_by_id_users, must conform to the pattern #{pattern}."
|
|
401
|
+
end
|
|
402
|
+
|
|
274
403
|
# resource path
|
|
275
404
|
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/{favorite_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'favorite_id' + '}', CGI.escape(favorite_id.to_s))
|
|
276
405
|
|
|
@@ -289,13 +418,13 @@ module SparteraApiSdk
|
|
|
289
418
|
post_body = opts[:debug_body]
|
|
290
419
|
|
|
291
420
|
# return_type
|
|
292
|
-
return_type = opts[:debug_return_type] || '
|
|
421
|
+
return_type = opts[:debug_return_type] || 'GetFavoritesById200Response'
|
|
293
422
|
|
|
294
423
|
# auth_names
|
|
295
424
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
296
425
|
|
|
297
426
|
new_options = opts.merge(
|
|
298
|
-
:operation => :"FavoritesApi.
|
|
427
|
+
:operation => :"FavoritesApi.get_favorites_by_id_users",
|
|
299
428
|
:header_params => header_params,
|
|
300
429
|
:query_params => query_params,
|
|
301
430
|
:form_params => form_params,
|
|
@@ -306,52 +435,72 @@ module SparteraApiSdk
|
|
|
306
435
|
|
|
307
436
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
308
437
|
if @api_client.config.debugging
|
|
309
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
438
|
+
@api_client.config.logger.debug "API called: FavoritesApi#get_favorites_by_id_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
310
439
|
end
|
|
311
440
|
return data, status_code, headers
|
|
312
441
|
end
|
|
313
442
|
|
|
314
|
-
#
|
|
315
|
-
# @param company_id [String]
|
|
316
|
-
# @param user_id [String]
|
|
317
|
-
# @param
|
|
318
|
-
# @param favorites_update [FavoritesUpdate]
|
|
443
|
+
# Get all favorites for the specified user in a specific category
|
|
444
|
+
# @param company_id [String] Unique identifier for the Company
|
|
445
|
+
# @param user_id [String] Unique identifier for the User
|
|
446
|
+
# @param category [String] Parameter for category
|
|
319
447
|
# @param [Hash] opts the optional parameters
|
|
320
|
-
# @return [
|
|
321
|
-
def
|
|
322
|
-
data, _status_code, _headers =
|
|
448
|
+
# @return [GetFavoritesById200Response]
|
|
449
|
+
def get_favorites_by_id_users_category(company_id, user_id, category, opts = {})
|
|
450
|
+
data, _status_code, _headers = get_favorites_by_id_users_category_with_http_info(company_id, user_id, category, opts)
|
|
323
451
|
data
|
|
324
452
|
end
|
|
325
453
|
|
|
326
|
-
#
|
|
327
|
-
# @param company_id [String]
|
|
328
|
-
# @param user_id [String]
|
|
329
|
-
# @param
|
|
330
|
-
# @param favorites_update [FavoritesUpdate]
|
|
454
|
+
# Get all favorites for the specified user in a specific category
|
|
455
|
+
# @param company_id [String] Unique identifier for the Company
|
|
456
|
+
# @param user_id [String] Unique identifier for the User
|
|
457
|
+
# @param category [String] Parameter for category
|
|
331
458
|
# @param [Hash] opts the optional parameters
|
|
332
|
-
# @return [Array<(
|
|
333
|
-
def
|
|
459
|
+
# @return [Array<(GetFavoritesById200Response, Integer, Hash)>] GetFavoritesById200Response data, response status code and response headers
|
|
460
|
+
def get_favorites_by_id_users_category_with_http_info(company_id, user_id, category, opts = {})
|
|
334
461
|
if @api_client.config.debugging
|
|
335
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
462
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.get_favorites_by_id_users_category ...'
|
|
336
463
|
end
|
|
337
464
|
# verify the required parameter 'company_id' is set
|
|
338
465
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
339
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
466
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.get_favorites_by_id_users_category"
|
|
467
|
+
end
|
|
468
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
469
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_category, the character length must be smaller than or equal to 255.'
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
473
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_category, the character length must be greater than or equal to 1.'
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
477
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
478
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.get_favorites_by_id_users_category, must conform to the pattern #{pattern}."
|
|
340
479
|
end
|
|
480
|
+
|
|
341
481
|
# verify the required parameter 'user_id' is set
|
|
342
482
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
343
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
483
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.get_favorites_by_id_users_category"
|
|
344
484
|
end
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch"
|
|
485
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
486
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_category, the character length must be smaller than or equal to 255.'
|
|
348
487
|
end
|
|
349
|
-
|
|
350
|
-
if @api_client.config.client_side_validation &&
|
|
351
|
-
fail ArgumentError,
|
|
488
|
+
|
|
489
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
490
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_category, the character length must be greater than or equal to 1.'
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
494
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
495
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.get_favorites_by_id_users_category, must conform to the pattern #{pattern}."
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# verify the required parameter 'category' is set
|
|
499
|
+
if @api_client.config.client_side_validation && category.nil?
|
|
500
|
+
fail ArgumentError, "Missing the required parameter 'category' when calling FavoritesApi.get_favorites_by_id_users_category"
|
|
352
501
|
end
|
|
353
502
|
# resource path
|
|
354
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/{
|
|
503
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/category/{category}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'category' + '}', CGI.escape(category.to_s))
|
|
355
504
|
|
|
356
505
|
# query parameters
|
|
357
506
|
query_params = opts[:query_params] || {}
|
|
@@ -360,26 +509,21 @@ module SparteraApiSdk
|
|
|
360
509
|
header_params = opts[:header_params] || {}
|
|
361
510
|
# HTTP header 'Accept' (if needed)
|
|
362
511
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
363
|
-
# HTTP header 'Content-Type'
|
|
364
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
365
|
-
if !content_type.nil?
|
|
366
|
-
header_params['Content-Type'] = content_type
|
|
367
|
-
end
|
|
368
512
|
|
|
369
513
|
# form parameters
|
|
370
514
|
form_params = opts[:form_params] || {}
|
|
371
515
|
|
|
372
516
|
# http body (model)
|
|
373
|
-
post_body = opts[:debug_body]
|
|
517
|
+
post_body = opts[:debug_body]
|
|
374
518
|
|
|
375
519
|
# return_type
|
|
376
|
-
return_type = opts[:debug_return_type] || '
|
|
520
|
+
return_type = opts[:debug_return_type] || 'GetFavoritesById200Response'
|
|
377
521
|
|
|
378
522
|
# auth_names
|
|
379
523
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
380
524
|
|
|
381
525
|
new_options = opts.merge(
|
|
382
|
-
:operation => :"FavoritesApi.
|
|
526
|
+
:operation => :"FavoritesApi.get_favorites_by_id_users_category",
|
|
383
527
|
:header_params => header_params,
|
|
384
528
|
:query_params => query_params,
|
|
385
529
|
:form_params => form_params,
|
|
@@ -388,42 +532,87 @@ module SparteraApiSdk
|
|
|
388
532
|
:return_type => return_type
|
|
389
533
|
)
|
|
390
534
|
|
|
391
|
-
data, status_code, headers = @api_client.call_api(:
|
|
535
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
392
536
|
if @api_client.config.debugging
|
|
393
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
537
|
+
@api_client.config.logger.debug "API called: FavoritesApi#get_favorites_by_id_users_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
538
|
end
|
|
395
539
|
return data, status_code, headers
|
|
396
540
|
end
|
|
397
541
|
|
|
398
|
-
#
|
|
399
|
-
# @param company_id [String]
|
|
400
|
-
# @param user_id [String]
|
|
542
|
+
# Check if the specified user has favorited a specific asset
|
|
543
|
+
# @param company_id [String] Unique identifier for the Company
|
|
544
|
+
# @param user_id [String] Unique identifier for the User
|
|
545
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
401
546
|
# @param [Hash] opts the optional parameters
|
|
402
|
-
# @return [
|
|
403
|
-
def
|
|
404
|
-
data, _status_code, _headers =
|
|
547
|
+
# @return [GetFavoritesById200Response]
|
|
548
|
+
def get_favorites_by_id_users_check(company_id, user_id, asset_id, opts = {})
|
|
549
|
+
data, _status_code, _headers = get_favorites_by_id_users_check_with_http_info(company_id, user_id, asset_id, opts)
|
|
405
550
|
data
|
|
406
551
|
end
|
|
407
552
|
|
|
408
|
-
#
|
|
409
|
-
# @param company_id [String]
|
|
410
|
-
# @param user_id [String]
|
|
553
|
+
# Check if the specified user has favorited a specific asset
|
|
554
|
+
# @param company_id [String] Unique identifier for the Company
|
|
555
|
+
# @param user_id [String] Unique identifier for the User
|
|
556
|
+
# @param asset_id [String] Unique identifier for the Asset
|
|
411
557
|
# @param [Hash] opts the optional parameters
|
|
412
|
-
# @return [Array<(
|
|
413
|
-
def
|
|
558
|
+
# @return [Array<(GetFavoritesById200Response, Integer, Hash)>] GetFavoritesById200Response data, response status code and response headers
|
|
559
|
+
def get_favorites_by_id_users_check_with_http_info(company_id, user_id, asset_id, opts = {})
|
|
414
560
|
if @api_client.config.debugging
|
|
415
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
561
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.get_favorites_by_id_users_check ...'
|
|
416
562
|
end
|
|
417
563
|
# verify the required parameter 'company_id' is set
|
|
418
564
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
419
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
565
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.get_favorites_by_id_users_check"
|
|
420
566
|
end
|
|
567
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
568
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be smaller than or equal to 255.'
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
572
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be greater than or equal to 1.'
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
576
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
577
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.get_favorites_by_id_users_check, must conform to the pattern #{pattern}."
|
|
578
|
+
end
|
|
579
|
+
|
|
421
580
|
# verify the required parameter 'user_id' is set
|
|
422
581
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
423
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
582
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.get_favorites_by_id_users_check"
|
|
583
|
+
end
|
|
584
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
585
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be smaller than or equal to 255.'
|
|
424
586
|
end
|
|
587
|
+
|
|
588
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
589
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be greater than or equal to 1.'
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
593
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
594
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.get_favorites_by_id_users_check, must conform to the pattern #{pattern}."
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# verify the required parameter 'asset_id' is set
|
|
598
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
599
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling FavoritesApi.get_favorites_by_id_users_check"
|
|
600
|
+
end
|
|
601
|
+
if @api_client.config.client_side_validation && asset_id.to_s.length > 255
|
|
602
|
+
fail ArgumentError, 'invalid value for "asset_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be smaller than or equal to 255.'
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
if @api_client.config.client_side_validation && asset_id.to_s.length < 1
|
|
606
|
+
fail ArgumentError, 'invalid value for "asset_id" when calling FavoritesApi.get_favorites_by_id_users_check, the character length must be greater than or equal to 1.'
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
610
|
+
if @api_client.config.client_side_validation && asset_id !~ pattern
|
|
611
|
+
fail ArgumentError, "invalid value for 'asset_id' when calling FavoritesApi.get_favorites_by_id_users_check, must conform to the pattern #{pattern}."
|
|
612
|
+
end
|
|
613
|
+
|
|
425
614
|
# resource path
|
|
426
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
615
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/check/{asset_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
|
|
427
616
|
|
|
428
617
|
# query parameters
|
|
429
618
|
query_params = opts[:query_params] || {}
|
|
@@ -440,13 +629,13 @@ module SparteraApiSdk
|
|
|
440
629
|
post_body = opts[:debug_body]
|
|
441
630
|
|
|
442
631
|
# return_type
|
|
443
|
-
return_type = opts[:debug_return_type] || '
|
|
632
|
+
return_type = opts[:debug_return_type] || 'GetFavoritesById200Response'
|
|
444
633
|
|
|
445
634
|
# auth_names
|
|
446
635
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
447
636
|
|
|
448
637
|
new_options = opts.merge(
|
|
449
|
-
:operation => :"FavoritesApi.
|
|
638
|
+
:operation => :"FavoritesApi.get_favorites_by_id_users_check",
|
|
450
639
|
:header_params => header_params,
|
|
451
640
|
:query_params => query_params,
|
|
452
641
|
:form_params => form_params,
|
|
@@ -457,46 +646,66 @@ module SparteraApiSdk
|
|
|
457
646
|
|
|
458
647
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
459
648
|
if @api_client.config.debugging
|
|
460
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
649
|
+
@api_client.config.logger.debug "API called: FavoritesApi#get_favorites_by_id_users_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
461
650
|
end
|
|
462
651
|
return data, status_code, headers
|
|
463
652
|
end
|
|
464
653
|
|
|
465
|
-
#
|
|
466
|
-
# @param company_id [String]
|
|
467
|
-
# @param user_id [String]
|
|
468
|
-
# @param favorites_input [FavoritesInput]
|
|
654
|
+
# Get all favorites for the specified user that don't have a category
|
|
655
|
+
# @param company_id [String] Unique identifier for the Company
|
|
656
|
+
# @param user_id [String] Unique identifier for the User
|
|
469
657
|
# @param [Hash] opts the optional parameters
|
|
470
|
-
# @return [
|
|
471
|
-
def
|
|
472
|
-
data, _status_code, _headers =
|
|
658
|
+
# @return [GetFavoritesById200Response]
|
|
659
|
+
def get_favorites_by_id_users_uncategorized(company_id, user_id, opts = {})
|
|
660
|
+
data, _status_code, _headers = get_favorites_by_id_users_uncategorized_with_http_info(company_id, user_id, opts)
|
|
473
661
|
data
|
|
474
662
|
end
|
|
475
663
|
|
|
476
|
-
#
|
|
477
|
-
# @param company_id [String]
|
|
478
|
-
# @param user_id [String]
|
|
479
|
-
# @param favorites_input [FavoritesInput]
|
|
664
|
+
# Get all favorites for the specified user that don't have a category
|
|
665
|
+
# @param company_id [String] Unique identifier for the Company
|
|
666
|
+
# @param user_id [String] Unique identifier for the User
|
|
480
667
|
# @param [Hash] opts the optional parameters
|
|
481
|
-
# @return [Array<(
|
|
482
|
-
def
|
|
668
|
+
# @return [Array<(GetFavoritesById200Response, Integer, Hash)>] GetFavoritesById200Response data, response status code and response headers
|
|
669
|
+
def get_favorites_by_id_users_uncategorized_with_http_info(company_id, user_id, opts = {})
|
|
483
670
|
if @api_client.config.debugging
|
|
484
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
671
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.get_favorites_by_id_users_uncategorized ...'
|
|
485
672
|
end
|
|
486
673
|
# verify the required parameter 'company_id' is set
|
|
487
674
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
488
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
675
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.get_favorites_by_id_users_uncategorized"
|
|
489
676
|
end
|
|
677
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
678
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_uncategorized, the character length must be smaller than or equal to 255.'
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
682
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.get_favorites_by_id_users_uncategorized, the character length must be greater than or equal to 1.'
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
686
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
687
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.get_favorites_by_id_users_uncategorized, must conform to the pattern #{pattern}."
|
|
688
|
+
end
|
|
689
|
+
|
|
490
690
|
# verify the required parameter 'user_id' is set
|
|
491
691
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
492
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
692
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.get_favorites_by_id_users_uncategorized"
|
|
493
693
|
end
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
694
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
695
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_uncategorized, the character length must be smaller than or equal to 255.'
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
699
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.get_favorites_by_id_users_uncategorized, the character length must be greater than or equal to 1.'
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
703
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
704
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.get_favorites_by_id_users_uncategorized, must conform to the pattern #{pattern}."
|
|
497
705
|
end
|
|
706
|
+
|
|
498
707
|
# resource path
|
|
499
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
708
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/uncategorized'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
500
709
|
|
|
501
710
|
# query parameters
|
|
502
711
|
query_params = opts[:query_params] || {}
|
|
@@ -505,26 +714,21 @@ module SparteraApiSdk
|
|
|
505
714
|
header_params = opts[:header_params] || {}
|
|
506
715
|
# HTTP header 'Accept' (if needed)
|
|
507
716
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
508
|
-
# HTTP header 'Content-Type'
|
|
509
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
510
|
-
if !content_type.nil?
|
|
511
|
-
header_params['Content-Type'] = content_type
|
|
512
|
-
end
|
|
513
717
|
|
|
514
718
|
# form parameters
|
|
515
719
|
form_params = opts[:form_params] || {}
|
|
516
720
|
|
|
517
721
|
# http body (model)
|
|
518
|
-
post_body = opts[:debug_body]
|
|
722
|
+
post_body = opts[:debug_body]
|
|
519
723
|
|
|
520
724
|
# return_type
|
|
521
|
-
return_type = opts[:debug_return_type] || '
|
|
725
|
+
return_type = opts[:debug_return_type] || 'GetFavoritesById200Response'
|
|
522
726
|
|
|
523
727
|
# auth_names
|
|
524
728
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
525
729
|
|
|
526
730
|
new_options = opts.merge(
|
|
527
|
-
:operation => :"FavoritesApi.
|
|
731
|
+
:operation => :"FavoritesApi.get_favorites_by_id_users_uncategorized",
|
|
528
732
|
:header_params => header_params,
|
|
529
733
|
:query_params => query_params,
|
|
530
734
|
:form_params => form_params,
|
|
@@ -533,42 +737,93 @@ module SparteraApiSdk
|
|
|
533
737
|
:return_type => return_type
|
|
534
738
|
)
|
|
535
739
|
|
|
536
|
-
data, status_code, headers = @api_client.call_api(:
|
|
740
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
537
741
|
if @api_client.config.debugging
|
|
538
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
742
|
+
@api_client.config.logger.debug "API called: FavoritesApi#get_favorites_by_id_users_uncategorized\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
539
743
|
end
|
|
540
744
|
return data, status_code, headers
|
|
541
745
|
end
|
|
542
746
|
|
|
543
|
-
#
|
|
544
|
-
# @param company_id [String]
|
|
545
|
-
# @param user_id [String]
|
|
747
|
+
# Update an existing favorite by ID
|
|
748
|
+
# @param company_id [String] Unique identifier for the Company
|
|
749
|
+
# @param user_id [String] Unique identifier for the User
|
|
750
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
751
|
+
# @param favorites_update [FavoritesUpdate]
|
|
546
752
|
# @param [Hash] opts the optional parameters
|
|
547
|
-
# @return [
|
|
548
|
-
def
|
|
549
|
-
data, _status_code, _headers =
|
|
753
|
+
# @return [UpdateFavorites200Response]
|
|
754
|
+
def update_favorites(company_id, user_id, favorite_id, favorites_update, opts = {})
|
|
755
|
+
data, _status_code, _headers = update_favorites_with_http_info(company_id, user_id, favorite_id, favorites_update, opts)
|
|
550
756
|
data
|
|
551
757
|
end
|
|
552
758
|
|
|
553
|
-
#
|
|
554
|
-
# @param company_id [String]
|
|
555
|
-
# @param user_id [String]
|
|
759
|
+
# Update an existing favorite by ID
|
|
760
|
+
# @param company_id [String] Unique identifier for the Company
|
|
761
|
+
# @param user_id [String] Unique identifier for the User
|
|
762
|
+
# @param favorite_id [String] Unique identifier for the Favorite
|
|
763
|
+
# @param favorites_update [FavoritesUpdate]
|
|
556
764
|
# @param [Hash] opts the optional parameters
|
|
557
|
-
# @return [Array<(
|
|
558
|
-
def
|
|
765
|
+
# @return [Array<(UpdateFavorites200Response, Integer, Hash)>] UpdateFavorites200Response data, response status code and response headers
|
|
766
|
+
def update_favorites_with_http_info(company_id, user_id, favorite_id, favorites_update, opts = {})
|
|
559
767
|
if @api_client.config.debugging
|
|
560
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
768
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.update_favorites ...'
|
|
561
769
|
end
|
|
562
770
|
# verify the required parameter 'company_id' is set
|
|
563
771
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
564
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
772
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.update_favorites"
|
|
773
|
+
end
|
|
774
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
775
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.update_favorites, the character length must be smaller than or equal to 255.'
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
779
|
+
fail ArgumentError, 'invalid value for "company_id" when calling FavoritesApi.update_favorites, the character length must be greater than or equal to 1.'
|
|
565
780
|
end
|
|
781
|
+
|
|
782
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
783
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
784
|
+
fail ArgumentError, "invalid value for 'company_id' when calling FavoritesApi.update_favorites, must conform to the pattern #{pattern}."
|
|
785
|
+
end
|
|
786
|
+
|
|
566
787
|
# verify the required parameter 'user_id' is set
|
|
567
788
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
568
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
789
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.update_favorites"
|
|
790
|
+
end
|
|
791
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
792
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.update_favorites, the character length must be smaller than or equal to 255.'
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
796
|
+
fail ArgumentError, 'invalid value for "user_id" when calling FavoritesApi.update_favorites, the character length must be greater than or equal to 1.'
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
800
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
801
|
+
fail ArgumentError, "invalid value for 'user_id' when calling FavoritesApi.update_favorites, must conform to the pattern #{pattern}."
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
# verify the required parameter 'favorite_id' is set
|
|
805
|
+
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
806
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.update_favorites"
|
|
807
|
+
end
|
|
808
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length > 255
|
|
809
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.update_favorites, the character length must be smaller than or equal to 255.'
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
if @api_client.config.client_side_validation && favorite_id.to_s.length < 1
|
|
813
|
+
fail ArgumentError, 'invalid value for "favorite_id" when calling FavoritesApi.update_favorites, the character length must be greater than or equal to 1.'
|
|
814
|
+
end
|
|
815
|
+
|
|
816
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
817
|
+
if @api_client.config.client_side_validation && favorite_id !~ pattern
|
|
818
|
+
fail ArgumentError, "invalid value for 'favorite_id' when calling FavoritesApi.update_favorites, must conform to the pattern #{pattern}."
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# verify the required parameter 'favorites_update' is set
|
|
822
|
+
if @api_client.config.client_side_validation && favorites_update.nil?
|
|
823
|
+
fail ArgumentError, "Missing the required parameter 'favorites_update' when calling FavoritesApi.update_favorites"
|
|
569
824
|
end
|
|
570
825
|
# resource path
|
|
571
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/
|
|
826
|
+
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/{favorite_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'favorite_id' + '}', CGI.escape(favorite_id.to_s))
|
|
572
827
|
|
|
573
828
|
# query parameters
|
|
574
829
|
query_params = opts[:query_params] || {}
|
|
@@ -577,21 +832,26 @@ module SparteraApiSdk
|
|
|
577
832
|
header_params = opts[:header_params] || {}
|
|
578
833
|
# HTTP header 'Accept' (if needed)
|
|
579
834
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
835
|
+
# HTTP header 'Content-Type'
|
|
836
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
837
|
+
if !content_type.nil?
|
|
838
|
+
header_params['Content-Type'] = content_type
|
|
839
|
+
end
|
|
580
840
|
|
|
581
841
|
# form parameters
|
|
582
842
|
form_params = opts[:form_params] || {}
|
|
583
843
|
|
|
584
844
|
# http body (model)
|
|
585
|
-
post_body = opts[:debug_body]
|
|
845
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(favorites_update)
|
|
586
846
|
|
|
587
847
|
# return_type
|
|
588
|
-
return_type = opts[:debug_return_type] || '
|
|
848
|
+
return_type = opts[:debug_return_type] || 'UpdateFavorites200Response'
|
|
589
849
|
|
|
590
850
|
# auth_names
|
|
591
851
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
592
852
|
|
|
593
853
|
new_options = opts.merge(
|
|
594
|
-
:operation => :"FavoritesApi.
|
|
854
|
+
:operation => :"FavoritesApi.update_favorites",
|
|
595
855
|
:header_params => header_params,
|
|
596
856
|
:query_params => query_params,
|
|
597
857
|
:form_params => form_params,
|
|
@@ -600,9 +860,9 @@ module SparteraApiSdk
|
|
|
600
860
|
:return_type => return_type
|
|
601
861
|
)
|
|
602
862
|
|
|
603
|
-
data, status_code, headers = @api_client.call_api(:
|
|
863
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
604
864
|
if @api_client.config.debugging
|
|
605
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
865
|
+
@api_client.config.logger.debug "API called: FavoritesApi#update_favorites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
606
866
|
end
|
|
607
867
|
return data, status_code, headers
|
|
608
868
|
end
|