spartera_api_sdk 0.3.7 → 1.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +5 -3
- data/Gemfile.lock +69 -0
- data/README.md +324 -336
- data/config.json +10 -0
- data/docs/APIKeysApi.md +102 -286
- data/docs/Alert.md +36 -0
- data/docs/AlertsApi.md +163 -177
- data/docs/Apikey.md +36 -0
- data/docs/Asset.md +110 -0
- data/docs/AssetPriceHistoryApi.md +178 -202
- data/docs/Assetpricehistory.md +38 -0
- data/docs/AssetsApi.md +352 -418
- data/docs/CloudProvidersApi.md +233 -49
- data/docs/Cloudprovider.md +30 -0
- data/docs/CompaniesApi.md +171 -357
- data/docs/Company.md +44 -0
- data/docs/Connection.md +54 -0
- data/docs/ConnectionsApi.md +139 -249
- data/docs/Favorite.md +36 -0
- data/docs/FavoritesApi.md +183 -199
- data/docs/User.md +34 -0
- data/docs/UsersApi.md +97 -379
- data/example.rb +51 -0
- data/git_push.sh +2 -2
- data/lib/spartera_api_sdk/api/alerts_api.rb +176 -423
- data/lib/spartera_api_sdk/api/api_keys_api.rb +95 -496
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +177 -468
- data/lib/spartera_api_sdk/api/assets_api.rb +358 -806
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +199 -74
- data/lib/spartera_api_sdk/api/companies_api.rb +146 -660
- data/lib/spartera_api_sdk/api/connections_api.rb +139 -466
- data/lib/spartera_api_sdk/api/favorites_api.rb +204 -464
- data/lib/spartera_api_sdk/api/users_api.rb +95 -619
- data/lib/spartera_api_sdk/api_client.rb +4 -8
- data/lib/spartera_api_sdk/api_error.rb +2 -2
- data/lib/spartera_api_sdk/configuration.rb +12 -4
- data/lib/spartera_api_sdk/models/{alerts.rb → alert.rb} +139 -46
- data/lib/spartera_api_sdk/models/{api_keys.rb → apikey.rb} +124 -98
- data/lib/spartera_api_sdk/models/asset.rb +686 -0
- data/lib/spartera_api_sdk/models/{asset_price_history.rb → assetpricehistory.rb} +180 -44
- data/lib/spartera_api_sdk/models/{cloud_providers.rb → cloudprovider.rb} +111 -35
- data/lib/spartera_api_sdk/models/{companies.rb → company.rb} +105 -90
- data/lib/spartera_api_sdk/models/{connections.rb → connection.rb} +186 -69
- data/lib/spartera_api_sdk/models/error.rb +76 -3
- data/lib/spartera_api_sdk/models/{favorites.rb → favorite.rb} +111 -38
- data/lib/spartera_api_sdk/models/inline_object.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object1.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object2.rb +76 -3
- data/lib/spartera_api_sdk/models/inline_object3.rb +76 -3
- data/lib/spartera_api_sdk/models/{users.rb → user.rb} +108 -112
- data/lib/spartera_api_sdk/version.rb +3 -3
- data/lib/spartera_api_sdk.rb +11 -150
- data/spartera_api_sdk.gemspec +8 -19
- data/spec/api/alerts_api_spec.rb +51 -51
- data/spec/api/api_keys_api_spec.rb +30 -67
- data/spec/api/asset_price_history_api_spec.rb +53 -57
- data/spec/api/assets_api_spec.rb +99 -114
- data/spec/api/cloud_providers_api_spec.rb +42 -15
- data/spec/api/companies_api_spec.rb +47 -99
- data/spec/api/connections_api_spec.rb +41 -63
- data/spec/api/favorites_api_spec.rb +56 -56
- data/spec/api/users_api_spec.rb +29 -88
- data/spec/models/{postgen_integrations_spec.rb → alert_spec.rb} +17 -17
- data/spec/models/{api_keys_update_spec.rb → apikey_spec.rb} +20 -14
- data/spec/models/{endpoints_spec.rb → asset_spec.rb} +83 -69
- data/spec/models/{api_keys_spec.rb → assetpricehistory_spec.rb} +19 -25
- data/spec/models/{cloud_providers_spec.rb → cloudprovider_spec.rb} +20 -14
- data/spec/models/{companies_spec.rb → company_spec.rb} +16 -26
- data/spec/models/{posts_input_spec.rb → connection_spec.rb} +27 -51
- data/spec/models/error_spec.rb +3 -3
- data/spec/models/{favorites_spec.rb → favorite_spec.rb} +23 -17
- data/spec/models/inline_object1_spec.rb +3 -3
- data/spec/models/inline_object2_spec.rb +3 -3
- data/spec/models/inline_object3_spec.rb +3 -3
- data/spec/models/inline_object_spec.rb +3 -3
- data/spec/models/{api_keys_input_spec.rb → user_spec.rb} +15 -15
- data/spec/spec_helper.rb +2 -2
- data/test.sh +42 -0
- metadata +77 -615
- data/CHANGELOG.md +0 -13
- data/docs/Alerts.md +0 -30
- data/docs/AlertsInput.md +0 -24
- data/docs/AlertsUpdate.md +0 -24
- data/docs/ApiKeys.md +0 -40
- data/docs/ApiKeysInput.md +0 -34
- data/docs/ApiKeysUpdate.md +0 -34
- data/docs/AssetPriceHistory.md +0 -30
- data/docs/AssetPriceHistoryInput.md +0 -24
- data/docs/AssetPriceHistoryUpdate.md +0 -24
- data/docs/AssetUsecases.md +0 -28
- data/docs/AssetUsecasesApi.md +0 -157
- data/docs/Assets.md +0 -142
- data/docs/AssetsInput.md +0 -128
- data/docs/AssetsUpdate.md +0 -128
- data/docs/CloudProviders.md +0 -28
- data/docs/CloudProvidersInput.md +0 -22
- data/docs/CloudProvidersUpdate.md +0 -22
- data/docs/Companies.md +0 -46
- data/docs/CompaniesInput.md +0 -40
- data/docs/CompaniesUpdate.md +0 -40
- data/docs/Connections.md +0 -38
- data/docs/ConnectionsInput.md +0 -32
- data/docs/ConnectionsUpdate.md +0 -32
- data/docs/CreateAlerts200Response.md +0 -20
- data/docs/CreateAlerts200ResponseData.md +0 -18
- data/docs/CreateApiKeys200Response.md +0 -20
- data/docs/CreateApiKeys200ResponseData.md +0 -18
- data/docs/CreateAssetPriceHistory200Response.md +0 -20
- data/docs/CreateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/CreateAssetsAnalyze200Response.md +0 -20
- data/docs/CreateAssetsAnalyze200ResponseData.md +0 -18
- data/docs/CreateConnections200Response.md +0 -20
- data/docs/CreateConnections200ResponseData.md +0 -18
- data/docs/CreateEndpoints200Response.md +0 -20
- data/docs/CreateEndpoints200ResponseData.md +0 -18
- data/docs/CreateFavorites200Response.md +0 -20
- data/docs/CreateFavorites200ResponseData.md +0 -18
- data/docs/CreatePostgenIntegrations200Response.md +0 -20
- data/docs/CreatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/CreatePosts200Response.md +0 -20
- data/docs/CreatePosts200ResponseData.md +0 -18
- data/docs/CreateUsers200Response.md +0 -20
- data/docs/CreateUsers200ResponseData.md +0 -18
- data/docs/DeleteAlerts200Response.md +0 -20
- data/docs/DeleteAlerts200ResponseData.md +0 -18
- data/docs/DeleteApiKeys200Response.md +0 -20
- data/docs/DeleteApiKeys200ResponseData.md +0 -18
- data/docs/DeleteAssetPriceHistory200Response.md +0 -20
- data/docs/DeleteAssetPriceHistory200ResponseData.md +0 -18
- data/docs/DeleteAssets200Response.md +0 -20
- data/docs/DeleteAssets200ResponseData.md +0 -18
- data/docs/DeleteConnections200Response.md +0 -20
- data/docs/DeleteConnections200ResponseData.md +0 -18
- data/docs/DeleteEndpoints200Response.md +0 -20
- data/docs/DeleteEndpoints200ResponseData.md +0 -18
- data/docs/DeleteFavorites200Response.md +0 -20
- data/docs/DeleteFavorites200ResponseData.md +0 -18
- data/docs/DeletePostgenIntegrations200Response.md +0 -20
- data/docs/DeletePostgenIntegrations200ResponseData.md +0 -18
- data/docs/DeletePosts200Response.md +0 -20
- data/docs/DeletePosts200ResponseData.md +0 -18
- data/docs/DeleteUsers200Response.md +0 -20
- data/docs/DeleteUsers200ResponseData.md +0 -18
- data/docs/Endpoints.md +0 -96
- data/docs/EndpointsApi.md +0 -1189
- data/docs/EndpointsInput.md +0 -94
- data/docs/EndpointsUpdate.md +0 -94
- data/docs/Favorites.md +0 -34
- data/docs/FavoritesInput.md +0 -28
- data/docs/FavoritesUpdate.md +0 -28
- data/docs/GetAlertsById200Response.md +0 -20
- data/docs/GetApiKeysById200Response.md +0 -20
- data/docs/GetAssetPriceHistoryById200Response.md +0 -20
- data/docs/GetAssetUsecasesById200Response.md +0 -20
- data/docs/GetAssetsByIdAnalyze200Response.md +0 -20
- data/docs/GetCloudProvidersById200Response.md +0 -20
- data/docs/GetCompaniesById200Response.md +0 -20
- data/docs/GetConnectionsById200Response.md +0 -20
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +0 -20
- data/docs/GetFavoritesById200Response.md +0 -20
- data/docs/GetIndustriesById200Response.md +0 -20
- data/docs/GetJobFunctionsById200Response.md +0 -20
- data/docs/GetPostgenIntegrationsById200Response.md +0 -20
- data/docs/GetPostsById200Response.md +0 -20
- data/docs/GetStorageEnginesById200Response.md +0 -20
- data/docs/GetUsersById200Response.md +0 -20
- data/docs/Industries.md +0 -32
- data/docs/IndustriesApi.md +0 -237
- data/docs/InlineObject4.md +0 -20
- data/docs/InlineObject5.md +0 -20
- data/docs/InlineObject6.md +0 -22
- data/docs/InlineObject7.md +0 -20
- data/docs/JobFunctions.md +0 -24
- data/docs/JobFunctionsApi.md +0 -157
- data/docs/JobFunctionsInput.md +0 -18
- data/docs/JobFunctionsUpdate.md +0 -18
- data/docs/ListApiKeys200Response.md +0 -20
- data/docs/ListAssetUsecases200Response.md +0 -20
- data/docs/ListAssets200Response.md +0 -20
- data/docs/ListCloudProviders200Response.md +0 -20
- data/docs/ListCompaniesAnalyticsAssets200Response.md +0 -20
- data/docs/ListConnections200Response.md +0 -20
- data/docs/ListEndpoints200Response.md +0 -20
- data/docs/ListIndustries200Response.md +0 -20
- data/docs/ListJobFunctions200Response.md +0 -20
- data/docs/ListPostgenIntegrations200Response.md +0 -20
- data/docs/ListPosts200Response.md +0 -20
- data/docs/ListStorageEngines200Response.md +0 -20
- data/docs/ListUsers200Response.md +0 -20
- data/docs/PostPublications.md +0 -40
- data/docs/PostPublicationsInput.md +0 -34
- data/docs/PostPublicationsUpdate.md +0 -34
- data/docs/PostgenIntegrations.md +0 -36
- data/docs/PostgenIntegrationsApi.md +0 -463
- data/docs/PostgenIntegrationsInput.md +0 -30
- data/docs/PostgenIntegrationsUpdate.md +0 -30
- data/docs/Posts.md +0 -68
- data/docs/PostsApi.md +0 -843
- data/docs/PostsInput.md +0 -62
- data/docs/PostsUpdate.md +0 -62
- data/docs/StorageEngines.md +0 -32
- data/docs/StorageEnginesApi.md +0 -161
- data/docs/UpdateAlerts200Response.md +0 -20
- data/docs/UpdateAlerts200ResponseData.md +0 -18
- data/docs/UpdateApiKeys200Response.md +0 -20
- data/docs/UpdateApiKeys200ResponseData.md +0 -18
- data/docs/UpdateAssetPriceHistory200Response.md +0 -20
- data/docs/UpdateAssetPriceHistory200ResponseData.md +0 -18
- data/docs/UpdateAssets200Response.md +0 -20
- data/docs/UpdateAssets200ResponseData.md +0 -18
- data/docs/UpdateCompanies200Response.md +0 -20
- data/docs/UpdateCompanies200ResponseData.md +0 -18
- data/docs/UpdateConnections200Response.md +0 -20
- data/docs/UpdateConnections200ResponseData.md +0 -18
- data/docs/UpdateEndpoints200Response.md +0 -20
- data/docs/UpdateEndpoints200ResponseData.md +0 -18
- data/docs/UpdateFavorites200Response.md +0 -20
- data/docs/UpdateFavorites200ResponseData.md +0 -18
- data/docs/UpdatePostgenIntegrations200Response.md +0 -20
- data/docs/UpdatePostgenIntegrations200ResponseData.md +0 -18
- data/docs/UpdatePosts200Response.md +0 -20
- data/docs/UpdatePosts200ResponseData.md +0 -18
- data/docs/UpdateUsers200Response.md +0 -20
- data/docs/UpdateUsers200ResponseData.md +0 -18
- data/docs/Users.md +0 -36
- data/docs/UsersInput.md +0 -30
- data/docs/UsersUpdate.md +0 -30
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +0 -190
- data/lib/spartera_api_sdk/api/endpoints_api.rb +0 -1613
- data/lib/spartera_api_sdk/api/industries_api.rb +0 -284
- data/lib/spartera_api_sdk/api/job_functions_api.rb +0 -190
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +0 -634
- data/lib/spartera_api_sdk/api/posts_api.rb +0 -1190
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +0 -228
- data/lib/spartera_api_sdk/api_model_base.rb +0 -88
- data/lib/spartera_api_sdk/models/alerts_input.rb +0 -213
- data/lib/spartera_api_sdk/models/alerts_update.rb +0 -179
- data/lib/spartera_api_sdk/models/api_keys_input.rb +0 -263
- data/lib/spartera_api_sdk/models/api_keys_update.rb +0 -229
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +0 -179
- data/lib/spartera_api_sdk/models/asset_usecases.rb +0 -216
- data/lib/spartera_api_sdk/models/assets.rb +0 -1068
- data/lib/spartera_api_sdk/models/assets_input.rb +0 -918
- data/lib/spartera_api_sdk/models/assets_update.rb +0 -877
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +0 -186
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +0 -169
- data/lib/spartera_api_sdk/models/companies_input.rb +0 -327
- data/lib/spartera_api_sdk/models/companies_update.rb +0 -293
- data/lib/spartera_api_sdk/models/connections_input.rb +0 -287
- data/lib/spartera_api_sdk/models/connections_update.rb +0 -253
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/create_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/endpoints.rb +0 -788
- data/lib/spartera_api_sdk/models/endpoints_input.rb +0 -686
- data/lib/spartera_api_sdk/models/endpoints_update.rb +0 -635
- data/lib/spartera_api_sdk/models/favorites_input.rb +0 -233
- data/lib/spartera_api_sdk/models/favorites_update.rb +0 -199
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/industries.rb +0 -253
- data/lib/spartera_api_sdk/models/inline_object4.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object5.rb +0 -156
- data/lib/spartera_api_sdk/models/inline_object6.rb +0 -166
- data/lib/spartera_api_sdk/models/inline_object7.rb +0 -156
- data/lib/spartera_api_sdk/models/job_functions.rb +0 -213
- data/lib/spartera_api_sdk/models/job_functions_input.rb +0 -166
- data/lib/spartera_api_sdk/models/job_functions_update.rb +0 -149
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/list_users200_response.rb +0 -193
- data/lib/spartera_api_sdk/models/post_publications.rb +0 -327
- data/lib/spartera_api_sdk/models/post_publications_input.rb +0 -280
- data/lib/spartera_api_sdk/models/post_publications_update.rb +0 -229
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +0 -341
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +0 -294
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +0 -209
- data/lib/spartera_api_sdk/models/posts.rb +0 -586
- data/lib/spartera_api_sdk/models/posts_input.rb +0 -437
- data/lib/spartera_api_sdk/models/posts_update.rb +0 -369
- data/lib/spartera_api_sdk/models/storage_engines.rb +0 -294
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/update_users200_response.rb +0 -191
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +0 -165
- data/lib/spartera_api_sdk/models/users_input.rb +0 -260
- data/lib/spartera_api_sdk/models/users_update.rb +0 -243
- data/spec/api/asset_usecases_api_spec.rb +0 -61
- data/spec/api/endpoints_api_spec.rb +0 -240
- data/spec/api/industries_api_spec.rb +0 -76
- data/spec/api/job_functions_api_spec.rb +0 -61
- data/spec/api/postgen_integrations_api_spec.rb +0 -117
- data/spec/api/posts_api_spec.rb +0 -186
- data/spec/api/storage_engines_api_spec.rb +0 -63
- data/spec/models/alerts_input_spec.rb +0 -54
- data/spec/models/alerts_spec.rb +0 -72
- data/spec/models/alerts_update_spec.rb +0 -54
- data/spec/models/asset_price_history_input_spec.rb +0 -54
- data/spec/models/asset_price_history_spec.rb +0 -72
- data/spec/models/asset_price_history_update_spec.rb +0 -54
- data/spec/models/asset_usecases_spec.rb +0 -66
- data/spec/models/assets_input_spec.rb +0 -418
- data/spec/models/assets_spec.rb +0 -464
- data/spec/models/assets_update_spec.rb +0 -418
- data/spec/models/cloud_providers_input_spec.rb +0 -48
- data/spec/models/cloud_providers_update_spec.rb +0 -48
- data/spec/models/companies_input_spec.rb +0 -106
- data/spec/models/companies_update_spec.rb +0 -106
- data/spec/models/connections_input_spec.rb +0 -82
- data/spec/models/connections_spec.rb +0 -100
- data/spec/models/connections_update_spec.rb +0 -82
- data/spec/models/create_alerts200_response_data_spec.rb +0 -36
- data/spec/models/create_alerts200_response_spec.rb +0 -42
- data/spec/models/create_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/create_api_keys200_response_spec.rb +0 -42
- data/spec/models/create_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/create_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/create_assets_analyze200_response_data_spec.rb +0 -36
- data/spec/models/create_assets_analyze200_response_spec.rb +0 -42
- data/spec/models/create_connections200_response_data_spec.rb +0 -36
- data/spec/models/create_connections200_response_spec.rb +0 -42
- data/spec/models/create_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/create_endpoints200_response_spec.rb +0 -42
- data/spec/models/create_favorites200_response_data_spec.rb +0 -36
- data/spec/models/create_favorites200_response_spec.rb +0 -42
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/create_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/create_posts200_response_data_spec.rb +0 -36
- data/spec/models/create_posts200_response_spec.rb +0 -42
- data/spec/models/create_users200_response_data_spec.rb +0 -36
- data/spec/models/create_users200_response_spec.rb +0 -42
- data/spec/models/delete_alerts200_response_data_spec.rb +0 -36
- data/spec/models/delete_alerts200_response_spec.rb +0 -42
- data/spec/models/delete_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/delete_api_keys200_response_spec.rb +0 -42
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/delete_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/delete_assets200_response_data_spec.rb +0 -36
- data/spec/models/delete_assets200_response_spec.rb +0 -42
- data/spec/models/delete_connections200_response_data_spec.rb +0 -36
- data/spec/models/delete_connections200_response_spec.rb +0 -42
- data/spec/models/delete_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/delete_endpoints200_response_spec.rb +0 -42
- data/spec/models/delete_favorites200_response_data_spec.rb +0 -36
- data/spec/models/delete_favorites200_response_spec.rb +0 -42
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/delete_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/delete_posts200_response_data_spec.rb +0 -36
- data/spec/models/delete_posts200_response_spec.rb +0 -42
- data/spec/models/delete_users200_response_data_spec.rb +0 -36
- data/spec/models/delete_users200_response_spec.rb +0 -42
- data/spec/models/endpoints_input_spec.rb +0 -292
- data/spec/models/endpoints_update_spec.rb +0 -292
- data/spec/models/favorites_input_spec.rb +0 -66
- data/spec/models/favorites_update_spec.rb +0 -66
- data/spec/models/get_alerts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_api_keys_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +0 -42
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +0 -42
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +0 -42
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +0 -42
- data/spec/models/get_companies_by_id200_response_spec.rb +0 -42
- data/spec/models/get_connections_by_id200_response_spec.rb +0 -42
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +0 -42
- data/spec/models/get_favorites_by_id200_response_spec.rb +0 -42
- data/spec/models/get_industries_by_id200_response_spec.rb +0 -42
- data/spec/models/get_job_functions_by_id200_response_spec.rb +0 -42
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +0 -42
- data/spec/models/get_posts_by_id200_response_spec.rb +0 -42
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +0 -42
- data/spec/models/get_users_by_id200_response_spec.rb +0 -42
- data/spec/models/industries_spec.rb +0 -78
- data/spec/models/inline_object4_spec.rb +0 -42
- data/spec/models/inline_object5_spec.rb +0 -42
- data/spec/models/inline_object6_spec.rb +0 -48
- data/spec/models/inline_object7_spec.rb +0 -42
- data/spec/models/job_functions_input_spec.rb +0 -36
- data/spec/models/job_functions_spec.rb +0 -54
- data/spec/models/job_functions_update_spec.rb +0 -36
- data/spec/models/list_api_keys200_response_spec.rb +0 -42
- data/spec/models/list_asset_usecases200_response_spec.rb +0 -42
- data/spec/models/list_assets200_response_spec.rb +0 -42
- data/spec/models/list_cloud_providers200_response_spec.rb +0 -42
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +0 -42
- data/spec/models/list_connections200_response_spec.rb +0 -42
- data/spec/models/list_endpoints200_response_spec.rb +0 -42
- data/spec/models/list_industries200_response_spec.rb +0 -42
- data/spec/models/list_job_functions200_response_spec.rb +0 -42
- data/spec/models/list_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/list_posts200_response_spec.rb +0 -42
- data/spec/models/list_storage_engines200_response_spec.rb +0 -42
- data/spec/models/list_users200_response_spec.rb +0 -42
- data/spec/models/post_publications_input_spec.rb +0 -84
- data/spec/models/post_publications_spec.rb +0 -102
- data/spec/models/post_publications_update_spec.rb +0 -84
- data/spec/models/postgen_integrations_input_spec.rb +0 -72
- data/spec/models/postgen_integrations_update_spec.rb +0 -72
- data/spec/models/posts_spec.rb +0 -186
- data/spec/models/posts_update_spec.rb +0 -168
- data/spec/models/storage_engines_spec.rb +0 -82
- data/spec/models/update_alerts200_response_data_spec.rb +0 -36
- data/spec/models/update_alerts200_response_spec.rb +0 -42
- data/spec/models/update_api_keys200_response_data_spec.rb +0 -36
- data/spec/models/update_api_keys200_response_spec.rb +0 -42
- data/spec/models/update_asset_price_history200_response_data_spec.rb +0 -36
- data/spec/models/update_asset_price_history200_response_spec.rb +0 -42
- data/spec/models/update_assets200_response_data_spec.rb +0 -36
- data/spec/models/update_assets200_response_spec.rb +0 -42
- data/spec/models/update_companies200_response_data_spec.rb +0 -36
- data/spec/models/update_companies200_response_spec.rb +0 -42
- data/spec/models/update_connections200_response_data_spec.rb +0 -36
- data/spec/models/update_connections200_response_spec.rb +0 -42
- data/spec/models/update_endpoints200_response_data_spec.rb +0 -36
- data/spec/models/update_endpoints200_response_spec.rb +0 -42
- data/spec/models/update_favorites200_response_data_spec.rb +0 -36
- data/spec/models/update_favorites200_response_spec.rb +0 -42
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +0 -36
- data/spec/models/update_postgen_integrations200_response_spec.rb +0 -42
- data/spec/models/update_posts200_response_data_spec.rb +0 -36
- data/spec/models/update_posts200_response_spec.rb +0 -42
- data/spec/models/update_users200_response_data_spec.rb +0 -36
- data/spec/models/update_users200_response_spec.rb +0 -42
- data/spec/models/users_input_spec.rb +0 -76
- data/spec/models/users_spec.rb +0 -94
- data/spec/models/users_update_spec.rb +0 -76
|
@@ -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:
|
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
|
7
7
|
Contact: support@spartera.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.13.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -19,67 +19,41 @@ 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
|
+
# Get all favorites for the specified user in a specific category
|
|
23
|
+
# @param company_id [String]
|
|
24
|
+
# @param user_id [String]
|
|
25
|
+
# @param category [String]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
27
|
+
# @return [Object]
|
|
28
|
+
def companies_company_id_users_user_id_favorites_category_category_get(company_id, user_id, category, opts = {})
|
|
29
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_category_category_get_with_http_info(company_id, user_id, category, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
# @param company_id [String]
|
|
35
|
-
# @param user_id [String]
|
|
36
|
-
# @param
|
|
33
|
+
# Get all favorites for the specified user in a specific category
|
|
34
|
+
# @param company_id [String]
|
|
35
|
+
# @param user_id [String]
|
|
36
|
+
# @param category [String]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
39
|
-
def
|
|
38
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
39
|
+
def companies_company_id_users_user_id_favorites_category_category_get_with_http_info(company_id, user_id, category, 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.companies_company_id_users_user_id_favorites_category_category_get ...'
|
|
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.
|
|
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.'
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_category_category_get"
|
|
53
46
|
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
|
-
|
|
60
47
|
# verify the required parameter 'user_id' is set
|
|
61
48
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
62
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
63
|
-
end
|
|
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.'
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_category_category_get"
|
|
70
50
|
end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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"
|
|
51
|
+
# verify the required parameter 'category' is set
|
|
52
|
+
if @api_client.config.client_side_validation && category.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'category' when calling FavoritesApi.companies_company_id_users_user_id_favorites_category_category_get"
|
|
80
54
|
end
|
|
81
55
|
# resource path
|
|
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))
|
|
56
|
+
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))
|
|
83
57
|
|
|
84
58
|
# query parameters
|
|
85
59
|
query_params = opts[:query_params] || {}
|
|
@@ -88,26 +62,21 @@ module SparteraApiSdk
|
|
|
88
62
|
header_params = opts[:header_params] || {}
|
|
89
63
|
# HTTP header 'Accept' (if needed)
|
|
90
64
|
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
|
|
96
65
|
|
|
97
66
|
# form parameters
|
|
98
67
|
form_params = opts[:form_params] || {}
|
|
99
68
|
|
|
100
69
|
# http body (model)
|
|
101
|
-
post_body = opts[:debug_body]
|
|
70
|
+
post_body = opts[:debug_body]
|
|
102
71
|
|
|
103
72
|
# return_type
|
|
104
|
-
return_type = opts[:debug_return_type] || '
|
|
73
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
105
74
|
|
|
106
75
|
# auth_names
|
|
107
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
76
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
108
77
|
|
|
109
78
|
new_options = opts.merge(
|
|
110
|
-
:operation => :"FavoritesApi.
|
|
79
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_category_category_get",
|
|
111
80
|
:header_params => header_params,
|
|
112
81
|
:query_params => query_params,
|
|
113
82
|
:form_params => form_params,
|
|
@@ -116,87 +85,48 @@ module SparteraApiSdk
|
|
|
116
85
|
:return_type => return_type
|
|
117
86
|
)
|
|
118
87
|
|
|
119
|
-
data, status_code, headers = @api_client.call_api(:
|
|
88
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
120
89
|
if @api_client.config.debugging
|
|
121
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
90
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_category_category_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
122
91
|
end
|
|
123
92
|
return data, status_code, headers
|
|
124
93
|
end
|
|
125
94
|
|
|
126
|
-
#
|
|
127
|
-
# @param company_id [String]
|
|
128
|
-
# @param user_id [String]
|
|
129
|
-
# @param
|
|
95
|
+
# Check if the specified user has favorited a specific asset Returns the favorite record if it exists, or empty result if not Useful for UI to show/hide favorite button states
|
|
96
|
+
# @param company_id [String]
|
|
97
|
+
# @param user_id [String]
|
|
98
|
+
# @param asset_id [String]
|
|
130
99
|
# @param [Hash] opts the optional parameters
|
|
131
|
-
# @return [
|
|
132
|
-
def
|
|
133
|
-
data, _status_code, _headers =
|
|
100
|
+
# @return [Object]
|
|
101
|
+
def companies_company_id_users_user_id_favorites_check_asset_id_get(company_id, user_id, asset_id, opts = {})
|
|
102
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_check_asset_id_get_with_http_info(company_id, user_id, asset_id, opts)
|
|
134
103
|
data
|
|
135
104
|
end
|
|
136
105
|
|
|
137
|
-
#
|
|
138
|
-
# @param company_id [String]
|
|
139
|
-
# @param user_id [String]
|
|
140
|
-
# @param
|
|
106
|
+
# Check if the specified user has favorited a specific asset Returns the favorite record if it exists, or empty result if not Useful for UI to show/hide favorite button states
|
|
107
|
+
# @param company_id [String]
|
|
108
|
+
# @param user_id [String]
|
|
109
|
+
# @param asset_id [String]
|
|
141
110
|
# @param [Hash] opts the optional parameters
|
|
142
|
-
# @return [Array<(
|
|
143
|
-
def
|
|
111
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
112
|
+
def companies_company_id_users_user_id_favorites_check_asset_id_get_with_http_info(company_id, user_id, asset_id, opts = {})
|
|
144
113
|
if @api_client.config.debugging
|
|
145
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
114
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get ...'
|
|
146
115
|
end
|
|
147
116
|
# verify the required parameter 'company_id' is set
|
|
148
117
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
149
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
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.'
|
|
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.'
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get"
|
|
157
119
|
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
|
-
|
|
164
120
|
# verify the required parameter 'user_id' is set
|
|
165
121
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
166
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
167
|
-
end
|
|
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.'
|
|
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.'
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get"
|
|
174
123
|
end
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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}."
|
|
124
|
+
# verify the required parameter 'asset_id' is set
|
|
125
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
126
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get"
|
|
196
127
|
end
|
|
197
|
-
|
|
198
128
|
# resource path
|
|
199
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/{
|
|
129
|
+
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))
|
|
200
130
|
|
|
201
131
|
# query parameters
|
|
202
132
|
query_params = opts[:query_params] || {}
|
|
@@ -213,13 +143,13 @@ module SparteraApiSdk
|
|
|
213
143
|
post_body = opts[:debug_body]
|
|
214
144
|
|
|
215
145
|
# return_type
|
|
216
|
-
return_type = opts[:debug_return_type] || '
|
|
146
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
217
147
|
|
|
218
148
|
# auth_names
|
|
219
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
149
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
220
150
|
|
|
221
151
|
new_options = opts.merge(
|
|
222
|
-
:operation => :"FavoritesApi.
|
|
152
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_check_asset_id_get",
|
|
223
153
|
:header_params => header_params,
|
|
224
154
|
:query_params => query_params,
|
|
225
155
|
:form_params => form_params,
|
|
@@ -228,68 +158,48 @@ module SparteraApiSdk
|
|
|
228
158
|
:return_type => return_type
|
|
229
159
|
)
|
|
230
160
|
|
|
231
|
-
data, status_code, headers = @api_client.call_api(:
|
|
161
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
232
162
|
if @api_client.config.debugging
|
|
233
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
163
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_check_asset_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
234
164
|
end
|
|
235
165
|
return data, status_code, headers
|
|
236
166
|
end
|
|
237
167
|
|
|
238
|
-
#
|
|
239
|
-
# @param company_id [String]
|
|
240
|
-
# @param user_id [String]
|
|
168
|
+
# Delete single favorite by ID (unfavorite an asset)
|
|
169
|
+
# @param company_id [String]
|
|
170
|
+
# @param user_id [String]
|
|
171
|
+
# @param favorite_id [String]
|
|
241
172
|
# @param [Hash] opts the optional parameters
|
|
242
|
-
# @return [
|
|
243
|
-
def
|
|
244
|
-
data, _status_code, _headers =
|
|
173
|
+
# @return [Object]
|
|
174
|
+
def companies_company_id_users_user_id_favorites_favorite_id_delete(company_id, user_id, favorite_id, opts = {})
|
|
175
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_favorite_id_delete_with_http_info(company_id, user_id, favorite_id, opts)
|
|
245
176
|
data
|
|
246
177
|
end
|
|
247
178
|
|
|
248
|
-
#
|
|
249
|
-
# @param company_id [String]
|
|
250
|
-
# @param user_id [String]
|
|
179
|
+
# Delete single favorite by ID (unfavorite an asset)
|
|
180
|
+
# @param company_id [String]
|
|
181
|
+
# @param user_id [String]
|
|
182
|
+
# @param favorite_id [String]
|
|
251
183
|
# @param [Hash] opts the optional parameters
|
|
252
|
-
# @return [Array<(
|
|
253
|
-
def
|
|
184
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
185
|
+
def companies_company_id_users_user_id_favorites_favorite_id_delete_with_http_info(company_id, user_id, favorite_id, opts = {})
|
|
254
186
|
if @api_client.config.debugging
|
|
255
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
187
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete ...'
|
|
256
188
|
end
|
|
257
189
|
# verify the required parameter 'company_id' is set
|
|
258
190
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
259
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
191
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete"
|
|
260
192
|
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
|
-
|
|
274
193
|
# verify the required parameter 'user_id' is set
|
|
275
194
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
276
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete"
|
|
277
196
|
end
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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.'
|
|
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}."
|
|
197
|
+
# verify the required parameter 'favorite_id' is set
|
|
198
|
+
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
199
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete"
|
|
289
200
|
end
|
|
290
|
-
|
|
291
201
|
# resource path
|
|
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))
|
|
202
|
+
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))
|
|
293
203
|
|
|
294
204
|
# query parameters
|
|
295
205
|
query_params = opts[:query_params] || {}
|
|
@@ -306,13 +216,13 @@ module SparteraApiSdk
|
|
|
306
216
|
post_body = opts[:debug_body]
|
|
307
217
|
|
|
308
218
|
# return_type
|
|
309
|
-
return_type = opts[:debug_return_type] || '
|
|
219
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
310
220
|
|
|
311
221
|
# auth_names
|
|
312
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
222
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
313
223
|
|
|
314
224
|
new_options = opts.merge(
|
|
315
|
-
:operation => :"FavoritesApi.
|
|
225
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_delete",
|
|
316
226
|
:header_params => header_params,
|
|
317
227
|
:query_params => query_params,
|
|
318
228
|
:form_params => form_params,
|
|
@@ -321,85 +231,46 @@ module SparteraApiSdk
|
|
|
321
231
|
:return_type => return_type
|
|
322
232
|
)
|
|
323
233
|
|
|
324
|
-
data, status_code, headers = @api_client.call_api(:
|
|
234
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
325
235
|
if @api_client.config.debugging
|
|
326
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
236
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_favorite_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
327
237
|
end
|
|
328
238
|
return data, status_code, headers
|
|
329
239
|
end
|
|
330
240
|
|
|
331
241
|
# Get single favorite by ID
|
|
332
|
-
# @param company_id [String]
|
|
333
|
-
# @param user_id [String]
|
|
334
|
-
# @param favorite_id [String]
|
|
242
|
+
# @param company_id [String]
|
|
243
|
+
# @param user_id [String]
|
|
244
|
+
# @param favorite_id [String]
|
|
335
245
|
# @param [Hash] opts the optional parameters
|
|
336
|
-
# @return [
|
|
337
|
-
def
|
|
338
|
-
data, _status_code, _headers =
|
|
246
|
+
# @return [Object]
|
|
247
|
+
def companies_company_id_users_user_id_favorites_favorite_id_get(company_id, user_id, favorite_id, opts = {})
|
|
248
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_favorite_id_get_with_http_info(company_id, user_id, favorite_id, opts)
|
|
339
249
|
data
|
|
340
250
|
end
|
|
341
251
|
|
|
342
252
|
# Get single favorite by ID
|
|
343
|
-
# @param company_id [String]
|
|
344
|
-
# @param user_id [String]
|
|
345
|
-
# @param favorite_id [String]
|
|
253
|
+
# @param company_id [String]
|
|
254
|
+
# @param user_id [String]
|
|
255
|
+
# @param favorite_id [String]
|
|
346
256
|
# @param [Hash] opts the optional parameters
|
|
347
|
-
# @return [Array<(
|
|
348
|
-
def
|
|
257
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
258
|
+
def companies_company_id_users_user_id_favorites_favorite_id_get_with_http_info(company_id, user_id, favorite_id, opts = {})
|
|
349
259
|
if @api_client.config.debugging
|
|
350
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
260
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get ...'
|
|
351
261
|
end
|
|
352
262
|
# verify the required parameter 'company_id' is set
|
|
353
263
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
354
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
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.'
|
|
264
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get"
|
|
358
265
|
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}."
|
|
367
|
-
end
|
|
368
|
-
|
|
369
266
|
# verify the required parameter 'user_id' is set
|
|
370
267
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
371
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
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.'
|
|
268
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get"
|
|
375
269
|
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}."
|
|
384
|
-
end
|
|
385
|
-
|
|
386
270
|
# verify the required parameter 'favorite_id' is set
|
|
387
271
|
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
388
|
-
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.
|
|
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.'
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get"
|
|
392
273
|
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
|
-
|
|
403
274
|
# resource path
|
|
404
275
|
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))
|
|
405
276
|
|
|
@@ -418,13 +289,13 @@ module SparteraApiSdk
|
|
|
418
289
|
post_body = opts[:debug_body]
|
|
419
290
|
|
|
420
291
|
# return_type
|
|
421
|
-
return_type = opts[:debug_return_type] || '
|
|
292
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
422
293
|
|
|
423
294
|
# auth_names
|
|
424
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
295
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
425
296
|
|
|
426
297
|
new_options = opts.merge(
|
|
427
|
-
:operation => :"FavoritesApi.
|
|
298
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_get",
|
|
428
299
|
:header_params => header_params,
|
|
429
300
|
:query_params => query_params,
|
|
430
301
|
:form_params => form_params,
|
|
@@ -435,72 +306,52 @@ module SparteraApiSdk
|
|
|
435
306
|
|
|
436
307
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
437
308
|
if @api_client.config.debugging
|
|
438
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
309
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_favorite_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
439
310
|
end
|
|
440
311
|
return data, status_code, headers
|
|
441
312
|
end
|
|
442
313
|
|
|
443
|
-
#
|
|
444
|
-
# @param company_id [String]
|
|
445
|
-
# @param user_id [String]
|
|
446
|
-
# @param
|
|
314
|
+
# Update an existing favorite by ID Can update notes, category, priority
|
|
315
|
+
# @param company_id [String]
|
|
316
|
+
# @param user_id [String]
|
|
317
|
+
# @param favorite_id [String]
|
|
318
|
+
# @param favorite [Favorite]
|
|
447
319
|
# @param [Hash] opts the optional parameters
|
|
448
|
-
# @return [
|
|
449
|
-
def
|
|
450
|
-
data, _status_code, _headers =
|
|
320
|
+
# @return [Object]
|
|
321
|
+
def companies_company_id_users_user_id_favorites_favorite_id_patch(company_id, user_id, favorite_id, favorite, opts = {})
|
|
322
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_favorite_id_patch_with_http_info(company_id, user_id, favorite_id, favorite, opts)
|
|
451
323
|
data
|
|
452
324
|
end
|
|
453
325
|
|
|
454
|
-
#
|
|
455
|
-
# @param company_id [String]
|
|
456
|
-
# @param user_id [String]
|
|
457
|
-
# @param
|
|
326
|
+
# Update an existing favorite by ID Can update notes, category, priority
|
|
327
|
+
# @param company_id [String]
|
|
328
|
+
# @param user_id [String]
|
|
329
|
+
# @param favorite_id [String]
|
|
330
|
+
# @param favorite [Favorite]
|
|
458
331
|
# @param [Hash] opts the optional parameters
|
|
459
|
-
# @return [Array<(
|
|
460
|
-
def
|
|
332
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
333
|
+
def companies_company_id_users_user_id_favorites_favorite_id_patch_with_http_info(company_id, user_id, favorite_id, favorite, opts = {})
|
|
461
334
|
if @api_client.config.debugging
|
|
462
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
335
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch ...'
|
|
463
336
|
end
|
|
464
337
|
# verify the required parameter 'company_id' is set
|
|
465
338
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
466
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch"
|
|
467
340
|
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}."
|
|
479
|
-
end
|
|
480
|
-
|
|
481
341
|
# verify the required parameter 'user_id' is set
|
|
482
342
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
483
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
343
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch"
|
|
484
344
|
end
|
|
485
|
-
|
|
486
|
-
|
|
345
|
+
# verify the required parameter 'favorite_id' is set
|
|
346
|
+
if @api_client.config.client_side_validation && favorite_id.nil?
|
|
347
|
+
fail ArgumentError, "Missing the required parameter 'favorite_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch"
|
|
487
348
|
end
|
|
488
|
-
|
|
489
|
-
if @api_client.config.client_side_validation &&
|
|
490
|
-
fail ArgumentError,
|
|
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"
|
|
349
|
+
# verify the required parameter 'favorite' is set
|
|
350
|
+
if @api_client.config.client_side_validation && favorite.nil?
|
|
351
|
+
fail ArgumentError, "Missing the required parameter 'favorite' when calling FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch"
|
|
501
352
|
end
|
|
502
353
|
# resource path
|
|
503
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/
|
|
354
|
+
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))
|
|
504
355
|
|
|
505
356
|
# query parameters
|
|
506
357
|
query_params = opts[:query_params] || {}
|
|
@@ -509,21 +360,26 @@ module SparteraApiSdk
|
|
|
509
360
|
header_params = opts[:header_params] || {}
|
|
510
361
|
# HTTP header 'Accept' (if needed)
|
|
511
362
|
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
|
|
512
368
|
|
|
513
369
|
# form parameters
|
|
514
370
|
form_params = opts[:form_params] || {}
|
|
515
371
|
|
|
516
372
|
# http body (model)
|
|
517
|
-
post_body = opts[:debug_body]
|
|
373
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(favorite)
|
|
518
374
|
|
|
519
375
|
# return_type
|
|
520
|
-
return_type = opts[:debug_return_type] || '
|
|
376
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
521
377
|
|
|
522
378
|
# auth_names
|
|
523
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
379
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
524
380
|
|
|
525
381
|
new_options = opts.merge(
|
|
526
|
-
:operation => :"FavoritesApi.
|
|
382
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_favorite_id_patch",
|
|
527
383
|
:header_params => header_params,
|
|
528
384
|
:query_params => query_params,
|
|
529
385
|
:form_params => form_params,
|
|
@@ -532,87 +388,42 @@ module SparteraApiSdk
|
|
|
532
388
|
:return_type => return_type
|
|
533
389
|
)
|
|
534
390
|
|
|
535
|
-
data, status_code, headers = @api_client.call_api(:
|
|
391
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
536
392
|
if @api_client.config.debugging
|
|
537
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
393
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_favorite_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
538
394
|
end
|
|
539
395
|
return data, status_code, headers
|
|
540
396
|
end
|
|
541
397
|
|
|
542
|
-
#
|
|
543
|
-
# @param company_id [String]
|
|
544
|
-
# @param user_id [String]
|
|
545
|
-
# @param asset_id [String] Unique identifier for the Asset
|
|
398
|
+
# Get a list of all favorites for a specific user Query params: - category: filter by category - sort: sort field (priority, date_created, etc.) - order: sort direction (asc, desc)
|
|
399
|
+
# @param company_id [String]
|
|
400
|
+
# @param user_id [String]
|
|
546
401
|
# @param [Hash] opts the optional parameters
|
|
547
|
-
# @return [
|
|
548
|
-
def
|
|
549
|
-
data, _status_code, _headers =
|
|
402
|
+
# @return [Object]
|
|
403
|
+
def companies_company_id_users_user_id_favorites_get(company_id, user_id, opts = {})
|
|
404
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_get_with_http_info(company_id, user_id, opts)
|
|
550
405
|
data
|
|
551
406
|
end
|
|
552
407
|
|
|
553
|
-
#
|
|
554
|
-
# @param company_id [String]
|
|
555
|
-
# @param user_id [String]
|
|
556
|
-
# @param asset_id [String] Unique identifier for the Asset
|
|
408
|
+
# Get a list of all favorites for a specific user Query params: - category: filter by category - sort: sort field (priority, date_created, etc.) - order: sort direction (asc, desc)
|
|
409
|
+
# @param company_id [String]
|
|
410
|
+
# @param user_id [String]
|
|
557
411
|
# @param [Hash] opts the optional parameters
|
|
558
|
-
# @return [Array<(
|
|
559
|
-
def
|
|
412
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
413
|
+
def companies_company_id_users_user_id_favorites_get_with_http_info(company_id, user_id, opts = {})
|
|
560
414
|
if @api_client.config.debugging
|
|
561
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
415
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_get ...'
|
|
562
416
|
end
|
|
563
417
|
# verify the required parameter 'company_id' is set
|
|
564
418
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
565
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
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.'
|
|
419
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_get"
|
|
569
420
|
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
|
-
|
|
580
421
|
# verify the required parameter 'user_id' is set
|
|
581
422
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
582
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
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.'
|
|
423
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_get"
|
|
586
424
|
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
|
-
|
|
614
425
|
# resource path
|
|
615
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites
|
|
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))
|
|
616
427
|
|
|
617
428
|
# query parameters
|
|
618
429
|
query_params = opts[:query_params] || {}
|
|
@@ -629,13 +440,13 @@ module SparteraApiSdk
|
|
|
629
440
|
post_body = opts[:debug_body]
|
|
630
441
|
|
|
631
442
|
# return_type
|
|
632
|
-
return_type = opts[:debug_return_type] || '
|
|
443
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
633
444
|
|
|
634
445
|
# auth_names
|
|
635
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
446
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
636
447
|
|
|
637
448
|
new_options = opts.merge(
|
|
638
|
-
:operation => :"FavoritesApi.
|
|
449
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_get",
|
|
639
450
|
:header_params => header_params,
|
|
640
451
|
:query_params => query_params,
|
|
641
452
|
:form_params => form_params,
|
|
@@ -646,66 +457,46 @@ module SparteraApiSdk
|
|
|
646
457
|
|
|
647
458
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
648
459
|
if @api_client.config.debugging
|
|
649
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
460
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
650
461
|
end
|
|
651
462
|
return data, status_code, headers
|
|
652
463
|
end
|
|
653
464
|
|
|
654
|
-
#
|
|
655
|
-
# @param company_id [String]
|
|
656
|
-
# @param user_id [String]
|
|
465
|
+
# POST /companies/{company_id}/users/{user_id}/favorites
|
|
466
|
+
# @param company_id [String]
|
|
467
|
+
# @param user_id [String]
|
|
468
|
+
# @param favorite [Favorite]
|
|
657
469
|
# @param [Hash] opts the optional parameters
|
|
658
|
-
# @return [
|
|
659
|
-
def
|
|
660
|
-
data, _status_code, _headers =
|
|
470
|
+
# @return [Object]
|
|
471
|
+
def companies_company_id_users_user_id_favorites_post(company_id, user_id, favorite, opts = {})
|
|
472
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_post_with_http_info(company_id, user_id, favorite, opts)
|
|
661
473
|
data
|
|
662
474
|
end
|
|
663
475
|
|
|
664
|
-
#
|
|
665
|
-
# @param company_id [String]
|
|
666
|
-
# @param user_id [String]
|
|
476
|
+
# POST /companies/{company_id}/users/{user_id}/favorites
|
|
477
|
+
# @param company_id [String]
|
|
478
|
+
# @param user_id [String]
|
|
479
|
+
# @param favorite [Favorite]
|
|
667
480
|
# @param [Hash] opts the optional parameters
|
|
668
|
-
# @return [Array<(
|
|
669
|
-
def
|
|
481
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
482
|
+
def companies_company_id_users_user_id_favorites_post_with_http_info(company_id, user_id, favorite, opts = {})
|
|
670
483
|
if @api_client.config.debugging
|
|
671
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
484
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_post ...'
|
|
672
485
|
end
|
|
673
486
|
# verify the required parameter 'company_id' is set
|
|
674
487
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
675
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
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}."
|
|
488
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_post"
|
|
688
489
|
end
|
|
689
|
-
|
|
690
490
|
# verify the required parameter 'user_id' is set
|
|
691
491
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
692
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
693
|
-
end
|
|
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.'
|
|
492
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_post"
|
|
696
493
|
end
|
|
697
|
-
|
|
698
|
-
if @api_client.config.client_side_validation &&
|
|
699
|
-
fail ArgumentError,
|
|
494
|
+
# verify the required parameter 'favorite' is set
|
|
495
|
+
if @api_client.config.client_side_validation && favorite.nil?
|
|
496
|
+
fail ArgumentError, "Missing the required parameter 'favorite' when calling FavoritesApi.companies_company_id_users_user_id_favorites_post"
|
|
700
497
|
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}."
|
|
705
|
-
end
|
|
706
|
-
|
|
707
498
|
# resource path
|
|
708
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites
|
|
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))
|
|
709
500
|
|
|
710
501
|
# query parameters
|
|
711
502
|
query_params = opts[:query_params] || {}
|
|
@@ -714,21 +505,26 @@ module SparteraApiSdk
|
|
|
714
505
|
header_params = opts[:header_params] || {}
|
|
715
506
|
# HTTP header 'Accept' (if needed)
|
|
716
507
|
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
|
|
717
513
|
|
|
718
514
|
# form parameters
|
|
719
515
|
form_params = opts[:form_params] || {}
|
|
720
516
|
|
|
721
517
|
# http body (model)
|
|
722
|
-
post_body = opts[:debug_body]
|
|
518
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(favorite)
|
|
723
519
|
|
|
724
520
|
# return_type
|
|
725
|
-
return_type = opts[:debug_return_type] || '
|
|
521
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
726
522
|
|
|
727
523
|
# auth_names
|
|
728
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
524
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
729
525
|
|
|
730
526
|
new_options = opts.merge(
|
|
731
|
-
:operation => :"FavoritesApi.
|
|
527
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_post",
|
|
732
528
|
:header_params => header_params,
|
|
733
529
|
:query_params => query_params,
|
|
734
530
|
:form_params => form_params,
|
|
@@ -737,93 +533,42 @@ module SparteraApiSdk
|
|
|
737
533
|
:return_type => return_type
|
|
738
534
|
)
|
|
739
535
|
|
|
740
|
-
data, status_code, headers = @api_client.call_api(:
|
|
536
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
741
537
|
if @api_client.config.debugging
|
|
742
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
538
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
743
539
|
end
|
|
744
540
|
return data, status_code, headers
|
|
745
541
|
end
|
|
746
542
|
|
|
747
|
-
#
|
|
748
|
-
# @param company_id [String]
|
|
749
|
-
# @param user_id [String]
|
|
750
|
-
# @param favorite_id [String] Unique identifier for the Favorite
|
|
751
|
-
# @param favorites_update [FavoritesUpdate]
|
|
543
|
+
# Get all favorites for the specified user that don't have a category
|
|
544
|
+
# @param company_id [String]
|
|
545
|
+
# @param user_id [String]
|
|
752
546
|
# @param [Hash] opts the optional parameters
|
|
753
|
-
# @return [
|
|
754
|
-
def
|
|
755
|
-
data, _status_code, _headers =
|
|
547
|
+
# @return [Object]
|
|
548
|
+
def companies_company_id_users_user_id_favorites_uncategorized_get(company_id, user_id, opts = {})
|
|
549
|
+
data, _status_code, _headers = companies_company_id_users_user_id_favorites_uncategorized_get_with_http_info(company_id, user_id, opts)
|
|
756
550
|
data
|
|
757
551
|
end
|
|
758
552
|
|
|
759
|
-
#
|
|
760
|
-
# @param company_id [String]
|
|
761
|
-
# @param user_id [String]
|
|
762
|
-
# @param favorite_id [String] Unique identifier for the Favorite
|
|
763
|
-
# @param favorites_update [FavoritesUpdate]
|
|
553
|
+
# Get all favorites for the specified user that don't have a category
|
|
554
|
+
# @param company_id [String]
|
|
555
|
+
# @param user_id [String]
|
|
764
556
|
# @param [Hash] opts the optional parameters
|
|
765
|
-
# @return [Array<(
|
|
766
|
-
def
|
|
557
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
558
|
+
def companies_company_id_users_user_id_favorites_uncategorized_get_with_http_info(company_id, user_id, opts = {})
|
|
767
559
|
if @api_client.config.debugging
|
|
768
|
-
@api_client.config.logger.debug 'Calling API: FavoritesApi.
|
|
560
|
+
@api_client.config.logger.debug 'Calling API: FavoritesApi.companies_company_id_users_user_id_favorites_uncategorized_get ...'
|
|
769
561
|
end
|
|
770
562
|
# verify the required parameter 'company_id' is set
|
|
771
563
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
772
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.
|
|
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.'
|
|
564
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_uncategorized_get"
|
|
776
565
|
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.'
|
|
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
|
-
|
|
787
566
|
# verify the required parameter 'user_id' is set
|
|
788
567
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
789
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.
|
|
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"
|
|
568
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling FavoritesApi.companies_company_id_users_user_id_favorites_uncategorized_get"
|
|
824
569
|
end
|
|
825
570
|
# resource path
|
|
826
|
-
local_var_path = '/companies/{company_id}/users/{user_id}/favorites/
|
|
571
|
+
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))
|
|
827
572
|
|
|
828
573
|
# query parameters
|
|
829
574
|
query_params = opts[:query_params] || {}
|
|
@@ -832,26 +577,21 @@ module SparteraApiSdk
|
|
|
832
577
|
header_params = opts[:header_params] || {}
|
|
833
578
|
# HTTP header 'Accept' (if needed)
|
|
834
579
|
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
|
|
840
580
|
|
|
841
581
|
# form parameters
|
|
842
582
|
form_params = opts[:form_params] || {}
|
|
843
583
|
|
|
844
584
|
# http body (model)
|
|
845
|
-
post_body = opts[:debug_body]
|
|
585
|
+
post_body = opts[:debug_body]
|
|
846
586
|
|
|
847
587
|
# return_type
|
|
848
|
-
return_type = opts[:debug_return_type] || '
|
|
588
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
849
589
|
|
|
850
590
|
# auth_names
|
|
851
|
-
auth_names = opts[:debug_auth_names] || ['
|
|
591
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
852
592
|
|
|
853
593
|
new_options = opts.merge(
|
|
854
|
-
:operation => :"FavoritesApi.
|
|
594
|
+
:operation => :"FavoritesApi.companies_company_id_users_user_id_favorites_uncategorized_get",
|
|
855
595
|
:header_params => header_params,
|
|
856
596
|
:query_params => query_params,
|
|
857
597
|
:form_params => form_params,
|
|
@@ -860,9 +600,9 @@ module SparteraApiSdk
|
|
|
860
600
|
:return_type => return_type
|
|
861
601
|
)
|
|
862
602
|
|
|
863
|
-
data, status_code, headers = @api_client.call_api(:
|
|
603
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
864
604
|
if @api_client.config.debugging
|
|
865
|
-
@api_client.config.logger.debug "API called: FavoritesApi#
|
|
605
|
+
@api_client.config.logger.debug "API called: FavoritesApi#companies_company_id_users_user_id_favorites_uncategorized_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
866
606
|
end
|
|
867
607
|
return data, status_code, headers
|
|
868
608
|
end
|