spartera_api_sdk 1.0.77 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/README.md +333 -324
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +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,52 +19,115 @@ 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]
|
|
22
|
+
# Create a new user
|
|
23
|
+
# @param company_id [String] Unique identifier for the Company
|
|
24
|
+
# @param users_input [UsersInput]
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
27
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
28
|
+
# @option opts [String] :sort_by Field to sort by
|
|
29
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
30
|
+
# @option opts [String] :search Search term to filter results
|
|
31
|
+
# @return [CreateUsers200Response]
|
|
32
|
+
def create_users(company_id, users_input, opts = {})
|
|
33
|
+
data, _status_code, _headers = create_users_with_http_info(company_id, users_input, opts)
|
|
28
34
|
data
|
|
29
35
|
end
|
|
30
36
|
|
|
31
|
-
#
|
|
32
|
-
# @param company_id [String]
|
|
37
|
+
# Create a new user
|
|
38
|
+
# @param company_id [String] Unique identifier for the Company
|
|
39
|
+
# @param users_input [UsersInput]
|
|
33
40
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @
|
|
35
|
-
|
|
41
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
42
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
43
|
+
# @option opts [String] :sort_by Field to sort by
|
|
44
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
45
|
+
# @option opts [String] :search Search term to filter results
|
|
46
|
+
# @return [Array<(CreateUsers200Response, Integer, Hash)>] CreateUsers200Response data, response status code and response headers
|
|
47
|
+
def create_users_with_http_info(company_id, users_input, opts = {})
|
|
36
48
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_users ...'
|
|
38
50
|
end
|
|
39
51
|
# verify the required parameter 'company_id' is set
|
|
40
52
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.create_users"
|
|
54
|
+
end
|
|
55
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
56
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users, the character length must be smaller than or equal to 255.'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
60
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users, the character length must be greater than or equal to 1.'
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
64
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
65
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.create_users, must conform to the pattern #{pattern}."
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# verify the required parameter 'users_input' is set
|
|
69
|
+
if @api_client.config.client_side_validation && users_input.nil?
|
|
70
|
+
fail ArgumentError, "Missing the required parameter 'users_input' when calling UsersApi.create_users"
|
|
71
|
+
end
|
|
72
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
73
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UsersApi.create_users, must be greater than or equal to 1.'
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
77
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users, must be smaller than or equal to 100.'
|
|
42
78
|
end
|
|
79
|
+
|
|
80
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
81
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users, must be greater than or equal to 1.'
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
allowable_values = ["asc", "desc"]
|
|
85
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
86
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
87
|
+
end
|
|
88
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
89
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users, the character length must be smaller than or equal to 255.'
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
93
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users, the character length must be greater than or equal to 1.'
|
|
94
|
+
end
|
|
95
|
+
|
|
43
96
|
# resource path
|
|
44
97
|
local_var_path = '/companies/{company_id}/users'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
45
98
|
|
|
46
99
|
# query parameters
|
|
47
100
|
query_params = opts[:query_params] || {}
|
|
101
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
102
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
103
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
104
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
105
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
48
106
|
|
|
49
107
|
# header parameters
|
|
50
108
|
header_params = opts[:header_params] || {}
|
|
51
109
|
# HTTP header 'Accept' (if needed)
|
|
52
110
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
111
|
+
# HTTP header 'Content-Type'
|
|
112
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
113
|
+
if !content_type.nil?
|
|
114
|
+
header_params['Content-Type'] = content_type
|
|
115
|
+
end
|
|
53
116
|
|
|
54
117
|
# form parameters
|
|
55
118
|
form_params = opts[:form_params] || {}
|
|
56
119
|
|
|
57
120
|
# http body (model)
|
|
58
|
-
post_body = opts[:debug_body]
|
|
121
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_input)
|
|
59
122
|
|
|
60
123
|
# return_type
|
|
61
|
-
return_type = opts[:debug_return_type] || '
|
|
124
|
+
return_type = opts[:debug_return_type] || 'CreateUsers200Response'
|
|
62
125
|
|
|
63
126
|
# auth_names
|
|
64
127
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
65
128
|
|
|
66
129
|
new_options = opts.merge(
|
|
67
|
-
:operation => :"UsersApi.
|
|
130
|
+
:operation => :"UsersApi.create_users",
|
|
68
131
|
:header_params => header_params,
|
|
69
132
|
:query_params => query_params,
|
|
70
133
|
:form_params => form_params,
|
|
@@ -73,45 +136,97 @@ module SparteraApiSdk
|
|
|
73
136
|
:return_type => return_type
|
|
74
137
|
)
|
|
75
138
|
|
|
76
|
-
data, status_code, headers = @api_client.call_api(:
|
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
77
140
|
if @api_client.config.debugging
|
|
78
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
141
|
+
@api_client.config.logger.debug "API called: UsersApi#create_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
142
|
end
|
|
80
143
|
return data, status_code, headers
|
|
81
144
|
end
|
|
82
145
|
|
|
83
|
-
#
|
|
84
|
-
# @param company_id [String]
|
|
146
|
+
# POST /companies/{company_id}/users/google-oauth
|
|
147
|
+
# @param company_id [String] Unique identifier for the Company
|
|
85
148
|
# @param users_input [UsersInput]
|
|
86
149
|
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @
|
|
88
|
-
|
|
89
|
-
|
|
150
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
151
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
152
|
+
# @option opts [String] :sort_by Field to sort by
|
|
153
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
154
|
+
# @option opts [String] :search Search term to filter results
|
|
155
|
+
# @return [CreateUsers200Response]
|
|
156
|
+
def create_users_google_oauth(company_id, users_input, opts = {})
|
|
157
|
+
data, _status_code, _headers = create_users_google_oauth_with_http_info(company_id, users_input, opts)
|
|
90
158
|
data
|
|
91
159
|
end
|
|
92
160
|
|
|
93
|
-
#
|
|
94
|
-
# @param company_id [String]
|
|
161
|
+
# POST /companies/{company_id}/users/google-oauth
|
|
162
|
+
# @param company_id [String] Unique identifier for the Company
|
|
95
163
|
# @param users_input [UsersInput]
|
|
96
164
|
# @param [Hash] opts the optional parameters
|
|
97
|
-
# @
|
|
98
|
-
|
|
165
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
166
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
167
|
+
# @option opts [String] :sort_by Field to sort by
|
|
168
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
169
|
+
# @option opts [String] :search Search term to filter results
|
|
170
|
+
# @return [Array<(CreateUsers200Response, Integer, Hash)>] CreateUsers200Response data, response status code and response headers
|
|
171
|
+
def create_users_google_oauth_with_http_info(company_id, users_input, opts = {})
|
|
99
172
|
if @api_client.config.debugging
|
|
100
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
173
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_users_google_oauth ...'
|
|
101
174
|
end
|
|
102
175
|
# verify the required parameter 'company_id' is set
|
|
103
176
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
104
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.
|
|
177
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.create_users_google_oauth"
|
|
178
|
+
end
|
|
179
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
180
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users_google_oauth, the character length must be smaller than or equal to 255.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
184
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users_google_oauth, the character length must be greater than or equal to 1.'
|
|
105
185
|
end
|
|
186
|
+
|
|
187
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
188
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
189
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.create_users_google_oauth, must conform to the pattern #{pattern}."
|
|
190
|
+
end
|
|
191
|
+
|
|
106
192
|
# verify the required parameter 'users_input' is set
|
|
107
193
|
if @api_client.config.client_side_validation && users_input.nil?
|
|
108
|
-
fail ArgumentError, "Missing the required parameter 'users_input' when calling UsersApi.
|
|
194
|
+
fail ArgumentError, "Missing the required parameter 'users_input' when calling UsersApi.create_users_google_oauth"
|
|
195
|
+
end
|
|
196
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UsersApi.create_users_google_oauth, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
201
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users_google_oauth, must be smaller than or equal to 100.'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
205
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users_google_oauth, must be greater than or equal to 1.'
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
allowable_values = ["asc", "desc"]
|
|
209
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
210
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
211
|
+
end
|
|
212
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
213
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users_google_oauth, the character length must be smaller than or equal to 255.'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
217
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users_google_oauth, the character length must be greater than or equal to 1.'
|
|
109
218
|
end
|
|
219
|
+
|
|
110
220
|
# resource path
|
|
111
|
-
local_var_path = '/companies/{company_id}/users'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
221
|
+
local_var_path = '/companies/{company_id}/users/google-oauth'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
112
222
|
|
|
113
223
|
# query parameters
|
|
114
224
|
query_params = opts[:query_params] || {}
|
|
225
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
226
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
227
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
228
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
229
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
115
230
|
|
|
116
231
|
# header parameters
|
|
117
232
|
header_params = opts[:header_params] || {}
|
|
@@ -130,13 +245,13 @@ module SparteraApiSdk
|
|
|
130
245
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_input)
|
|
131
246
|
|
|
132
247
|
# return_type
|
|
133
|
-
return_type = opts[:debug_return_type] || '
|
|
248
|
+
return_type = opts[:debug_return_type] || 'CreateUsers200Response'
|
|
134
249
|
|
|
135
250
|
# auth_names
|
|
136
251
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
137
252
|
|
|
138
253
|
new_options = opts.merge(
|
|
139
|
-
:operation => :"UsersApi.
|
|
254
|
+
:operation => :"UsersApi.create_users_google_oauth",
|
|
140
255
|
:header_params => header_params,
|
|
141
256
|
:query_params => query_params,
|
|
142
257
|
:form_params => form_params,
|
|
@@ -147,38 +262,188 @@ module SparteraApiSdk
|
|
|
147
262
|
|
|
148
263
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
149
264
|
if @api_client.config.debugging
|
|
150
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
265
|
+
@api_client.config.logger.debug "API called: UsersApi#create_users_google_oauth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
end
|
|
267
|
+
return data, status_code, headers
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Logout current user by revoking their sessions
|
|
271
|
+
# @param company_id [String] Unique identifier for the Company
|
|
272
|
+
# @param users_input [UsersInput]
|
|
273
|
+
# @param [Hash] opts the optional parameters
|
|
274
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
275
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
276
|
+
# @option opts [String] :sort_by Field to sort by
|
|
277
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
278
|
+
# @option opts [String] :search Search term to filter results
|
|
279
|
+
# @return [CreateUsers200Response]
|
|
280
|
+
def create_users_logout(company_id, users_input, opts = {})
|
|
281
|
+
data, _status_code, _headers = create_users_logout_with_http_info(company_id, users_input, opts)
|
|
282
|
+
data
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Logout current user by revoking their sessions
|
|
286
|
+
# @param company_id [String] Unique identifier for the Company
|
|
287
|
+
# @param users_input [UsersInput]
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
290
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
291
|
+
# @option opts [String] :sort_by Field to sort by
|
|
292
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
293
|
+
# @option opts [String] :search Search term to filter results
|
|
294
|
+
# @return [Array<(CreateUsers200Response, Integer, Hash)>] CreateUsers200Response data, response status code and response headers
|
|
295
|
+
def create_users_logout_with_http_info(company_id, users_input, opts = {})
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_users_logout ...'
|
|
298
|
+
end
|
|
299
|
+
# verify the required parameter 'company_id' is set
|
|
300
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
301
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.create_users_logout"
|
|
302
|
+
end
|
|
303
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
304
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users_logout, the character length must be smaller than or equal to 255.'
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
308
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.create_users_logout, the character length must be greater than or equal to 1.'
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
312
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
313
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.create_users_logout, must conform to the pattern #{pattern}."
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# verify the required parameter 'users_input' is set
|
|
317
|
+
if @api_client.config.client_side_validation && users_input.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'users_input' when calling UsersApi.create_users_logout"
|
|
319
|
+
end
|
|
320
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
321
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UsersApi.create_users_logout, must be greater than or equal to 1.'
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
325
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users_logout, must be smaller than or equal to 100.'
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
329
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.create_users_logout, must be greater than or equal to 1.'
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
allowable_values = ["asc", "desc"]
|
|
333
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
334
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
335
|
+
end
|
|
336
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
337
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users_logout, the character length must be smaller than or equal to 255.'
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
341
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.create_users_logout, the character length must be greater than or equal to 1.'
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# resource path
|
|
345
|
+
local_var_path = '/companies/{company_id}/users/logout'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
346
|
+
|
|
347
|
+
# query parameters
|
|
348
|
+
query_params = opts[:query_params] || {}
|
|
349
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
350
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
351
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
352
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
353
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
354
|
+
|
|
355
|
+
# header parameters
|
|
356
|
+
header_params = opts[:header_params] || {}
|
|
357
|
+
# HTTP header 'Accept' (if needed)
|
|
358
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
359
|
+
# HTTP header 'Content-Type'
|
|
360
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
361
|
+
if !content_type.nil?
|
|
362
|
+
header_params['Content-Type'] = content_type
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# form parameters
|
|
366
|
+
form_params = opts[:form_params] || {}
|
|
367
|
+
|
|
368
|
+
# http body (model)
|
|
369
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_input)
|
|
370
|
+
|
|
371
|
+
# return_type
|
|
372
|
+
return_type = opts[:debug_return_type] || 'CreateUsers200Response'
|
|
373
|
+
|
|
374
|
+
# auth_names
|
|
375
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
376
|
+
|
|
377
|
+
new_options = opts.merge(
|
|
378
|
+
:operation => :"UsersApi.create_users_logout",
|
|
379
|
+
:header_params => header_params,
|
|
380
|
+
:query_params => query_params,
|
|
381
|
+
:form_params => form_params,
|
|
382
|
+
:body => post_body,
|
|
383
|
+
:auth_names => auth_names,
|
|
384
|
+
:return_type => return_type
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
388
|
+
if @api_client.config.debugging
|
|
389
|
+
@api_client.config.logger.debug "API called: UsersApi#create_users_logout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
151
390
|
end
|
|
152
391
|
return data, status_code, headers
|
|
153
392
|
end
|
|
154
393
|
|
|
155
394
|
# Delete single user by ID
|
|
156
|
-
# @param company_id [String]
|
|
157
|
-
# @param user_id [String]
|
|
395
|
+
# @param company_id [String] Unique identifier for the Company
|
|
396
|
+
# @param user_id [String] Unique identifier for the User
|
|
158
397
|
# @param [Hash] opts the optional parameters
|
|
159
|
-
# @return [
|
|
160
|
-
def
|
|
161
|
-
data, _status_code, _headers =
|
|
398
|
+
# @return [DeleteUsers200Response]
|
|
399
|
+
def delete_users(company_id, user_id, opts = {})
|
|
400
|
+
data, _status_code, _headers = delete_users_with_http_info(company_id, user_id, opts)
|
|
162
401
|
data
|
|
163
402
|
end
|
|
164
403
|
|
|
165
404
|
# Delete single user by ID
|
|
166
|
-
# @param company_id [String]
|
|
167
|
-
# @param user_id [String]
|
|
405
|
+
# @param company_id [String] Unique identifier for the Company
|
|
406
|
+
# @param user_id [String] Unique identifier for the User
|
|
168
407
|
# @param [Hash] opts the optional parameters
|
|
169
|
-
# @return [Array<(
|
|
170
|
-
def
|
|
408
|
+
# @return [Array<(DeleteUsers200Response, Integer, Hash)>] DeleteUsers200Response data, response status code and response headers
|
|
409
|
+
def delete_users_with_http_info(company_id, user_id, opts = {})
|
|
171
410
|
if @api_client.config.debugging
|
|
172
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
411
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete_users ...'
|
|
173
412
|
end
|
|
174
413
|
# verify the required parameter 'company_id' is set
|
|
175
414
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
176
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.
|
|
415
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.delete_users"
|
|
416
|
+
end
|
|
417
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
418
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.delete_users, the character length must be smaller than or equal to 255.'
|
|
177
419
|
end
|
|
420
|
+
|
|
421
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
422
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.delete_users, the character length must be greater than or equal to 1.'
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
426
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
427
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.delete_users, must conform to the pattern #{pattern}."
|
|
428
|
+
end
|
|
429
|
+
|
|
178
430
|
# verify the required parameter 'user_id' is set
|
|
179
431
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
180
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.delete_users"
|
|
433
|
+
end
|
|
434
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
435
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.delete_users, the character length must be smaller than or equal to 255.'
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
439
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.delete_users, the character length must be greater than or equal to 1.'
|
|
181
440
|
end
|
|
441
|
+
|
|
442
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
443
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
444
|
+
fail ArgumentError, "invalid value for 'user_id' when calling UsersApi.delete_users, must conform to the pattern #{pattern}."
|
|
445
|
+
end
|
|
446
|
+
|
|
182
447
|
# resource path
|
|
183
448
|
local_var_path = '/companies/{company_id}/users/{user_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
184
449
|
|
|
@@ -197,13 +462,13 @@ module SparteraApiSdk
|
|
|
197
462
|
post_body = opts[:debug_body]
|
|
198
463
|
|
|
199
464
|
# return_type
|
|
200
|
-
return_type = opts[:debug_return_type] || '
|
|
465
|
+
return_type = opts[:debug_return_type] || 'DeleteUsers200Response'
|
|
201
466
|
|
|
202
467
|
# auth_names
|
|
203
468
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
204
469
|
|
|
205
470
|
new_options = opts.merge(
|
|
206
|
-
:operation => :"UsersApi.
|
|
471
|
+
:operation => :"UsersApi.delete_users",
|
|
207
472
|
:header_params => header_params,
|
|
208
473
|
:query_params => query_params,
|
|
209
474
|
:form_params => form_params,
|
|
@@ -214,38 +479,64 @@ module SparteraApiSdk
|
|
|
214
479
|
|
|
215
480
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
216
481
|
if @api_client.config.debugging
|
|
217
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
482
|
+
@api_client.config.logger.debug "API called: UsersApi#delete_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
218
483
|
end
|
|
219
484
|
return data, status_code, headers
|
|
220
485
|
end
|
|
221
486
|
|
|
222
487
|
# Get single user by ID
|
|
223
|
-
# @param company_id [String]
|
|
224
|
-
# @param user_id [String]
|
|
488
|
+
# @param company_id [String] Unique identifier for the Company
|
|
489
|
+
# @param user_id [String] Unique identifier for the User
|
|
225
490
|
# @param [Hash] opts the optional parameters
|
|
226
|
-
# @return [
|
|
227
|
-
def
|
|
228
|
-
data, _status_code, _headers =
|
|
491
|
+
# @return [GetUsersById200Response]
|
|
492
|
+
def get_users_by_id(company_id, user_id, opts = {})
|
|
493
|
+
data, _status_code, _headers = get_users_by_id_with_http_info(company_id, user_id, opts)
|
|
229
494
|
data
|
|
230
495
|
end
|
|
231
496
|
|
|
232
497
|
# Get single user by ID
|
|
233
|
-
# @param company_id [String]
|
|
234
|
-
# @param user_id [String]
|
|
498
|
+
# @param company_id [String] Unique identifier for the Company
|
|
499
|
+
# @param user_id [String] Unique identifier for the User
|
|
235
500
|
# @param [Hash] opts the optional parameters
|
|
236
|
-
# @return [Array<(
|
|
237
|
-
def
|
|
501
|
+
# @return [Array<(GetUsersById200Response, Integer, Hash)>] GetUsersById200Response data, response status code and response headers
|
|
502
|
+
def get_users_by_id_with_http_info(company_id, user_id, opts = {})
|
|
238
503
|
if @api_client.config.debugging
|
|
239
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
504
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_users_by_id ...'
|
|
240
505
|
end
|
|
241
506
|
# verify the required parameter 'company_id' is set
|
|
242
507
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
243
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.
|
|
508
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.get_users_by_id"
|
|
244
509
|
end
|
|
510
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
511
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.get_users_by_id, the character length must be smaller than or equal to 255.'
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
515
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.get_users_by_id, the character length must be greater than or equal to 1.'
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
519
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
520
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.get_users_by_id, must conform to the pattern #{pattern}."
|
|
521
|
+
end
|
|
522
|
+
|
|
245
523
|
# verify the required parameter 'user_id' is set
|
|
246
524
|
if @api_client.config.client_side_validation && user_id.nil?
|
|
247
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.
|
|
525
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_users_by_id"
|
|
248
526
|
end
|
|
527
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
528
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.get_users_by_id, the character length must be smaller than or equal to 255.'
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
532
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.get_users_by_id, the character length must be greater than or equal to 1.'
|
|
533
|
+
end
|
|
534
|
+
|
|
535
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
536
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
537
|
+
fail ArgumentError, "invalid value for 'user_id' when calling UsersApi.get_users_by_id, must conform to the pattern #{pattern}."
|
|
538
|
+
end
|
|
539
|
+
|
|
249
540
|
# resource path
|
|
250
541
|
local_var_path = '/companies/{company_id}/users/{user_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
251
542
|
|
|
@@ -264,13 +555,13 @@ module SparteraApiSdk
|
|
|
264
555
|
post_body = opts[:debug_body]
|
|
265
556
|
|
|
266
557
|
# return_type
|
|
267
|
-
return_type = opts[:debug_return_type] || '
|
|
558
|
+
return_type = opts[:debug_return_type] || 'GetUsersById200Response'
|
|
268
559
|
|
|
269
560
|
# auth_names
|
|
270
561
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
271
562
|
|
|
272
563
|
new_options = opts.merge(
|
|
273
|
-
:operation => :"UsersApi.
|
|
564
|
+
:operation => :"UsersApi.get_users_by_id",
|
|
274
565
|
:header_params => header_params,
|
|
275
566
|
:query_params => query_params,
|
|
276
567
|
:form_params => form_params,
|
|
@@ -281,74 +572,109 @@ module SparteraApiSdk
|
|
|
281
572
|
|
|
282
573
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
283
574
|
if @api_client.config.debugging
|
|
284
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
575
|
+
@api_client.config.logger.debug "API called: UsersApi#get_users_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
285
576
|
end
|
|
286
577
|
return data, status_code, headers
|
|
287
578
|
end
|
|
288
579
|
|
|
289
|
-
#
|
|
290
|
-
# @param company_id [String]
|
|
291
|
-
# @param user_id [String]
|
|
292
|
-
# @param users_update [UsersUpdate]
|
|
580
|
+
# Get a list of all users in a company
|
|
581
|
+
# @param company_id [String] Unique identifier for the Company
|
|
293
582
|
# @param [Hash] opts the optional parameters
|
|
294
|
-
# @
|
|
295
|
-
|
|
296
|
-
|
|
583
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
584
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
585
|
+
# @option opts [String] :sort_by Field to sort by
|
|
586
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
587
|
+
# @option opts [String] :search Search term to filter results
|
|
588
|
+
# @return [ListUsers200Response]
|
|
589
|
+
def list_users(company_id, opts = {})
|
|
590
|
+
data, _status_code, _headers = list_users_with_http_info(company_id, opts)
|
|
297
591
|
data
|
|
298
592
|
end
|
|
299
593
|
|
|
300
|
-
#
|
|
301
|
-
# @param company_id [String]
|
|
302
|
-
# @param user_id [String]
|
|
303
|
-
# @param users_update [UsersUpdate]
|
|
594
|
+
# Get a list of all users in a company
|
|
595
|
+
# @param company_id [String] Unique identifier for the Company
|
|
304
596
|
# @param [Hash] opts the optional parameters
|
|
305
|
-
# @
|
|
306
|
-
|
|
597
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
598
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
599
|
+
# @option opts [String] :sort_by Field to sort by
|
|
600
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
601
|
+
# @option opts [String] :search Search term to filter results
|
|
602
|
+
# @return [Array<(ListUsers200Response, Integer, Hash)>] ListUsers200Response data, response status code and response headers
|
|
603
|
+
def list_users_with_http_info(company_id, opts = {})
|
|
307
604
|
if @api_client.config.debugging
|
|
308
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
605
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.list_users ...'
|
|
309
606
|
end
|
|
310
607
|
# verify the required parameter 'company_id' is set
|
|
311
608
|
if @api_client.config.client_side_validation && company_id.nil?
|
|
312
|
-
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.
|
|
609
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.list_users"
|
|
313
610
|
end
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.companies_company_id_users_user_id_patch"
|
|
611
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
612
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.list_users, the character length must be smaller than or equal to 255.'
|
|
317
613
|
end
|
|
318
|
-
|
|
319
|
-
if @api_client.config.client_side_validation &&
|
|
320
|
-
fail ArgumentError,
|
|
614
|
+
|
|
615
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
616
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.list_users, the character length must be greater than or equal to 1.'
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
620
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
621
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.list_users, must conform to the pattern #{pattern}."
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
625
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UsersApi.list_users, must be greater than or equal to 1.'
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
629
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.list_users, must be smaller than or equal to 100.'
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
633
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.list_users, must be greater than or equal to 1.'
|
|
321
634
|
end
|
|
635
|
+
|
|
636
|
+
allowable_values = ["asc", "desc"]
|
|
637
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
638
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
639
|
+
end
|
|
640
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
641
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.list_users, the character length must be smaller than or equal to 255.'
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
645
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.list_users, the character length must be greater than or equal to 1.'
|
|
646
|
+
end
|
|
647
|
+
|
|
322
648
|
# resource path
|
|
323
|
-
local_var_path = '/companies/{company_id}/users
|
|
649
|
+
local_var_path = '/companies/{company_id}/users'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
|
|
324
650
|
|
|
325
651
|
# query parameters
|
|
326
652
|
query_params = opts[:query_params] || {}
|
|
653
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
654
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
655
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
656
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
657
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
327
658
|
|
|
328
659
|
# header parameters
|
|
329
660
|
header_params = opts[:header_params] || {}
|
|
330
661
|
# HTTP header 'Accept' (if needed)
|
|
331
662
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
332
|
-
# HTTP header 'Content-Type'
|
|
333
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
334
|
-
if !content_type.nil?
|
|
335
|
-
header_params['Content-Type'] = content_type
|
|
336
|
-
end
|
|
337
663
|
|
|
338
664
|
# form parameters
|
|
339
665
|
form_params = opts[:form_params] || {}
|
|
340
666
|
|
|
341
667
|
# http body (model)
|
|
342
|
-
post_body = opts[:debug_body]
|
|
668
|
+
post_body = opts[:debug_body]
|
|
343
669
|
|
|
344
670
|
# return_type
|
|
345
|
-
return_type = opts[:debug_return_type] || '
|
|
671
|
+
return_type = opts[:debug_return_type] || 'ListUsers200Response'
|
|
346
672
|
|
|
347
673
|
# auth_names
|
|
348
674
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
349
675
|
|
|
350
676
|
new_options = opts.merge(
|
|
351
|
-
:operation => :"UsersApi.
|
|
677
|
+
:operation => :"UsersApi.list_users",
|
|
352
678
|
:header_params => header_params,
|
|
353
679
|
:query_params => query_params,
|
|
354
680
|
:form_params => form_params,
|
|
@@ -357,33 +683,72 @@ module SparteraApiSdk
|
|
|
357
683
|
:return_type => return_type
|
|
358
684
|
)
|
|
359
685
|
|
|
360
|
-
data, status_code, headers = @api_client.call_api(:
|
|
686
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
361
687
|
if @api_client.config.debugging
|
|
362
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
688
|
+
@api_client.config.logger.debug "API called: UsersApi#list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
363
689
|
end
|
|
364
690
|
return data, status_code, headers
|
|
365
691
|
end
|
|
366
692
|
|
|
367
693
|
# Get current authenticated user's profile.
|
|
368
694
|
# @param [Hash] opts the optional parameters
|
|
369
|
-
# @
|
|
370
|
-
|
|
371
|
-
|
|
695
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
696
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
697
|
+
# @option opts [String] :sort_by Field to sort by
|
|
698
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
699
|
+
# @option opts [String] :search Search term to filter results
|
|
700
|
+
# @return [ListUsers200Response]
|
|
701
|
+
def list_users_me(opts = {})
|
|
702
|
+
data, _status_code, _headers = list_users_me_with_http_info(opts)
|
|
372
703
|
data
|
|
373
704
|
end
|
|
374
705
|
|
|
375
706
|
# Get current authenticated user's profile.
|
|
376
707
|
# @param [Hash] opts the optional parameters
|
|
377
|
-
# @
|
|
378
|
-
|
|
708
|
+
# @option opts [Integer] :page Page number for pagination (default to 1)
|
|
709
|
+
# @option opts [Integer] :limit Number of items per page (default to 20)
|
|
710
|
+
# @option opts [String] :sort_by Field to sort by
|
|
711
|
+
# @option opts [String] :sort_order Sort order (ascending or descending) (default to 'desc')
|
|
712
|
+
# @option opts [String] :search Search term to filter results
|
|
713
|
+
# @return [Array<(ListUsers200Response, Integer, Hash)>] ListUsers200Response data, response status code and response headers
|
|
714
|
+
def list_users_me_with_http_info(opts = {})
|
|
379
715
|
if @api_client.config.debugging
|
|
380
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
|
716
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.list_users_me ...'
|
|
381
717
|
end
|
|
718
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
719
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling UsersApi.list_users_me, must be greater than or equal to 1.'
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
723
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.list_users_me, must be smaller than or equal to 100.'
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
727
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.list_users_me, must be greater than or equal to 1.'
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
allowable_values = ["asc", "desc"]
|
|
731
|
+
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
|
732
|
+
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
|
733
|
+
end
|
|
734
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 255
|
|
735
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.list_users_me, the character length must be smaller than or equal to 255.'
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length < 1
|
|
739
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling UsersApi.list_users_me, the character length must be greater than or equal to 1.'
|
|
740
|
+
end
|
|
741
|
+
|
|
382
742
|
# resource path
|
|
383
743
|
local_var_path = '/me'
|
|
384
744
|
|
|
385
745
|
# query parameters
|
|
386
746
|
query_params = opts[:query_params] || {}
|
|
747
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
748
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
749
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
750
|
+
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
751
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
387
752
|
|
|
388
753
|
# header parameters
|
|
389
754
|
header_params = opts[:header_params] || {}
|
|
@@ -397,13 +762,13 @@ module SparteraApiSdk
|
|
|
397
762
|
post_body = opts[:debug_body]
|
|
398
763
|
|
|
399
764
|
# return_type
|
|
400
|
-
return_type = opts[:debug_return_type] || '
|
|
765
|
+
return_type = opts[:debug_return_type] || 'ListUsers200Response'
|
|
401
766
|
|
|
402
767
|
# auth_names
|
|
403
768
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
404
769
|
|
|
405
770
|
new_options = opts.merge(
|
|
406
|
-
:operation => :"UsersApi.
|
|
771
|
+
:operation => :"UsersApi.list_users_me",
|
|
407
772
|
:header_params => header_params,
|
|
408
773
|
:query_params => query_params,
|
|
409
774
|
:form_params => form_params,
|
|
@@ -414,7 +779,111 @@ module SparteraApiSdk
|
|
|
414
779
|
|
|
415
780
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
416
781
|
if @api_client.config.debugging
|
|
417
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
|
782
|
+
@api_client.config.logger.debug "API called: UsersApi#list_users_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
783
|
+
end
|
|
784
|
+
return data, status_code, headers
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Update an existing user by ID
|
|
788
|
+
# @param company_id [String] Unique identifier for the Company
|
|
789
|
+
# @param user_id [String] Unique identifier for the User
|
|
790
|
+
# @param users_update [UsersUpdate]
|
|
791
|
+
# @param [Hash] opts the optional parameters
|
|
792
|
+
# @return [UpdateUsers200Response]
|
|
793
|
+
def update_users(company_id, user_id, users_update, opts = {})
|
|
794
|
+
data, _status_code, _headers = update_users_with_http_info(company_id, user_id, users_update, opts)
|
|
795
|
+
data
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# Update an existing user by ID
|
|
799
|
+
# @param company_id [String] Unique identifier for the Company
|
|
800
|
+
# @param user_id [String] Unique identifier for the User
|
|
801
|
+
# @param users_update [UsersUpdate]
|
|
802
|
+
# @param [Hash] opts the optional parameters
|
|
803
|
+
# @return [Array<(UpdateUsers200Response, Integer, Hash)>] UpdateUsers200Response data, response status code and response headers
|
|
804
|
+
def update_users_with_http_info(company_id, user_id, users_update, opts = {})
|
|
805
|
+
if @api_client.config.debugging
|
|
806
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_users ...'
|
|
807
|
+
end
|
|
808
|
+
# verify the required parameter 'company_id' is set
|
|
809
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
810
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling UsersApi.update_users"
|
|
811
|
+
end
|
|
812
|
+
if @api_client.config.client_side_validation && company_id.to_s.length > 255
|
|
813
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.update_users, the character length must be smaller than or equal to 255.'
|
|
814
|
+
end
|
|
815
|
+
|
|
816
|
+
if @api_client.config.client_side_validation && company_id.to_s.length < 1
|
|
817
|
+
fail ArgumentError, 'invalid value for "company_id" when calling UsersApi.update_users, the character length must be greater than or equal to 1.'
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
821
|
+
if @api_client.config.client_side_validation && company_id !~ pattern
|
|
822
|
+
fail ArgumentError, "invalid value for 'company_id' when calling UsersApi.update_users, must conform to the pattern #{pattern}."
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# verify the required parameter 'user_id' is set
|
|
826
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
827
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.update_users"
|
|
828
|
+
end
|
|
829
|
+
if @api_client.config.client_side_validation && user_id.to_s.length > 255
|
|
830
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.update_users, the character length must be smaller than or equal to 255.'
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
if @api_client.config.client_side_validation && user_id.to_s.length < 1
|
|
834
|
+
fail ArgumentError, 'invalid value for "user_id" when calling UsersApi.update_users, the character length must be greater than or equal to 1.'
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
pattern = Regexp.new(/^[a-zA-Z0-9_-]+$/)
|
|
838
|
+
if @api_client.config.client_side_validation && user_id !~ pattern
|
|
839
|
+
fail ArgumentError, "invalid value for 'user_id' when calling UsersApi.update_users, must conform to the pattern #{pattern}."
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# verify the required parameter 'users_update' is set
|
|
843
|
+
if @api_client.config.client_side_validation && users_update.nil?
|
|
844
|
+
fail ArgumentError, "Missing the required parameter 'users_update' when calling UsersApi.update_users"
|
|
845
|
+
end
|
|
846
|
+
# resource path
|
|
847
|
+
local_var_path = '/companies/{company_id}/users/{user_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
848
|
+
|
|
849
|
+
# query parameters
|
|
850
|
+
query_params = opts[:query_params] || {}
|
|
851
|
+
|
|
852
|
+
# header parameters
|
|
853
|
+
header_params = opts[:header_params] || {}
|
|
854
|
+
# HTTP header 'Accept' (if needed)
|
|
855
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
856
|
+
# HTTP header 'Content-Type'
|
|
857
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
858
|
+
if !content_type.nil?
|
|
859
|
+
header_params['Content-Type'] = content_type
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
# form parameters
|
|
863
|
+
form_params = opts[:form_params] || {}
|
|
864
|
+
|
|
865
|
+
# http body (model)
|
|
866
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(users_update)
|
|
867
|
+
|
|
868
|
+
# return_type
|
|
869
|
+
return_type = opts[:debug_return_type] || 'UpdateUsers200Response'
|
|
870
|
+
|
|
871
|
+
# auth_names
|
|
872
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
873
|
+
|
|
874
|
+
new_options = opts.merge(
|
|
875
|
+
:operation => :"UsersApi.update_users",
|
|
876
|
+
:header_params => header_params,
|
|
877
|
+
:query_params => query_params,
|
|
878
|
+
:form_params => form_params,
|
|
879
|
+
:body => post_body,
|
|
880
|
+
:auth_names => auth_names,
|
|
881
|
+
:return_type => return_type
|
|
882
|
+
)
|
|
883
|
+
|
|
884
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
885
|
+
if @api_client.config.debugging
|
|
886
|
+
@api_client.config.logger.debug "API called: UsersApi#update_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
418
887
|
end
|
|
419
888
|
return data, status_code, headers
|
|
420
889
|
end
|