diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2561e422..b7a11e2f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,6 +2,7 @@ .travis.yml README.md api/openapi.yaml +api_ai.go api_ai_agents.go api_ai_custom_tools.go api_ai_file_storage.go @@ -9,8 +10,8 @@ api_ai_filter_policies.go api_ai_governance.go api_ai_inference.go api_ai_models.go -api_ai_monitoring.go api_ai_orchestrations.go +api_ai_search.go api_ai_sessions.go api_ai_skills.go api_ai_slack_bots.go @@ -34,14 +35,17 @@ api_kv.go api_organizations.go api_projects.go api_purge.go +api_restore_management.go api_rules.go api_scaling_policy.go api_ssh_access.go +api_subscription.go api_tokens.go api_variables.go api_volumes.go client.go configuration.go +docs/AIAPI.md docs/AIAgentsAPI.md docs/AICustomToolsAPI.md docs/AIFileStorageAPI.md @@ -49,8 +53,8 @@ docs/AIFilterPoliciesAPI.md docs/AIGovernanceAPI.md docs/AIInferenceAPI.md docs/AIModelsAPI.md -docs/AIMonitoringAPI.md docs/AIOrchestrationsAPI.md +docs/AISearchAPI.md docs/AISessionsAPI.md docs/AISkillsAPI.md docs/AISlackBotsAPI.md @@ -58,6 +62,14 @@ docs/AITaskManagementAPI.md docs/AIToolsAPI.md docs/AIUsageAPI.md docs/AIVectorDatabaseAPI.md +docs/AiSearchChatRequest.md +docs/AiSearchDeletePagesRequest.md +docs/AiSearchEnableRequest.md +docs/AiSearchIngestPagesRequest.md +docs/AiSearchIngestPagesRequestPagesInner.md +docs/AiSearchSearchRequest.md +docs/AiSearchTriggerCrawlRequest.md +docs/AiSearchUpdateSettingsRequest.md docs/Application.md docs/ApplicationDatabase.md docs/ApplicationDeploymentInformationInner.md @@ -199,8 +211,6 @@ docs/GetAISession200Response.md docs/GetAIToolExecutionStatus200Response.md docs/GetAIToolExecutionStatus200ResponseResult.md docs/GetAIToolExecutionStatus404Response.md -docs/GetAIUsageStats200Response.md -docs/GetAIUsageStats200ResponseByModelValue.md docs/GetAgentOverlay200Response.md docs/GetAgentOverlay200ResponseBase.md docs/GetAgentOverlay200ResponseOverlay.md @@ -219,6 +229,8 @@ docs/GetEnvironmentLogs200ResponseLogEventsInner.md docs/GetFile200Response.md docs/GetGovernanceConfig200Response.md docs/GetGovernanceConfig200ResponseSpendLimits.md +docs/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md +docs/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md docs/GetGovernanceSpend200Response.md docs/GetGovernanceSpend200ResponseBudget.md docs/GetGovernanceSpend200ResponseDailyBudget.md @@ -229,6 +241,10 @@ docs/GetMyUsage200Response.md docs/GetMyUsage200ResponseDaily.md docs/GetMyUsage200ResponseMonthly.md docs/GetMyUsage200ResponseQuota.md +docs/GetMyUsage200ResponseQuotaDailyLimit.md +docs/GetMyUsage200ResponseQuotaMonthlyLimit.md +docs/GetRestoreStatus200Response.md +docs/GetScalingPolicyResponse.md docs/GetSkill200Response.md docs/GetSkill200ResponseSkill.md docs/GetSlackBot200Response.md @@ -309,18 +325,25 @@ docs/QueryVectorCollection200ResponsePagination.md docs/QueryVectorCollection200ResponseResultsInner.md docs/QueryVectorCollectionRequest.md docs/QueryVectorCollectionRequestFilter.md +docs/RestoreDatabase202Response.md +docs/RestoreDatabaseRequest.md +docs/RestoreFilesystem202Response.md +docs/RestoreFilesystemRequest.md +docs/RestoreManagementAPI.md docs/RulesAPI.md docs/SSHAccessAPI.md -docs/ScalingPolicy.md docs/ScalingPolicyAPI.md +docs/ScalingPolicyListResponse.md docs/SearchSlackWorkspaceChannels200Response.md docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md docs/SearchSlackWorkspaceUsers200Response.md docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md +docs/SetScalingPolicyRequest.md docs/SpotConfiguration.md docs/SubmitToolCallback200Response.md docs/SubmitToolCallbackRequest.md docs/SubmitToolCallbackRequestToolResultsInner.md +docs/SubscriptionAPI.md docs/SyncOperation.md docs/SyncSkillCollection200Response.md docs/SyncToEnvironmentRequest.md @@ -471,6 +494,14 @@ docs/WafConfigThresholdsInner.md git_push.sh go.mod go.sum +model_ai_search_chat_request.go +model_ai_search_delete_pages_request.go +model_ai_search_enable_request.go +model_ai_search_ingest_pages_request.go +model_ai_search_ingest_pages_request_pages_inner.go +model_ai_search_search_request.go +model_ai_search_trigger_crawl_request.go +model_ai_search_update_settings_request.go model_application.go model_application_database.go model_application_deployment_information_inner.go @@ -604,8 +635,6 @@ model_get_ai_session_200_response.go model_get_ai_tool_execution_status_200_response.go model_get_ai_tool_execution_status_200_response_result.go model_get_ai_tool_execution_status_404_response.go -model_get_ai_usage_stats_200_response.go -model_get_ai_usage_stats_200_response_by_model_value.go model_get_custom_tool_200_response.go model_get_custom_tool_200_response_tool.go model_get_dependency_graph_200_response.go @@ -621,6 +650,8 @@ model_get_environment_logs_200_response_log_events_inner.go model_get_file_200_response.go model_get_governance_config_200_response.go model_get_governance_config_200_response_spend_limits.go +model_get_governance_config_200_response_spend_limits_interface_limits_value.go +model_get_governance_config_200_response_spend_limits_user_overrides_value.go model_get_governance_spend_200_response.go model_get_governance_spend_200_response_budget.go model_get_governance_spend_200_response_daily_budget.go @@ -631,6 +662,10 @@ model_get_my_usage_200_response.go model_get_my_usage_200_response_daily.go model_get_my_usage_200_response_monthly.go model_get_my_usage_200_response_quota.go +model_get_my_usage_200_response_quota_daily_limit.go +model_get_my_usage_200_response_quota_monthly_limit.go +model_get_restore_status_200_response.go +model_get_scaling_policy_response.go model_get_skill_200_response.go model_get_skill_200_response_skill.go model_get_slack_bot_200_response.go @@ -706,11 +741,16 @@ model_query_vector_collection_200_response_pagination.go model_query_vector_collection_200_response_results_inner.go model_query_vector_collection_request.go model_query_vector_collection_request_filter.go -model_scaling_policy.go +model_restore_database_202_response.go +model_restore_database_request.go +model_restore_filesystem_202_response.go +model_restore_filesystem_request.go +model_scaling_policy_list_response.go model_search_slack_workspace_channels_200_response.go model_search_slack_workspace_channels_200_response_results_inner.go model_search_slack_workspace_users_200_response.go model_search_slack_workspace_users_200_response_results_inner.go +model_set_scaling_policy_request.go model_spot_configuration.go model_submit_tool_callback_200_response.go model_submit_tool_callback_request.go @@ -867,12 +907,13 @@ test/api_ai_filter_policies_test.go test/api_ai_governance_test.go test/api_ai_inference_test.go test/api_ai_models_test.go -test/api_ai_monitoring_test.go test/api_ai_orchestrations_test.go +test/api_ai_search_test.go test/api_ai_sessions_test.go test/api_ai_skills_test.go test/api_ai_slack_bots_test.go test/api_ai_task_management_test.go +test/api_ai_test.go test/api_ai_tools_test.go test/api_ai_usage_test.go test/api_ai_vector_database_test.go @@ -892,9 +933,11 @@ test/api_kv_test.go test/api_organizations_test.go test/api_projects_test.go test/api_purge_test.go +test/api_restore_management_test.go test/api_rules_test.go test/api_scaling_policy_test.go test/api_ssh_access_test.go +test/api_subscription_test.go test/api_tokens_test.go test/api_variables_test.go test/api_volumes_test.go diff --git a/README.md b/README.md index a0a10784..06eebf70 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Unified API for QuantCDN Admin and QuantCloud Platform services ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 4.15.8 +- API version: 4.19.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -78,6 +78,7 @@ All URIs are relative to *https://dashboard.quantcdn.io* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AIAPI* | [**GetAIUsageStats**](docs/AIAPI.md#getaiusagestats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Organisation AI usage breakdown (subscription page parity) *AIAgentsAPI* | [**ChatWithAIAgent**](docs/AIAgentsAPI.md#chatwithaiagent) | **Post** /api/v3/organizations/{organisation}/ai/agents/{agentId}/chat | Chat with AI Agent *AIAgentsAPI* | [**CreateAIAgent**](docs/AIAgentsAPI.md#createaiagent) | **Post** /api/v3/organizations/{organisation}/ai/agents | Create AI Agent *AIAgentsAPI* | [**DeleteAIAgent**](docs/AIAgentsAPI.md#deleteaiagent) | **Delete** /api/v3/organizations/{organisation}/ai/agents/{agentId} | Delete Agent @@ -113,7 +114,6 @@ Class | Method | HTTP request | Description *AIInferenceAPI* | [**SubmitToolCallback**](docs/AIInferenceAPI.md#submittoolcallback) | **Post** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) *AIModelsAPI* | [**GetAIModel**](docs/AIModelsAPI.md#getaimodel) | **Get** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsAPI* | [**ListAIModels**](docs/AIModelsAPI.md#listaimodels) | **Get** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization -*AIMonitoringAPI* | [**GetAIUsageStats**](docs/AIMonitoringAPI.md#getaiusagestats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics *AIOrchestrationsAPI* | [**CancelOrchestration**](docs/AIOrchestrationsAPI.md#cancelorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration *AIOrchestrationsAPI* | [**CreateOrchestration**](docs/AIOrchestrationsAPI.md#createorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration *AIOrchestrationsAPI* | [**DeleteOrchestration**](docs/AIOrchestrationsAPI.md#deleteorchestration) | **Delete** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration @@ -123,6 +123,23 @@ Class | Method | HTTP request | Description *AIOrchestrationsAPI* | [**PauseOrchestration**](docs/AIOrchestrationsAPI.md#pauseorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration *AIOrchestrationsAPI* | [**ResumeOrchestration**](docs/AIOrchestrationsAPI.md#resumeorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration *AIOrchestrationsAPI* | [**StartOrchestration**](docs/AIOrchestrationsAPI.md#startorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration +*AISearchAPI* | [**AiSearchChat**](docs/AISearchAPI.md#aisearchchat) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/chat | RAG chat with AI Search content +*AISearchAPI* | [**AiSearchDeletePages**](docs/AISearchAPI.md#aisearchdeletepages) | **Delete** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | Delete pages by URLs or patterns +*AISearchAPI* | [**AiSearchDisable**](docs/AISearchAPI.md#aisearchdisable) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/disable | Disable AI Search for a project +*AISearchAPI* | [**AiSearchEnable**](docs/AISearchAPI.md#aisearchenable) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/enable | Enable AI Search for a project +*AISearchAPI* | [**AiSearchGetCrawl**](docs/AISearchAPI.md#aisearchgetcrawl) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId} | Get AI Search ingest job status +*AISearchAPI* | [**AiSearchGetCrawlPages**](docs/AISearchAPI.md#aisearchgetcrawlpages) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages | Get per-page ingest results for a crawl job +*AISearchAPI* | [**AiSearchGetSettings**](docs/AISearchAPI.md#aisearchgetsettings) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings | Get AI Search public access and rate limit settings +*AISearchAPI* | [**AiSearchIngestPages**](docs/AISearchAPI.md#aisearchingestpages) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | Ingest pages into the AI Search index +*AISearchAPI* | [**AiSearchListCrawls**](docs/AISearchAPI.md#aisearchlistcrawls) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls | List AI Search ingest jobs +*AISearchAPI* | [**AiSearchListPages**](docs/AISearchAPI.md#aisearchlistpages) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | List indexed pages with cursor pagination +*AISearchAPI* | [**AiSearchPurgeIndex**](docs/AISearchAPI.md#aisearchpurgeindex) | **Delete** /api/v3/organisations/{organisation}/projects/{project}/ai-search/index | Purge the entire AI Search index +*AISearchAPI* | [**AiSearchSearch**](docs/AISearchAPI.md#aisearchsearch) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/search | Semantic search across the AI Search index +*AISearchAPI* | [**AiSearchStatus**](docs/AISearchAPI.md#aisearchstatus) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search | Get AI Search status for a project +*AISearchAPI* | [**AiSearchTopQueries**](docs/AISearchAPI.md#aisearchtopqueries) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries | Get the most popular AI Search queries +*AISearchAPI* | [**AiSearchTriggerCrawl**](docs/AISearchAPI.md#aisearchtriggercrawl) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls | Trigger a crawler run that ingests into AI Search +*AISearchAPI* | [**AiSearchUpdateSettings**](docs/AISearchAPI.md#aisearchupdatesettings) | **Put** /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings | Update AI Search public access and rate limit settings +*AISearchAPI* | [**AiSearchUsage**](docs/AISearchAPI.md#aisearchusage) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/usage | Get usage statistics for the AI Search site *AISessionsAPI* | [**CreateAISession**](docs/AISessionsAPI.md#createaisession) | **Post** /api/v3/organizations/{organisation}/ai/sessions | Create a new chat session with multi-tenant isolation *AISessionsAPI* | [**DeleteAISession**](docs/AISessionsAPI.md#deleteaisession) | **Delete** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Delete a chat session *AISessionsAPI* | [**ExtendAISession**](docs/AISessionsAPI.md#extendaisession) | **Put** /api/v3/organizations/{organisation}/ai/sessions/{sessionId}/extend | Extend Session Expiration @@ -244,6 +261,9 @@ Class | Method | HTTP request | Description *ProjectsAPI* | [**ProjectsRead**](docs/ProjectsAPI.md#projectsread) | **Get** /api/v2/organizations/{organization}/projects/{project} | Get details of a single project *ProjectsAPI* | [**ProjectsUpdate**](docs/ProjectsAPI.md#projectsupdate) | **Patch** /api/v2/organizations/{organization}/projects/{project} | Update a project *PurgeAPI* | [**PurgeCreate**](docs/PurgeAPI.md#purgecreate) | **Post** /api/v2/organizations/{organization}/projects/{project}/purge | Purge cache via URL or cache keys +*RestoreManagementAPI* | [**GetRestoreStatus**](docs/RestoreManagementAPI.md#getrestorestatus) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId} | Get the status of a restore operation +*RestoreManagementAPI* | [**RestoreDatabase**](docs/RestoreManagementAPI.md#restoredatabase) | **Post** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database | Restore a database backup to a target environment +*RestoreManagementAPI* | [**RestoreFilesystem**](docs/RestoreManagementAPI.md#restorefilesystem) | **Post** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem | Restore a filesystem backup to a target environment *RulesAPI* | [**RulesAuthCreate**](docs/RulesAPI.md#rulesauthcreate) | **Post** /api/v2/organizations/{organization}/projects/{project}/rules/auth | Create an authentication rule *RulesAPI* | [**RulesAuthDelete**](docs/RulesAPI.md#rulesauthdelete) | **Delete** /api/v2/organizations/{organization}/projects/{project}/rules/auth/{rule} | Delete an authentication rule *RulesAPI* | [**RulesAuthList**](docs/RulesAPI.md#rulesauthlist) | **Get** /api/v2/organizations/{organization}/projects/{project}/rules/auth | List authentication rules @@ -290,9 +310,10 @@ Class | Method | HTTP request | Description *RulesAPI* | [**RulesServeStaticRead**](docs/RulesAPI.md#rulesservestaticread) | **Get** /api/v2/organizations/{organization}/projects/{project}/rules/serve-static/{rule} | Get details of a serve static rule *RulesAPI* | [**RulesServeStaticUpdate**](docs/RulesAPI.md#rulesservestaticupdate) | **Patch** /api/v2/organizations/{organization}/projects/{project}/rules/serve-static/{rule} | Update a serve static rule *SSHAccessAPI* | [**GetSshAccessCredentials**](docs/SSHAccessAPI.md#getsshaccesscredentials) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access | Get SSH access credentials for an environment -*ScalingPolicyAPI* | [**DeleteScalingPolicy**](docs/ScalingPolicyAPI.md#deletescalingpolicy) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName} | Delete the scaling policy for an environment -*ScalingPolicyAPI* | [**GetScalingPolicies**](docs/ScalingPolicyAPI.md#getscalingpolicies) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Get the scaling policies for an environment -*ScalingPolicyAPI* | [**UpdateScalingPolicy**](docs/ScalingPolicyAPI.md#updatescalingpolicy) | **Put** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Update the scaling policy for an environment +*ScalingPolicyAPI* | [**DeleteScalingPolicy**](docs/ScalingPolicyAPI.md#deletescalingpolicy) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Delete Scaling Policy +*ScalingPolicyAPI* | [**ListScalingPolicies**](docs/ScalingPolicyAPI.md#listscalingpolicies) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | List Scaling Policies +*ScalingPolicyAPI* | [**UpsertScalingPolicy**](docs/ScalingPolicyAPI.md#upsertscalingpolicy) | **Put** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Upsert Scaling Policy +*SubscriptionAPI* | [**GetSubscriptionCloudUsage**](docs/SubscriptionAPI.md#getsubscriptioncloudusage) | **Get** /api/v3/organizations/{organisation}/subscription/cloud-usage | Cloud-app cost breakdown for the subscription page *TokensAPI* | [**TokensCreate**](docs/TokensAPI.md#tokenscreate) | **Post** /api/v2/organizations/{organization}/tokens | Create a new API token scoped to this organization *TokensAPI* | [**TokensDelete**](docs/TokensAPI.md#tokensdelete) | **Delete** /api/v2/organizations/{organization}/tokens/{token_id} | Revoke an API token *TokensAPI* | [**TokensList**](docs/TokensAPI.md#tokenslist) | **Get** /api/v2/organizations/{organization}/tokens | List API tokens scoped to this organization @@ -308,6 +329,14 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AiSearchChatRequest](docs/AiSearchChatRequest.md) + - [AiSearchDeletePagesRequest](docs/AiSearchDeletePagesRequest.md) + - [AiSearchEnableRequest](docs/AiSearchEnableRequest.md) + - [AiSearchIngestPagesRequest](docs/AiSearchIngestPagesRequest.md) + - [AiSearchIngestPagesRequestPagesInner](docs/AiSearchIngestPagesRequestPagesInner.md) + - [AiSearchSearchRequest](docs/AiSearchSearchRequest.md) + - [AiSearchTriggerCrawlRequest](docs/AiSearchTriggerCrawlRequest.md) + - [AiSearchUpdateSettingsRequest](docs/AiSearchUpdateSettingsRequest.md) - [Application](docs/Application.md) - [ApplicationDatabase](docs/ApplicationDatabase.md) - [ApplicationDeploymentInformationInner](docs/ApplicationDeploymentInformationInner.md) @@ -438,8 +467,6 @@ Class | Method | HTTP request | Description - [GetAIToolExecutionStatus200Response](docs/GetAIToolExecutionStatus200Response.md) - [GetAIToolExecutionStatus200ResponseResult](docs/GetAIToolExecutionStatus200ResponseResult.md) - [GetAIToolExecutionStatus404Response](docs/GetAIToolExecutionStatus404Response.md) - - [GetAIUsageStats200Response](docs/GetAIUsageStats200Response.md) - - [GetAIUsageStats200ResponseByModelValue](docs/GetAIUsageStats200ResponseByModelValue.md) - [GetAgentOverlay200Response](docs/GetAgentOverlay200Response.md) - [GetAgentOverlay200ResponseBase](docs/GetAgentOverlay200ResponseBase.md) - [GetAgentOverlay200ResponseOverlay](docs/GetAgentOverlay200ResponseOverlay.md) @@ -458,6 +485,8 @@ Class | Method | HTTP request | Description - [GetFile200Response](docs/GetFile200Response.md) - [GetGovernanceConfig200Response](docs/GetGovernanceConfig200Response.md) - [GetGovernanceConfig200ResponseSpendLimits](docs/GetGovernanceConfig200ResponseSpendLimits.md) + - [GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue](docs/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md) + - [GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue](docs/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md) - [GetGovernanceSpend200Response](docs/GetGovernanceSpend200Response.md) - [GetGovernanceSpend200ResponseBudget](docs/GetGovernanceSpend200ResponseBudget.md) - [GetGovernanceSpend200ResponseDailyBudget](docs/GetGovernanceSpend200ResponseDailyBudget.md) @@ -468,6 +497,10 @@ Class | Method | HTTP request | Description - [GetMyUsage200ResponseDaily](docs/GetMyUsage200ResponseDaily.md) - [GetMyUsage200ResponseMonthly](docs/GetMyUsage200ResponseMonthly.md) - [GetMyUsage200ResponseQuota](docs/GetMyUsage200ResponseQuota.md) + - [GetMyUsage200ResponseQuotaDailyLimit](docs/GetMyUsage200ResponseQuotaDailyLimit.md) + - [GetMyUsage200ResponseQuotaMonthlyLimit](docs/GetMyUsage200ResponseQuotaMonthlyLimit.md) + - [GetRestoreStatus200Response](docs/GetRestoreStatus200Response.md) + - [GetScalingPolicyResponse](docs/GetScalingPolicyResponse.md) - [GetSkill200Response](docs/GetSkill200Response.md) - [GetSkill200ResponseSkill](docs/GetSkill200ResponseSkill.md) - [GetSlackBot200Response](docs/GetSlackBot200Response.md) @@ -543,11 +576,16 @@ Class | Method | HTTP request | Description - [QueryVectorCollection200ResponseResultsInner](docs/QueryVectorCollection200ResponseResultsInner.md) - [QueryVectorCollectionRequest](docs/QueryVectorCollectionRequest.md) - [QueryVectorCollectionRequestFilter](docs/QueryVectorCollectionRequestFilter.md) - - [ScalingPolicy](docs/ScalingPolicy.md) + - [RestoreDatabase202Response](docs/RestoreDatabase202Response.md) + - [RestoreDatabaseRequest](docs/RestoreDatabaseRequest.md) + - [RestoreFilesystem202Response](docs/RestoreFilesystem202Response.md) + - [RestoreFilesystemRequest](docs/RestoreFilesystemRequest.md) + - [ScalingPolicyListResponse](docs/ScalingPolicyListResponse.md) - [SearchSlackWorkspaceChannels200Response](docs/SearchSlackWorkspaceChannels200Response.md) - [SearchSlackWorkspaceChannels200ResponseResultsInner](docs/SearchSlackWorkspaceChannels200ResponseResultsInner.md) - [SearchSlackWorkspaceUsers200Response](docs/SearchSlackWorkspaceUsers200Response.md) - [SearchSlackWorkspaceUsers200ResponseResultsInner](docs/SearchSlackWorkspaceUsers200ResponseResultsInner.md) + - [SetScalingPolicyRequest](docs/SetScalingPolicyRequest.md) - [SpotConfiguration](docs/SpotConfiguration.md) - [SubmitToolCallback200Response](docs/SubmitToolCallback200Response.md) - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index d0aba49d..375a3de8 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: description: Unified API for QuantCDN Admin and QuantCloud Platform services title: QuantCDN API - version: 4.15.8 + version: 4.19.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -22,10 +22,11 @@ tags: name: AI Inference - description: Foundation model listing and configuration name: AI Models -- description: Usage statistics and monitoring for AI services - name: AI Monitoring - description: Durable batch processing orchestrations with pause/resume support name: AI Orchestrations +- description: "Project-scoped AI Search: site lifecycle, page ingest, semantic search,\ + \ RAG chat, analytics, and crawl monitoring" + name: AI Search - description: Conversation session management for multi-turn interactions name: AI Sessions - description: "Reusable prompts, workflows, and instructions for agents" @@ -80,6 +81,10 @@ tags: name: Volumes - description: API token management name: Tokens +- description: Subscription + name: Subscription +- description: AI + name: AI - description: AI Slack Bots name: AI Slack Bots - description: AI Governance @@ -88,7 +93,594 @@ tags: name: AI Filter Policies - description: AI Usage name: AI Usage +- description: Restore Management + name: Restore Management paths: + /api/v3/organisations/{organisation}/projects/{project}/ai-search: + get: + operationId: AiSearch_status + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + responses: + "200": + description: Status + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not found + security: + - BearerAuth: [] + summary: Get AI Search status for a project + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/enable: + post: + operationId: AiSearch_enable + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_enable_request' + required: false + responses: + "200": + description: Enabled + "400": + description: Missing base URL + "409": + description: Already enabled + security: + - BearerAuth: [] + summary: Enable AI Search for a project + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/disable: + post: + operationId: AiSearch_disable + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + responses: + "200": + description: Disabled + "404": + description: Not enabled + security: + - BearerAuth: [] + summary: Disable AI Search for a project + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings: + get: + operationId: AiSearch_getSettings + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + responses: + "200": + description: Settings + security: + - BearerAuth: [] + summary: Get AI Search public access and rate limit settings + tags: + - AI Search + put: + operationId: AiSearch_updateSettings + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_updateSettings_request' + required: true + responses: + "200": + description: Updated + security: + - BearerAuth: [] + summary: Update AI Search public access and rate limit settings + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages: + delete: + operationId: AiSearch_deletePages + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_deletePages_request' + required: true + responses: + "200": + description: Deleted + security: + - BearerAuth: [] + summary: Delete pages by URLs or patterns + tags: + - AI Search + get: + operationId: AiSearch_listPages + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: limit + required: false + schema: + maximum: 200 + type: integer + style: form + - explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - explode: true + in: query + name: search + required: false + schema: + type: string + style: form + responses: + "200": + description: Pages + security: + - BearerAuth: [] + summary: List indexed pages with cursor pagination + tags: + - AI Search + post: + operationId: AiSearch_ingestPages + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_ingestPages_request' + required: true + responses: + "200": + description: Pages processed + "422": + description: Validation failed + "502": + description: Upstream failure + security: + - BearerAuth: [] + summary: Ingest pages into the AI Search index + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/index: + delete: + operationId: AiSearch_purgeIndex + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + responses: + "200": + description: Purged + security: + - BearerAuth: [] + summary: Purge the entire AI Search index + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/search: + post: + operationId: AiSearch_search + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_search_request' + required: true + responses: + "200": + description: Results + security: + - BearerAuth: [] + summary: Semantic search across the AI Search index + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/usage: + get: + operationId: AiSearch_usage + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: range + required: false + schema: + default: 30d + type: string + style: form + responses: + "200": + description: Usage + security: + - BearerAuth: [] + summary: Get usage statistics for the AI Search site + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries: + get: + operationId: AiSearch_topQueries + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: range + required: false + schema: + default: 30d + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + maximum: 100 + type: integer + style: form + responses: + "200": + description: Top queries + security: + - BearerAuth: [] + summary: Get the most popular AI Search queries + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/chat: + post: + operationId: AiSearch_chat + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_chat_request' + required: true + responses: + "200": + description: Chat reply + security: + - BearerAuth: [] + summary: RAG chat with AI Search content + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls: + get: + operationId: AiSearch_listCrawls + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: limit + required: false + schema: + maximum: 50 + type: integer + style: form + responses: + "200": + description: Jobs + security: + - BearerAuth: [] + summary: List AI Search ingest jobs + tags: + - AI Search + post: + operationId: AiSearch_triggerCrawl + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AiSearch_triggerCrawl_request' + required: true + responses: + "200": + description: Crawl started + security: + - BearerAuth: [] + summary: Trigger a crawler run that ingests into AI Search + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}: + get: + operationId: AiSearch_getCrawl + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: jobId + required: true + schema: + type: string + style: simple + responses: + "200": + description: Job status + security: + - BearerAuth: [] + summary: Get AI Search ingest job status + tags: + - AI Search + /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages: + get: + operationId: AiSearch_getCrawlPages + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: jobId + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: statusCode + required: false + schema: + type: integer + style: form + - explode: true + in: query + name: processingStatus + required: false + schema: + type: string + style: form + responses: + "200": + description: Pages + security: + - BearerAuth: [] + summary: Get per-page ingest results for a crawl job + tags: + - AI Search /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules: get: operationId: CrawlerSchedules_list @@ -4710,6 +5302,41 @@ paths: summary: Update a serve static rule tags: - Rules + /api/v3/organizations/{organisation}/subscription/cloud-usage: + get: + description: "Per-project compute/database/storage cost breakdown with spot\ + \ discount, for the requested month and the month before it. Mirrors the subscription\ + \ page's Cloud Apps card." + operationId: getSubscriptionCloudUsage + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: "YYYY-MM, defaults to current month" + explode: true + in: query + name: month + required: false + schema: + type: string + style: form + responses: + "200": + description: Usage envelope + "403": + description: Missing update_subscription permission or subscription:read + scope + "500": + description: Failed to fetch usage data + security: + - bearerAuth: [] + summary: Cloud-app cost breakdown for the subscription page + tags: + - Subscription /api/v2/organizations/{organization}/tokens: get: operationId: Tokens_list @@ -5578,37 +6205,81 @@ paths: - AI Task Management /api/v3/organizations/{organisation}/ai/usage: get: + description: "AI usage from the subscription page's source (cloud-api monthly-usage).\ + \ Parameterized by month, groupBy (model|user|token) and optional daily series.\ + \ NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission\ + \ + subscription:read scope (previously use_ai_services + ai:use). For per-caller\ + \ spend use /ai/usage/me." operationId: getAIUsageStats parameters: - - description: The organisation ID - explode: false + - explode: false in: path name: organisation required: true schema: type: string style: simple - - description: Month to retrieve statistics for (YYYY-MM format) + - description: "YYYY-MM, defaults to current month" explode: true in: query name: month required: false schema: - example: 2025-10 + type: string + style: form + - explode: true + in: query + name: groupBy + required: false + schema: + default: model + enum: + - model + - user + - token + type: string + style: form + - description: Set to 'daily' to append a 30-day series + explode: true + in: query + name: include + required: false + schema: + enum: + - daily + type: string + style: form + - description: Scope the daily series to a user + explode: true + in: query + name: userId + required: false + schema: + type: string + style: form + - description: Scope the daily series to a token + explode: true + in: query + name: tokenId + required: false + schema: type: string style: form responses: "200": - content: - application/json: - schema: - $ref: '#/components/schemas/getAIUsageStats_200_response' - description: Usage statistics + description: Usage breakdown + "403": + description: Missing update_subscription permission or subscription:read + scope + "422": + description: Invalid groupBy "500": - description: Failed to fetch usage statistics - summary: Get AI usage statistics + description: Failed to fetch usage data + security: + - bearerAuth: [] + summary: Organisation AI usage breakdown (subscription page parity) tags: - - AI Monitoring + - AI /api/v3/organizations/{organisation}/ai/chat: post: description: |- @@ -10691,9 +11362,13 @@ paths: summary: Generate a download URL for a backup tags: - Backup Management - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies: - get: - operationId: getScalingPolicies + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database: + post: + description: Initiates an async restore of a database backup into the specified + target environment. The backup may originate from a different environment + of the same application (cross-env restore). Returns 202 with a restoreId + for status polling. + operationId: restoreDatabase parameters: - description: The organisation ID example: test-org @@ -10713,8 +11388,8 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + - description: The TARGET environment ID to restore INTO + example: staging explode: false in: path name: environment @@ -10722,14 +11397,44 @@ paths: schema: type: string style: simple + - description: The backup ID to restore from + example: quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z + explode: false + in: path + name: backupId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/restoreDatabase_request' + required: true responses: - "200": - description: The scaling policy for the environment - summary: Get the scaling policies for an environment + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/restoreDatabase_202_response' + description: Restore operation initiated + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: Validation error + summary: Restore a database backup to a target environment tags: - - ScalingPolicy - put: - operationId: updateScalingPolicy + - Restore Management + ? /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem + : post: + description: Initiates an async restore of a filesystem backup into the specified + target environment. The backup may originate from a different environment + of the same application (cross-env restore). Returns 202 with a restoreId + for status polling. + operationId: restoreFilesystem parameters: - description: The organisation ID example: test-org @@ -10749,8 +11454,8 @@ paths: schema: type: string style: simple - - description: The environment ID - example: test-env + - description: The TARGET environment ID to restore INTO + example: staging explode: false in: path name: environment @@ -10758,21 +11463,42 @@ paths: schema: type: string style: simple + - description: The backup ID to restore from + example: quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z + explode: false + in: path + name: backupId + required: true + schema: + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/ScalingPolicy' + $ref: '#/components/schemas/restoreFilesystem_request' required: true responses: - "200": - description: The scaling policy for the environment - summary: Update the scaling policy for an environment + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/restoreFilesystem_202_response' + description: Restore operation initiated + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/patchEnvironmentCompose_400_response' + description: Validation error + summary: Restore a filesystem backup to a target environment tags: - - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: - delete: - operationId: deleteScalingPolicy + - Restore Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}: + get: + description: Returns the current status and metadata for a restore operation. + Poll this endpoint to track progress. + operationId: getRestoreStatus parameters: - description: The organisation ID example: test-org @@ -10793,7 +11519,7 @@ paths: type: string style: simple - description: The environment ID - example: test-env + example: staging explode: false in: path name: environment @@ -10801,18 +11527,186 @@ paths: schema: type: string style: simple - - description: The policy name + - description: The restore operation ID + example: restore-abc123 explode: false in: path - name: policyName + name: restoreId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getRestoreStatus_200_response' + description: Restore operation record + summary: Get the status of a restore operation + tags: + - Restore Management + /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies: + delete: + description: "Deletes a specific scaling policy for the environment. Specify\ + \ the metric type or policy name to delete a single policy. If neither is\ + \ provided, all policies will be deleted." + operationId: deleteScalingPolicy + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: application required: true schema: type: string style: simple + - explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: Optional. Delete by metric type. + explode: true + in: query + name: metric + required: false + schema: + enum: + - CPUUtilization + - MemoryUtilization + - RPS + type: string + style: form + - description: Optional. Delete by exact policy name. + explode: true + in: query + name: policyName + required: false + schema: + type: string + style: form responses: "204": - description: The scaling policy for the environment - summary: Delete the scaling policy for an environment + description: Scaling policy deleted successfully. + summary: Delete Scaling Policy + tags: + - ScalingPolicy + get: + description: "Retrieves all active target tracking scaling policies for the\ + \ environment. Returns an array of policies, each with its metric, target\ + \ value, cooldowns, and resource label (if applicable)." + operationId: listScalingPolicies + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: Optional. Filter policies by metric type. + explode: true + in: query + name: metric + required: false + schema: + enum: + - CPUUtilization + - MemoryUtilization + - RPS + type: string + style: form + - description: Optional. Filter policies by exact policy name. + explode: true + in: query + name: policyName + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ScalingPolicyListResponse' + description: List of scaling policies for the environment. + summary: List Scaling Policies + tags: + - ScalingPolicy + put: + description: "Creates or updates a target tracking scaling policy for the environment.\ + \ Specify the metric type and target value. If a policy with the same metric\ + \ or name exists, it will be updated. Optionally, provide a custom policy\ + \ name via query." + operationId: upsertScalingPolicy + parameters: + - explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: Optional. Specify a custom policy name to upsert. + explode: true + in: query + name: policyName + required: false + schema: + type: string + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SetScalingPolicyRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/GetScalingPolicyResponse' + description: Scaling policy created or updated successfully. + summary: Upsert Scaling Policy tags: - ScalingPolicy /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/ssh-access: @@ -11266,6 +12160,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11322,6 +12217,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11517,6 +12413,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11573,6 +12470,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11743,6 +12641,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11799,6 +12698,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -11910,6 +12810,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true memory: 6 dependsOn: @@ -12367,12 +13268,46 @@ components: required: - envName type: object - ScalingPolicy: + SetScalingPolicyRequest: + example: + scaleOutCooldownSeconds: 6 + scaleInCooldownSeconds: 0 + metric: CPUUtilization + targetValue: 75 + properties: + metric: + description: Metric to track for scaling. + enum: + - CPUUtilization + - MemoryUtilization + - RPS + type: string + targetValue: + description: Target value. Percentage for CPU/Memory; req/sec per task for + RPS. + example: 75 + format: double + type: number + scaleInCooldownSeconds: + default: 300 + description: Cooldown (seconds) before another scale-in can start. + type: integer + scaleOutCooldownSeconds: + default: 60 + description: Cooldown (seconds) before another scale-out can start. + type: integer + required: + - metric + - targetValue + type: object + GetScalingPolicyResponse: example: scaleOutCooldownSeconds: 1 scaleInCooldownSeconds: 6 metric: CPUUtilization + policyName: policyName targetValue: 0.8008281904610115 + resourceLabel: resourceLabel properties: metric: enum: @@ -12381,11 +13316,40 @@ components: - RPS type: string targetValue: + format: double type: number scaleInCooldownSeconds: type: integer scaleOutCooldownSeconds: type: integer + policyName: + description: Name of the underlying Application Auto Scaling policy. + type: string + resourceLabel: + description: ALB ResourceLabel for RPS policies (target group identifier). + nullable: true + type: string + type: object + ScalingPolicyListResponse: + example: + policies: + - scaleOutCooldownSeconds: 1 + scaleInCooldownSeconds: 6 + metric: CPUUtilization + policyName: policyName + targetValue: 0.8008281904610115 + resourceLabel: resourceLabel + - scaleOutCooldownSeconds: 1 + scaleInCooldownSeconds: 6 + metric: CPUUtilization + policyName: policyName + targetValue: 0.8008281904610115 + resourceLabel: resourceLabel + properties: + policies: + items: + $ref: '#/components/schemas/GetScalingPolicyResponse' + type: array type: object SyncOperation: example: @@ -16770,6 +17734,109 @@ components: $ref: '#/components/schemas/WafConfig_thresholds_inner' type: array type: object + AiSearch_enable_request: + properties: + baseUrl: + format: uri + type: string + crawlerConfig: + type: object + type: object + AiSearch_updateSettings_request: + properties: + publicAccess: + type: object + rateLimits: + type: object + type: object + AiSearch_ingestPages_request_pages_inner: + properties: + url: + format: uri + type: string + title: + type: string + content: + type: string + contentType: + type: string + fetchedAt: + type: string + preProcessed: + type: boolean + summary: + type: string + tags: + items: + type: string + type: array + topics: + items: + type: string + type: array + required: + - content + - title + - url + type: object + AiSearch_ingestPages_request: + properties: + jobId: + type: string + pages: + items: + $ref: '#/components/schemas/AiSearch_ingestPages_request_pages_inner' + type: array + required: + - pages + type: object + AiSearch_deletePages_request: + properties: + urls: + items: + format: uri + type: string + type: array + patterns: + items: + type: string + type: array + type: object + AiSearch_search_request: + properties: + query: + type: string + limit: + maximum: 50 + type: integer + minScore: + type: number + required: + - query + type: object + AiSearch_chat_request: + properties: + message: + type: string + sessionId: + type: string + contextUrl: + format: uri + type: string + maxContextChunks: + maximum: 20 + type: integer + required: + - message + type: object + AiSearch_triggerCrawl_request: + properties: + crawler_uuid: + format: uuid + type: string + required: + - crawler_uuid + type: object Crawlers_run_request: properties: urls: @@ -17925,48 +18992,6 @@ components: \ arrays" type: object type: object - getAIUsageStats_200_response_by_model_value: - properties: - requests: - description: Number of requests for this model - type: integer - tokens: - description: Total tokens for this model - type: integer - type: object - getAIUsageStats_200_response: - example: - by_model: - amazon.nova-lite-v1:0: - requests: 100 - tokens: 25000 - amazon.nova-pro-v1:0: - requests: 50 - tokens: 20000 - total_tokens: 45000 - total_requests: 150 - properties: - total_requests: - description: Total number of API requests - example: 150 - type: integer - total_tokens: - description: Total tokens consumed across all requests - example: 45000 - type: integer - by_model: - additionalProperties: - $ref: '#/components/schemas/getAIUsageStats_200_response_by_model_value' - description: Usage breakdown by model ID - example: - amazon.nova-lite-v1:0: - requests: 100 - tokens: 25000 - amazon.nova-pro-v1:0: - requests: 50 - tokens: 20000 - type: object - type: object chatInference_request_messages_inner_content_oneOf_inner_oneOf: properties: text: @@ -19395,11 +20420,12 @@ components: type: object getAIOrchestrationStatus_200_response: example: + result: Based on the image I generated and the web research... + duration: 19 createdAt: 2000-01-23T04:56:07.000+00:00 completedAt: 2000-01-23T04:56:07.000+00:00 orchestrationId: orch_abc123def456789012345678901234 completedTools: 2 - synthesizedResponse: Based on the image I generated and the web research... error: error tools: - result: "{}" @@ -19423,7 +20449,7 @@ components: description: Current orchestration status enum: - pending - - polling + - waiting_tools - synthesizing - complete - failed @@ -19437,7 +20463,7 @@ components: description: Number of tools that have completed example: 2 type: integer - synthesizedResponse: + result: description: AI-synthesized response combining all tool results (only present when status=complete) example: Based on the image I generated and the web research... @@ -19458,6 +20484,10 @@ components: description: When orchestration completed (if status in complete or failed) format: date-time type: string + duration: + description: Seconds from creation to completion (present only once completed) + example: 19 + type: integer required: - createdAt - orchestrationId @@ -19699,6 +20729,7 @@ components: - official - official-sensitive - protected + nullable: true type: string filterPolicies: description: Filter policy IDs to apply to this agent's inference requests @@ -19877,6 +20908,7 @@ components: - official - official-sensitive - protected + nullable: true type: string filterPolicies: description: Filter policy IDs to apply to this agent's inference requests @@ -20235,6 +21267,7 @@ components: - official - official-sensitive - protected + nullable: true type: string version: description: Current version for optimistic concurrency @@ -20262,7 +21295,7 @@ components: listCustomTools_200_response_tools_inner: example: createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" + inputSchema: inputSchema isAsync: false name: check_inventory description: Check product inventory levels @@ -20281,7 +21314,7 @@ components: example: false type: boolean inputSchema: - type: object + type: string createdAt: format: date-time type: string @@ -20291,13 +21324,13 @@ components: count: 0 tools: - createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" + inputSchema: inputSchema isAsync: false name: check_inventory description: Check product inventory levels edgeFunctionUrl: https://my-edge-function.quant.cloud - createdAt: 2000-01-23T04:56:07.000+00:00 - inputSchema: "{}" + inputSchema: inputSchema isAsync: false name: check_inventory description: Check product inventory levels @@ -20324,8 +21357,8 @@ components: description: JavaScript source code for the edge function type: string inputSchema: - description: JSON Schema defining the tool's input parameters - type: object + description: JSON-encoded JSON Schema object defining the tool's input parameters + type: string isAsync: default: false description: Whether this tool runs asynchronously (>5 seconds) @@ -20337,9 +21370,10 @@ components: minimum: 5 type: integer outputSchema: - description: JSON Schema defining the tool's output structure + description: JSON-encoded JSON Schema object defining the tool's output + structure nullable: true - type: object + type: string outputSchemaDescription: description: Human-readable description of the tool's output nullable: true @@ -20395,9 +21429,9 @@ components: example: responseMode: llm createdAt: 2000-01-23T04:56:07.000+00:00 - outputSchema: "{}" + outputSchema: outputSchema outputSchemaDescription: outputSchemaDescription - inputSchema: "{}" + inputSchema: inputSchema isAsync: false name: check_inventory description: Check product inventory levels @@ -20421,10 +21455,10 @@ components: example: false type: boolean inputSchema: - type: object + type: string outputSchema: nullable: true - type: object + type: string outputSchemaDescription: nullable: true type: string @@ -20446,9 +21480,9 @@ components: tool: responseMode: llm createdAt: 2000-01-23T04:56:07.000+00:00 - outputSchema: "{}" + outputSchema: outputSchema outputSchemaDescription: outputSchemaDescription - inputSchema: "{}" + inputSchema: inputSchema isAsync: false name: check_inventory description: Check product inventory levels @@ -22382,13 +23416,50 @@ components: $ref: '#/components/schemas/searchSlackWorkspaceChannels_200_response_results_inner' type: array type: object + getGovernanceConfig_200_response_spendLimits_interfaceLimits_value: + example: + dailyCents: 2 + monthlyCents: 7 + properties: + dailyCents: + nullable: true + type: integer + monthlyCents: + nullable: true + type: integer + type: object + getGovernanceConfig_200_response_spendLimits_userOverrides_value: + example: + dailyCents: 9 + unlimited: true + monthlyCents: 3 + properties: + dailyCents: + nullable: true + type: integer + monthlyCents: + nullable: true + type: integer + unlimited: + nullable: true + type: boolean + type: object getGovernanceConfig_200_response_spendLimits: example: + userOverrides: + key: + dailyCents: 9 + unlimited: true + monthlyCents: 3 monthlyBudgetCents: 0 perUserDailyBudgetCents: 5 warningThresholdPercent: 5 perUserMonthlyBudgetCents: 1 dailyBudgetCents: 6 + interfaceLimits: + key: + dailyCents: 2 + monthlyCents: 7 properties: monthlyBudgetCents: nullable: true @@ -22405,6 +23476,19 @@ components: warningThresholdPercent: nullable: true type: integer + interfaceLimits: + additionalProperties: + $ref: '#/components/schemas/getGovernanceConfig_200_response_spendLimits_interfaceLimits_value' + description: "Aggregate spend caps per interface label (slack, autonomous,\ + \ api-gateway, streaming, websocket). Keys are interface labels." + type: object + userOverrides: + additionalProperties: + $ref: '#/components/schemas/getGovernanceConfig_200_response_spendLimits_userOverrides_value' + description: "Per-user budget overrides keyed by userId (numeric portal\ + \ id, slack-, or system:code-agent). Replaces the flat per-user budget\ + \ for that user; unlimited=true exempts them." + type: object type: object getGovernanceConfig_200_response: example: @@ -22420,11 +23504,20 @@ components: version: 2 orgId: orgId spendLimits: + userOverrides: + key: + dailyCents: 9 + unlimited: true + monthlyCents: 3 monthlyBudgetCents: 0 perUserDailyBudgetCents: 5 warningThresholdPercent: 5 perUserMonthlyBudgetCents: 1 dailyBudgetCents: 6 + interfaceLimits: + key: + dailyCents: 2 + monthlyCents: 7 properties: orgId: type: string @@ -22683,28 +23776,84 @@ components: spendCents: type: integer type: object + getMyUsage_200_response_quota_monthlyLimit: + description: "Per-user monthly spend cap (object form, present when an org-level\ + \ perUserMonthlyBudget is configured)" + example: + usedPercent: 5.637377 + remainingCents: 2 + limitCents: 5 + nullable: true + properties: + limitCents: + description: The configured monthly cap in US cents + type: integer + usedPercent: + description: Percentage of the cap consumed this month (0–100+) + format: float + type: number + remainingCents: + description: Cents remaining before the cap is hit; can be negative if overspent + type: integer + type: object + getMyUsage_200_response_quota_dailyLimit: + description: "Per-user daily spend cap (object form, present when an org-level\ + \ perUserDailyBudget is configured)" + example: + usedPercent: 9.301444 + remainingCents: 3 + resetsAt: 2000-01-23T04:56:07.000+00:00 + limitCents: 7 + nullable: true + properties: + limitCents: + description: The configured daily cap in US cents + type: integer + usedPercent: + description: Percentage of the cap consumed today (0–100+) + format: float + type: number + remainingCents: + description: Cents remaining before the cap is hit; can be negative if overspent + type: integer + resetsAt: + description: UTC timestamp when the daily counter resets (always next UTC + midnight) + format: date-time + type: string + type: object getMyUsage_200_response_quota: example: - dailyLimit: 5 - monthlyLimit: 5 + dailyLimit: + usedPercent: 9.301444 + remainingCents: 3 + resetsAt: 2000-01-23T04:56:07.000+00:00 + limitCents: 7 + monthlyLimit: + usedPercent: 5.637377 + remainingCents: 2 + limitCents: 5 nullable: true properties: monthlyLimit: - description: Per-user monthly budget in US cents - nullable: true - type: integer + $ref: '#/components/schemas/getMyUsage_200_response_quota_monthlyLimit' dailyLimit: - description: Per-user daily budget in US cents - nullable: true - type: integer + $ref: '#/components/schemas/getMyUsage_200_response_quota_dailyLimit' type: object getMyUsage_200_response: example: daily: spendCents: 1 quota: - dailyLimit: 5 - monthlyLimit: 5 + dailyLimit: + usedPercent: 9.301444 + remainingCents: 3 + resetsAt: 2000-01-23T04:56:07.000+00:00 + limitCents: 7 + monthlyLimit: + usedPercent: 5.637377 + remainingCents: 2 + limitCents: 5 monthly: requestCount: 6 spendCents: 0 @@ -23247,6 +24396,118 @@ components: description: Suggested filename for download type: string type: object + restoreDatabase_request: + properties: + backupId: + description: The backup ID to restore (must match path param) + type: string + acknowledgeDataloss: + description: Must be true to confirm existing data will be overwritten + example: true + type: boolean + required: + - acknowledgeDataloss + - backupId + type: object + restoreDatabase_202_response: + example: + restoreId: restore-abc123 + message: Database restore initiated + status: in_progress + properties: + restoreId: + example: restore-abc123 + type: string + status: + example: in_progress + type: string + message: + example: Database restore initiated + type: string + type: object + restoreFilesystem_request: + properties: + backupId: + description: The backup ID to restore (must match path param) + type: string + acknowledgeDataloss: + description: Must be true. tar extraction overwrites same-named files in + the target EFS in place; pre-existing files not in the archive are preserved. + type: boolean + required: + - acknowledgeDataloss + - backupId + type: object + restoreFilesystem_202_response: + example: + restoreId: restore-abc123 + message: Filesystem restore initiated + status: in_progress + properties: + restoreId: + example: restore-abc123 + type: string + status: + example: in_progress + type: string + message: + example: Filesystem restore initiated + type: string + type: object + getRestoreStatus_200_response: + example: + completedAt: 2000-01-23T04:56:07.000+00:00 + orgName: test-org + appName: test-app + envName: staging + backupId: quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z + taskArn: taskArn + errorMessage: errorMessage + restoreId: restore-abc123 + startedAt: 2000-01-23T04:56:07.000+00:00 + ttl: 0 + status: completed + properties: + restoreId: + example: restore-abc123 + type: string + orgName: + example: test-org + type: string + appName: + example: test-app + type: string + envName: + example: staging + type: string + backupId: + example: quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z + type: string + status: + enum: + - pending + - in_progress + - completed + - failed + example: completed + type: string + startedAt: + format: date-time + type: string + completedAt: + format: date-time + nullable: true + type: string + errorMessage: + nullable: true + type: string + taskArn: + nullable: true + type: string + ttl: + nullable: true + type: integer + type: object getSshAccessCredentials_200_response_credentials: example: accessKeyId: accessKeyId @@ -23622,6 +24883,7 @@ components: ipAllow: - ipAllow - ipAllow + redirectHost: redirectHost enabled: true nullable: true properties: @@ -23637,6 +24899,13 @@ components: type: string nullable: true type: array + redirectHost: + description: "Optional bare host (e.g. www.example.com). When set, requests\ + \ denied by origin protection are 302-redirected to https://\ + \ with path and query preserved, instead of receiving a 403. Allowed IPs\ + \ and valid-header (CDN) traffic are unaffected." + nullable: true + type: string type: object V2Crawler_sitemap_inner: properties: diff --git a/api_ai.go b/api_ai.go new file mode 100644 index 00000000..ea700f77 --- /dev/null +++ b/api_ai.go @@ -0,0 +1,185 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +type AIAPI interface { + + /* + GetAIUsageStats Organisation AI usage breakdown (subscription page parity) + + AI usage from the subscription page's source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @return AIAPIGetAIUsageStatsRequest + */ + GetAIUsageStats(ctx context.Context, organisation string) AIAPIGetAIUsageStatsRequest + + // GetAIUsageStatsExecute executes the request + GetAIUsageStatsExecute(r AIAPIGetAIUsageStatsRequest) (*http.Response, error) +} + +// AIAPIService AIAPI service +type AIAPIService service + +type AIAPIGetAIUsageStatsRequest struct { + ctx context.Context + ApiService AIAPI + organisation string + month *string + groupBy *string + include *string + userId *string + tokenId *string +} + +// YYYY-MM, defaults to current month +func (r AIAPIGetAIUsageStatsRequest) Month(month string) AIAPIGetAIUsageStatsRequest { + r.month = &month + return r +} + +func (r AIAPIGetAIUsageStatsRequest) GroupBy(groupBy string) AIAPIGetAIUsageStatsRequest { + r.groupBy = &groupBy + return r +} + +// Set to 'daily' to append a 30-day series +func (r AIAPIGetAIUsageStatsRequest) Include(include string) AIAPIGetAIUsageStatsRequest { + r.include = &include + return r +} + +// Scope the daily series to a user +func (r AIAPIGetAIUsageStatsRequest) UserId(userId string) AIAPIGetAIUsageStatsRequest { + r.userId = &userId + return r +} + +// Scope the daily series to a token +func (r AIAPIGetAIUsageStatsRequest) TokenId(tokenId string) AIAPIGetAIUsageStatsRequest { + r.tokenId = &tokenId + return r +} + +func (r AIAPIGetAIUsageStatsRequest) Execute() (*http.Response, error) { + return r.ApiService.GetAIUsageStatsExecute(r) +} + +/* +GetAIUsageStats Organisation AI usage breakdown (subscription page parity) + +AI usage from the subscription page's source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @return AIAPIGetAIUsageStatsRequest +*/ +func (a *AIAPIService) GetAIUsageStats(ctx context.Context, organisation string) AIAPIGetAIUsageStatsRequest { + return AIAPIGetAIUsageStatsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +func (a *AIAPIService) GetAIUsageStatsExecute(r AIAPIGetAIUsageStatsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIAPIService.GetAIUsageStats") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/usage" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.month != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "month", r.month, "form", "") + } + if r.groupBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "groupBy", r.groupBy, "form", "") + } else { + var defaultValue string = "model" + r.groupBy = &defaultValue + } + if r.include != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include", r.include, "form", "") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") + } + if r.tokenId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tokenId", r.tokenId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_ai_agents.go b/api_ai_agents.go index 5fc1cde5..ff9f8d56 100644 --- a/api_ai_agents.go +++ b/api_ai_agents.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_custom_tools.go b/api_ai_custom_tools.go index e601b871..5820bdb6 100644 --- a/api_ai_custom_tools.go +++ b/api_ai_custom_tools.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_file_storage.go b/api_ai_file_storage.go index 6fe1e1cb..c0dbff4d 100644 --- a/api_ai_file_storage.go +++ b/api_ai_file_storage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_filter_policies.go b/api_ai_filter_policies.go index dde5c373..da2e85a8 100644 --- a/api_ai_filter_policies.go +++ b/api_ai_filter_policies.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_governance.go b/api_ai_governance.go index 4fd06406..e50a9964 100644 --- a/api_ai_governance.go +++ b/api_ai_governance.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_inference.go b/api_ai_inference.go index b8338b01..304657ec 100644 --- a/api_ai_inference.go +++ b/api_ai_inference.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_models.go b/api_ai_models.go index ca273ae6..88999054 100644 --- a/api_ai_models.go +++ b/api_ai_models.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_orchestrations.go b/api_ai_orchestrations.go index 9bbd78af..c5b3415a 100644 --- a/api_ai_orchestrations.go +++ b/api_ai_orchestrations.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_search.go b/api_ai_search.go new file mode 100644 index 00000000..59eacf91 --- /dev/null +++ b/api_ai_search.go @@ -0,0 +1,2026 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +type AISearchAPI interface { + + /* + AiSearchChat RAG chat with AI Search content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchChatRequest + */ + AiSearchChat(ctx context.Context, organisation string, project string) AISearchAPIAiSearchChatRequest + + // AiSearchChatExecute executes the request + AiSearchChatExecute(r AISearchAPIAiSearchChatRequest) (*http.Response, error) + + /* + AiSearchDeletePages Delete pages by URLs or patterns + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchDeletePagesRequest + */ + AiSearchDeletePages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchDeletePagesRequest + + // AiSearchDeletePagesExecute executes the request + AiSearchDeletePagesExecute(r AISearchAPIAiSearchDeletePagesRequest) (*http.Response, error) + + /* + AiSearchDisable Disable AI Search for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchDisableRequest + */ + AiSearchDisable(ctx context.Context, organisation string, project string) AISearchAPIAiSearchDisableRequest + + // AiSearchDisableExecute executes the request + AiSearchDisableExecute(r AISearchAPIAiSearchDisableRequest) (*http.Response, error) + + /* + AiSearchEnable Enable AI Search for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchEnableRequest + */ + AiSearchEnable(ctx context.Context, organisation string, project string) AISearchAPIAiSearchEnableRequest + + // AiSearchEnableExecute executes the request + AiSearchEnableExecute(r AISearchAPIAiSearchEnableRequest) (*http.Response, error) + + /* + AiSearchGetCrawl Get AI Search ingest job status + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @param jobId + @return AISearchAPIAiSearchGetCrawlRequest + */ + AiSearchGetCrawl(ctx context.Context, organisation string, project string, jobId string) AISearchAPIAiSearchGetCrawlRequest + + // AiSearchGetCrawlExecute executes the request + AiSearchGetCrawlExecute(r AISearchAPIAiSearchGetCrawlRequest) (*http.Response, error) + + /* + AiSearchGetCrawlPages Get per-page ingest results for a crawl job + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @param jobId + @return AISearchAPIAiSearchGetCrawlPagesRequest + */ + AiSearchGetCrawlPages(ctx context.Context, organisation string, project string, jobId string) AISearchAPIAiSearchGetCrawlPagesRequest + + // AiSearchGetCrawlPagesExecute executes the request + AiSearchGetCrawlPagesExecute(r AISearchAPIAiSearchGetCrawlPagesRequest) (*http.Response, error) + + /* + AiSearchGetSettings Get AI Search public access and rate limit settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchGetSettingsRequest + */ + AiSearchGetSettings(ctx context.Context, organisation string, project string) AISearchAPIAiSearchGetSettingsRequest + + // AiSearchGetSettingsExecute executes the request + AiSearchGetSettingsExecute(r AISearchAPIAiSearchGetSettingsRequest) (*http.Response, error) + + /* + AiSearchIngestPages Ingest pages into the AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchIngestPagesRequest + */ + AiSearchIngestPages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchIngestPagesRequest + + // AiSearchIngestPagesExecute executes the request + AiSearchIngestPagesExecute(r AISearchAPIAiSearchIngestPagesRequest) (*http.Response, error) + + /* + AiSearchListCrawls List AI Search ingest jobs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchListCrawlsRequest + */ + AiSearchListCrawls(ctx context.Context, organisation string, project string) AISearchAPIAiSearchListCrawlsRequest + + // AiSearchListCrawlsExecute executes the request + AiSearchListCrawlsExecute(r AISearchAPIAiSearchListCrawlsRequest) (*http.Response, error) + + /* + AiSearchListPages List indexed pages with cursor pagination + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchListPagesRequest + */ + AiSearchListPages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchListPagesRequest + + // AiSearchListPagesExecute executes the request + AiSearchListPagesExecute(r AISearchAPIAiSearchListPagesRequest) (*http.Response, error) + + /* + AiSearchPurgeIndex Purge the entire AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchPurgeIndexRequest + */ + AiSearchPurgeIndex(ctx context.Context, organisation string, project string) AISearchAPIAiSearchPurgeIndexRequest + + // AiSearchPurgeIndexExecute executes the request + AiSearchPurgeIndexExecute(r AISearchAPIAiSearchPurgeIndexRequest) (*http.Response, error) + + /* + AiSearchSearch Semantic search across the AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchSearchRequest + */ + AiSearchSearch(ctx context.Context, organisation string, project string) AISearchAPIAiSearchSearchRequest + + // AiSearchSearchExecute executes the request + AiSearchSearchExecute(r AISearchAPIAiSearchSearchRequest) (*http.Response, error) + + /* + AiSearchStatus Get AI Search status for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchStatusRequest + */ + AiSearchStatus(ctx context.Context, organisation string, project string) AISearchAPIAiSearchStatusRequest + + // AiSearchStatusExecute executes the request + AiSearchStatusExecute(r AISearchAPIAiSearchStatusRequest) (*http.Response, error) + + /* + AiSearchTopQueries Get the most popular AI Search queries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchTopQueriesRequest + */ + AiSearchTopQueries(ctx context.Context, organisation string, project string) AISearchAPIAiSearchTopQueriesRequest + + // AiSearchTopQueriesExecute executes the request + AiSearchTopQueriesExecute(r AISearchAPIAiSearchTopQueriesRequest) (*http.Response, error) + + /* + AiSearchTriggerCrawl Trigger a crawler run that ingests into AI Search + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchTriggerCrawlRequest + */ + AiSearchTriggerCrawl(ctx context.Context, organisation string, project string) AISearchAPIAiSearchTriggerCrawlRequest + + // AiSearchTriggerCrawlExecute executes the request + AiSearchTriggerCrawlExecute(r AISearchAPIAiSearchTriggerCrawlRequest) (*http.Response, error) + + /* + AiSearchUpdateSettings Update AI Search public access and rate limit settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchUpdateSettingsRequest + */ + AiSearchUpdateSettings(ctx context.Context, organisation string, project string) AISearchAPIAiSearchUpdateSettingsRequest + + // AiSearchUpdateSettingsExecute executes the request + AiSearchUpdateSettingsExecute(r AISearchAPIAiSearchUpdateSettingsRequest) (*http.Response, error) + + /* + AiSearchUsage Get usage statistics for the AI Search site + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchUsageRequest + */ + AiSearchUsage(ctx context.Context, organisation string, project string) AISearchAPIAiSearchUsageRequest + + // AiSearchUsageExecute executes the request + AiSearchUsageExecute(r AISearchAPIAiSearchUsageRequest) (*http.Response, error) +} + +// AISearchAPIService AISearchAPI service +type AISearchAPIService service + +type AISearchAPIAiSearchChatRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchChatRequest *AiSearchChatRequest +} + +func (r AISearchAPIAiSearchChatRequest) AiSearchChatRequest(aiSearchChatRequest AiSearchChatRequest) AISearchAPIAiSearchChatRequest { + r.aiSearchChatRequest = &aiSearchChatRequest + return r +} + +func (r AISearchAPIAiSearchChatRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchChatExecute(r) +} + +/* +AiSearchChat RAG chat with AI Search content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchChatRequest +*/ +func (a *AISearchAPIService) AiSearchChat(ctx context.Context, organisation string, project string) AISearchAPIAiSearchChatRequest { + return AISearchAPIAiSearchChatRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchChatExecute(r AISearchAPIAiSearchChatRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchChat") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchChatRequest == nil { + return nil, reportError("aiSearchChatRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchChatRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchDeletePagesRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchDeletePagesRequest *AiSearchDeletePagesRequest +} + +func (r AISearchAPIAiSearchDeletePagesRequest) AiSearchDeletePagesRequest(aiSearchDeletePagesRequest AiSearchDeletePagesRequest) AISearchAPIAiSearchDeletePagesRequest { + r.aiSearchDeletePagesRequest = &aiSearchDeletePagesRequest + return r +} + +func (r AISearchAPIAiSearchDeletePagesRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchDeletePagesExecute(r) +} + +/* +AiSearchDeletePages Delete pages by URLs or patterns + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchDeletePagesRequest +*/ +func (a *AISearchAPIService) AiSearchDeletePages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchDeletePagesRequest { + return AISearchAPIAiSearchDeletePagesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchDeletePagesExecute(r AISearchAPIAiSearchDeletePagesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchDeletePages") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchDeletePagesRequest == nil { + return nil, reportError("aiSearchDeletePagesRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchDeletePagesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchDisableRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string +} + +func (r AISearchAPIAiSearchDisableRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchDisableExecute(r) +} + +/* +AiSearchDisable Disable AI Search for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchDisableRequest +*/ +func (a *AISearchAPIService) AiSearchDisable(ctx context.Context, organisation string, project string) AISearchAPIAiSearchDisableRequest { + return AISearchAPIAiSearchDisableRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchDisableExecute(r AISearchAPIAiSearchDisableRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchDisable") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchEnableRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchEnableRequest *AiSearchEnableRequest +} + +func (r AISearchAPIAiSearchEnableRequest) AiSearchEnableRequest(aiSearchEnableRequest AiSearchEnableRequest) AISearchAPIAiSearchEnableRequest { + r.aiSearchEnableRequest = &aiSearchEnableRequest + return r +} + +func (r AISearchAPIAiSearchEnableRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchEnableExecute(r) +} + +/* +AiSearchEnable Enable AI Search for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchEnableRequest +*/ +func (a *AISearchAPIService) AiSearchEnable(ctx context.Context, organisation string, project string) AISearchAPIAiSearchEnableRequest { + return AISearchAPIAiSearchEnableRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchEnableExecute(r AISearchAPIAiSearchEnableRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchEnable") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchEnableRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchGetCrawlRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + jobId string +} + +func (r AISearchAPIAiSearchGetCrawlRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchGetCrawlExecute(r) +} + +/* +AiSearchGetCrawl Get AI Search ingest job status + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @param jobId + @return AISearchAPIAiSearchGetCrawlRequest +*/ +func (a *AISearchAPIService) AiSearchGetCrawl(ctx context.Context, organisation string, project string, jobId string) AISearchAPIAiSearchGetCrawlRequest { + return AISearchAPIAiSearchGetCrawlRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + jobId: jobId, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchGetCrawlExecute(r AISearchAPIAiSearchGetCrawlRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchGetCrawl") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"jobId"+"}", url.PathEscape(parameterValueToString(r.jobId, "jobId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchGetCrawlPagesRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + jobId string + limit *int32 + statusCode *int32 + processingStatus *string +} + +func (r AISearchAPIAiSearchGetCrawlPagesRequest) Limit(limit int32) AISearchAPIAiSearchGetCrawlPagesRequest { + r.limit = &limit + return r +} + +func (r AISearchAPIAiSearchGetCrawlPagesRequest) StatusCode(statusCode int32) AISearchAPIAiSearchGetCrawlPagesRequest { + r.statusCode = &statusCode + return r +} + +func (r AISearchAPIAiSearchGetCrawlPagesRequest) ProcessingStatus(processingStatus string) AISearchAPIAiSearchGetCrawlPagesRequest { + r.processingStatus = &processingStatus + return r +} + +func (r AISearchAPIAiSearchGetCrawlPagesRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchGetCrawlPagesExecute(r) +} + +/* +AiSearchGetCrawlPages Get per-page ingest results for a crawl job + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @param jobId + @return AISearchAPIAiSearchGetCrawlPagesRequest +*/ +func (a *AISearchAPIService) AiSearchGetCrawlPages(ctx context.Context, organisation string, project string, jobId string) AISearchAPIAiSearchGetCrawlPagesRequest { + return AISearchAPIAiSearchGetCrawlPagesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + jobId: jobId, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchGetCrawlPagesExecute(r AISearchAPIAiSearchGetCrawlPagesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchGetCrawlPages") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"jobId"+"}", url.PathEscape(parameterValueToString(r.jobId, "jobId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.statusCode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "statusCode", r.statusCode, "form", "") + } + if r.processingStatus != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "processingStatus", r.processingStatus, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchGetSettingsRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string +} + +func (r AISearchAPIAiSearchGetSettingsRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchGetSettingsExecute(r) +} + +/* +AiSearchGetSettings Get AI Search public access and rate limit settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchGetSettingsRequest +*/ +func (a *AISearchAPIService) AiSearchGetSettings(ctx context.Context, organisation string, project string) AISearchAPIAiSearchGetSettingsRequest { + return AISearchAPIAiSearchGetSettingsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchGetSettingsExecute(r AISearchAPIAiSearchGetSettingsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchGetSettings") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchIngestPagesRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchIngestPagesRequest *AiSearchIngestPagesRequest +} + +func (r AISearchAPIAiSearchIngestPagesRequest) AiSearchIngestPagesRequest(aiSearchIngestPagesRequest AiSearchIngestPagesRequest) AISearchAPIAiSearchIngestPagesRequest { + r.aiSearchIngestPagesRequest = &aiSearchIngestPagesRequest + return r +} + +func (r AISearchAPIAiSearchIngestPagesRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchIngestPagesExecute(r) +} + +/* +AiSearchIngestPages Ingest pages into the AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchIngestPagesRequest +*/ +func (a *AISearchAPIService) AiSearchIngestPages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchIngestPagesRequest { + return AISearchAPIAiSearchIngestPagesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchIngestPagesExecute(r AISearchAPIAiSearchIngestPagesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchIngestPages") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchIngestPagesRequest == nil { + return nil, reportError("aiSearchIngestPagesRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchIngestPagesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchListCrawlsRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + limit *int32 +} + +func (r AISearchAPIAiSearchListCrawlsRequest) Limit(limit int32) AISearchAPIAiSearchListCrawlsRequest { + r.limit = &limit + return r +} + +func (r AISearchAPIAiSearchListCrawlsRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchListCrawlsExecute(r) +} + +/* +AiSearchListCrawls List AI Search ingest jobs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchListCrawlsRequest +*/ +func (a *AISearchAPIService) AiSearchListCrawls(ctx context.Context, organisation string, project string) AISearchAPIAiSearchListCrawlsRequest { + return AISearchAPIAiSearchListCrawlsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchListCrawlsExecute(r AISearchAPIAiSearchListCrawlsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchListCrawls") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchListPagesRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + limit *int32 + cursor *string + search *string +} + +func (r AISearchAPIAiSearchListPagesRequest) Limit(limit int32) AISearchAPIAiSearchListPagesRequest { + r.limit = &limit + return r +} + +func (r AISearchAPIAiSearchListPagesRequest) Cursor(cursor string) AISearchAPIAiSearchListPagesRequest { + r.cursor = &cursor + return r +} + +func (r AISearchAPIAiSearchListPagesRequest) Search(search string) AISearchAPIAiSearchListPagesRequest { + r.search = &search + return r +} + +func (r AISearchAPIAiSearchListPagesRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchListPagesExecute(r) +} + +/* +AiSearchListPages List indexed pages with cursor pagination + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchListPagesRequest +*/ +func (a *AISearchAPIService) AiSearchListPages(ctx context.Context, organisation string, project string) AISearchAPIAiSearchListPagesRequest { + return AISearchAPIAiSearchListPagesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchListPagesExecute(r AISearchAPIAiSearchListPagesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchListPages") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.search != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search", r.search, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchPurgeIndexRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string +} + +func (r AISearchAPIAiSearchPurgeIndexRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchPurgeIndexExecute(r) +} + +/* +AiSearchPurgeIndex Purge the entire AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchPurgeIndexRequest +*/ +func (a *AISearchAPIService) AiSearchPurgeIndex(ctx context.Context, organisation string, project string) AISearchAPIAiSearchPurgeIndexRequest { + return AISearchAPIAiSearchPurgeIndexRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchPurgeIndexExecute(r AISearchAPIAiSearchPurgeIndexRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchPurgeIndex") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/index" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchSearchRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchSearchRequest *AiSearchSearchRequest +} + +func (r AISearchAPIAiSearchSearchRequest) AiSearchSearchRequest(aiSearchSearchRequest AiSearchSearchRequest) AISearchAPIAiSearchSearchRequest { + r.aiSearchSearchRequest = &aiSearchSearchRequest + return r +} + +func (r AISearchAPIAiSearchSearchRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchSearchExecute(r) +} + +/* +AiSearchSearch Semantic search across the AI Search index + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchSearchRequest +*/ +func (a *AISearchAPIService) AiSearchSearch(ctx context.Context, organisation string, project string) AISearchAPIAiSearchSearchRequest { + return AISearchAPIAiSearchSearchRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchSearchExecute(r AISearchAPIAiSearchSearchRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchSearch") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/search" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchSearchRequest == nil { + return nil, reportError("aiSearchSearchRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchSearchRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchStatusRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string +} + +func (r AISearchAPIAiSearchStatusRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchStatusExecute(r) +} + +/* +AiSearchStatus Get AI Search status for a project + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchStatusRequest +*/ +func (a *AISearchAPIService) AiSearchStatus(ctx context.Context, organisation string, project string) AISearchAPIAiSearchStatusRequest { + return AISearchAPIAiSearchStatusRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchStatusExecute(r AISearchAPIAiSearchStatusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchStatus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchTopQueriesRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + range_ *string + limit *int32 +} + +func (r AISearchAPIAiSearchTopQueriesRequest) Range_(range_ string) AISearchAPIAiSearchTopQueriesRequest { + r.range_ = &range_ + return r +} + +func (r AISearchAPIAiSearchTopQueriesRequest) Limit(limit int32) AISearchAPIAiSearchTopQueriesRequest { + r.limit = &limit + return r +} + +func (r AISearchAPIAiSearchTopQueriesRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchTopQueriesExecute(r) +} + +/* +AiSearchTopQueries Get the most popular AI Search queries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchTopQueriesRequest +*/ +func (a *AISearchAPIService) AiSearchTopQueries(ctx context.Context, organisation string, project string) AISearchAPIAiSearchTopQueriesRequest { + return AISearchAPIAiSearchTopQueriesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchTopQueriesExecute(r AISearchAPIAiSearchTopQueriesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchTopQueries") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.range_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "range", r.range_, "form", "") + } else { + var defaultValue string = "30d" + r.range_ = &defaultValue + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchTriggerCrawlRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchTriggerCrawlRequest *AiSearchTriggerCrawlRequest +} + +func (r AISearchAPIAiSearchTriggerCrawlRequest) AiSearchTriggerCrawlRequest(aiSearchTriggerCrawlRequest AiSearchTriggerCrawlRequest) AISearchAPIAiSearchTriggerCrawlRequest { + r.aiSearchTriggerCrawlRequest = &aiSearchTriggerCrawlRequest + return r +} + +func (r AISearchAPIAiSearchTriggerCrawlRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchTriggerCrawlExecute(r) +} + +/* +AiSearchTriggerCrawl Trigger a crawler run that ingests into AI Search + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchTriggerCrawlRequest +*/ +func (a *AISearchAPIService) AiSearchTriggerCrawl(ctx context.Context, organisation string, project string) AISearchAPIAiSearchTriggerCrawlRequest { + return AISearchAPIAiSearchTriggerCrawlRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchTriggerCrawlExecute(r AISearchAPIAiSearchTriggerCrawlRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchTriggerCrawl") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchTriggerCrawlRequest == nil { + return nil, reportError("aiSearchTriggerCrawlRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchTriggerCrawlRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchUpdateSettingsRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + aiSearchUpdateSettingsRequest *AiSearchUpdateSettingsRequest +} + +func (r AISearchAPIAiSearchUpdateSettingsRequest) AiSearchUpdateSettingsRequest(aiSearchUpdateSettingsRequest AiSearchUpdateSettingsRequest) AISearchAPIAiSearchUpdateSettingsRequest { + r.aiSearchUpdateSettingsRequest = &aiSearchUpdateSettingsRequest + return r +} + +func (r AISearchAPIAiSearchUpdateSettingsRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchUpdateSettingsExecute(r) +} + +/* +AiSearchUpdateSettings Update AI Search public access and rate limit settings + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchUpdateSettingsRequest +*/ +func (a *AISearchAPIService) AiSearchUpdateSettings(ctx context.Context, organisation string, project string) AISearchAPIAiSearchUpdateSettingsRequest { + return AISearchAPIAiSearchUpdateSettingsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchUpdateSettingsExecute(r AISearchAPIAiSearchUpdateSettingsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchUpdateSettings") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.aiSearchUpdateSettingsRequest == nil { + return nil, reportError("aiSearchUpdateSettingsRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.aiSearchUpdateSettingsRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AISearchAPIAiSearchUsageRequest struct { + ctx context.Context + ApiService AISearchAPI + organisation string + project string + range_ *string +} + +func (r AISearchAPIAiSearchUsageRequest) Range_(range_ string) AISearchAPIAiSearchUsageRequest { + r.range_ = &range_ + return r +} + +func (r AISearchAPIAiSearchUsageRequest) Execute() (*http.Response, error) { + return r.ApiService.AiSearchUsageExecute(r) +} + +/* +AiSearchUsage Get usage statistics for the AI Search site + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation + @param project + @return AISearchAPIAiSearchUsageRequest +*/ +func (a *AISearchAPIService) AiSearchUsage(ctx context.Context, organisation string, project string) AISearchAPIAiSearchUsageRequest { + return AISearchAPIAiSearchUsageRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + project: project, + } +} + +// Execute executes the request +func (a *AISearchAPIService) AiSearchUsageExecute(r AISearchAPIAiSearchUsageRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AISearchAPIService.AiSearchUsage") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.range_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "range", r.range_, "form", "") + } else { + var defaultValue string = "30d" + r.range_ = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_ai_sessions.go b/api_ai_sessions.go index 3aecce56..51dc157f 100644 --- a/api_ai_sessions.go +++ b/api_ai_sessions.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_skills.go b/api_ai_skills.go index 0c2d7c17..ebcd9663 100644 --- a/api_ai_skills.go +++ b/api_ai_skills.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_slack_bots.go b/api_ai_slack_bots.go index 84b0e129..d619afe8 100644 --- a/api_ai_slack_bots.go +++ b/api_ai_slack_bots.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_task_management.go b/api_ai_task_management.go index ffb49966..4b5d813d 100644 --- a/api_ai_task_management.go +++ b/api_ai_task_management.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_tools.go b/api_ai_tools.go index 1f8dc585..a291f767 100644 --- a/api_ai_tools.go +++ b/api_ai_tools.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_usage.go b/api_ai_usage.go index 3dd29733..233f2daf 100644 --- a/api_ai_usage.go +++ b/api_ai_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_vector_database.go b/api_ai_vector_database.go index 2c1815f2..dcee7e52 100644 --- a/api_ai_vector_database.go +++ b/api_ai_vector_database.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_applications.go b/api_applications.go index fc794084..06e1b61a 100644 --- a/api_applications.go +++ b/api_applications.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_backup_management.go b/api_backup_management.go index 9da5abbf..8a435d77 100644 --- a/api_backup_management.go +++ b/api_backup_management.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cdn_metrics.go b/api_cdn_metrics.go index 5654ef89..96b855ae 100644 --- a/api_cdn_metrics.go +++ b/api_cdn_metrics.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_commands.go b/api_commands.go index f99ee9bd..59747984 100644 --- a/api_commands.go +++ b/api_commands.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_compose.go b/api_compose.go index 078c78dd..e7d586c3 100644 --- a/api_compose.go +++ b/api_compose.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_containers.go b/api_containers.go index a5fdc082..ffc79e78 100644 --- a/api_containers.go +++ b/api_containers.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawler_schedules.go b/api_crawler_schedules.go index 13f69fba..927b1a94 100644 --- a/api_crawler_schedules.go +++ b/api_crawler_schedules.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawlers.go b/api_crawlers.go index b37f4251..2a3778d0 100644 --- a/api_crawlers.go +++ b/api_crawlers.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cron.go b/api_cron.go index a071faed..eaa4cf60 100644 --- a/api_cron.go +++ b/api_cron.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domains.go b/api_domains.go index 41ef44e6..4d4d157b 100644 --- a/api_domains.go +++ b/api_domains.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_environments.go b/api_environments.go index b69c9042..7914d68c 100644 --- a/api_environments.go +++ b/api_environments.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_headers.go b/api_headers.go index 13fad116..6cb10910 100644 --- a/api_headers.go +++ b/api_headers.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_kv.go b/api_kv.go index 39d82e6f..c62822e3 100644 --- a/api_kv.go +++ b/api_kv.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_organizations.go b/api_organizations.go index b3d48e8d..8b99bb73 100644 --- a/api_organizations.go +++ b/api_organizations.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index f7ffb8c5..813262d9 100644 --- a/api_projects.go +++ b/api_projects.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_purge.go b/api_purge.go index 1bc69ba0..ed3c9ba9 100644 --- a/api_purge.go +++ b/api_purge.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_restore_management.go b/api_restore_management.go new file mode 100644 index 00000000..e502489e --- /dev/null +++ b/api_restore_management.go @@ -0,0 +1,468 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +type RestoreManagementAPI interface { + + /* + GetRestoreStatus Get the status of a restore operation + + Returns the current status and metadata for a restore operation. Poll this endpoint to track progress. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The environment ID + @param restoreId The restore operation ID + @return RestoreManagementAPIGetRestoreStatusRequest + */ + GetRestoreStatus(ctx context.Context, organisation string, application string, environment string, restoreId string) RestoreManagementAPIGetRestoreStatusRequest + + // GetRestoreStatusExecute executes the request + // @return GetRestoreStatus200Response + GetRestoreStatusExecute(r RestoreManagementAPIGetRestoreStatusRequest) (*GetRestoreStatus200Response, *http.Response, error) + + /* + RestoreDatabase Restore a database backup to a target environment + + Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The TARGET environment ID to restore INTO + @param backupId The backup ID to restore from + @return RestoreManagementAPIRestoreDatabaseRequest + */ + RestoreDatabase(ctx context.Context, organisation string, application string, environment string, backupId string) RestoreManagementAPIRestoreDatabaseRequest + + // RestoreDatabaseExecute executes the request + // @return RestoreDatabase202Response + RestoreDatabaseExecute(r RestoreManagementAPIRestoreDatabaseRequest) (*RestoreDatabase202Response, *http.Response, error) + + /* + RestoreFilesystem Restore a filesystem backup to a target environment + + Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The TARGET environment ID to restore INTO + @param backupId The backup ID to restore from + @return RestoreManagementAPIRestoreFilesystemRequest + */ + RestoreFilesystem(ctx context.Context, organisation string, application string, environment string, backupId string) RestoreManagementAPIRestoreFilesystemRequest + + // RestoreFilesystemExecute executes the request + // @return RestoreFilesystem202Response + RestoreFilesystemExecute(r RestoreManagementAPIRestoreFilesystemRequest) (*RestoreFilesystem202Response, *http.Response, error) +} + +// RestoreManagementAPIService RestoreManagementAPI service +type RestoreManagementAPIService service + +type RestoreManagementAPIGetRestoreStatusRequest struct { + ctx context.Context + ApiService RestoreManagementAPI + organisation string + application string + environment string + restoreId string +} + +func (r RestoreManagementAPIGetRestoreStatusRequest) Execute() (*GetRestoreStatus200Response, *http.Response, error) { + return r.ApiService.GetRestoreStatusExecute(r) +} + +/* +GetRestoreStatus Get the status of a restore operation + +Returns the current status and metadata for a restore operation. Poll this endpoint to track progress. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The environment ID + @param restoreId The restore operation ID + @return RestoreManagementAPIGetRestoreStatusRequest +*/ +func (a *RestoreManagementAPIService) GetRestoreStatus(ctx context.Context, organisation string, application string, environment string, restoreId string) RestoreManagementAPIGetRestoreStatusRequest { + return RestoreManagementAPIGetRestoreStatusRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + application: application, + environment: environment, + restoreId: restoreId, + } +} + +// Execute executes the request +// @return GetRestoreStatus200Response +func (a *RestoreManagementAPIService) GetRestoreStatusExecute(r RestoreManagementAPIGetRestoreStatusRequest) (*GetRestoreStatus200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetRestoreStatus200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RestoreManagementAPIService.GetRestoreStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", url.PathEscape(parameterValueToString(r.application, "application")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", url.PathEscape(parameterValueToString(r.environment, "environment")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"restoreId"+"}", url.PathEscape(parameterValueToString(r.restoreId, "restoreId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RestoreManagementAPIRestoreDatabaseRequest struct { + ctx context.Context + ApiService RestoreManagementAPI + organisation string + application string + environment string + backupId string + restoreDatabaseRequest *RestoreDatabaseRequest +} + +func (r RestoreManagementAPIRestoreDatabaseRequest) RestoreDatabaseRequest(restoreDatabaseRequest RestoreDatabaseRequest) RestoreManagementAPIRestoreDatabaseRequest { + r.restoreDatabaseRequest = &restoreDatabaseRequest + return r +} + +func (r RestoreManagementAPIRestoreDatabaseRequest) Execute() (*RestoreDatabase202Response, *http.Response, error) { + return r.ApiService.RestoreDatabaseExecute(r) +} + +/* +RestoreDatabase Restore a database backup to a target environment + +Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The TARGET environment ID to restore INTO + @param backupId The backup ID to restore from + @return RestoreManagementAPIRestoreDatabaseRequest +*/ +func (a *RestoreManagementAPIService) RestoreDatabase(ctx context.Context, organisation string, application string, environment string, backupId string) RestoreManagementAPIRestoreDatabaseRequest { + return RestoreManagementAPIRestoreDatabaseRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + application: application, + environment: environment, + backupId: backupId, + } +} + +// Execute executes the request +// @return RestoreDatabase202Response +func (a *RestoreManagementAPIService) RestoreDatabaseExecute(r RestoreManagementAPIRestoreDatabaseRequest) (*RestoreDatabase202Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RestoreDatabase202Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RestoreManagementAPIService.RestoreDatabase") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", url.PathEscape(parameterValueToString(r.application, "application")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", url.PathEscape(parameterValueToString(r.environment, "environment")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"backupId"+"}", url.PathEscape(parameterValueToString(r.backupId, "backupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.restoreDatabaseRequest == nil { + return localVarReturnValue, nil, reportError("restoreDatabaseRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.restoreDatabaseRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v PatchEnvironmentCompose400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type RestoreManagementAPIRestoreFilesystemRequest struct { + ctx context.Context + ApiService RestoreManagementAPI + organisation string + application string + environment string + backupId string + restoreFilesystemRequest *RestoreFilesystemRequest +} + +func (r RestoreManagementAPIRestoreFilesystemRequest) RestoreFilesystemRequest(restoreFilesystemRequest RestoreFilesystemRequest) RestoreManagementAPIRestoreFilesystemRequest { + r.restoreFilesystemRequest = &restoreFilesystemRequest + return r +} + +func (r RestoreManagementAPIRestoreFilesystemRequest) Execute() (*RestoreFilesystem202Response, *http.Response, error) { + return r.ApiService.RestoreFilesystemExecute(r) +} + +/* +RestoreFilesystem Restore a filesystem backup to a target environment + +Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param application The application ID + @param environment The TARGET environment ID to restore INTO + @param backupId The backup ID to restore from + @return RestoreManagementAPIRestoreFilesystemRequest +*/ +func (a *RestoreManagementAPIService) RestoreFilesystem(ctx context.Context, organisation string, application string, environment string, backupId string) RestoreManagementAPIRestoreFilesystemRequest { + return RestoreManagementAPIRestoreFilesystemRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + application: application, + environment: environment, + backupId: backupId, + } +} + +// Execute executes the request +// @return RestoreFilesystem202Response +func (a *RestoreManagementAPIService) RestoreFilesystemExecute(r RestoreManagementAPIRestoreFilesystemRequest) (*RestoreFilesystem202Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RestoreFilesystem202Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RestoreManagementAPIService.RestoreFilesystem") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", url.PathEscape(parameterValueToString(r.application, "application")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", url.PathEscape(parameterValueToString(r.environment, "environment")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"backupId"+"}", url.PathEscape(parameterValueToString(r.backupId, "backupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.restoreFilesystemRequest == nil { + return localVarReturnValue, nil, reportError("restoreFilesystemRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.restoreFilesystemRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v PatchEnvironmentCompose400Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_rules.go b/api_rules.go index c65a0eae..7327aa46 100644 --- a/api_rules.go +++ b/api_rules.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_scaling_policy.go b/api_scaling_policy.go index 189d3e80..765c1323 100644 --- a/api_scaling_policy.go +++ b/api_scaling_policy.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,47 +23,54 @@ import ( type ScalingPolicyAPI interface { /* - DeleteScalingPolicy Delete the scaling policy for an environment + DeleteScalingPolicy Delete Scaling Policy + + Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @param policyName The policy name + @param organisation + @param application + @param environment @return ScalingPolicyAPIDeleteScalingPolicyRequest */ - DeleteScalingPolicy(ctx context.Context, organisation string, application string, environment string, policyName string) ScalingPolicyAPIDeleteScalingPolicyRequest + DeleteScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIDeleteScalingPolicyRequest // DeleteScalingPolicyExecute executes the request DeleteScalingPolicyExecute(r ScalingPolicyAPIDeleteScalingPolicyRequest) (*http.Response, error) /* - GetScalingPolicies Get the scaling policies for an environment + ListScalingPolicies List Scaling Policies + + Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @return ScalingPolicyAPIGetScalingPoliciesRequest + @param organisation + @param application + @param environment + @return ScalingPolicyAPIListScalingPoliciesRequest */ - GetScalingPolicies(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIGetScalingPoliciesRequest + ListScalingPolicies(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIListScalingPoliciesRequest - // GetScalingPoliciesExecute executes the request - GetScalingPoliciesExecute(r ScalingPolicyAPIGetScalingPoliciesRequest) (*http.Response, error) + // ListScalingPoliciesExecute executes the request + // @return ScalingPolicyListResponse + ListScalingPoliciesExecute(r ScalingPolicyAPIListScalingPoliciesRequest) (*ScalingPolicyListResponse, *http.Response, error) /* - UpdateScalingPolicy Update the scaling policy for an environment + UpsertScalingPolicy Upsert Scaling Policy + + Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @return ScalingPolicyAPIUpdateScalingPolicyRequest + @param organisation + @param application + @param environment + @return ScalingPolicyAPIUpsertScalingPolicyRequest */ - UpdateScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIUpdateScalingPolicyRequest + UpsertScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIUpsertScalingPolicyRequest - // UpdateScalingPolicyExecute executes the request - UpdateScalingPolicyExecute(r ScalingPolicyAPIUpdateScalingPolicyRequest) (*http.Response, error) + // UpsertScalingPolicyExecute executes the request + // @return GetScalingPolicyResponse + UpsertScalingPolicyExecute(r ScalingPolicyAPIUpsertScalingPolicyRequest) (*GetScalingPolicyResponse, *http.Response, error) } // ScalingPolicyAPIService ScalingPolicyAPI service @@ -75,7 +82,20 @@ type ScalingPolicyAPIDeleteScalingPolicyRequest struct { organisation string application string environment string - policyName string + metric *string + policyName *string +} + +// Optional. Delete by metric type. +func (r ScalingPolicyAPIDeleteScalingPolicyRequest) Metric(metric string) ScalingPolicyAPIDeleteScalingPolicyRequest { + r.metric = &metric + return r +} + +// Optional. Delete by exact policy name. +func (r ScalingPolicyAPIDeleteScalingPolicyRequest) PolicyName(policyName string) ScalingPolicyAPIDeleteScalingPolicyRequest { + r.policyName = &policyName + return r } func (r ScalingPolicyAPIDeleteScalingPolicyRequest) Execute() (*http.Response, error) { @@ -83,23 +103,23 @@ func (r ScalingPolicyAPIDeleteScalingPolicyRequest) Execute() (*http.Response, e } /* -DeleteScalingPolicy Delete the scaling policy for an environment +DeleteScalingPolicy Delete Scaling Policy + +Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @param policyName The policy name + @param organisation + @param application + @param environment @return ScalingPolicyAPIDeleteScalingPolicyRequest */ -func (a *ScalingPolicyAPIService) DeleteScalingPolicy(ctx context.Context, organisation string, application string, environment string, policyName string) ScalingPolicyAPIDeleteScalingPolicyRequest { +func (a *ScalingPolicyAPIService) DeleteScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIDeleteScalingPolicyRequest { return ScalingPolicyAPIDeleteScalingPolicyRequest{ ApiService: a, ctx: ctx, organisation: organisation, application: application, environment: environment, - policyName: policyName, } } @@ -116,16 +136,21 @@ func (a *ScalingPolicyAPIService) DeleteScalingPolicyExecute(r ScalingPolicyAPID return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}" + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies" localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) localVarPath = strings.Replace(localVarPath, "{"+"application"+"}", url.PathEscape(parameterValueToString(r.application, "application")), -1) localVarPath = strings.Replace(localVarPath, "{"+"environment"+"}", url.PathEscape(parameterValueToString(r.environment, "environment")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"policyName"+"}", url.PathEscape(parameterValueToString(r.policyName, "policyName")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.metric != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metric", r.metric, "form", "") + } + if r.policyName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policyName", r.policyName, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -171,29 +196,45 @@ func (a *ScalingPolicyAPIService) DeleteScalingPolicyExecute(r ScalingPolicyAPID return localVarHTTPResponse, nil } -type ScalingPolicyAPIGetScalingPoliciesRequest struct { +type ScalingPolicyAPIListScalingPoliciesRequest struct { ctx context.Context ApiService ScalingPolicyAPI organisation string application string environment string + metric *string + policyName *string } -func (r ScalingPolicyAPIGetScalingPoliciesRequest) Execute() (*http.Response, error) { - return r.ApiService.GetScalingPoliciesExecute(r) +// Optional. Filter policies by metric type. +func (r ScalingPolicyAPIListScalingPoliciesRequest) Metric(metric string) ScalingPolicyAPIListScalingPoliciesRequest { + r.metric = &metric + return r +} + +// Optional. Filter policies by exact policy name. +func (r ScalingPolicyAPIListScalingPoliciesRequest) PolicyName(policyName string) ScalingPolicyAPIListScalingPoliciesRequest { + r.policyName = &policyName + return r +} + +func (r ScalingPolicyAPIListScalingPoliciesRequest) Execute() (*ScalingPolicyListResponse, *http.Response, error) { + return r.ApiService.ListScalingPoliciesExecute(r) } /* -GetScalingPolicies Get the scaling policies for an environment +ListScalingPolicies List Scaling Policies + +Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @return ScalingPolicyAPIGetScalingPoliciesRequest + @param organisation + @param application + @param environment + @return ScalingPolicyAPIListScalingPoliciesRequest */ -func (a *ScalingPolicyAPIService) GetScalingPolicies(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIGetScalingPoliciesRequest { - return ScalingPolicyAPIGetScalingPoliciesRequest{ +func (a *ScalingPolicyAPIService) ListScalingPolicies(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIListScalingPoliciesRequest { + return ScalingPolicyAPIListScalingPoliciesRequest{ ApiService: a, ctx: ctx, organisation: organisation, @@ -203,16 +244,18 @@ func (a *ScalingPolicyAPIService) GetScalingPolicies(ctx context.Context, organi } // Execute executes the request -func (a *ScalingPolicyAPIService) GetScalingPoliciesExecute(r ScalingPolicyAPIGetScalingPoliciesRequest) (*http.Response, error) { +// @return ScalingPolicyListResponse +func (a *ScalingPolicyAPIService) ListScalingPoliciesExecute(r ScalingPolicyAPIListScalingPoliciesRequest) (*ScalingPolicyListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile + localVarReturnValue *ScalingPolicyListResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScalingPolicyAPIService.GetScalingPolicies") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScalingPolicyAPIService.ListScalingPolicies") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies" @@ -224,6 +267,12 @@ func (a *ScalingPolicyAPIService) GetScalingPoliciesExecute(r ScalingPolicyAPIGe localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.metric != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "metric", r.metric, "form", "") + } + if r.policyName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policyName", r.policyName, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -234,7 +283,7 @@ func (a *ScalingPolicyAPIService) GetScalingPoliciesExecute(r ScalingPolicyAPIGe } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -243,19 +292,19 @@ func (a *ScalingPolicyAPIService) GetScalingPoliciesExecute(r ScalingPolicyAPIGe } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -263,41 +312,59 @@ func (a *ScalingPolicyAPIService) GetScalingPoliciesExecute(r ScalingPolicyAPIGe body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -type ScalingPolicyAPIUpdateScalingPolicyRequest struct { +type ScalingPolicyAPIUpsertScalingPolicyRequest struct { ctx context.Context ApiService ScalingPolicyAPI organisation string application string environment string - scalingPolicy *ScalingPolicy + setScalingPolicyRequest *SetScalingPolicyRequest + policyName *string +} + +func (r ScalingPolicyAPIUpsertScalingPolicyRequest) SetScalingPolicyRequest(setScalingPolicyRequest SetScalingPolicyRequest) ScalingPolicyAPIUpsertScalingPolicyRequest { + r.setScalingPolicyRequest = &setScalingPolicyRequest + return r } -func (r ScalingPolicyAPIUpdateScalingPolicyRequest) ScalingPolicy(scalingPolicy ScalingPolicy) ScalingPolicyAPIUpdateScalingPolicyRequest { - r.scalingPolicy = &scalingPolicy +// Optional. Specify a custom policy name to upsert. +func (r ScalingPolicyAPIUpsertScalingPolicyRequest) PolicyName(policyName string) ScalingPolicyAPIUpsertScalingPolicyRequest { + r.policyName = &policyName return r } -func (r ScalingPolicyAPIUpdateScalingPolicyRequest) Execute() (*http.Response, error) { - return r.ApiService.UpdateScalingPolicyExecute(r) +func (r ScalingPolicyAPIUpsertScalingPolicyRequest) Execute() (*GetScalingPolicyResponse, *http.Response, error) { + return r.ApiService.UpsertScalingPolicyExecute(r) } /* -UpdateScalingPolicy Update the scaling policy for an environment +UpsertScalingPolicy Upsert Scaling Policy + +Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @param application The application ID - @param environment The environment ID - @return ScalingPolicyAPIUpdateScalingPolicyRequest + @param organisation + @param application + @param environment + @return ScalingPolicyAPIUpsertScalingPolicyRequest */ -func (a *ScalingPolicyAPIService) UpdateScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIUpdateScalingPolicyRequest { - return ScalingPolicyAPIUpdateScalingPolicyRequest{ +func (a *ScalingPolicyAPIService) UpsertScalingPolicy(ctx context.Context, organisation string, application string, environment string) ScalingPolicyAPIUpsertScalingPolicyRequest { + return ScalingPolicyAPIUpsertScalingPolicyRequest{ ApiService: a, ctx: ctx, organisation: organisation, @@ -307,16 +374,18 @@ func (a *ScalingPolicyAPIService) UpdateScalingPolicy(ctx context.Context, organ } // Execute executes the request -func (a *ScalingPolicyAPIService) UpdateScalingPolicyExecute(r ScalingPolicyAPIUpdateScalingPolicyRequest) (*http.Response, error) { +// @return GetScalingPolicyResponse +func (a *ScalingPolicyAPIService) UpsertScalingPolicyExecute(r ScalingPolicyAPIUpsertScalingPolicyRequest) (*GetScalingPolicyResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile + localVarReturnValue *GetScalingPolicyResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScalingPolicyAPIService.UpdateScalingPolicy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScalingPolicyAPIService.UpsertScalingPolicy") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies" @@ -327,10 +396,13 @@ func (a *ScalingPolicyAPIService) UpdateScalingPolicyExecute(r ScalingPolicyAPIU localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.scalingPolicy == nil { - return nil, reportError("scalingPolicy is required and must be specified") + if r.setScalingPolicyRequest == nil { + return localVarReturnValue, nil, reportError("setScalingPolicyRequest is required and must be specified") } + if r.policyName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "policyName", r.policyName, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -341,7 +413,7 @@ func (a *ScalingPolicyAPIService) UpdateScalingPolicyExecute(r ScalingPolicyAPIU } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -349,22 +421,22 @@ func (a *ScalingPolicyAPIService) UpdateScalingPolicyExecute(r ScalingPolicyAPIU localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.scalingPolicy + localVarPostBody = r.setScalingPolicyRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -372,8 +444,17 @@ func (a *ScalingPolicyAPIService) UpdateScalingPolicyExecute(r ScalingPolicyAPIU body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/api_ssh_access.go b/api_ssh_access.go index 0c415085..d8a91af2 100644 --- a/api_ssh_access.go +++ b/api_ssh_access.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_monitoring.go b/api_subscription.go similarity index 53% rename from api_ai_monitoring.go rename to api_subscription.go index 2f1b7356..ccf83d23 100644 --- a/api_ai_monitoring.go +++ b/api_subscription.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,51 +20,54 @@ import ( ) -type AIMonitoringAPI interface { +type SubscriptionAPI interface { /* - GetAIUsageStats Get AI usage statistics + GetSubscriptionCloudUsage Cloud-app cost breakdown for the subscription page + + Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page's Cloud Apps card. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @return AIMonitoringAPIGetAIUsageStatsRequest + @param organisation + @return SubscriptionAPIGetSubscriptionCloudUsageRequest */ - GetAIUsageStats(ctx context.Context, organisation string) AIMonitoringAPIGetAIUsageStatsRequest + GetSubscriptionCloudUsage(ctx context.Context, organisation string) SubscriptionAPIGetSubscriptionCloudUsageRequest - // GetAIUsageStatsExecute executes the request - // @return GetAIUsageStats200Response - GetAIUsageStatsExecute(r AIMonitoringAPIGetAIUsageStatsRequest) (*GetAIUsageStats200Response, *http.Response, error) + // GetSubscriptionCloudUsageExecute executes the request + GetSubscriptionCloudUsageExecute(r SubscriptionAPIGetSubscriptionCloudUsageRequest) (*http.Response, error) } -// AIMonitoringAPIService AIMonitoringAPI service -type AIMonitoringAPIService service +// SubscriptionAPIService SubscriptionAPI service +type SubscriptionAPIService service -type AIMonitoringAPIGetAIUsageStatsRequest struct { +type SubscriptionAPIGetSubscriptionCloudUsageRequest struct { ctx context.Context - ApiService AIMonitoringAPI + ApiService SubscriptionAPI organisation string month *string } -// Month to retrieve statistics for (YYYY-MM format) -func (r AIMonitoringAPIGetAIUsageStatsRequest) Month(month string) AIMonitoringAPIGetAIUsageStatsRequest { +// YYYY-MM, defaults to current month +func (r SubscriptionAPIGetSubscriptionCloudUsageRequest) Month(month string) SubscriptionAPIGetSubscriptionCloudUsageRequest { r.month = &month return r } -func (r AIMonitoringAPIGetAIUsageStatsRequest) Execute() (*GetAIUsageStats200Response, *http.Response, error) { - return r.ApiService.GetAIUsageStatsExecute(r) +func (r SubscriptionAPIGetSubscriptionCloudUsageRequest) Execute() (*http.Response, error) { + return r.ApiService.GetSubscriptionCloudUsageExecute(r) } /* -GetAIUsageStats Get AI usage statistics +GetSubscriptionCloudUsage Cloud-app cost breakdown for the subscription page + +Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page's Cloud Apps card. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organisation The organisation ID - @return AIMonitoringAPIGetAIUsageStatsRequest + @param organisation + @return SubscriptionAPIGetSubscriptionCloudUsageRequest */ -func (a *AIMonitoringAPIService) GetAIUsageStats(ctx context.Context, organisation string) AIMonitoringAPIGetAIUsageStatsRequest { - return AIMonitoringAPIGetAIUsageStatsRequest{ +func (a *SubscriptionAPIService) GetSubscriptionCloudUsage(ctx context.Context, organisation string) SubscriptionAPIGetSubscriptionCloudUsageRequest { + return SubscriptionAPIGetSubscriptionCloudUsageRequest{ ApiService: a, ctx: ctx, organisation: organisation, @@ -72,21 +75,19 @@ func (a *AIMonitoringAPIService) GetAIUsageStats(ctx context.Context, organisati } // Execute executes the request -// @return GetAIUsageStats200Response -func (a *AIMonitoringAPIService) GetAIUsageStatsExecute(r AIMonitoringAPIGetAIUsageStatsRequest) (*GetAIUsageStats200Response, *http.Response, error) { +func (a *SubscriptionAPIService) GetSubscriptionCloudUsageExecute(r SubscriptionAPIGetSubscriptionCloudUsageRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GetAIUsageStats200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIMonitoringAPIService.GetAIUsageStats") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SubscriptionAPIService.GetSubscriptionCloudUsage") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/usage" + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/subscription/cloud-usage" localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) localVarHeaderParams := make(map[string]string) @@ -106,7 +107,7 @@ func (a *AIMonitoringAPIService) GetAIUsageStatsExecute(r AIMonitoringAPIGetAIUs } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -115,19 +116,19 @@ func (a *AIMonitoringAPIService) GetAIUsageStatsExecute(r AIMonitoringAPIGetAIUs } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -135,17 +136,8 @@ func (a *AIMonitoringAPIService) GetAIUsageStatsExecute(r AIMonitoringAPIGetAIUs body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } diff --git a/api_tokens.go b/api_tokens.go index f967c05c..10ba1836 100644 --- a/api_tokens.go +++ b/api_tokens.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_variables.go b/api_variables.go index 2c58b1c3..4636e1bc 100644 --- a/api_variables.go +++ b/api_variables.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_volumes.go b/api_volumes.go index 3d2e49e4..536dbb48 100644 --- a/api_volumes.go +++ b/api_volumes.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index fd7197ff..a5e7b447 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the QuantCDN API API v4.15.8 +// APIClient manages communication with the QuantCDN API API v4.19.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -49,6 +49,8 @@ type APIClient struct { // API Services + AIAPI AIAPI + AIAgentsAPI AIAgentsAPI AICustomToolsAPI AICustomToolsAPI @@ -63,10 +65,10 @@ type APIClient struct { AIModelsAPI AIModelsAPI - AIMonitoringAPI AIMonitoringAPI - AIOrchestrationsAPI AIOrchestrationsAPI + AISearchAPI AISearchAPI + AISessionsAPI AISessionsAPI AISkillsAPI AISkillsAPI @@ -113,12 +115,16 @@ type APIClient struct { PurgeAPI PurgeAPI + RestoreManagementAPI RestoreManagementAPI + RulesAPI RulesAPI SSHAccessAPI SSHAccessAPI ScalingPolicyAPI ScalingPolicyAPI + SubscriptionAPI SubscriptionAPI + TokensAPI TokensAPI VariablesAPI VariablesAPI @@ -142,6 +148,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services + c.AIAPI = (*AIAPIService)(&c.common) c.AIAgentsAPI = (*AIAgentsAPIService)(&c.common) c.AICustomToolsAPI = (*AICustomToolsAPIService)(&c.common) c.AIFileStorageAPI = (*AIFileStorageAPIService)(&c.common) @@ -149,8 +156,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AIGovernanceAPI = (*AIGovernanceAPIService)(&c.common) c.AIInferenceAPI = (*AIInferenceAPIService)(&c.common) c.AIModelsAPI = (*AIModelsAPIService)(&c.common) - c.AIMonitoringAPI = (*AIMonitoringAPIService)(&c.common) c.AIOrchestrationsAPI = (*AIOrchestrationsAPIService)(&c.common) + c.AISearchAPI = (*AISearchAPIService)(&c.common) c.AISessionsAPI = (*AISessionsAPIService)(&c.common) c.AISkillsAPI = (*AISkillsAPIService)(&c.common) c.AISlackBotsAPI = (*AISlackBotsAPIService)(&c.common) @@ -174,9 +181,11 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.OrganizationsAPI = (*OrganizationsAPIService)(&c.common) c.ProjectsAPI = (*ProjectsAPIService)(&c.common) c.PurgeAPI = (*PurgeAPIService)(&c.common) + c.RestoreManagementAPI = (*RestoreManagementAPIService)(&c.common) c.RulesAPI = (*RulesAPIService)(&c.common) c.SSHAccessAPI = (*SSHAccessAPIService)(&c.common) c.ScalingPolicyAPI = (*ScalingPolicyAPIService)(&c.common) + c.SubscriptionAPI = (*SubscriptionAPIService)(&c.common) c.TokensAPI = (*TokensAPIService)(&c.common) c.VariablesAPI = (*VariablesAPIService)(&c.common) c.VolumesAPI = (*VolumesAPIService)(&c.common) @@ -358,7 +367,7 @@ func parameterToJson(obj interface{}) (string, error) { // callAPI do the request. func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) + dump, err := redactedDumpRequest(request) if err != nil { return nil, err } diff --git a/client_redact_test.go b/client_redact_test.go new file mode 100644 index 00000000..3280c812 --- /dev/null +++ b/client_redact_test.go @@ -0,0 +1,40 @@ +package quantadmingo + +import ( + "net/http" + "strings" + "testing" +) + +// TestRedactedDumpRequest guards the debug-logging redaction (CodeQL +// go/clear-text-logging): credentials in the URL userinfo and the +// Authorization, Proxy-Authorization and Cookie headers must never appear in +// the bytes handed to the logger, while non-sensitive fields are preserved. +func TestRedactedDumpRequest(t *testing.T) { + req, err := http.NewRequest(http.MethodPost, "https://user:supersecretpw@api.example.com/v1/things?q=1", strings.NewReader(`{"k":"v"}`)) + if err != nil { + t.Fatalf("NewRequest: %v", err) + } + req.Header.Set("Authorization", "Bearer topsecrettoken") + req.Header.Set("Proxy-Authorization", "Basic cHJveHk6c2VjcmV0") + req.Header.Set("Cookie", "session=secretcookievalue") + + dump, err := redactedDumpRequest(req) + if err != nil { + t.Fatalf("redactedDumpRequest: %v", err) + } + out := string(dump) + + // No credential from URL userinfo, headers, or body may reach the log line. + for _, secret := range []string{"supersecretpw", "topsecrettoken", "cHJveHk6c2VjcmV0", "secretcookievalue", `{"k":"v"}`} { + if strings.Contains(out, secret) { + t.Errorf("redacted log leaked secret %q:\n%s", secret, out) + } + } + // The non-credential request line must survive so the log stays useful. + for _, want := range []string{http.MethodPost, "api.example.com", "/v1/things"} { + if !strings.Contains(out, want) { + t.Errorf("expected %q in redacted log, got:\n%s", want, out) + } + } +} diff --git a/configuration.go b/configuration.go index f1fd9b06..6a841721 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/AIAPI.md b/docs/AIAPI.md new file mode 100644 index 00000000..90d5e322 --- /dev/null +++ b/docs/AIAPI.md @@ -0,0 +1,87 @@ +# \AIAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAIUsageStats**](AIAPI.md#GetAIUsageStats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Organisation AI usage breakdown (subscription page parity) + + + +## GetAIUsageStats + +> GetAIUsageStats(ctx, organisation).Month(month).GroupBy(groupBy).Include(include).UserId(userId).TokenId(tokenId).Execute() + +Organisation AI usage breakdown (subscription page parity) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + month := "month_example" // string | YYYY-MM, defaults to current month (optional) + groupBy := "groupBy_example" // string | (optional) (default to "model") + include := "include_example" // string | Set to 'daily' to append a 30-day series (optional) + userId := "userId_example" // string | Scope the daily series to a user (optional) + tokenId := "tokenId_example" // string | Scope the daily series to a token (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AIAPI.GetAIUsageStats(context.Background(), organisation).Month(month).GroupBy(groupBy).Include(include).UserId(userId).TokenId(tokenId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIAPI.GetAIUsageStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAIUsageStatsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **month** | **string** | YYYY-MM, defaults to current month | + **groupBy** | **string** | | [default to "model"] + **include** | **string** | Set to 'daily' to append a 30-day series | + **userId** | **string** | Scope the daily series to a user | + **tokenId** | **string** | Scope the daily series to a token | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AICustomToolsAPI.md b/docs/AICustomToolsAPI.md index 4a1daae3..6777b67f 100644 --- a/docs/AICustomToolsAPI.md +++ b/docs/AICustomToolsAPI.md @@ -33,7 +33,7 @@ import ( func main() { organisation := "organisation_example" // string | The organisation ID - createCustomToolRequest := *openapiclient.NewCreateCustomToolRequest("check_inventory", "Check product inventory levels in warehouse", "EdgeFunctionCode_example", map[string]interface{}(123)) // CreateCustomToolRequest | + createCustomToolRequest := *openapiclient.NewCreateCustomToolRequest("check_inventory", "Check product inventory levels in warehouse", "EdgeFunctionCode_example", "InputSchema_example") // CreateCustomToolRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/AIMonitoringAPI.md b/docs/AIMonitoringAPI.md deleted file mode 100644 index cdbb58e6..00000000 --- a/docs/AIMonitoringAPI.md +++ /dev/null @@ -1,79 +0,0 @@ -# \AIMonitoringAPI - -All URIs are relative to *https://dashboard.quantcdn.io* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetAIUsageStats**](AIMonitoringAPI.md#GetAIUsageStats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics - - - -## GetAIUsageStats - -> GetAIUsageStats200Response GetAIUsageStats(ctx, organisation).Month(month).Execute() - -Get AI usage statistics - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/quantcdn/quant-admin-go" -) - -func main() { - organisation := "organisation_example" // string | The organisation ID - month := "2025-10" // string | Month to retrieve statistics for (YYYY-MM format) (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AIMonitoringAPI.GetAIUsageStats(context.Background(), organisation).Month(month).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AIMonitoringAPI.GetAIUsageStats``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAIUsageStats`: GetAIUsageStats200Response - fmt.Fprintf(os.Stdout, "Response from `AIMonitoringAPI.GetAIUsageStats`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organisation** | **string** | The organisation ID | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAIUsageStatsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **month** | **string** | Month to retrieve statistics for (YYYY-MM format) | - -### Return type - -[**GetAIUsageStats200Response**](GetAIUsageStats200Response.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/docs/AISearchAPI.md b/docs/AISearchAPI.md new file mode 100644 index 00000000..a4329bf5 --- /dev/null +++ b/docs/AISearchAPI.md @@ -0,0 +1,1238 @@ +# \AISearchAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AiSearchChat**](AISearchAPI.md#AiSearchChat) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/chat | RAG chat with AI Search content +[**AiSearchDeletePages**](AISearchAPI.md#AiSearchDeletePages) | **Delete** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | Delete pages by URLs or patterns +[**AiSearchDisable**](AISearchAPI.md#AiSearchDisable) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/disable | Disable AI Search for a project +[**AiSearchEnable**](AISearchAPI.md#AiSearchEnable) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/enable | Enable AI Search for a project +[**AiSearchGetCrawl**](AISearchAPI.md#AiSearchGetCrawl) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId} | Get AI Search ingest job status +[**AiSearchGetCrawlPages**](AISearchAPI.md#AiSearchGetCrawlPages) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages | Get per-page ingest results for a crawl job +[**AiSearchGetSettings**](AISearchAPI.md#AiSearchGetSettings) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings | Get AI Search public access and rate limit settings +[**AiSearchIngestPages**](AISearchAPI.md#AiSearchIngestPages) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | Ingest pages into the AI Search index +[**AiSearchListCrawls**](AISearchAPI.md#AiSearchListCrawls) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls | List AI Search ingest jobs +[**AiSearchListPages**](AISearchAPI.md#AiSearchListPages) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages | List indexed pages with cursor pagination +[**AiSearchPurgeIndex**](AISearchAPI.md#AiSearchPurgeIndex) | **Delete** /api/v3/organisations/{organisation}/projects/{project}/ai-search/index | Purge the entire AI Search index +[**AiSearchSearch**](AISearchAPI.md#AiSearchSearch) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/search | Semantic search across the AI Search index +[**AiSearchStatus**](AISearchAPI.md#AiSearchStatus) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search | Get AI Search status for a project +[**AiSearchTopQueries**](AISearchAPI.md#AiSearchTopQueries) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries | Get the most popular AI Search queries +[**AiSearchTriggerCrawl**](AISearchAPI.md#AiSearchTriggerCrawl) | **Post** /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls | Trigger a crawler run that ingests into AI Search +[**AiSearchUpdateSettings**](AISearchAPI.md#AiSearchUpdateSettings) | **Put** /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings | Update AI Search public access and rate limit settings +[**AiSearchUsage**](AISearchAPI.md#AiSearchUsage) | **Get** /api/v3/organisations/{organisation}/projects/{project}/ai-search/usage | Get usage statistics for the AI Search site + + + +## AiSearchChat + +> AiSearchChat(ctx, organisation, project).AiSearchChatRequest(aiSearchChatRequest).Execute() + +RAG chat with AI Search content + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchChatRequest := *openapiclient.NewAiSearchChatRequest("Message_example") // AiSearchChatRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchChat(context.Background(), organisation, project).AiSearchChatRequest(aiSearchChatRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchChat``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchChatRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchChatRequest** | [**AiSearchChatRequest**](AiSearchChatRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchDeletePages + +> AiSearchDeletePages(ctx, organisation, project).AiSearchDeletePagesRequest(aiSearchDeletePagesRequest).Execute() + +Delete pages by URLs or patterns + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchDeletePagesRequest := *openapiclient.NewAiSearchDeletePagesRequest() // AiSearchDeletePagesRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchDeletePages(context.Background(), organisation, project).AiSearchDeletePagesRequest(aiSearchDeletePagesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchDeletePages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchDeletePagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchDeletePagesRequest** | [**AiSearchDeletePagesRequest**](AiSearchDeletePagesRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchDisable + +> AiSearchDisable(ctx, organisation, project).Execute() + +Disable AI Search for a project + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchDisable(context.Background(), organisation, project).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchDisable``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchDisableRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchEnable + +> AiSearchEnable(ctx, organisation, project).AiSearchEnableRequest(aiSearchEnableRequest).Execute() + +Enable AI Search for a project + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchEnableRequest := *openapiclient.NewAiSearchEnableRequest() // AiSearchEnableRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchEnable(context.Background(), organisation, project).AiSearchEnableRequest(aiSearchEnableRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchEnable``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchEnableRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchEnableRequest** | [**AiSearchEnableRequest**](AiSearchEnableRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchGetCrawl + +> AiSearchGetCrawl(ctx, organisation, project, jobId).Execute() + +Get AI Search ingest job status + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + jobId := "jobId_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchGetCrawl(context.Background(), organisation, project, jobId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchGetCrawl``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | +**jobId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchGetCrawlRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchGetCrawlPages + +> AiSearchGetCrawlPages(ctx, organisation, project, jobId).Limit(limit).StatusCode(statusCode).ProcessingStatus(processingStatus).Execute() + +Get per-page ingest results for a crawl job + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + jobId := "jobId_example" // string | + limit := int32(56) // int32 | (optional) + statusCode := int32(56) // int32 | (optional) + processingStatus := "processingStatus_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchGetCrawlPages(context.Background(), organisation, project, jobId).Limit(limit).StatusCode(statusCode).ProcessingStatus(processingStatus).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchGetCrawlPages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | +**jobId** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchGetCrawlPagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **limit** | **int32** | | + **statusCode** | **int32** | | + **processingStatus** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchGetSettings + +> AiSearchGetSettings(ctx, organisation, project).Execute() + +Get AI Search public access and rate limit settings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchGetSettings(context.Background(), organisation, project).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchGetSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchGetSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchIngestPages + +> AiSearchIngestPages(ctx, organisation, project).AiSearchIngestPagesRequest(aiSearchIngestPagesRequest).Execute() + +Ingest pages into the AI Search index + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchIngestPagesRequest := *openapiclient.NewAiSearchIngestPagesRequest([]openapiclient.AiSearchIngestPagesRequestPagesInner{*openapiclient.NewAiSearchIngestPagesRequestPagesInner("Url_example", "Title_example", "Content_example")}) // AiSearchIngestPagesRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchIngestPages(context.Background(), organisation, project).AiSearchIngestPagesRequest(aiSearchIngestPagesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchIngestPages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchIngestPagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchIngestPagesRequest** | [**AiSearchIngestPagesRequest**](AiSearchIngestPagesRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchListCrawls + +> AiSearchListCrawls(ctx, organisation, project).Limit(limit).Execute() + +List AI Search ingest jobs + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + limit := int32(56) // int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchListCrawls(context.Background(), organisation, project).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchListCrawls``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchListCrawlsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **limit** | **int32** | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchListPages + +> AiSearchListPages(ctx, organisation, project).Limit(limit).Cursor(cursor).Search(search).Execute() + +List indexed pages with cursor pagination + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + limit := int32(56) // int32 | (optional) + cursor := "cursor_example" // string | (optional) + search := "search_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchListPages(context.Background(), organisation, project).Limit(limit).Cursor(cursor).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchListPages``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchListPagesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **limit** | **int32** | | + **cursor** | **string** | | + **search** | **string** | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchPurgeIndex + +> AiSearchPurgeIndex(ctx, organisation, project).Execute() + +Purge the entire AI Search index + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchPurgeIndex(context.Background(), organisation, project).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchPurgeIndex``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchPurgeIndexRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchSearch + +> AiSearchSearch(ctx, organisation, project).AiSearchSearchRequest(aiSearchSearchRequest).Execute() + +Semantic search across the AI Search index + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchSearchRequest := *openapiclient.NewAiSearchSearchRequest("Query_example") // AiSearchSearchRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchSearch(context.Background(), organisation, project).AiSearchSearchRequest(aiSearchSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchSearchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchSearchRequest** | [**AiSearchSearchRequest**](AiSearchSearchRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchStatus + +> AiSearchStatus(ctx, organisation, project).Execute() + +Get AI Search status for a project + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchStatus(context.Background(), organisation, project).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchTopQueries + +> AiSearchTopQueries(ctx, organisation, project).Range_(range_).Limit(limit).Execute() + +Get the most popular AI Search queries + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + range_ := "range__example" // string | (optional) (default to "30d") + limit := int32(56) // int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchTopQueries(context.Background(), organisation, project).Range_(range_).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchTopQueries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchTopQueriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **range_** | **string** | | [default to "30d"] + **limit** | **int32** | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchTriggerCrawl + +> AiSearchTriggerCrawl(ctx, organisation, project).AiSearchTriggerCrawlRequest(aiSearchTriggerCrawlRequest).Execute() + +Trigger a crawler run that ingests into AI Search + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchTriggerCrawlRequest := *openapiclient.NewAiSearchTriggerCrawlRequest("CrawlerUuid_example") // AiSearchTriggerCrawlRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchTriggerCrawl(context.Background(), organisation, project).AiSearchTriggerCrawlRequest(aiSearchTriggerCrawlRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchTriggerCrawl``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchTriggerCrawlRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchTriggerCrawlRequest** | [**AiSearchTriggerCrawlRequest**](AiSearchTriggerCrawlRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchUpdateSettings + +> AiSearchUpdateSettings(ctx, organisation, project).AiSearchUpdateSettingsRequest(aiSearchUpdateSettingsRequest).Execute() + +Update AI Search public access and rate limit settings + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + aiSearchUpdateSettingsRequest := *openapiclient.NewAiSearchUpdateSettingsRequest() // AiSearchUpdateSettingsRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchUpdateSettings(context.Background(), organisation, project).AiSearchUpdateSettingsRequest(aiSearchUpdateSettingsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchUpdateSettings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchUpdateSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **aiSearchUpdateSettingsRequest** | [**AiSearchUpdateSettingsRequest**](AiSearchUpdateSettingsRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AiSearchUsage + +> AiSearchUsage(ctx, organisation, project).Range_(range_).Execute() + +Get usage statistics for the AI Search site + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + project := "project_example" // string | + range_ := "range__example" // string | (optional) (default to "30d") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AISearchAPI.AiSearchUsage(context.Background(), organisation, project).Range_(range_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AISearchAPI.AiSearchUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | +**project** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAiSearchUsageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **range_** | **string** | | [default to "30d"] + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AiSearchChatRequest.md b/docs/AiSearchChatRequest.md new file mode 100644 index 00000000..d477367f --- /dev/null +++ b/docs/AiSearchChatRequest.md @@ -0,0 +1,129 @@ +# AiSearchChatRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | +**SessionId** | Pointer to **string** | | [optional] +**ContextUrl** | Pointer to **string** | | [optional] +**MaxContextChunks** | Pointer to **int32** | | [optional] + +## Methods + +### NewAiSearchChatRequest + +`func NewAiSearchChatRequest(message string, ) *AiSearchChatRequest` + +NewAiSearchChatRequest instantiates a new AiSearchChatRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchChatRequestWithDefaults + +`func NewAiSearchChatRequestWithDefaults() *AiSearchChatRequest` + +NewAiSearchChatRequestWithDefaults instantiates a new AiSearchChatRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *AiSearchChatRequest) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AiSearchChatRequest) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AiSearchChatRequest) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetSessionId + +`func (o *AiSearchChatRequest) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *AiSearchChatRequest) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *AiSearchChatRequest) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *AiSearchChatRequest) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetContextUrl + +`func (o *AiSearchChatRequest) GetContextUrl() string` + +GetContextUrl returns the ContextUrl field if non-nil, zero value otherwise. + +### GetContextUrlOk + +`func (o *AiSearchChatRequest) GetContextUrlOk() (*string, bool)` + +GetContextUrlOk returns a tuple with the ContextUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContextUrl + +`func (o *AiSearchChatRequest) SetContextUrl(v string)` + +SetContextUrl sets ContextUrl field to given value. + +### HasContextUrl + +`func (o *AiSearchChatRequest) HasContextUrl() bool` + +HasContextUrl returns a boolean if a field has been set. + +### GetMaxContextChunks + +`func (o *AiSearchChatRequest) GetMaxContextChunks() int32` + +GetMaxContextChunks returns the MaxContextChunks field if non-nil, zero value otherwise. + +### GetMaxContextChunksOk + +`func (o *AiSearchChatRequest) GetMaxContextChunksOk() (*int32, bool)` + +GetMaxContextChunksOk returns a tuple with the MaxContextChunks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxContextChunks + +`func (o *AiSearchChatRequest) SetMaxContextChunks(v int32)` + +SetMaxContextChunks sets MaxContextChunks field to given value. + +### HasMaxContextChunks + +`func (o *AiSearchChatRequest) HasMaxContextChunks() bool` + +HasMaxContextChunks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchDeletePagesRequest.md b/docs/AiSearchDeletePagesRequest.md new file mode 100644 index 00000000..7917d7be --- /dev/null +++ b/docs/AiSearchDeletePagesRequest.md @@ -0,0 +1,82 @@ +# AiSearchDeletePagesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Urls** | Pointer to **[]string** | | [optional] +**Patterns** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAiSearchDeletePagesRequest + +`func NewAiSearchDeletePagesRequest() *AiSearchDeletePagesRequest` + +NewAiSearchDeletePagesRequest instantiates a new AiSearchDeletePagesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchDeletePagesRequestWithDefaults + +`func NewAiSearchDeletePagesRequestWithDefaults() *AiSearchDeletePagesRequest` + +NewAiSearchDeletePagesRequestWithDefaults instantiates a new AiSearchDeletePagesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrls + +`func (o *AiSearchDeletePagesRequest) GetUrls() []string` + +GetUrls returns the Urls field if non-nil, zero value otherwise. + +### GetUrlsOk + +`func (o *AiSearchDeletePagesRequest) GetUrlsOk() (*[]string, bool)` + +GetUrlsOk returns a tuple with the Urls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrls + +`func (o *AiSearchDeletePagesRequest) SetUrls(v []string)` + +SetUrls sets Urls field to given value. + +### HasUrls + +`func (o *AiSearchDeletePagesRequest) HasUrls() bool` + +HasUrls returns a boolean if a field has been set. + +### GetPatterns + +`func (o *AiSearchDeletePagesRequest) GetPatterns() []string` + +GetPatterns returns the Patterns field if non-nil, zero value otherwise. + +### GetPatternsOk + +`func (o *AiSearchDeletePagesRequest) GetPatternsOk() (*[]string, bool)` + +GetPatternsOk returns a tuple with the Patterns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPatterns + +`func (o *AiSearchDeletePagesRequest) SetPatterns(v []string)` + +SetPatterns sets Patterns field to given value. + +### HasPatterns + +`func (o *AiSearchDeletePagesRequest) HasPatterns() bool` + +HasPatterns returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchEnableRequest.md b/docs/AiSearchEnableRequest.md new file mode 100644 index 00000000..03b656f2 --- /dev/null +++ b/docs/AiSearchEnableRequest.md @@ -0,0 +1,82 @@ +# AiSearchEnableRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BaseUrl** | Pointer to **string** | | [optional] +**CrawlerConfig** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewAiSearchEnableRequest + +`func NewAiSearchEnableRequest() *AiSearchEnableRequest` + +NewAiSearchEnableRequest instantiates a new AiSearchEnableRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchEnableRequestWithDefaults + +`func NewAiSearchEnableRequestWithDefaults() *AiSearchEnableRequest` + +NewAiSearchEnableRequestWithDefaults instantiates a new AiSearchEnableRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBaseUrl + +`func (o *AiSearchEnableRequest) GetBaseUrl() string` + +GetBaseUrl returns the BaseUrl field if non-nil, zero value otherwise. + +### GetBaseUrlOk + +`func (o *AiSearchEnableRequest) GetBaseUrlOk() (*string, bool)` + +GetBaseUrlOk returns a tuple with the BaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseUrl + +`func (o *AiSearchEnableRequest) SetBaseUrl(v string)` + +SetBaseUrl sets BaseUrl field to given value. + +### HasBaseUrl + +`func (o *AiSearchEnableRequest) HasBaseUrl() bool` + +HasBaseUrl returns a boolean if a field has been set. + +### GetCrawlerConfig + +`func (o *AiSearchEnableRequest) GetCrawlerConfig() map[string]interface{}` + +GetCrawlerConfig returns the CrawlerConfig field if non-nil, zero value otherwise. + +### GetCrawlerConfigOk + +`func (o *AiSearchEnableRequest) GetCrawlerConfigOk() (*map[string]interface{}, bool)` + +GetCrawlerConfigOk returns a tuple with the CrawlerConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrawlerConfig + +`func (o *AiSearchEnableRequest) SetCrawlerConfig(v map[string]interface{})` + +SetCrawlerConfig sets CrawlerConfig field to given value. + +### HasCrawlerConfig + +`func (o *AiSearchEnableRequest) HasCrawlerConfig() bool` + +HasCrawlerConfig returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchIngestPagesRequest.md b/docs/AiSearchIngestPagesRequest.md new file mode 100644 index 00000000..25447da0 --- /dev/null +++ b/docs/AiSearchIngestPagesRequest.md @@ -0,0 +1,77 @@ +# AiSearchIngestPagesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobId** | Pointer to **string** | | [optional] +**Pages** | [**[]AiSearchIngestPagesRequestPagesInner**](AiSearchIngestPagesRequestPagesInner.md) | | + +## Methods + +### NewAiSearchIngestPagesRequest + +`func NewAiSearchIngestPagesRequest(pages []AiSearchIngestPagesRequestPagesInner, ) *AiSearchIngestPagesRequest` + +NewAiSearchIngestPagesRequest instantiates a new AiSearchIngestPagesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchIngestPagesRequestWithDefaults + +`func NewAiSearchIngestPagesRequestWithDefaults() *AiSearchIngestPagesRequest` + +NewAiSearchIngestPagesRequestWithDefaults instantiates a new AiSearchIngestPagesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobId + +`func (o *AiSearchIngestPagesRequest) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *AiSearchIngestPagesRequest) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *AiSearchIngestPagesRequest) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *AiSearchIngestPagesRequest) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetPages + +`func (o *AiSearchIngestPagesRequest) GetPages() []AiSearchIngestPagesRequestPagesInner` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *AiSearchIngestPagesRequest) GetPagesOk() (*[]AiSearchIngestPagesRequestPagesInner, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *AiSearchIngestPagesRequest) SetPages(v []AiSearchIngestPagesRequestPagesInner)` + +SetPages sets Pages field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchIngestPagesRequestPagesInner.md b/docs/AiSearchIngestPagesRequestPagesInner.md new file mode 100644 index 00000000..dd9124ab --- /dev/null +++ b/docs/AiSearchIngestPagesRequestPagesInner.md @@ -0,0 +1,249 @@ +# AiSearchIngestPagesRequestPagesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | +**Title** | **string** | | +**Content** | **string** | | +**ContentType** | Pointer to **string** | | [optional] +**FetchedAt** | Pointer to **string** | | [optional] +**PreProcessed** | Pointer to **bool** | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Tags** | Pointer to **[]string** | | [optional] +**Topics** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAiSearchIngestPagesRequestPagesInner + +`func NewAiSearchIngestPagesRequestPagesInner(url string, title string, content string, ) *AiSearchIngestPagesRequestPagesInner` + +NewAiSearchIngestPagesRequestPagesInner instantiates a new AiSearchIngestPagesRequestPagesInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchIngestPagesRequestPagesInnerWithDefaults + +`func NewAiSearchIngestPagesRequestPagesInnerWithDefaults() *AiSearchIngestPagesRequestPagesInner` + +NewAiSearchIngestPagesRequestPagesInnerWithDefaults instantiates a new AiSearchIngestPagesRequestPagesInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *AiSearchIngestPagesRequestPagesInner) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *AiSearchIngestPagesRequestPagesInner) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetTitle + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *AiSearchIngestPagesRequestPagesInner) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetContent + +`func (o *AiSearchIngestPagesRequestPagesInner) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *AiSearchIngestPagesRequestPagesInner) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetContentType + +`func (o *AiSearchIngestPagesRequestPagesInner) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *AiSearchIngestPagesRequestPagesInner) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + +### HasContentType + +`func (o *AiSearchIngestPagesRequestPagesInner) HasContentType() bool` + +HasContentType returns a boolean if a field has been set. + +### GetFetchedAt + +`func (o *AiSearchIngestPagesRequestPagesInner) GetFetchedAt() string` + +GetFetchedAt returns the FetchedAt field if non-nil, zero value otherwise. + +### GetFetchedAtOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetFetchedAtOk() (*string, bool)` + +GetFetchedAtOk returns a tuple with the FetchedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFetchedAt + +`func (o *AiSearchIngestPagesRequestPagesInner) SetFetchedAt(v string)` + +SetFetchedAt sets FetchedAt field to given value. + +### HasFetchedAt + +`func (o *AiSearchIngestPagesRequestPagesInner) HasFetchedAt() bool` + +HasFetchedAt returns a boolean if a field has been set. + +### GetPreProcessed + +`func (o *AiSearchIngestPagesRequestPagesInner) GetPreProcessed() bool` + +GetPreProcessed returns the PreProcessed field if non-nil, zero value otherwise. + +### GetPreProcessedOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetPreProcessedOk() (*bool, bool)` + +GetPreProcessedOk returns a tuple with the PreProcessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreProcessed + +`func (o *AiSearchIngestPagesRequestPagesInner) SetPreProcessed(v bool)` + +SetPreProcessed sets PreProcessed field to given value. + +### HasPreProcessed + +`func (o *AiSearchIngestPagesRequestPagesInner) HasPreProcessed() bool` + +HasPreProcessed returns a boolean if a field has been set. + +### GetSummary + +`func (o *AiSearchIngestPagesRequestPagesInner) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *AiSearchIngestPagesRequestPagesInner) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *AiSearchIngestPagesRequestPagesInner) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetTags + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTags() []string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTagsOk() (*[]string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AiSearchIngestPagesRequestPagesInner) SetTags(v []string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AiSearchIngestPagesRequestPagesInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTopics + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTopics() []string` + +GetTopics returns the Topics field if non-nil, zero value otherwise. + +### GetTopicsOk + +`func (o *AiSearchIngestPagesRequestPagesInner) GetTopicsOk() (*[]string, bool)` + +GetTopicsOk returns a tuple with the Topics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopics + +`func (o *AiSearchIngestPagesRequestPagesInner) SetTopics(v []string)` + +SetTopics sets Topics field to given value. + +### HasTopics + +`func (o *AiSearchIngestPagesRequestPagesInner) HasTopics() bool` + +HasTopics returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchSearchRequest.md b/docs/AiSearchSearchRequest.md new file mode 100644 index 00000000..b83cd3d7 --- /dev/null +++ b/docs/AiSearchSearchRequest.md @@ -0,0 +1,103 @@ +# AiSearchSearchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | **string** | | +**Limit** | Pointer to **int32** | | [optional] +**MinScore** | Pointer to **float32** | | [optional] + +## Methods + +### NewAiSearchSearchRequest + +`func NewAiSearchSearchRequest(query string, ) *AiSearchSearchRequest` + +NewAiSearchSearchRequest instantiates a new AiSearchSearchRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchSearchRequestWithDefaults + +`func NewAiSearchSearchRequestWithDefaults() *AiSearchSearchRequest` + +NewAiSearchSearchRequestWithDefaults instantiates a new AiSearchSearchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuery + +`func (o *AiSearchSearchRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *AiSearchSearchRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *AiSearchSearchRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetLimit + +`func (o *AiSearchSearchRequest) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *AiSearchSearchRequest) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *AiSearchSearchRequest) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *AiSearchSearchRequest) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetMinScore + +`func (o *AiSearchSearchRequest) GetMinScore() float32` + +GetMinScore returns the MinScore field if non-nil, zero value otherwise. + +### GetMinScoreOk + +`func (o *AiSearchSearchRequest) GetMinScoreOk() (*float32, bool)` + +GetMinScoreOk returns a tuple with the MinScore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinScore + +`func (o *AiSearchSearchRequest) SetMinScore(v float32)` + +SetMinScore sets MinScore field to given value. + +### HasMinScore + +`func (o *AiSearchSearchRequest) HasMinScore() bool` + +HasMinScore returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchTriggerCrawlRequest.md b/docs/AiSearchTriggerCrawlRequest.md new file mode 100644 index 00000000..4362ac6e --- /dev/null +++ b/docs/AiSearchTriggerCrawlRequest.md @@ -0,0 +1,51 @@ +# AiSearchTriggerCrawlRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CrawlerUuid** | **string** | | + +## Methods + +### NewAiSearchTriggerCrawlRequest + +`func NewAiSearchTriggerCrawlRequest(crawlerUuid string, ) *AiSearchTriggerCrawlRequest` + +NewAiSearchTriggerCrawlRequest instantiates a new AiSearchTriggerCrawlRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchTriggerCrawlRequestWithDefaults + +`func NewAiSearchTriggerCrawlRequestWithDefaults() *AiSearchTriggerCrawlRequest` + +NewAiSearchTriggerCrawlRequestWithDefaults instantiates a new AiSearchTriggerCrawlRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCrawlerUuid + +`func (o *AiSearchTriggerCrawlRequest) GetCrawlerUuid() string` + +GetCrawlerUuid returns the CrawlerUuid field if non-nil, zero value otherwise. + +### GetCrawlerUuidOk + +`func (o *AiSearchTriggerCrawlRequest) GetCrawlerUuidOk() (*string, bool)` + +GetCrawlerUuidOk returns a tuple with the CrawlerUuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrawlerUuid + +`func (o *AiSearchTriggerCrawlRequest) SetCrawlerUuid(v string)` + +SetCrawlerUuid sets CrawlerUuid field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AiSearchUpdateSettingsRequest.md b/docs/AiSearchUpdateSettingsRequest.md new file mode 100644 index 00000000..e49b0612 --- /dev/null +++ b/docs/AiSearchUpdateSettingsRequest.md @@ -0,0 +1,82 @@ +# AiSearchUpdateSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicAccess** | Pointer to **map[string]interface{}** | | [optional] +**RateLimits** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewAiSearchUpdateSettingsRequest + +`func NewAiSearchUpdateSettingsRequest() *AiSearchUpdateSettingsRequest` + +NewAiSearchUpdateSettingsRequest instantiates a new AiSearchUpdateSettingsRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAiSearchUpdateSettingsRequestWithDefaults + +`func NewAiSearchUpdateSettingsRequestWithDefaults() *AiSearchUpdateSettingsRequest` + +NewAiSearchUpdateSettingsRequestWithDefaults instantiates a new AiSearchUpdateSettingsRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPublicAccess + +`func (o *AiSearchUpdateSettingsRequest) GetPublicAccess() map[string]interface{}` + +GetPublicAccess returns the PublicAccess field if non-nil, zero value otherwise. + +### GetPublicAccessOk + +`func (o *AiSearchUpdateSettingsRequest) GetPublicAccessOk() (*map[string]interface{}, bool)` + +GetPublicAccessOk returns a tuple with the PublicAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicAccess + +`func (o *AiSearchUpdateSettingsRequest) SetPublicAccess(v map[string]interface{})` + +SetPublicAccess sets PublicAccess field to given value. + +### HasPublicAccess + +`func (o *AiSearchUpdateSettingsRequest) HasPublicAccess() bool` + +HasPublicAccess returns a boolean if a field has been set. + +### GetRateLimits + +`func (o *AiSearchUpdateSettingsRequest) GetRateLimits() map[string]interface{}` + +GetRateLimits returns the RateLimits field if non-nil, zero value otherwise. + +### GetRateLimitsOk + +`func (o *AiSearchUpdateSettingsRequest) GetRateLimitsOk() (*map[string]interface{}, bool)` + +GetRateLimitsOk returns a tuple with the RateLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRateLimits + +`func (o *AiSearchUpdateSettingsRequest) SetRateLimits(v map[string]interface{})` + +SetRateLimits sets RateLimits field to given value. + +### HasRateLimits + +`func (o *AiSearchUpdateSettingsRequest) HasRateLimits() bool` + +HasRateLimits returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOriginProtectionConfig.md b/docs/ContainerOriginProtectionConfig.md index 5284870c..15b3b184 100644 --- a/docs/ContainerOriginProtectionConfig.md +++ b/docs/ContainerOriginProtectionConfig.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Enabled** | Pointer to **bool** | Whether origin protection is enabled. Defaults to true if this config object is provided. | [optional] [default to true] **IpAllow** | Pointer to **[]string** | List of IP addresses or CIDR ranges that can bypass origin protection for direct access (e.g., VPN IPs) | [optional] +**RedirectHost** | Pointer to **NullableString** | Optional bare host (e.g. www.example.com). When set, requests denied by origin protection are 302-redirected to https://<redirectHost> with path and query preserved, instead of receiving a 403. Allowed IPs and valid-header (CDN) traffic are unaffected. | [optional] ## Methods @@ -86,6 +87,41 @@ HasIpAllow returns a boolean if a field has been set. `func (o *ContainerOriginProtectionConfig) UnsetIpAllow()` UnsetIpAllow ensures that no value is present for IpAllow, not even an explicit nil +### GetRedirectHost + +`func (o *ContainerOriginProtectionConfig) GetRedirectHost() string` + +GetRedirectHost returns the RedirectHost field if non-nil, zero value otherwise. + +### GetRedirectHostOk + +`func (o *ContainerOriginProtectionConfig) GetRedirectHostOk() (*string, bool)` + +GetRedirectHostOk returns a tuple with the RedirectHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedirectHost + +`func (o *ContainerOriginProtectionConfig) SetRedirectHost(v string)` + +SetRedirectHost sets RedirectHost field to given value. + +### HasRedirectHost + +`func (o *ContainerOriginProtectionConfig) HasRedirectHost() bool` + +HasRedirectHost returns a boolean if a field has been set. + +### SetRedirectHostNil + +`func (o *ContainerOriginProtectionConfig) SetRedirectHostNil(b bool)` + + SetRedirectHostNil sets the value for RedirectHost to be an explicit nil + +### UnsetRedirectHost +`func (o *ContainerOriginProtectionConfig) UnsetRedirectHost()` + +UnsetRedirectHost ensures that no value is present for RedirectHost, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateAIAgentRequest.md b/docs/CreateAIAgentRequest.md index cb3348cf..43378b4d 100644 --- a/docs/CreateAIAgentRequest.md +++ b/docs/CreateAIAgentRequest.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **AssignedSkills** | Pointer to **[]string** | Skill IDs to assign to this agent | [optional] **CreatedBy** | Pointer to **string** | User identifier who created the agent | [optional] **LongContext** | Pointer to **bool** | Enable 1M context window support | [optional] -**GuardrailPreset** | Pointer to **string** | Guardrail preset name | [optional] +**GuardrailPreset** | Pointer to **NullableString** | Guardrail preset name | [optional] **FilterPolicies** | Pointer to **[]string** | Filter policy IDs to apply to this agent's inference requests | [optional] ## Methods @@ -343,6 +343,16 @@ SetGuardrailPreset sets GuardrailPreset field to given value. HasGuardrailPreset returns a boolean if a field has been set. +### SetGuardrailPresetNil + +`func (o *CreateAIAgentRequest) SetGuardrailPresetNil(b bool)` + + SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil + +### UnsetGuardrailPreset +`func (o *CreateAIAgentRequest) UnsetGuardrailPreset()` + +UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil ### GetFilterPolicies `func (o *CreateAIAgentRequest) GetFilterPolicies() []string` diff --git a/docs/CreateCustomToolRequest.md b/docs/CreateCustomToolRequest.md index 349706ee..1cf3c407 100644 --- a/docs/CreateCustomToolRequest.md +++ b/docs/CreateCustomToolRequest.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Name** | **string** | Unique tool name (alphanumeric and underscores only) | **Description** | **string** | Human-readable description of what the tool does | **EdgeFunctionCode** | **string** | JavaScript source code for the edge function | -**InputSchema** | **map[string]interface{}** | JSON Schema defining the tool's input parameters | +**InputSchema** | **string** | JSON-encoded JSON Schema object defining the tool's input parameters | **IsAsync** | Pointer to **bool** | Whether this tool runs asynchronously (>5 seconds) | [optional] [default to false] **TimeoutSeconds** | Pointer to **int32** | Tool execution timeout | [optional] [default to 30] -**OutputSchema** | Pointer to **map[string]interface{}** | JSON Schema defining the tool's output structure | [optional] +**OutputSchema** | Pointer to **NullableString** | JSON-encoded JSON Schema object defining the tool's output structure | [optional] **OutputSchemaDescription** | Pointer to **NullableString** | Human-readable description of the tool's output | [optional] **Category** | Pointer to **NullableString** | Category to group related tools | [optional] **ResponseMode** | Pointer to **NullableString** | How the tool response is handled: llm (passed back to model) or direct (returned to user) | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewCreateCustomToolRequest -`func NewCreateCustomToolRequest(name string, description string, edgeFunctionCode string, inputSchema map[string]interface{}, ) *CreateCustomToolRequest` +`func NewCreateCustomToolRequest(name string, description string, edgeFunctionCode string, inputSchema string, ) *CreateCustomToolRequest` NewCreateCustomToolRequest instantiates a new CreateCustomToolRequest object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetEdgeFunctionCode sets EdgeFunctionCode field to given value. ### GetInputSchema -`func (o *CreateCustomToolRequest) GetInputSchema() map[string]interface{}` +`func (o *CreateCustomToolRequest) GetInputSchema() string` GetInputSchema returns the InputSchema field if non-nil, zero value otherwise. ### GetInputSchemaOk -`func (o *CreateCustomToolRequest) GetInputSchemaOk() (*map[string]interface{}, bool)` +`func (o *CreateCustomToolRequest) GetInputSchemaOk() (*string, bool)` GetInputSchemaOk returns a tuple with the InputSchema field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInputSchema -`func (o *CreateCustomToolRequest) SetInputSchema(v map[string]interface{})` +`func (o *CreateCustomToolRequest) SetInputSchema(v string)` SetInputSchema sets InputSchema field to given value. @@ -166,20 +166,20 @@ HasTimeoutSeconds returns a boolean if a field has been set. ### GetOutputSchema -`func (o *CreateCustomToolRequest) GetOutputSchema() map[string]interface{}` +`func (o *CreateCustomToolRequest) GetOutputSchema() string` GetOutputSchema returns the OutputSchema field if non-nil, zero value otherwise. ### GetOutputSchemaOk -`func (o *CreateCustomToolRequest) GetOutputSchemaOk() (*map[string]interface{}, bool)` +`func (o *CreateCustomToolRequest) GetOutputSchemaOk() (*string, bool)` GetOutputSchemaOk returns a tuple with the OutputSchema field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutputSchema -`func (o *CreateCustomToolRequest) SetOutputSchema(v map[string]interface{})` +`func (o *CreateCustomToolRequest) SetOutputSchema(v string)` SetOutputSchema sets OutputSchema field to given value. diff --git a/docs/GetAIOrchestrationStatus200Response.md b/docs/GetAIOrchestrationStatus200Response.md index 65911dd5..35a0ab9e 100644 --- a/docs/GetAIOrchestrationStatus200Response.md +++ b/docs/GetAIOrchestrationStatus200Response.md @@ -8,11 +8,12 @@ Name | Type | Description | Notes **Status** | **string** | Current orchestration status | **ToolCount** | **int32** | Total number of async tools in this orchestration | **CompletedTools** | Pointer to **int32** | Number of tools that have completed | [optional] -**SynthesizedResponse** | Pointer to **string** | AI-synthesized response combining all tool results (only present when status=complete) | [optional] +**Result** | Pointer to **string** | AI-synthesized response combining all tool results (only present when status=complete) | [optional] **Tools** | Pointer to [**[]GetAIOrchestrationStatus200ResponseToolsInner**](GetAIOrchestrationStatus200ResponseToolsInner.md) | Status of individual tool executions | [optional] **Error** | Pointer to **string** | Error message (only present when status=failed) | [optional] **CreatedAt** | **time.Time** | When orchestration was created | **CompletedAt** | Pointer to **time.Time** | When orchestration completed (if status in complete or failed) | [optional] +**Duration** | Pointer to **int32** | Seconds from creation to completion (present only once completed) | [optional] ## Methods @@ -118,30 +119,30 @@ SetCompletedTools sets CompletedTools field to given value. HasCompletedTools returns a boolean if a field has been set. -### GetSynthesizedResponse +### GetResult -`func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponse() string` +`func (o *GetAIOrchestrationStatus200Response) GetResult() string` -GetSynthesizedResponse returns the SynthesizedResponse field if non-nil, zero value otherwise. +GetResult returns the Result field if non-nil, zero value otherwise. -### GetSynthesizedResponseOk +### GetResultOk -`func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponseOk() (*string, bool)` +`func (o *GetAIOrchestrationStatus200Response) GetResultOk() (*string, bool)` -GetSynthesizedResponseOk returns a tuple with the SynthesizedResponse field if it's non-nil, zero value otherwise +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSynthesizedResponse +### SetResult -`func (o *GetAIOrchestrationStatus200Response) SetSynthesizedResponse(v string)` +`func (o *GetAIOrchestrationStatus200Response) SetResult(v string)` -SetSynthesizedResponse sets SynthesizedResponse field to given value. +SetResult sets Result field to given value. -### HasSynthesizedResponse +### HasResult -`func (o *GetAIOrchestrationStatus200Response) HasSynthesizedResponse() bool` +`func (o *GetAIOrchestrationStatus200Response) HasResult() bool` -HasSynthesizedResponse returns a boolean if a field has been set. +HasResult returns a boolean if a field has been set. ### GetTools @@ -238,6 +239,31 @@ SetCompletedAt sets CompletedAt field to given value. HasCompletedAt returns a boolean if a field has been set. +### GetDuration + +`func (o *GetAIOrchestrationStatus200Response) GetDuration() int32` + +GetDuration returns the Duration field if non-nil, zero value otherwise. + +### GetDurationOk + +`func (o *GetAIOrchestrationStatus200Response) GetDurationOk() (*int32, bool)` + +GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuration + +`func (o *GetAIOrchestrationStatus200Response) SetDuration(v int32)` + +SetDuration sets Duration field to given value. + +### HasDuration + +`func (o *GetAIOrchestrationStatus200Response) HasDuration() bool` + +HasDuration returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAIUsageStats200Response.md b/docs/GetAIUsageStats200Response.md deleted file mode 100644 index 5a149e6e..00000000 --- a/docs/GetAIUsageStats200Response.md +++ /dev/null @@ -1,108 +0,0 @@ -# GetAIUsageStats200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TotalRequests** | Pointer to **int32** | Total number of API requests | [optional] -**TotalTokens** | Pointer to **int32** | Total tokens consumed across all requests | [optional] -**ByModel** | Pointer to [**map[string]GetAIUsageStats200ResponseByModelValue**](GetAIUsageStats200ResponseByModelValue.md) | Usage breakdown by model ID | [optional] - -## Methods - -### NewGetAIUsageStats200Response - -`func NewGetAIUsageStats200Response() *GetAIUsageStats200Response` - -NewGetAIUsageStats200Response instantiates a new GetAIUsageStats200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAIUsageStats200ResponseWithDefaults - -`func NewGetAIUsageStats200ResponseWithDefaults() *GetAIUsageStats200Response` - -NewGetAIUsageStats200ResponseWithDefaults instantiates a new GetAIUsageStats200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTotalRequests - -`func (o *GetAIUsageStats200Response) GetTotalRequests() int32` - -GetTotalRequests returns the TotalRequests field if non-nil, zero value otherwise. - -### GetTotalRequestsOk - -`func (o *GetAIUsageStats200Response) GetTotalRequestsOk() (*int32, bool)` - -GetTotalRequestsOk returns a tuple with the TotalRequests field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalRequests - -`func (o *GetAIUsageStats200Response) SetTotalRequests(v int32)` - -SetTotalRequests sets TotalRequests field to given value. - -### HasTotalRequests - -`func (o *GetAIUsageStats200Response) HasTotalRequests() bool` - -HasTotalRequests returns a boolean if a field has been set. - -### GetTotalTokens - -`func (o *GetAIUsageStats200Response) GetTotalTokens() int32` - -GetTotalTokens returns the TotalTokens field if non-nil, zero value otherwise. - -### GetTotalTokensOk - -`func (o *GetAIUsageStats200Response) GetTotalTokensOk() (*int32, bool)` - -GetTotalTokensOk returns a tuple with the TotalTokens field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalTokens - -`func (o *GetAIUsageStats200Response) SetTotalTokens(v int32)` - -SetTotalTokens sets TotalTokens field to given value. - -### HasTotalTokens - -`func (o *GetAIUsageStats200Response) HasTotalTokens() bool` - -HasTotalTokens returns a boolean if a field has been set. - -### GetByModel - -`func (o *GetAIUsageStats200Response) GetByModel() map[string]GetAIUsageStats200ResponseByModelValue` - -GetByModel returns the ByModel field if non-nil, zero value otherwise. - -### GetByModelOk - -`func (o *GetAIUsageStats200Response) GetByModelOk() (*map[string]GetAIUsageStats200ResponseByModelValue, bool)` - -GetByModelOk returns a tuple with the ByModel field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetByModel - -`func (o *GetAIUsageStats200Response) SetByModel(v map[string]GetAIUsageStats200ResponseByModelValue)` - -SetByModel sets ByModel field to given value. - -### HasByModel - -`func (o *GetAIUsageStats200Response) HasByModel() bool` - -HasByModel returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetAIUsageStats200ResponseByModelValue.md b/docs/GetAIUsageStats200ResponseByModelValue.md deleted file mode 100644 index 762939bd..00000000 --- a/docs/GetAIUsageStats200ResponseByModelValue.md +++ /dev/null @@ -1,82 +0,0 @@ -# GetAIUsageStats200ResponseByModelValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Requests** | Pointer to **int32** | Number of requests for this model | [optional] -**Tokens** | Pointer to **int32** | Total tokens for this model | [optional] - -## Methods - -### NewGetAIUsageStats200ResponseByModelValue - -`func NewGetAIUsageStats200ResponseByModelValue() *GetAIUsageStats200ResponseByModelValue` - -NewGetAIUsageStats200ResponseByModelValue instantiates a new GetAIUsageStats200ResponseByModelValue object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAIUsageStats200ResponseByModelValueWithDefaults - -`func NewGetAIUsageStats200ResponseByModelValueWithDefaults() *GetAIUsageStats200ResponseByModelValue` - -NewGetAIUsageStats200ResponseByModelValueWithDefaults instantiates a new GetAIUsageStats200ResponseByModelValue object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRequests - -`func (o *GetAIUsageStats200ResponseByModelValue) GetRequests() int32` - -GetRequests returns the Requests field if non-nil, zero value otherwise. - -### GetRequestsOk - -`func (o *GetAIUsageStats200ResponseByModelValue) GetRequestsOk() (*int32, bool)` - -GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequests - -`func (o *GetAIUsageStats200ResponseByModelValue) SetRequests(v int32)` - -SetRequests sets Requests field to given value. - -### HasRequests - -`func (o *GetAIUsageStats200ResponseByModelValue) HasRequests() bool` - -HasRequests returns a boolean if a field has been set. - -### GetTokens - -`func (o *GetAIUsageStats200ResponseByModelValue) GetTokens() int32` - -GetTokens returns the Tokens field if non-nil, zero value otherwise. - -### GetTokensOk - -`func (o *GetAIUsageStats200ResponseByModelValue) GetTokensOk() (*int32, bool)` - -GetTokensOk returns a tuple with the Tokens field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTokens - -`func (o *GetAIUsageStats200ResponseByModelValue) SetTokens(v int32)` - -SetTokens sets Tokens field to given value. - -### HasTokens - -`func (o *GetAIUsageStats200ResponseByModelValue) HasTokens() bool` - -HasTokens returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetCustomTool200ResponseTool.md b/docs/GetCustomTool200ResponseTool.md index 8310da87..38c37db1 100644 --- a/docs/GetCustomTool200ResponseTool.md +++ b/docs/GetCustomTool200ResponseTool.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **EdgeFunctionUrl** | Pointer to **string** | | [optional] **EdgeFunctionCode** | Pointer to **string** | The deployed edge function source code | [optional] **IsAsync** | Pointer to **bool** | | [optional] -**InputSchema** | Pointer to **map[string]interface{}** | | [optional] -**OutputSchema** | Pointer to **map[string]interface{}** | | [optional] +**InputSchema** | Pointer to **string** | | [optional] +**OutputSchema** | Pointer to **NullableString** | | [optional] **OutputSchemaDescription** | Pointer to **NullableString** | | [optional] **Category** | Pointer to **NullableString** | | [optional] **ResponseMode** | Pointer to **NullableString** | | [optional] @@ -162,20 +162,20 @@ HasIsAsync returns a boolean if a field has been set. ### GetInputSchema -`func (o *GetCustomTool200ResponseTool) GetInputSchema() map[string]interface{}` +`func (o *GetCustomTool200ResponseTool) GetInputSchema() string` GetInputSchema returns the InputSchema field if non-nil, zero value otherwise. ### GetInputSchemaOk -`func (o *GetCustomTool200ResponseTool) GetInputSchemaOk() (*map[string]interface{}, bool)` +`func (o *GetCustomTool200ResponseTool) GetInputSchemaOk() (*string, bool)` GetInputSchemaOk returns a tuple with the InputSchema field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInputSchema -`func (o *GetCustomTool200ResponseTool) SetInputSchema(v map[string]interface{})` +`func (o *GetCustomTool200ResponseTool) SetInputSchema(v string)` SetInputSchema sets InputSchema field to given value. @@ -187,20 +187,20 @@ HasInputSchema returns a boolean if a field has been set. ### GetOutputSchema -`func (o *GetCustomTool200ResponseTool) GetOutputSchema() map[string]interface{}` +`func (o *GetCustomTool200ResponseTool) GetOutputSchema() string` GetOutputSchema returns the OutputSchema field if non-nil, zero value otherwise. ### GetOutputSchemaOk -`func (o *GetCustomTool200ResponseTool) GetOutputSchemaOk() (*map[string]interface{}, bool)` +`func (o *GetCustomTool200ResponseTool) GetOutputSchemaOk() (*string, bool)` GetOutputSchemaOk returns a tuple with the OutputSchema field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutputSchema -`func (o *GetCustomTool200ResponseTool) SetOutputSchema(v map[string]interface{})` +`func (o *GetCustomTool200ResponseTool) SetOutputSchema(v string)` SetOutputSchema sets OutputSchema field to given value. diff --git a/docs/GetGovernanceConfig200ResponseSpendLimits.md b/docs/GetGovernanceConfig200ResponseSpendLimits.md index b9291bc7..7cdde45a 100644 --- a/docs/GetGovernanceConfig200ResponseSpendLimits.md +++ b/docs/GetGovernanceConfig200ResponseSpendLimits.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **PerUserMonthlyBudgetCents** | Pointer to **NullableInt32** | | [optional] **PerUserDailyBudgetCents** | Pointer to **NullableInt32** | | [optional] **WarningThresholdPercent** | Pointer to **NullableInt32** | | [optional] +**InterfaceLimits** | Pointer to [**map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue**](GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md) | Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels. | [optional] +**UserOverrides** | Pointer to [**map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue**](GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md) | Per-user budget overrides keyed by userId (numeric portal id, slack-<id>, or system:code-agent). Replaces the flat per-user budget for that user; unlimited=true exempts them. | [optional] ## Methods @@ -204,6 +206,56 @@ HasWarningThresholdPercent returns a boolean if a field has been set. `func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetWarningThresholdPercent()` UnsetWarningThresholdPercent ensures that no value is present for WarningThresholdPercent, not even an explicit nil +### GetInterfaceLimits + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetInterfaceLimits() map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue` + +GetInterfaceLimits returns the InterfaceLimits field if non-nil, zero value otherwise. + +### GetInterfaceLimitsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetInterfaceLimitsOk() (*map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue, bool)` + +GetInterfaceLimitsOk returns a tuple with the InterfaceLimits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceLimits + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetInterfaceLimits(v map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue)` + +SetInterfaceLimits sets InterfaceLimits field to given value. + +### HasInterfaceLimits + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasInterfaceLimits() bool` + +HasInterfaceLimits returns a boolean if a field has been set. + +### GetUserOverrides + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetUserOverrides() map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue` + +GetUserOverrides returns the UserOverrides field if non-nil, zero value otherwise. + +### GetUserOverridesOk + +`func (o *GetGovernanceConfig200ResponseSpendLimits) GetUserOverridesOk() (*map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue, bool)` + +GetUserOverridesOk returns a tuple with the UserOverrides field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserOverrides + +`func (o *GetGovernanceConfig200ResponseSpendLimits) SetUserOverrides(v map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue)` + +SetUserOverrides sets UserOverrides field to given value. + +### HasUserOverrides + +`func (o *GetGovernanceConfig200ResponseSpendLimits) HasUserOverrides() bool` + +HasUserOverrides returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md b/docs/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md new file mode 100644 index 00000000..f48d2605 --- /dev/null +++ b/docs/GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue.md @@ -0,0 +1,102 @@ +# GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DailyCents** | Pointer to **NullableInt32** | | [optional] +**MonthlyCents** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue + +`func NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue() *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue` + +NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue instantiates a new GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValueWithDefaults + +`func NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValueWithDefaults() *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue` + +NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValueWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetDailyCents() int32` + +GetDailyCents returns the DailyCents field if non-nil, zero value otherwise. + +### GetDailyCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetDailyCentsOk() (*int32, bool)` + +GetDailyCentsOk returns a tuple with the DailyCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetDailyCents(v int32)` + +SetDailyCents sets DailyCents field to given value. + +### HasDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) HasDailyCents() bool` + +HasDailyCents returns a boolean if a field has been set. + +### SetDailyCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetDailyCentsNil(b bool)` + + SetDailyCentsNil sets the value for DailyCents to be an explicit nil + +### UnsetDailyCents +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnsetDailyCents()` + +UnsetDailyCents ensures that no value is present for DailyCents, not even an explicit nil +### GetMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetMonthlyCents() int32` + +GetMonthlyCents returns the MonthlyCents field if non-nil, zero value otherwise. + +### GetMonthlyCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetMonthlyCentsOk() (*int32, bool)` + +GetMonthlyCentsOk returns a tuple with the MonthlyCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetMonthlyCents(v int32)` + +SetMonthlyCents sets MonthlyCents field to given value. + +### HasMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) HasMonthlyCents() bool` + +HasMonthlyCents returns a boolean if a field has been set. + +### SetMonthlyCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetMonthlyCentsNil(b bool)` + + SetMonthlyCentsNil sets the value for MonthlyCents to be an explicit nil + +### UnsetMonthlyCents +`func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnsetMonthlyCents()` + +UnsetMonthlyCents ensures that no value is present for MonthlyCents, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md b/docs/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md new file mode 100644 index 00000000..37c56056 --- /dev/null +++ b/docs/GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue.md @@ -0,0 +1,138 @@ +# GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DailyCents** | Pointer to **NullableInt32** | | [optional] +**MonthlyCents** | Pointer to **NullableInt32** | | [optional] +**Unlimited** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue + +`func NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue() *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue` + +NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue instantiates a new GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValueWithDefaults + +`func NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValueWithDefaults() *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue` + +NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValueWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetDailyCents() int32` + +GetDailyCents returns the DailyCents field if non-nil, zero value otherwise. + +### GetDailyCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetDailyCentsOk() (*int32, bool)` + +GetDailyCentsOk returns a tuple with the DailyCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetDailyCents(v int32)` + +SetDailyCents sets DailyCents field to given value. + +### HasDailyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasDailyCents() bool` + +HasDailyCents returns a boolean if a field has been set. + +### SetDailyCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetDailyCentsNil(b bool)` + + SetDailyCentsNil sets the value for DailyCents to be an explicit nil + +### UnsetDailyCents +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetDailyCents()` + +UnsetDailyCents ensures that no value is present for DailyCents, not even an explicit nil +### GetMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetMonthlyCents() int32` + +GetMonthlyCents returns the MonthlyCents field if non-nil, zero value otherwise. + +### GetMonthlyCentsOk + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetMonthlyCentsOk() (*int32, bool)` + +GetMonthlyCentsOk returns a tuple with the MonthlyCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetMonthlyCents(v int32)` + +SetMonthlyCents sets MonthlyCents field to given value. + +### HasMonthlyCents + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasMonthlyCents() bool` + +HasMonthlyCents returns a boolean if a field has been set. + +### SetMonthlyCentsNil + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetMonthlyCentsNil(b bool)` + + SetMonthlyCentsNil sets the value for MonthlyCents to be an explicit nil + +### UnsetMonthlyCents +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetMonthlyCents()` + +UnsetMonthlyCents ensures that no value is present for MonthlyCents, not even an explicit nil +### GetUnlimited + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetUnlimited() bool` + +GetUnlimited returns the Unlimited field if non-nil, zero value otherwise. + +### GetUnlimitedOk + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetUnlimitedOk() (*bool, bool)` + +GetUnlimitedOk returns a tuple with the Unlimited field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnlimited + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetUnlimited(v bool)` + +SetUnlimited sets Unlimited field to given value. + +### HasUnlimited + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasUnlimited() bool` + +HasUnlimited returns a boolean if a field has been set. + +### SetUnlimitedNil + +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetUnlimitedNil(b bool)` + + SetUnlimitedNil sets the value for Unlimited to be an explicit nil + +### UnsetUnlimited +`func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetUnlimited()` + +UnsetUnlimited ensures that no value is present for Unlimited, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMyUsage200ResponseQuota.md b/docs/GetMyUsage200ResponseQuota.md index 26630893..ceefc4d5 100644 --- a/docs/GetMyUsage200ResponseQuota.md +++ b/docs/GetMyUsage200ResponseQuota.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MonthlyLimit** | Pointer to **NullableInt32** | Per-user monthly budget in US cents | [optional] -**DailyLimit** | Pointer to **NullableInt32** | Per-user daily budget in US cents | [optional] +**MonthlyLimit** | Pointer to [**NullableGetMyUsage200ResponseQuotaMonthlyLimit**](GetMyUsage200ResponseQuotaMonthlyLimit.md) | | [optional] +**DailyLimit** | Pointer to [**NullableGetMyUsage200ResponseQuotaDailyLimit**](GetMyUsage200ResponseQuotaDailyLimit.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetMonthlyLimit -`func (o *GetMyUsage200ResponseQuota) GetMonthlyLimit() int32` +`func (o *GetMyUsage200ResponseQuota) GetMonthlyLimit() GetMyUsage200ResponseQuotaMonthlyLimit` GetMonthlyLimit returns the MonthlyLimit field if non-nil, zero value otherwise. ### GetMonthlyLimitOk -`func (o *GetMyUsage200ResponseQuota) GetMonthlyLimitOk() (*int32, bool)` +`func (o *GetMyUsage200ResponseQuota) GetMonthlyLimitOk() (*GetMyUsage200ResponseQuotaMonthlyLimit, bool)` GetMonthlyLimitOk returns a tuple with the MonthlyLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMonthlyLimit -`func (o *GetMyUsage200ResponseQuota) SetMonthlyLimit(v int32)` +`func (o *GetMyUsage200ResponseQuota) SetMonthlyLimit(v GetMyUsage200ResponseQuotaMonthlyLimit)` SetMonthlyLimit sets MonthlyLimit field to given value. @@ -63,20 +63,20 @@ HasMonthlyLimit returns a boolean if a field has been set. UnsetMonthlyLimit ensures that no value is present for MonthlyLimit, not even an explicit nil ### GetDailyLimit -`func (o *GetMyUsage200ResponseQuota) GetDailyLimit() int32` +`func (o *GetMyUsage200ResponseQuota) GetDailyLimit() GetMyUsage200ResponseQuotaDailyLimit` GetDailyLimit returns the DailyLimit field if non-nil, zero value otherwise. ### GetDailyLimitOk -`func (o *GetMyUsage200ResponseQuota) GetDailyLimitOk() (*int32, bool)` +`func (o *GetMyUsage200ResponseQuota) GetDailyLimitOk() (*GetMyUsage200ResponseQuotaDailyLimit, bool)` GetDailyLimitOk returns a tuple with the DailyLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDailyLimit -`func (o *GetMyUsage200ResponseQuota) SetDailyLimit(v int32)` +`func (o *GetMyUsage200ResponseQuota) SetDailyLimit(v GetMyUsage200ResponseQuotaDailyLimit)` SetDailyLimit sets DailyLimit field to given value. diff --git a/docs/GetMyUsage200ResponseQuotaDailyLimit.md b/docs/GetMyUsage200ResponseQuotaDailyLimit.md new file mode 100644 index 00000000..7a5f230a --- /dev/null +++ b/docs/GetMyUsage200ResponseQuotaDailyLimit.md @@ -0,0 +1,134 @@ +# GetMyUsage200ResponseQuotaDailyLimit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LimitCents** | Pointer to **int32** | The configured daily cap in US cents | [optional] +**UsedPercent** | Pointer to **float32** | Percentage of the cap consumed today (0–100+) | [optional] +**RemainingCents** | Pointer to **int32** | Cents remaining before the cap is hit; can be negative if overspent | [optional] +**ResetsAt** | Pointer to **time.Time** | UTC timestamp when the daily counter resets (always next UTC midnight) | [optional] + +## Methods + +### NewGetMyUsage200ResponseQuotaDailyLimit + +`func NewGetMyUsage200ResponseQuotaDailyLimit() *GetMyUsage200ResponseQuotaDailyLimit` + +NewGetMyUsage200ResponseQuotaDailyLimit instantiates a new GetMyUsage200ResponseQuotaDailyLimit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetMyUsage200ResponseQuotaDailyLimitWithDefaults + +`func NewGetMyUsage200ResponseQuotaDailyLimitWithDefaults() *GetMyUsage200ResponseQuotaDailyLimit` + +NewGetMyUsage200ResponseQuotaDailyLimitWithDefaults instantiates a new GetMyUsage200ResponseQuotaDailyLimit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLimitCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetLimitCents() int32` + +GetLimitCents returns the LimitCents field if non-nil, zero value otherwise. + +### GetLimitCentsOk + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetLimitCentsOk() (*int32, bool)` + +GetLimitCentsOk returns a tuple with the LimitCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimitCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) SetLimitCents(v int32)` + +SetLimitCents sets LimitCents field to given value. + +### HasLimitCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) HasLimitCents() bool` + +HasLimitCents returns a boolean if a field has been set. + +### GetUsedPercent + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetUsedPercent() float32` + +GetUsedPercent returns the UsedPercent field if non-nil, zero value otherwise. + +### GetUsedPercentOk + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetUsedPercentOk() (*float32, bool)` + +GetUsedPercentOk returns a tuple with the UsedPercent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedPercent + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) SetUsedPercent(v float32)` + +SetUsedPercent sets UsedPercent field to given value. + +### HasUsedPercent + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) HasUsedPercent() bool` + +HasUsedPercent returns a boolean if a field has been set. + +### GetRemainingCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetRemainingCents() int32` + +GetRemainingCents returns the RemainingCents field if non-nil, zero value otherwise. + +### GetRemainingCentsOk + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetRemainingCentsOk() (*int32, bool)` + +GetRemainingCentsOk returns a tuple with the RemainingCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) SetRemainingCents(v int32)` + +SetRemainingCents sets RemainingCents field to given value. + +### HasRemainingCents + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) HasRemainingCents() bool` + +HasRemainingCents returns a boolean if a field has been set. + +### GetResetsAt + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetResetsAt() time.Time` + +GetResetsAt returns the ResetsAt field if non-nil, zero value otherwise. + +### GetResetsAtOk + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) GetResetsAtOk() (*time.Time, bool)` + +GetResetsAtOk returns a tuple with the ResetsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetsAt + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) SetResetsAt(v time.Time)` + +SetResetsAt sets ResetsAt field to given value. + +### HasResetsAt + +`func (o *GetMyUsage200ResponseQuotaDailyLimit) HasResetsAt() bool` + +HasResetsAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetMyUsage200ResponseQuotaMonthlyLimit.md b/docs/GetMyUsage200ResponseQuotaMonthlyLimit.md new file mode 100644 index 00000000..37a1f2f3 --- /dev/null +++ b/docs/GetMyUsage200ResponseQuotaMonthlyLimit.md @@ -0,0 +1,108 @@ +# GetMyUsage200ResponseQuotaMonthlyLimit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LimitCents** | Pointer to **int32** | The configured monthly cap in US cents | [optional] +**UsedPercent** | Pointer to **float32** | Percentage of the cap consumed this month (0–100+) | [optional] +**RemainingCents** | Pointer to **int32** | Cents remaining before the cap is hit; can be negative if overspent | [optional] + +## Methods + +### NewGetMyUsage200ResponseQuotaMonthlyLimit + +`func NewGetMyUsage200ResponseQuotaMonthlyLimit() *GetMyUsage200ResponseQuotaMonthlyLimit` + +NewGetMyUsage200ResponseQuotaMonthlyLimit instantiates a new GetMyUsage200ResponseQuotaMonthlyLimit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetMyUsage200ResponseQuotaMonthlyLimitWithDefaults + +`func NewGetMyUsage200ResponseQuotaMonthlyLimitWithDefaults() *GetMyUsage200ResponseQuotaMonthlyLimit` + +NewGetMyUsage200ResponseQuotaMonthlyLimitWithDefaults instantiates a new GetMyUsage200ResponseQuotaMonthlyLimit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLimitCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetLimitCents() int32` + +GetLimitCents returns the LimitCents field if non-nil, zero value otherwise. + +### GetLimitCentsOk + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetLimitCentsOk() (*int32, bool)` + +GetLimitCentsOk returns a tuple with the LimitCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimitCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetLimitCents(v int32)` + +SetLimitCents sets LimitCents field to given value. + +### HasLimitCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasLimitCents() bool` + +HasLimitCents returns a boolean if a field has been set. + +### GetUsedPercent + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetUsedPercent() float32` + +GetUsedPercent returns the UsedPercent field if non-nil, zero value otherwise. + +### GetUsedPercentOk + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetUsedPercentOk() (*float32, bool)` + +GetUsedPercentOk returns a tuple with the UsedPercent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedPercent + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetUsedPercent(v float32)` + +SetUsedPercent sets UsedPercent field to given value. + +### HasUsedPercent + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasUsedPercent() bool` + +HasUsedPercent returns a boolean if a field has been set. + +### GetRemainingCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetRemainingCents() int32` + +GetRemainingCents returns the RemainingCents field if non-nil, zero value otherwise. + +### GetRemainingCentsOk + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetRemainingCentsOk() (*int32, bool)` + +GetRemainingCentsOk returns a tuple with the RemainingCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetRemainingCents(v int32)` + +SetRemainingCents sets RemainingCents field to given value. + +### HasRemainingCents + +`func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasRemainingCents() bool` + +HasRemainingCents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetRestoreStatus200Response.md b/docs/GetRestoreStatus200Response.md new file mode 100644 index 00000000..e9e6a543 --- /dev/null +++ b/docs/GetRestoreStatus200Response.md @@ -0,0 +1,356 @@ +# GetRestoreStatus200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RestoreId** | Pointer to **string** | | [optional] +**OrgName** | Pointer to **string** | | [optional] +**AppName** | Pointer to **string** | | [optional] +**EnvName** | Pointer to **string** | | [optional] +**BackupId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**StartedAt** | Pointer to **time.Time** | | [optional] +**CompletedAt** | Pointer to **NullableTime** | | [optional] +**ErrorMessage** | Pointer to **NullableString** | | [optional] +**TaskArn** | Pointer to **NullableString** | | [optional] +**Ttl** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewGetRestoreStatus200Response + +`func NewGetRestoreStatus200Response() *GetRestoreStatus200Response` + +NewGetRestoreStatus200Response instantiates a new GetRestoreStatus200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetRestoreStatus200ResponseWithDefaults + +`func NewGetRestoreStatus200ResponseWithDefaults() *GetRestoreStatus200Response` + +NewGetRestoreStatus200ResponseWithDefaults instantiates a new GetRestoreStatus200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRestoreId + +`func (o *GetRestoreStatus200Response) GetRestoreId() string` + +GetRestoreId returns the RestoreId field if non-nil, zero value otherwise. + +### GetRestoreIdOk + +`func (o *GetRestoreStatus200Response) GetRestoreIdOk() (*string, bool)` + +GetRestoreIdOk returns a tuple with the RestoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestoreId + +`func (o *GetRestoreStatus200Response) SetRestoreId(v string)` + +SetRestoreId sets RestoreId field to given value. + +### HasRestoreId + +`func (o *GetRestoreStatus200Response) HasRestoreId() bool` + +HasRestoreId returns a boolean if a field has been set. + +### GetOrgName + +`func (o *GetRestoreStatus200Response) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *GetRestoreStatus200Response) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *GetRestoreStatus200Response) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *GetRestoreStatus200Response) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetAppName + +`func (o *GetRestoreStatus200Response) GetAppName() string` + +GetAppName returns the AppName field if non-nil, zero value otherwise. + +### GetAppNameOk + +`func (o *GetRestoreStatus200Response) GetAppNameOk() (*string, bool)` + +GetAppNameOk returns a tuple with the AppName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppName + +`func (o *GetRestoreStatus200Response) SetAppName(v string)` + +SetAppName sets AppName field to given value. + +### HasAppName + +`func (o *GetRestoreStatus200Response) HasAppName() bool` + +HasAppName returns a boolean if a field has been set. + +### GetEnvName + +`func (o *GetRestoreStatus200Response) GetEnvName() string` + +GetEnvName returns the EnvName field if non-nil, zero value otherwise. + +### GetEnvNameOk + +`func (o *GetRestoreStatus200Response) GetEnvNameOk() (*string, bool)` + +GetEnvNameOk returns a tuple with the EnvName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvName + +`func (o *GetRestoreStatus200Response) SetEnvName(v string)` + +SetEnvName sets EnvName field to given value. + +### HasEnvName + +`func (o *GetRestoreStatus200Response) HasEnvName() bool` + +HasEnvName returns a boolean if a field has been set. + +### GetBackupId + +`func (o *GetRestoreStatus200Response) GetBackupId() string` + +GetBackupId returns the BackupId field if non-nil, zero value otherwise. + +### GetBackupIdOk + +`func (o *GetRestoreStatus200Response) GetBackupIdOk() (*string, bool)` + +GetBackupIdOk returns a tuple with the BackupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackupId + +`func (o *GetRestoreStatus200Response) SetBackupId(v string)` + +SetBackupId sets BackupId field to given value. + +### HasBackupId + +`func (o *GetRestoreStatus200Response) HasBackupId() bool` + +HasBackupId returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetRestoreStatus200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetRestoreStatus200Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GetRestoreStatus200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetRestoreStatus200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *GetRestoreStatus200Response) GetStartedAt() time.Time` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *GetRestoreStatus200Response) GetStartedAtOk() (*time.Time, bool)` + +GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedAt + +`func (o *GetRestoreStatus200Response) SetStartedAt(v time.Time)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *GetRestoreStatus200Response) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetCompletedAt + +`func (o *GetRestoreStatus200Response) GetCompletedAt() time.Time` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *GetRestoreStatus200Response) GetCompletedAtOk() (*time.Time, bool)` + +GetCompletedAtOk returns a tuple with the CompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedAt + +`func (o *GetRestoreStatus200Response) SetCompletedAt(v time.Time)` + +SetCompletedAt sets CompletedAt field to given value. + +### HasCompletedAt + +`func (o *GetRestoreStatus200Response) HasCompletedAt() bool` + +HasCompletedAt returns a boolean if a field has been set. + +### SetCompletedAtNil + +`func (o *GetRestoreStatus200Response) SetCompletedAtNil(b bool)` + + SetCompletedAtNil sets the value for CompletedAt to be an explicit nil + +### UnsetCompletedAt +`func (o *GetRestoreStatus200Response) UnsetCompletedAt()` + +UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +### GetErrorMessage + +`func (o *GetRestoreStatus200Response) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *GetRestoreStatus200Response) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *GetRestoreStatus200Response) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *GetRestoreStatus200Response) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### SetErrorMessageNil + +`func (o *GetRestoreStatus200Response) SetErrorMessageNil(b bool)` + + SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil + +### UnsetErrorMessage +`func (o *GetRestoreStatus200Response) UnsetErrorMessage()` + +UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil +### GetTaskArn + +`func (o *GetRestoreStatus200Response) GetTaskArn() string` + +GetTaskArn returns the TaskArn field if non-nil, zero value otherwise. + +### GetTaskArnOk + +`func (o *GetRestoreStatus200Response) GetTaskArnOk() (*string, bool)` + +GetTaskArnOk returns a tuple with the TaskArn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskArn + +`func (o *GetRestoreStatus200Response) SetTaskArn(v string)` + +SetTaskArn sets TaskArn field to given value. + +### HasTaskArn + +`func (o *GetRestoreStatus200Response) HasTaskArn() bool` + +HasTaskArn returns a boolean if a field has been set. + +### SetTaskArnNil + +`func (o *GetRestoreStatus200Response) SetTaskArnNil(b bool)` + + SetTaskArnNil sets the value for TaskArn to be an explicit nil + +### UnsetTaskArn +`func (o *GetRestoreStatus200Response) UnsetTaskArn()` + +UnsetTaskArn ensures that no value is present for TaskArn, not even an explicit nil +### GetTtl + +`func (o *GetRestoreStatus200Response) GetTtl() int32` + +GetTtl returns the Ttl field if non-nil, zero value otherwise. + +### GetTtlOk + +`func (o *GetRestoreStatus200Response) GetTtlOk() (*int32, bool)` + +GetTtlOk returns a tuple with the Ttl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTtl + +`func (o *GetRestoreStatus200Response) SetTtl(v int32)` + +SetTtl sets Ttl field to given value. + +### HasTtl + +`func (o *GetRestoreStatus200Response) HasTtl() bool` + +HasTtl returns a boolean if a field has been set. + +### SetTtlNil + +`func (o *GetRestoreStatus200Response) SetTtlNil(b bool)` + + SetTtlNil sets the value for Ttl to be an explicit nil + +### UnsetTtl +`func (o *GetRestoreStatus200Response) UnsetTtl()` + +UnsetTtl ensures that no value is present for Ttl, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetScalingPolicyResponse.md b/docs/GetScalingPolicyResponse.md new file mode 100644 index 00000000..caa31a9b --- /dev/null +++ b/docs/GetScalingPolicyResponse.md @@ -0,0 +1,196 @@ +# GetScalingPolicyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metric** | Pointer to **string** | | [optional] +**TargetValue** | Pointer to **float64** | | [optional] +**ScaleInCooldownSeconds** | Pointer to **int32** | | [optional] +**ScaleOutCooldownSeconds** | Pointer to **int32** | | [optional] +**PolicyName** | Pointer to **string** | Name of the underlying Application Auto Scaling policy. | [optional] +**ResourceLabel** | Pointer to **NullableString** | ALB ResourceLabel for RPS policies (target group identifier). | [optional] + +## Methods + +### NewGetScalingPolicyResponse + +`func NewGetScalingPolicyResponse() *GetScalingPolicyResponse` + +NewGetScalingPolicyResponse instantiates a new GetScalingPolicyResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetScalingPolicyResponseWithDefaults + +`func NewGetScalingPolicyResponseWithDefaults() *GetScalingPolicyResponse` + +NewGetScalingPolicyResponseWithDefaults instantiates a new GetScalingPolicyResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetric + +`func (o *GetScalingPolicyResponse) GetMetric() string` + +GetMetric returns the Metric field if non-nil, zero value otherwise. + +### GetMetricOk + +`func (o *GetScalingPolicyResponse) GetMetricOk() (*string, bool)` + +GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetric + +`func (o *GetScalingPolicyResponse) SetMetric(v string)` + +SetMetric sets Metric field to given value. + +### HasMetric + +`func (o *GetScalingPolicyResponse) HasMetric() bool` + +HasMetric returns a boolean if a field has been set. + +### GetTargetValue + +`func (o *GetScalingPolicyResponse) GetTargetValue() float64` + +GetTargetValue returns the TargetValue field if non-nil, zero value otherwise. + +### GetTargetValueOk + +`func (o *GetScalingPolicyResponse) GetTargetValueOk() (*float64, bool)` + +GetTargetValueOk returns a tuple with the TargetValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetValue + +`func (o *GetScalingPolicyResponse) SetTargetValue(v float64)` + +SetTargetValue sets TargetValue field to given value. + +### HasTargetValue + +`func (o *GetScalingPolicyResponse) HasTargetValue() bool` + +HasTargetValue returns a boolean if a field has been set. + +### GetScaleInCooldownSeconds + +`func (o *GetScalingPolicyResponse) GetScaleInCooldownSeconds() int32` + +GetScaleInCooldownSeconds returns the ScaleInCooldownSeconds field if non-nil, zero value otherwise. + +### GetScaleInCooldownSecondsOk + +`func (o *GetScalingPolicyResponse) GetScaleInCooldownSecondsOk() (*int32, bool)` + +GetScaleInCooldownSecondsOk returns a tuple with the ScaleInCooldownSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScaleInCooldownSeconds + +`func (o *GetScalingPolicyResponse) SetScaleInCooldownSeconds(v int32)` + +SetScaleInCooldownSeconds sets ScaleInCooldownSeconds field to given value. + +### HasScaleInCooldownSeconds + +`func (o *GetScalingPolicyResponse) HasScaleInCooldownSeconds() bool` + +HasScaleInCooldownSeconds returns a boolean if a field has been set. + +### GetScaleOutCooldownSeconds + +`func (o *GetScalingPolicyResponse) GetScaleOutCooldownSeconds() int32` + +GetScaleOutCooldownSeconds returns the ScaleOutCooldownSeconds field if non-nil, zero value otherwise. + +### GetScaleOutCooldownSecondsOk + +`func (o *GetScalingPolicyResponse) GetScaleOutCooldownSecondsOk() (*int32, bool)` + +GetScaleOutCooldownSecondsOk returns a tuple with the ScaleOutCooldownSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScaleOutCooldownSeconds + +`func (o *GetScalingPolicyResponse) SetScaleOutCooldownSeconds(v int32)` + +SetScaleOutCooldownSeconds sets ScaleOutCooldownSeconds field to given value. + +### HasScaleOutCooldownSeconds + +`func (o *GetScalingPolicyResponse) HasScaleOutCooldownSeconds() bool` + +HasScaleOutCooldownSeconds returns a boolean if a field has been set. + +### GetPolicyName + +`func (o *GetScalingPolicyResponse) GetPolicyName() string` + +GetPolicyName returns the PolicyName field if non-nil, zero value otherwise. + +### GetPolicyNameOk + +`func (o *GetScalingPolicyResponse) GetPolicyNameOk() (*string, bool)` + +GetPolicyNameOk returns a tuple with the PolicyName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyName + +`func (o *GetScalingPolicyResponse) SetPolicyName(v string)` + +SetPolicyName sets PolicyName field to given value. + +### HasPolicyName + +`func (o *GetScalingPolicyResponse) HasPolicyName() bool` + +HasPolicyName returns a boolean if a field has been set. + +### GetResourceLabel + +`func (o *GetScalingPolicyResponse) GetResourceLabel() string` + +GetResourceLabel returns the ResourceLabel field if non-nil, zero value otherwise. + +### GetResourceLabelOk + +`func (o *GetScalingPolicyResponse) GetResourceLabelOk() (*string, bool)` + +GetResourceLabelOk returns a tuple with the ResourceLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceLabel + +`func (o *GetScalingPolicyResponse) SetResourceLabel(v string)` + +SetResourceLabel sets ResourceLabel field to given value. + +### HasResourceLabel + +`func (o *GetScalingPolicyResponse) HasResourceLabel() bool` + +HasResourceLabel returns a boolean if a field has been set. + +### SetResourceLabelNil + +`func (o *GetScalingPolicyResponse) SetResourceLabelNil(b bool)` + + SetResourceLabelNil sets the value for ResourceLabel to be an explicit nil + +### UnsetResourceLabel +`func (o *GetScalingPolicyResponse) UnsetResourceLabel()` + +UnsetResourceLabel ensures that no value is present for ResourceLabel, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListCustomTools200ResponseToolsInner.md b/docs/ListCustomTools200ResponseToolsInner.md index dbed9367..4f98348c 100644 --- a/docs/ListCustomTools200ResponseToolsInner.md +++ b/docs/ListCustomTools200ResponseToolsInner.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EdgeFunctionUrl** | Pointer to **string** | | [optional] **IsAsync** | Pointer to **bool** | | [optional] -**InputSchema** | Pointer to **map[string]interface{}** | | [optional] +**InputSchema** | Pointer to **string** | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] ## Methods @@ -132,20 +132,20 @@ HasIsAsync returns a boolean if a field has been set. ### GetInputSchema -`func (o *ListCustomTools200ResponseToolsInner) GetInputSchema() map[string]interface{}` +`func (o *ListCustomTools200ResponseToolsInner) GetInputSchema() string` GetInputSchema returns the InputSchema field if non-nil, zero value otherwise. ### GetInputSchemaOk -`func (o *ListCustomTools200ResponseToolsInner) GetInputSchemaOk() (*map[string]interface{}, bool)` +`func (o *ListCustomTools200ResponseToolsInner) GetInputSchemaOk() (*string, bool)` GetInputSchemaOk returns a tuple with the InputSchema field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInputSchema -`func (o *ListCustomTools200ResponseToolsInner) SetInputSchema(v map[string]interface{})` +`func (o *ListCustomTools200ResponseToolsInner) SetInputSchema(v string)` SetInputSchema sets InputSchema field to given value. diff --git a/docs/RestoreDatabase202Response.md b/docs/RestoreDatabase202Response.md new file mode 100644 index 00000000..13875252 --- /dev/null +++ b/docs/RestoreDatabase202Response.md @@ -0,0 +1,108 @@ +# RestoreDatabase202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RestoreId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewRestoreDatabase202Response + +`func NewRestoreDatabase202Response() *RestoreDatabase202Response` + +NewRestoreDatabase202Response instantiates a new RestoreDatabase202Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreDatabase202ResponseWithDefaults + +`func NewRestoreDatabase202ResponseWithDefaults() *RestoreDatabase202Response` + +NewRestoreDatabase202ResponseWithDefaults instantiates a new RestoreDatabase202Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRestoreId + +`func (o *RestoreDatabase202Response) GetRestoreId() string` + +GetRestoreId returns the RestoreId field if non-nil, zero value otherwise. + +### GetRestoreIdOk + +`func (o *RestoreDatabase202Response) GetRestoreIdOk() (*string, bool)` + +GetRestoreIdOk returns a tuple with the RestoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestoreId + +`func (o *RestoreDatabase202Response) SetRestoreId(v string)` + +SetRestoreId sets RestoreId field to given value. + +### HasRestoreId + +`func (o *RestoreDatabase202Response) HasRestoreId() bool` + +HasRestoreId returns a boolean if a field has been set. + +### GetStatus + +`func (o *RestoreDatabase202Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RestoreDatabase202Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RestoreDatabase202Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RestoreDatabase202Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMessage + +`func (o *RestoreDatabase202Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RestoreDatabase202Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RestoreDatabase202Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *RestoreDatabase202Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RestoreDatabaseRequest.md b/docs/RestoreDatabaseRequest.md new file mode 100644 index 00000000..6aef3e44 --- /dev/null +++ b/docs/RestoreDatabaseRequest.md @@ -0,0 +1,72 @@ +# RestoreDatabaseRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BackupId** | **string** | The backup ID to restore (must match path param) | +**AcknowledgeDataloss** | **bool** | Must be true to confirm existing data will be overwritten | + +## Methods + +### NewRestoreDatabaseRequest + +`func NewRestoreDatabaseRequest(backupId string, acknowledgeDataloss bool, ) *RestoreDatabaseRequest` + +NewRestoreDatabaseRequest instantiates a new RestoreDatabaseRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreDatabaseRequestWithDefaults + +`func NewRestoreDatabaseRequestWithDefaults() *RestoreDatabaseRequest` + +NewRestoreDatabaseRequestWithDefaults instantiates a new RestoreDatabaseRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBackupId + +`func (o *RestoreDatabaseRequest) GetBackupId() string` + +GetBackupId returns the BackupId field if non-nil, zero value otherwise. + +### GetBackupIdOk + +`func (o *RestoreDatabaseRequest) GetBackupIdOk() (*string, bool)` + +GetBackupIdOk returns a tuple with the BackupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackupId + +`func (o *RestoreDatabaseRequest) SetBackupId(v string)` + +SetBackupId sets BackupId field to given value. + + +### GetAcknowledgeDataloss + +`func (o *RestoreDatabaseRequest) GetAcknowledgeDataloss() bool` + +GetAcknowledgeDataloss returns the AcknowledgeDataloss field if non-nil, zero value otherwise. + +### GetAcknowledgeDatalossOk + +`func (o *RestoreDatabaseRequest) GetAcknowledgeDatalossOk() (*bool, bool)` + +GetAcknowledgeDatalossOk returns a tuple with the AcknowledgeDataloss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcknowledgeDataloss + +`func (o *RestoreDatabaseRequest) SetAcknowledgeDataloss(v bool)` + +SetAcknowledgeDataloss sets AcknowledgeDataloss field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RestoreFilesystem202Response.md b/docs/RestoreFilesystem202Response.md new file mode 100644 index 00000000..156226ca --- /dev/null +++ b/docs/RestoreFilesystem202Response.md @@ -0,0 +1,108 @@ +# RestoreFilesystem202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RestoreId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewRestoreFilesystem202Response + +`func NewRestoreFilesystem202Response() *RestoreFilesystem202Response` + +NewRestoreFilesystem202Response instantiates a new RestoreFilesystem202Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreFilesystem202ResponseWithDefaults + +`func NewRestoreFilesystem202ResponseWithDefaults() *RestoreFilesystem202Response` + +NewRestoreFilesystem202ResponseWithDefaults instantiates a new RestoreFilesystem202Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRestoreId + +`func (o *RestoreFilesystem202Response) GetRestoreId() string` + +GetRestoreId returns the RestoreId field if non-nil, zero value otherwise. + +### GetRestoreIdOk + +`func (o *RestoreFilesystem202Response) GetRestoreIdOk() (*string, bool)` + +GetRestoreIdOk returns a tuple with the RestoreId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestoreId + +`func (o *RestoreFilesystem202Response) SetRestoreId(v string)` + +SetRestoreId sets RestoreId field to given value. + +### HasRestoreId + +`func (o *RestoreFilesystem202Response) HasRestoreId() bool` + +HasRestoreId returns a boolean if a field has been set. + +### GetStatus + +`func (o *RestoreFilesystem202Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RestoreFilesystem202Response) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RestoreFilesystem202Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RestoreFilesystem202Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMessage + +`func (o *RestoreFilesystem202Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *RestoreFilesystem202Response) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *RestoreFilesystem202Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *RestoreFilesystem202Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RestoreFilesystemRequest.md b/docs/RestoreFilesystemRequest.md new file mode 100644 index 00000000..05e4944f --- /dev/null +++ b/docs/RestoreFilesystemRequest.md @@ -0,0 +1,72 @@ +# RestoreFilesystemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BackupId** | **string** | The backup ID to restore (must match path param) | +**AcknowledgeDataloss** | **bool** | Must be true. tar extraction overwrites same-named files in the target EFS in place; pre-existing files not in the archive are preserved. | + +## Methods + +### NewRestoreFilesystemRequest + +`func NewRestoreFilesystemRequest(backupId string, acknowledgeDataloss bool, ) *RestoreFilesystemRequest` + +NewRestoreFilesystemRequest instantiates a new RestoreFilesystemRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRestoreFilesystemRequestWithDefaults + +`func NewRestoreFilesystemRequestWithDefaults() *RestoreFilesystemRequest` + +NewRestoreFilesystemRequestWithDefaults instantiates a new RestoreFilesystemRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBackupId + +`func (o *RestoreFilesystemRequest) GetBackupId() string` + +GetBackupId returns the BackupId field if non-nil, zero value otherwise. + +### GetBackupIdOk + +`func (o *RestoreFilesystemRequest) GetBackupIdOk() (*string, bool)` + +GetBackupIdOk returns a tuple with the BackupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBackupId + +`func (o *RestoreFilesystemRequest) SetBackupId(v string)` + +SetBackupId sets BackupId field to given value. + + +### GetAcknowledgeDataloss + +`func (o *RestoreFilesystemRequest) GetAcknowledgeDataloss() bool` + +GetAcknowledgeDataloss returns the AcknowledgeDataloss field if non-nil, zero value otherwise. + +### GetAcknowledgeDatalossOk + +`func (o *RestoreFilesystemRequest) GetAcknowledgeDatalossOk() (*bool, bool)` + +GetAcknowledgeDatalossOk returns a tuple with the AcknowledgeDataloss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcknowledgeDataloss + +`func (o *RestoreFilesystemRequest) SetAcknowledgeDataloss(v bool)` + +SetAcknowledgeDataloss sets AcknowledgeDataloss field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RestoreManagementAPI.md b/docs/RestoreManagementAPI.md new file mode 100644 index 00000000..6bf06401 --- /dev/null +++ b/docs/RestoreManagementAPI.md @@ -0,0 +1,252 @@ +# \RestoreManagementAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetRestoreStatus**](RestoreManagementAPI.md#GetRestoreStatus) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId} | Get the status of a restore operation +[**RestoreDatabase**](RestoreManagementAPI.md#RestoreDatabase) | **Post** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database | Restore a database backup to a target environment +[**RestoreFilesystem**](RestoreManagementAPI.md#RestoreFilesystem) | **Post** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem | Restore a filesystem backup to a target environment + + + +## GetRestoreStatus + +> GetRestoreStatus200Response GetRestoreStatus(ctx, organisation, application, environment, restoreId).Execute() + +Get the status of a restore operation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "staging" // string | The environment ID + restoreId := "restore-abc123" // string | The restore operation ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RestoreManagementAPI.GetRestoreStatus(context.Background(), organisation, application, environment, restoreId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RestoreManagementAPI.GetRestoreStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRestoreStatus`: GetRestoreStatus200Response + fmt.Fprintf(os.Stdout, "Response from `RestoreManagementAPI.GetRestoreStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**application** | **string** | The application ID | +**environment** | **string** | The environment ID | +**restoreId** | **string** | The restore operation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRestoreStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +[**GetRestoreStatus200Response**](GetRestoreStatus200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RestoreDatabase + +> RestoreDatabase202Response RestoreDatabase(ctx, organisation, application, environment, backupId).RestoreDatabaseRequest(restoreDatabaseRequest).Execute() + +Restore a database backup to a target environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "staging" // string | The TARGET environment ID to restore INTO + backupId := "quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z" // string | The backup ID to restore from + restoreDatabaseRequest := *openapiclient.NewRestoreDatabaseRequest("BackupId_example", true) // RestoreDatabaseRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RestoreManagementAPI.RestoreDatabase(context.Background(), organisation, application, environment, backupId).RestoreDatabaseRequest(restoreDatabaseRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RestoreManagementAPI.RestoreDatabase``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RestoreDatabase`: RestoreDatabase202Response + fmt.Fprintf(os.Stdout, "Response from `RestoreManagementAPI.RestoreDatabase`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**application** | **string** | The application ID | +**environment** | **string** | The TARGET environment ID to restore INTO | +**backupId** | **string** | The backup ID to restore from | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRestoreDatabaseRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **restoreDatabaseRequest** | [**RestoreDatabaseRequest**](RestoreDatabaseRequest.md) | | + +### Return type + +[**RestoreDatabase202Response**](RestoreDatabase202Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RestoreFilesystem + +> RestoreFilesystem202Response RestoreFilesystem(ctx, organisation, application, environment, backupId).RestoreFilesystemRequest(restoreFilesystemRequest).Execute() + +Restore a filesystem backup to a target environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "staging" // string | The TARGET environment ID to restore INTO + backupId := "quant-gov-dashboard-staging-2025-09-19T21-50-27-145Z" // string | The backup ID to restore from + restoreFilesystemRequest := *openapiclient.NewRestoreFilesystemRequest("BackupId_example", false) // RestoreFilesystemRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RestoreManagementAPI.RestoreFilesystem(context.Background(), organisation, application, environment, backupId).RestoreFilesystemRequest(restoreFilesystemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RestoreManagementAPI.RestoreFilesystem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RestoreFilesystem`: RestoreFilesystem202Response + fmt.Fprintf(os.Stdout, "Response from `RestoreManagementAPI.RestoreFilesystem`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**application** | **string** | The application ID | +**environment** | **string** | The TARGET environment ID to restore INTO | +**backupId** | **string** | The backup ID to restore from | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRestoreFilesystemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **restoreFilesystemRequest** | [**RestoreFilesystemRequest**](RestoreFilesystemRequest.md) | | + +### Return type + +[**RestoreFilesystem202Response**](RestoreFilesystem202Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ScalingPolicyAPI.md b/docs/ScalingPolicyAPI.md index fa0bc789..2551f327 100644 --- a/docs/ScalingPolicyAPI.md +++ b/docs/ScalingPolicyAPI.md @@ -4,17 +4,19 @@ All URIs are relative to *https://dashboard.quantcdn.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteScalingPolicy**](ScalingPolicyAPI.md#DeleteScalingPolicy) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName} | Delete the scaling policy for an environment -[**GetScalingPolicies**](ScalingPolicyAPI.md#GetScalingPolicies) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Get the scaling policies for an environment -[**UpdateScalingPolicy**](ScalingPolicyAPI.md#UpdateScalingPolicy) | **Put** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Update the scaling policy for an environment +[**DeleteScalingPolicy**](ScalingPolicyAPI.md#DeleteScalingPolicy) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Delete Scaling Policy +[**ListScalingPolicies**](ScalingPolicyAPI.md#ListScalingPolicies) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | List Scaling Policies +[**UpsertScalingPolicy**](ScalingPolicyAPI.md#UpsertScalingPolicy) | **Put** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies | Upsert Scaling Policy ## DeleteScalingPolicy -> DeleteScalingPolicy(ctx, organisation, application, environment, policyName).Execute() +> DeleteScalingPolicy(ctx, organisation, application, environment).Metric(metric).PolicyName(policyName).Execute() + +Delete Scaling Policy + -Delete the scaling policy for an environment ### Example @@ -29,14 +31,15 @@ import ( ) func main() { - organisation := "test-org" // string | The organisation ID - application := "test-app" // string | The application ID - environment := "test-env" // string | The environment ID - policyName := "policyName_example" // string | The policy name + organisation := "organisation_example" // string | + application := "application_example" // string | + environment := "environment_example" // string | + metric := "metric_example" // string | Optional. Delete by metric type. (optional) + policyName := "policyName_example" // string | Optional. Delete by exact policy name. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ScalingPolicyAPI.DeleteScalingPolicy(context.Background(), organisation, application, environment, policyName).Execute() + r, err := apiClient.ScalingPolicyAPI.DeleteScalingPolicy(context.Background(), organisation, application, environment).Metric(metric).PolicyName(policyName).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ScalingPolicyAPI.DeleteScalingPolicy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -50,10 +53,9 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organisation** | **string** | The organisation ID | -**application** | **string** | The application ID | -**environment** | **string** | The environment ID | -**policyName** | **string** | The policy name | +**organisation** | **string** | | +**application** | **string** | | +**environment** | **string** | | ### Other Parameters @@ -65,7 +67,8 @@ Name | Type | Description | Notes - + **metric** | **string** | Optional. Delete by metric type. | + **policyName** | **string** | Optional. Delete by exact policy name. | ### Return type @@ -85,11 +88,13 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetScalingPolicies +## ListScalingPolicies + +> ScalingPolicyListResponse ListScalingPolicies(ctx, organisation, application, environment).Metric(metric).PolicyName(policyName).Execute() + +List Scaling Policies -> GetScalingPolicies(ctx, organisation, application, environment).Execute() -Get the scaling policies for an environment ### Example @@ -104,17 +109,21 @@ import ( ) func main() { - organisation := "test-org" // string | The organisation ID - application := "test-app" // string | The application ID - environment := "test-env" // string | The environment ID + organisation := "organisation_example" // string | + application := "application_example" // string | + environment := "environment_example" // string | + metric := "metric_example" // string | Optional. Filter policies by metric type. (optional) + policyName := "policyName_example" // string | Optional. Filter policies by exact policy name. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ScalingPolicyAPI.GetScalingPolicies(context.Background(), organisation, application, environment).Execute() + resp, r, err := apiClient.ScalingPolicyAPI.ListScalingPolicies(context.Background(), organisation, application, environment).Metric(metric).PolicyName(policyName).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScalingPolicyAPI.GetScalingPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ScalingPolicyAPI.ListScalingPolicies``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ListScalingPolicies`: ScalingPolicyListResponse + fmt.Fprintf(os.Stdout, "Response from `ScalingPolicyAPI.ListScalingPolicies`: %v\n", resp) } ``` @@ -124,13 +133,13 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organisation** | **string** | The organisation ID | -**application** | **string** | The application ID | -**environment** | **string** | The environment ID | +**organisation** | **string** | | +**application** | **string** | | +**environment** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGetScalingPoliciesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiListScalingPoliciesRequest struct via the builder pattern Name | Type | Description | Notes @@ -138,10 +147,12 @@ Name | Type | Description | Notes + **metric** | **string** | Optional. Filter policies by metric type. | + **policyName** | **string** | Optional. Filter policies by exact policy name. | ### Return type - (empty response body) +[**ScalingPolicyListResponse**](ScalingPolicyListResponse.md) ### Authorization @@ -150,18 +161,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## UpdateScalingPolicy +## UpsertScalingPolicy + +> GetScalingPolicyResponse UpsertScalingPolicy(ctx, organisation, application, environment).SetScalingPolicyRequest(setScalingPolicyRequest).PolicyName(policyName).Execute() + +Upsert Scaling Policy -> UpdateScalingPolicy(ctx, organisation, application, environment).ScalingPolicy(scalingPolicy).Execute() -Update the scaling policy for an environment ### Example @@ -176,18 +189,21 @@ import ( ) func main() { - organisation := "test-org" // string | The organisation ID - application := "test-app" // string | The application ID - environment := "test-env" // string | The environment ID - scalingPolicy := *openapiclient.NewScalingPolicy() // ScalingPolicy | + organisation := "organisation_example" // string | + application := "application_example" // string | + environment := "environment_example" // string | + setScalingPolicyRequest := *openapiclient.NewSetScalingPolicyRequest("Metric_example", float64(75)) // SetScalingPolicyRequest | + policyName := "policyName_example" // string | Optional. Specify a custom policy name to upsert. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ScalingPolicyAPI.UpdateScalingPolicy(context.Background(), organisation, application, environment).ScalingPolicy(scalingPolicy).Execute() + resp, r, err := apiClient.ScalingPolicyAPI.UpsertScalingPolicy(context.Background(), organisation, application, environment).SetScalingPolicyRequest(setScalingPolicyRequest).PolicyName(policyName).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScalingPolicyAPI.UpdateScalingPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ScalingPolicyAPI.UpsertScalingPolicy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `UpsertScalingPolicy`: GetScalingPolicyResponse + fmt.Fprintf(os.Stdout, "Response from `ScalingPolicyAPI.UpsertScalingPolicy`: %v\n", resp) } ``` @@ -197,13 +213,13 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organisation** | **string** | The organisation ID | -**application** | **string** | The application ID | -**environment** | **string** | The environment ID | +**organisation** | **string** | | +**application** | **string** | | +**environment** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiUpdateScalingPolicyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiUpsertScalingPolicyRequest struct via the builder pattern Name | Type | Description | Notes @@ -211,11 +227,12 @@ Name | Type | Description | Notes - **scalingPolicy** | [**ScalingPolicy**](ScalingPolicy.md) | | + **setScalingPolicyRequest** | [**SetScalingPolicyRequest**](SetScalingPolicyRequest.md) | | + **policyName** | **string** | Optional. Specify a custom policy name to upsert. | ### Return type - (empty response body) +[**GetScalingPolicyResponse**](GetScalingPolicyResponse.md) ### Authorization @@ -224,7 +241,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) diff --git a/docs/ScalingPolicyListResponse.md b/docs/ScalingPolicyListResponse.md new file mode 100644 index 00000000..f785fe0b --- /dev/null +++ b/docs/ScalingPolicyListResponse.md @@ -0,0 +1,56 @@ +# ScalingPolicyListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Policies** | Pointer to [**[]GetScalingPolicyResponse**](GetScalingPolicyResponse.md) | | [optional] + +## Methods + +### NewScalingPolicyListResponse + +`func NewScalingPolicyListResponse() *ScalingPolicyListResponse` + +NewScalingPolicyListResponse instantiates a new ScalingPolicyListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScalingPolicyListResponseWithDefaults + +`func NewScalingPolicyListResponseWithDefaults() *ScalingPolicyListResponse` + +NewScalingPolicyListResponseWithDefaults instantiates a new ScalingPolicyListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPolicies + +`func (o *ScalingPolicyListResponse) GetPolicies() []GetScalingPolicyResponse` + +GetPolicies returns the Policies field if non-nil, zero value otherwise. + +### GetPoliciesOk + +`func (o *ScalingPolicyListResponse) GetPoliciesOk() (*[]GetScalingPolicyResponse, bool)` + +GetPoliciesOk returns a tuple with the Policies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicies + +`func (o *ScalingPolicyListResponse) SetPolicies(v []GetScalingPolicyResponse)` + +SetPolicies sets Policies field to given value. + +### HasPolicies + +`func (o *ScalingPolicyListResponse) HasPolicies() bool` + +HasPolicies returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScalingPolicy.md b/docs/SetScalingPolicyRequest.md similarity index 57% rename from docs/ScalingPolicy.md rename to docs/SetScalingPolicyRequest.md index 8f176980..d7a75577 100644 --- a/docs/ScalingPolicy.md +++ b/docs/SetScalingPolicyRequest.md @@ -1,130 +1,120 @@ -# ScalingPolicy +# SetScalingPolicyRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Metric** | Pointer to **string** | | [optional] -**TargetValue** | Pointer to **float32** | | [optional] -**ScaleInCooldownSeconds** | Pointer to **int32** | | [optional] -**ScaleOutCooldownSeconds** | Pointer to **int32** | | [optional] +**Metric** | **string** | Metric to track for scaling. | +**TargetValue** | **float64** | Target value. Percentage for CPU/Memory; req/sec per task for RPS. | +**ScaleInCooldownSeconds** | Pointer to **int32** | Cooldown (seconds) before another scale-in can start. | [optional] [default to 300] +**ScaleOutCooldownSeconds** | Pointer to **int32** | Cooldown (seconds) before another scale-out can start. | [optional] [default to 60] ## Methods -### NewScalingPolicy +### NewSetScalingPolicyRequest -`func NewScalingPolicy() *ScalingPolicy` +`func NewSetScalingPolicyRequest(metric string, targetValue float64, ) *SetScalingPolicyRequest` -NewScalingPolicy instantiates a new ScalingPolicy object +NewSetScalingPolicyRequest instantiates a new SetScalingPolicyRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewScalingPolicyWithDefaults +### NewSetScalingPolicyRequestWithDefaults -`func NewScalingPolicyWithDefaults() *ScalingPolicy` +`func NewSetScalingPolicyRequestWithDefaults() *SetScalingPolicyRequest` -NewScalingPolicyWithDefaults instantiates a new ScalingPolicy object +NewSetScalingPolicyRequestWithDefaults instantiates a new SetScalingPolicyRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetMetric -`func (o *ScalingPolicy) GetMetric() string` +`func (o *SetScalingPolicyRequest) GetMetric() string` GetMetric returns the Metric field if non-nil, zero value otherwise. ### GetMetricOk -`func (o *ScalingPolicy) GetMetricOk() (*string, bool)` +`func (o *SetScalingPolicyRequest) GetMetricOk() (*string, bool)` GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMetric -`func (o *ScalingPolicy) SetMetric(v string)` +`func (o *SetScalingPolicyRequest) SetMetric(v string)` SetMetric sets Metric field to given value. -### HasMetric - -`func (o *ScalingPolicy) HasMetric() bool` - -HasMetric returns a boolean if a field has been set. ### GetTargetValue -`func (o *ScalingPolicy) GetTargetValue() float32` +`func (o *SetScalingPolicyRequest) GetTargetValue() float64` GetTargetValue returns the TargetValue field if non-nil, zero value otherwise. ### GetTargetValueOk -`func (o *ScalingPolicy) GetTargetValueOk() (*float32, bool)` +`func (o *SetScalingPolicyRequest) GetTargetValueOk() (*float64, bool)` GetTargetValueOk returns a tuple with the TargetValue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTargetValue -`func (o *ScalingPolicy) SetTargetValue(v float32)` +`func (o *SetScalingPolicyRequest) SetTargetValue(v float64)` SetTargetValue sets TargetValue field to given value. -### HasTargetValue - -`func (o *ScalingPolicy) HasTargetValue() bool` - -HasTargetValue returns a boolean if a field has been set. ### GetScaleInCooldownSeconds -`func (o *ScalingPolicy) GetScaleInCooldownSeconds() int32` +`func (o *SetScalingPolicyRequest) GetScaleInCooldownSeconds() int32` GetScaleInCooldownSeconds returns the ScaleInCooldownSeconds field if non-nil, zero value otherwise. ### GetScaleInCooldownSecondsOk -`func (o *ScalingPolicy) GetScaleInCooldownSecondsOk() (*int32, bool)` +`func (o *SetScalingPolicyRequest) GetScaleInCooldownSecondsOk() (*int32, bool)` GetScaleInCooldownSecondsOk returns a tuple with the ScaleInCooldownSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetScaleInCooldownSeconds -`func (o *ScalingPolicy) SetScaleInCooldownSeconds(v int32)` +`func (o *SetScalingPolicyRequest) SetScaleInCooldownSeconds(v int32)` SetScaleInCooldownSeconds sets ScaleInCooldownSeconds field to given value. ### HasScaleInCooldownSeconds -`func (o *ScalingPolicy) HasScaleInCooldownSeconds() bool` +`func (o *SetScalingPolicyRequest) HasScaleInCooldownSeconds() bool` HasScaleInCooldownSeconds returns a boolean if a field has been set. ### GetScaleOutCooldownSeconds -`func (o *ScalingPolicy) GetScaleOutCooldownSeconds() int32` +`func (o *SetScalingPolicyRequest) GetScaleOutCooldownSeconds() int32` GetScaleOutCooldownSeconds returns the ScaleOutCooldownSeconds field if non-nil, zero value otherwise. ### GetScaleOutCooldownSecondsOk -`func (o *ScalingPolicy) GetScaleOutCooldownSecondsOk() (*int32, bool)` +`func (o *SetScalingPolicyRequest) GetScaleOutCooldownSecondsOk() (*int32, bool)` GetScaleOutCooldownSecondsOk returns a tuple with the ScaleOutCooldownSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetScaleOutCooldownSeconds -`func (o *ScalingPolicy) SetScaleOutCooldownSeconds(v int32)` +`func (o *SetScalingPolicyRequest) SetScaleOutCooldownSeconds(v int32)` SetScaleOutCooldownSeconds sets ScaleOutCooldownSeconds field to given value. ### HasScaleOutCooldownSeconds -`func (o *ScalingPolicy) HasScaleOutCooldownSeconds() bool` +`func (o *SetScalingPolicyRequest) HasScaleOutCooldownSeconds() bool` HasScaleOutCooldownSeconds returns a boolean if a field has been set. diff --git a/docs/SubscriptionAPI.md b/docs/SubscriptionAPI.md new file mode 100644 index 00000000..0cd933a6 --- /dev/null +++ b/docs/SubscriptionAPI.md @@ -0,0 +1,79 @@ +# \SubscriptionAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSubscriptionCloudUsage**](SubscriptionAPI.md#GetSubscriptionCloudUsage) | **Get** /api/v3/organizations/{organisation}/subscription/cloud-usage | Cloud-app cost breakdown for the subscription page + + + +## GetSubscriptionCloudUsage + +> GetSubscriptionCloudUsage(ctx, organisation).Month(month).Execute() + +Cloud-app cost breakdown for the subscription page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | + month := "month_example" // string | YYYY-MM, defaults to current month (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SubscriptionAPI.GetSubscriptionCloudUsage(context.Background(), organisation).Month(month).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SubscriptionAPI.GetSubscriptionCloudUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSubscriptionCloudUsageRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **month** | **string** | YYYY-MM, defaults to current month | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/UpdateAIAgentRequest.md b/docs/UpdateAIAgentRequest.md index 559e4aeb..623a0eea 100644 --- a/docs/UpdateAIAgentRequest.md +++ b/docs/UpdateAIAgentRequest.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **AllowedCollections** | Pointer to **[]string** | | [optional] **AssignedSkills** | Pointer to **[]string** | Skill IDs to assign to this agent | [optional] **LongContext** | Pointer to **bool** | Enable 1M context window support | [optional] -**GuardrailPreset** | Pointer to **string** | Guardrail preset name | [optional] +**GuardrailPreset** | Pointer to **NullableString** | Guardrail preset name | [optional] **FilterPolicies** | Pointer to **[]string** | Filter policy IDs to apply to this agent's inference requests | [optional] ## Methods @@ -337,6 +337,16 @@ SetGuardrailPreset sets GuardrailPreset field to given value. HasGuardrailPreset returns a boolean if a field has been set. +### SetGuardrailPresetNil + +`func (o *UpdateAIAgentRequest) SetGuardrailPresetNil(b bool)` + + SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil + +### UnsetGuardrailPreset +`func (o *UpdateAIAgentRequest) UnsetGuardrailPreset()` + +UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil ### GetFilterPolicies `func (o *UpdateAIAgentRequest) GetFilterPolicies() []string` diff --git a/docs/UpsertAgentOverlayRequest.md b/docs/UpsertAgentOverlayRequest.md index 524f7513..105c7ce7 100644 --- a/docs/UpsertAgentOverlayRequest.md +++ b/docs/UpsertAgentOverlayRequest.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **DisabledTools** | Pointer to **[]string** | Tool names to remove | [optional] **SystemPromptAppend** | Pointer to **string** | Text appended to base system prompt | [optional] **AllowedCollections** | Pointer to **[]string** | Vector DB collections | [optional] -**GuardrailPreset** | Pointer to **string** | Guardrail preset | [optional] +**GuardrailPreset** | Pointer to **NullableString** | Guardrail preset | [optional] **Version** | Pointer to **int32** | Current version for optimistic concurrency | [optional] ## Methods @@ -285,6 +285,16 @@ SetGuardrailPreset sets GuardrailPreset field to given value. HasGuardrailPreset returns a boolean if a field has been set. +### SetGuardrailPresetNil + +`func (o *UpsertAgentOverlayRequest) SetGuardrailPresetNil(b bool)` + + SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil + +### UnsetGuardrailPreset +`func (o *UpsertAgentOverlayRequest) UnsetGuardrailPreset()` + +UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil ### GetVersion `func (o *UpsertAgentOverlayRequest) GetVersion() int32` diff --git a/model_ai_search_chat_request.go b/model_ai_search_chat_request.go new file mode 100644 index 00000000..aadbb9aa --- /dev/null +++ b/model_ai_search_chat_request.go @@ -0,0 +1,279 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the AiSearchChatRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchChatRequest{} + +// AiSearchChatRequest struct for AiSearchChatRequest +type AiSearchChatRequest struct { + Message string `json:"message"` + SessionId *string `json:"sessionId,omitempty"` + ContextUrl *string `json:"contextUrl,omitempty"` + MaxContextChunks *int32 `json:"maxContextChunks,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchChatRequest AiSearchChatRequest + +// NewAiSearchChatRequest instantiates a new AiSearchChatRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchChatRequest(message string) *AiSearchChatRequest { + this := AiSearchChatRequest{} + this.Message = message + return &this +} + +// NewAiSearchChatRequestWithDefaults instantiates a new AiSearchChatRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchChatRequestWithDefaults() *AiSearchChatRequest { + this := AiSearchChatRequest{} + return &this +} + +// GetMessage returns the Message field value +func (o *AiSearchChatRequest) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *AiSearchChatRequest) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *AiSearchChatRequest) SetMessage(v string) { + o.Message = v +} + +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *AiSearchChatRequest) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchChatRequest) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *AiSearchChatRequest) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *AiSearchChatRequest) SetSessionId(v string) { + o.SessionId = &v +} + +// GetContextUrl returns the ContextUrl field value if set, zero value otherwise. +func (o *AiSearchChatRequest) GetContextUrl() string { + if o == nil || IsNil(o.ContextUrl) { + var ret string + return ret + } + return *o.ContextUrl +} + +// GetContextUrlOk returns a tuple with the ContextUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchChatRequest) GetContextUrlOk() (*string, bool) { + if o == nil || IsNil(o.ContextUrl) { + return nil, false + } + return o.ContextUrl, true +} + +// HasContextUrl returns a boolean if a field has been set. +func (o *AiSearchChatRequest) HasContextUrl() bool { + if o != nil && !IsNil(o.ContextUrl) { + return true + } + + return false +} + +// SetContextUrl gets a reference to the given string and assigns it to the ContextUrl field. +func (o *AiSearchChatRequest) SetContextUrl(v string) { + o.ContextUrl = &v +} + +// GetMaxContextChunks returns the MaxContextChunks field value if set, zero value otherwise. +func (o *AiSearchChatRequest) GetMaxContextChunks() int32 { + if o == nil || IsNil(o.MaxContextChunks) { + var ret int32 + return ret + } + return *o.MaxContextChunks +} + +// GetMaxContextChunksOk returns a tuple with the MaxContextChunks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchChatRequest) GetMaxContextChunksOk() (*int32, bool) { + if o == nil || IsNil(o.MaxContextChunks) { + return nil, false + } + return o.MaxContextChunks, true +} + +// HasMaxContextChunks returns a boolean if a field has been set. +func (o *AiSearchChatRequest) HasMaxContextChunks() bool { + if o != nil && !IsNil(o.MaxContextChunks) { + return true + } + + return false +} + +// SetMaxContextChunks gets a reference to the given int32 and assigns it to the MaxContextChunks field. +func (o *AiSearchChatRequest) SetMaxContextChunks(v int32) { + o.MaxContextChunks = &v +} + +func (o AiSearchChatRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchChatRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + if !IsNil(o.ContextUrl) { + toSerialize["contextUrl"] = o.ContextUrl + } + if !IsNil(o.MaxContextChunks) { + toSerialize["maxContextChunks"] = o.MaxContextChunks + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchChatRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAiSearchChatRequest := _AiSearchChatRequest{} + + err = json.Unmarshal(data, &varAiSearchChatRequest) + + if err != nil { + return err + } + + *o = AiSearchChatRequest(varAiSearchChatRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "sessionId") + delete(additionalProperties, "contextUrl") + delete(additionalProperties, "maxContextChunks") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchChatRequest struct { + value *AiSearchChatRequest + isSet bool +} + +func (v NullableAiSearchChatRequest) Get() *AiSearchChatRequest { + return v.value +} + +func (v *NullableAiSearchChatRequest) Set(val *AiSearchChatRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchChatRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchChatRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchChatRequest(val *AiSearchChatRequest) *NullableAiSearchChatRequest { + return &NullableAiSearchChatRequest{value: val, isSet: true} +} + +func (v NullableAiSearchChatRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchChatRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_delete_pages_request.go b/model_ai_search_delete_pages_request.go new file mode 100644 index 00000000..140d8fe0 --- /dev/null +++ b/model_ai_search_delete_pages_request.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the AiSearchDeletePagesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchDeletePagesRequest{} + +// AiSearchDeletePagesRequest struct for AiSearchDeletePagesRequest +type AiSearchDeletePagesRequest struct { + Urls []string `json:"urls,omitempty"` + Patterns []string `json:"patterns,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchDeletePagesRequest AiSearchDeletePagesRequest + +// NewAiSearchDeletePagesRequest instantiates a new AiSearchDeletePagesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchDeletePagesRequest() *AiSearchDeletePagesRequest { + this := AiSearchDeletePagesRequest{} + return &this +} + +// NewAiSearchDeletePagesRequestWithDefaults instantiates a new AiSearchDeletePagesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchDeletePagesRequestWithDefaults() *AiSearchDeletePagesRequest { + this := AiSearchDeletePagesRequest{} + return &this +} + +// GetUrls returns the Urls field value if set, zero value otherwise. +func (o *AiSearchDeletePagesRequest) GetUrls() []string { + if o == nil || IsNil(o.Urls) { + var ret []string + return ret + } + return o.Urls +} + +// GetUrlsOk returns a tuple with the Urls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchDeletePagesRequest) GetUrlsOk() ([]string, bool) { + if o == nil || IsNil(o.Urls) { + return nil, false + } + return o.Urls, true +} + +// HasUrls returns a boolean if a field has been set. +func (o *AiSearchDeletePagesRequest) HasUrls() bool { + if o != nil && !IsNil(o.Urls) { + return true + } + + return false +} + +// SetUrls gets a reference to the given []string and assigns it to the Urls field. +func (o *AiSearchDeletePagesRequest) SetUrls(v []string) { + o.Urls = v +} + +// GetPatterns returns the Patterns field value if set, zero value otherwise. +func (o *AiSearchDeletePagesRequest) GetPatterns() []string { + if o == nil || IsNil(o.Patterns) { + var ret []string + return ret + } + return o.Patterns +} + +// GetPatternsOk returns a tuple with the Patterns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchDeletePagesRequest) GetPatternsOk() ([]string, bool) { + if o == nil || IsNil(o.Patterns) { + return nil, false + } + return o.Patterns, true +} + +// HasPatterns returns a boolean if a field has been set. +func (o *AiSearchDeletePagesRequest) HasPatterns() bool { + if o != nil && !IsNil(o.Patterns) { + return true + } + + return false +} + +// SetPatterns gets a reference to the given []string and assigns it to the Patterns field. +func (o *AiSearchDeletePagesRequest) SetPatterns(v []string) { + o.Patterns = v +} + +func (o AiSearchDeletePagesRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchDeletePagesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Urls) { + toSerialize["urls"] = o.Urls + } + if !IsNil(o.Patterns) { + toSerialize["patterns"] = o.Patterns + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchDeletePagesRequest) UnmarshalJSON(data []byte) (err error) { + varAiSearchDeletePagesRequest := _AiSearchDeletePagesRequest{} + + err = json.Unmarshal(data, &varAiSearchDeletePagesRequest) + + if err != nil { + return err + } + + *o = AiSearchDeletePagesRequest(varAiSearchDeletePagesRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "urls") + delete(additionalProperties, "patterns") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchDeletePagesRequest struct { + value *AiSearchDeletePagesRequest + isSet bool +} + +func (v NullableAiSearchDeletePagesRequest) Get() *AiSearchDeletePagesRequest { + return v.value +} + +func (v *NullableAiSearchDeletePagesRequest) Set(val *AiSearchDeletePagesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchDeletePagesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchDeletePagesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchDeletePagesRequest(val *AiSearchDeletePagesRequest) *NullableAiSearchDeletePagesRequest { + return &NullableAiSearchDeletePagesRequest{value: val, isSet: true} +} + +func (v NullableAiSearchDeletePagesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchDeletePagesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_enable_request.go b/model_ai_search_enable_request.go new file mode 100644 index 00000000..7ef15b5c --- /dev/null +++ b/model_ai_search_enable_request.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the AiSearchEnableRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchEnableRequest{} + +// AiSearchEnableRequest struct for AiSearchEnableRequest +type AiSearchEnableRequest struct { + BaseUrl *string `json:"baseUrl,omitempty"` + CrawlerConfig map[string]interface{} `json:"crawlerConfig,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchEnableRequest AiSearchEnableRequest + +// NewAiSearchEnableRequest instantiates a new AiSearchEnableRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchEnableRequest() *AiSearchEnableRequest { + this := AiSearchEnableRequest{} + return &this +} + +// NewAiSearchEnableRequestWithDefaults instantiates a new AiSearchEnableRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchEnableRequestWithDefaults() *AiSearchEnableRequest { + this := AiSearchEnableRequest{} + return &this +} + +// GetBaseUrl returns the BaseUrl field value if set, zero value otherwise. +func (o *AiSearchEnableRequest) GetBaseUrl() string { + if o == nil || IsNil(o.BaseUrl) { + var ret string + return ret + } + return *o.BaseUrl +} + +// GetBaseUrlOk returns a tuple with the BaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchEnableRequest) GetBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseUrl) { + return nil, false + } + return o.BaseUrl, true +} + +// HasBaseUrl returns a boolean if a field has been set. +func (o *AiSearchEnableRequest) HasBaseUrl() bool { + if o != nil && !IsNil(o.BaseUrl) { + return true + } + + return false +} + +// SetBaseUrl gets a reference to the given string and assigns it to the BaseUrl field. +func (o *AiSearchEnableRequest) SetBaseUrl(v string) { + o.BaseUrl = &v +} + +// GetCrawlerConfig returns the CrawlerConfig field value if set, zero value otherwise. +func (o *AiSearchEnableRequest) GetCrawlerConfig() map[string]interface{} { + if o == nil || IsNil(o.CrawlerConfig) { + var ret map[string]interface{} + return ret + } + return o.CrawlerConfig +} + +// GetCrawlerConfigOk returns a tuple with the CrawlerConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchEnableRequest) GetCrawlerConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CrawlerConfig) { + return map[string]interface{}{}, false + } + return o.CrawlerConfig, true +} + +// HasCrawlerConfig returns a boolean if a field has been set. +func (o *AiSearchEnableRequest) HasCrawlerConfig() bool { + if o != nil && !IsNil(o.CrawlerConfig) { + return true + } + + return false +} + +// SetCrawlerConfig gets a reference to the given map[string]interface{} and assigns it to the CrawlerConfig field. +func (o *AiSearchEnableRequest) SetCrawlerConfig(v map[string]interface{}) { + o.CrawlerConfig = v +} + +func (o AiSearchEnableRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchEnableRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BaseUrl) { + toSerialize["baseUrl"] = o.BaseUrl + } + if !IsNil(o.CrawlerConfig) { + toSerialize["crawlerConfig"] = o.CrawlerConfig + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchEnableRequest) UnmarshalJSON(data []byte) (err error) { + varAiSearchEnableRequest := _AiSearchEnableRequest{} + + err = json.Unmarshal(data, &varAiSearchEnableRequest) + + if err != nil { + return err + } + + *o = AiSearchEnableRequest(varAiSearchEnableRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "baseUrl") + delete(additionalProperties, "crawlerConfig") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchEnableRequest struct { + value *AiSearchEnableRequest + isSet bool +} + +func (v NullableAiSearchEnableRequest) Get() *AiSearchEnableRequest { + return v.value +} + +func (v *NullableAiSearchEnableRequest) Set(val *AiSearchEnableRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchEnableRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchEnableRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchEnableRequest(val *AiSearchEnableRequest) *NullableAiSearchEnableRequest { + return &NullableAiSearchEnableRequest{value: val, isSet: true} +} + +func (v NullableAiSearchEnableRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchEnableRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_ingest_pages_request.go b/model_ai_search_ingest_pages_request.go new file mode 100644 index 00000000..e33dcb84 --- /dev/null +++ b/model_ai_search_ingest_pages_request.go @@ -0,0 +1,205 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the AiSearchIngestPagesRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchIngestPagesRequest{} + +// AiSearchIngestPagesRequest struct for AiSearchIngestPagesRequest +type AiSearchIngestPagesRequest struct { + JobId *string `json:"jobId,omitempty"` + Pages []AiSearchIngestPagesRequestPagesInner `json:"pages"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchIngestPagesRequest AiSearchIngestPagesRequest + +// NewAiSearchIngestPagesRequest instantiates a new AiSearchIngestPagesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchIngestPagesRequest(pages []AiSearchIngestPagesRequestPagesInner) *AiSearchIngestPagesRequest { + this := AiSearchIngestPagesRequest{} + this.Pages = pages + return &this +} + +// NewAiSearchIngestPagesRequestWithDefaults instantiates a new AiSearchIngestPagesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchIngestPagesRequestWithDefaults() *AiSearchIngestPagesRequest { + this := AiSearchIngestPagesRequest{} + return &this +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequest) GetJobId() string { + if o == nil || IsNil(o.JobId) { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequest) GetJobIdOk() (*string, bool) { + if o == nil || IsNil(o.JobId) { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequest) HasJobId() bool { + if o != nil && !IsNil(o.JobId) { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *AiSearchIngestPagesRequest) SetJobId(v string) { + o.JobId = &v +} + +// GetPages returns the Pages field value +func (o *AiSearchIngestPagesRequest) GetPages() []AiSearchIngestPagesRequestPagesInner { + if o == nil { + var ret []AiSearchIngestPagesRequestPagesInner + return ret + } + + return o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequest) GetPagesOk() ([]AiSearchIngestPagesRequestPagesInner, bool) { + if o == nil { + return nil, false + } + return o.Pages, true +} + +// SetPages sets field value +func (o *AiSearchIngestPagesRequest) SetPages(v []AiSearchIngestPagesRequestPagesInner) { + o.Pages = v +} + +func (o AiSearchIngestPagesRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchIngestPagesRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.JobId) { + toSerialize["jobId"] = o.JobId + } + toSerialize["pages"] = o.Pages + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchIngestPagesRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "pages", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAiSearchIngestPagesRequest := _AiSearchIngestPagesRequest{} + + err = json.Unmarshal(data, &varAiSearchIngestPagesRequest) + + if err != nil { + return err + } + + *o = AiSearchIngestPagesRequest(varAiSearchIngestPagesRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "jobId") + delete(additionalProperties, "pages") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchIngestPagesRequest struct { + value *AiSearchIngestPagesRequest + isSet bool +} + +func (v NullableAiSearchIngestPagesRequest) Get() *AiSearchIngestPagesRequest { + return v.value +} + +func (v *NullableAiSearchIngestPagesRequest) Set(val *AiSearchIngestPagesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchIngestPagesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchIngestPagesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchIngestPagesRequest(val *AiSearchIngestPagesRequest) *NullableAiSearchIngestPagesRequest { + return &NullableAiSearchIngestPagesRequest{value: val, isSet: true} +} + +func (v NullableAiSearchIngestPagesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchIngestPagesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_ingest_pages_request_pages_inner.go b/model_ai_search_ingest_pages_request_pages_inner.go new file mode 100644 index 00000000..bd8303d1 --- /dev/null +++ b/model_ai_search_ingest_pages_request_pages_inner.go @@ -0,0 +1,448 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the AiSearchIngestPagesRequestPagesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchIngestPagesRequestPagesInner{} + +// AiSearchIngestPagesRequestPagesInner struct for AiSearchIngestPagesRequestPagesInner +type AiSearchIngestPagesRequestPagesInner struct { + Url string `json:"url"` + Title string `json:"title"` + Content string `json:"content"` + ContentType *string `json:"contentType,omitempty"` + FetchedAt *string `json:"fetchedAt,omitempty"` + PreProcessed *bool `json:"preProcessed,omitempty"` + Summary *string `json:"summary,omitempty"` + Tags []string `json:"tags,omitempty"` + Topics []string `json:"topics,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchIngestPagesRequestPagesInner AiSearchIngestPagesRequestPagesInner + +// NewAiSearchIngestPagesRequestPagesInner instantiates a new AiSearchIngestPagesRequestPagesInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchIngestPagesRequestPagesInner(url string, title string, content string) *AiSearchIngestPagesRequestPagesInner { + this := AiSearchIngestPagesRequestPagesInner{} + this.Url = url + this.Title = title + this.Content = content + return &this +} + +// NewAiSearchIngestPagesRequestPagesInnerWithDefaults instantiates a new AiSearchIngestPagesRequestPagesInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchIngestPagesRequestPagesInnerWithDefaults() *AiSearchIngestPagesRequestPagesInner { + this := AiSearchIngestPagesRequestPagesInner{} + return &this +} + +// GetUrl returns the Url field value +func (o *AiSearchIngestPagesRequestPagesInner) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *AiSearchIngestPagesRequestPagesInner) SetUrl(v string) { + o.Url = v +} + +// GetTitle returns the Title field value +func (o *AiSearchIngestPagesRequestPagesInner) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *AiSearchIngestPagesRequestPagesInner) SetTitle(v string) { + o.Title = v +} + +// GetContent returns the Content field value +func (o *AiSearchIngestPagesRequestPagesInner) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *AiSearchIngestPagesRequestPagesInner) SetContent(v string) { + o.Content = v +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetContentType() string { + if o == nil || IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasContentType() bool { + if o != nil && !IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *AiSearchIngestPagesRequestPagesInner) SetContentType(v string) { + o.ContentType = &v +} + +// GetFetchedAt returns the FetchedAt field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetFetchedAt() string { + if o == nil || IsNil(o.FetchedAt) { + var ret string + return ret + } + return *o.FetchedAt +} + +// GetFetchedAtOk returns a tuple with the FetchedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetFetchedAtOk() (*string, bool) { + if o == nil || IsNil(o.FetchedAt) { + return nil, false + } + return o.FetchedAt, true +} + +// HasFetchedAt returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasFetchedAt() bool { + if o != nil && !IsNil(o.FetchedAt) { + return true + } + + return false +} + +// SetFetchedAt gets a reference to the given string and assigns it to the FetchedAt field. +func (o *AiSearchIngestPagesRequestPagesInner) SetFetchedAt(v string) { + o.FetchedAt = &v +} + +// GetPreProcessed returns the PreProcessed field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetPreProcessed() bool { + if o == nil || IsNil(o.PreProcessed) { + var ret bool + return ret + } + return *o.PreProcessed +} + +// GetPreProcessedOk returns a tuple with the PreProcessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetPreProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.PreProcessed) { + return nil, false + } + return o.PreProcessed, true +} + +// HasPreProcessed returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasPreProcessed() bool { + if o != nil && !IsNil(o.PreProcessed) { + return true + } + + return false +} + +// SetPreProcessed gets a reference to the given bool and assigns it to the PreProcessed field. +func (o *AiSearchIngestPagesRequestPagesInner) SetPreProcessed(v bool) { + o.PreProcessed = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *AiSearchIngestPagesRequestPagesInner) SetSummary(v string) { + o.Summary = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *AiSearchIngestPagesRequestPagesInner) SetTags(v []string) { + o.Tags = v +} + +// GetTopics returns the Topics field value if set, zero value otherwise. +func (o *AiSearchIngestPagesRequestPagesInner) GetTopics() []string { + if o == nil || IsNil(o.Topics) { + var ret []string + return ret + } + return o.Topics +} + +// GetTopicsOk returns a tuple with the Topics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchIngestPagesRequestPagesInner) GetTopicsOk() ([]string, bool) { + if o == nil || IsNil(o.Topics) { + return nil, false + } + return o.Topics, true +} + +// HasTopics returns a boolean if a field has been set. +func (o *AiSearchIngestPagesRequestPagesInner) HasTopics() bool { + if o != nil && !IsNil(o.Topics) { + return true + } + + return false +} + +// SetTopics gets a reference to the given []string and assigns it to the Topics field. +func (o *AiSearchIngestPagesRequestPagesInner) SetTopics(v []string) { + o.Topics = v +} + +func (o AiSearchIngestPagesRequestPagesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchIngestPagesRequestPagesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["title"] = o.Title + toSerialize["content"] = o.Content + if !IsNil(o.ContentType) { + toSerialize["contentType"] = o.ContentType + } + if !IsNil(o.FetchedAt) { + toSerialize["fetchedAt"] = o.FetchedAt + } + if !IsNil(o.PreProcessed) { + toSerialize["preProcessed"] = o.PreProcessed + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Topics) { + toSerialize["topics"] = o.Topics + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchIngestPagesRequestPagesInner) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "title", + "content", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAiSearchIngestPagesRequestPagesInner := _AiSearchIngestPagesRequestPagesInner{} + + err = json.Unmarshal(data, &varAiSearchIngestPagesRequestPagesInner) + + if err != nil { + return err + } + + *o = AiSearchIngestPagesRequestPagesInner(varAiSearchIngestPagesRequestPagesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + delete(additionalProperties, "title") + delete(additionalProperties, "content") + delete(additionalProperties, "contentType") + delete(additionalProperties, "fetchedAt") + delete(additionalProperties, "preProcessed") + delete(additionalProperties, "summary") + delete(additionalProperties, "tags") + delete(additionalProperties, "topics") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchIngestPagesRequestPagesInner struct { + value *AiSearchIngestPagesRequestPagesInner + isSet bool +} + +func (v NullableAiSearchIngestPagesRequestPagesInner) Get() *AiSearchIngestPagesRequestPagesInner { + return v.value +} + +func (v *NullableAiSearchIngestPagesRequestPagesInner) Set(val *AiSearchIngestPagesRequestPagesInner) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchIngestPagesRequestPagesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchIngestPagesRequestPagesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchIngestPagesRequestPagesInner(val *AiSearchIngestPagesRequestPagesInner) *NullableAiSearchIngestPagesRequestPagesInner { + return &NullableAiSearchIngestPagesRequestPagesInner{value: val, isSet: true} +} + +func (v NullableAiSearchIngestPagesRequestPagesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchIngestPagesRequestPagesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_search_request.go b/model_ai_search_search_request.go new file mode 100644 index 00000000..41a46adf --- /dev/null +++ b/model_ai_search_search_request.go @@ -0,0 +1,242 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the AiSearchSearchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchSearchRequest{} + +// AiSearchSearchRequest struct for AiSearchSearchRequest +type AiSearchSearchRequest struct { + Query string `json:"query"` + Limit *int32 `json:"limit,omitempty"` + MinScore *float32 `json:"minScore,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchSearchRequest AiSearchSearchRequest + +// NewAiSearchSearchRequest instantiates a new AiSearchSearchRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchSearchRequest(query string) *AiSearchSearchRequest { + this := AiSearchSearchRequest{} + this.Query = query + return &this +} + +// NewAiSearchSearchRequestWithDefaults instantiates a new AiSearchSearchRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchSearchRequestWithDefaults() *AiSearchSearchRequest { + this := AiSearchSearchRequest{} + return &this +} + +// GetQuery returns the Query field value +func (o *AiSearchSearchRequest) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *AiSearchSearchRequest) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *AiSearchSearchRequest) SetQuery(v string) { + o.Query = v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *AiSearchSearchRequest) GetLimit() int32 { + if o == nil || IsNil(o.Limit) { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchSearchRequest) GetLimitOk() (*int32, bool) { + if o == nil || IsNil(o.Limit) { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *AiSearchSearchRequest) HasLimit() bool { + if o != nil && !IsNil(o.Limit) { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *AiSearchSearchRequest) SetLimit(v int32) { + o.Limit = &v +} + +// GetMinScore returns the MinScore field value if set, zero value otherwise. +func (o *AiSearchSearchRequest) GetMinScore() float32 { + if o == nil || IsNil(o.MinScore) { + var ret float32 + return ret + } + return *o.MinScore +} + +// GetMinScoreOk returns a tuple with the MinScore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchSearchRequest) GetMinScoreOk() (*float32, bool) { + if o == nil || IsNil(o.MinScore) { + return nil, false + } + return o.MinScore, true +} + +// HasMinScore returns a boolean if a field has been set. +func (o *AiSearchSearchRequest) HasMinScore() bool { + if o != nil && !IsNil(o.MinScore) { + return true + } + + return false +} + +// SetMinScore gets a reference to the given float32 and assigns it to the MinScore field. +func (o *AiSearchSearchRequest) SetMinScore(v float32) { + o.MinScore = &v +} + +func (o AiSearchSearchRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchSearchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["query"] = o.Query + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + if !IsNil(o.MinScore) { + toSerialize["minScore"] = o.MinScore + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchSearchRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "query", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAiSearchSearchRequest := _AiSearchSearchRequest{} + + err = json.Unmarshal(data, &varAiSearchSearchRequest) + + if err != nil { + return err + } + + *o = AiSearchSearchRequest(varAiSearchSearchRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "query") + delete(additionalProperties, "limit") + delete(additionalProperties, "minScore") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchSearchRequest struct { + value *AiSearchSearchRequest + isSet bool +} + +func (v NullableAiSearchSearchRequest) Get() *AiSearchSearchRequest { + return v.value +} + +func (v *NullableAiSearchSearchRequest) Set(val *AiSearchSearchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchSearchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchSearchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchSearchRequest(val *AiSearchSearchRequest) *NullableAiSearchSearchRequest { + return &NullableAiSearchSearchRequest{value: val, isSet: true} +} + +func (v NullableAiSearchSearchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchSearchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_trigger_crawl_request.go b/model_ai_search_trigger_crawl_request.go new file mode 100644 index 00000000..a9affe09 --- /dev/null +++ b/model_ai_search_trigger_crawl_request.go @@ -0,0 +1,168 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the AiSearchTriggerCrawlRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchTriggerCrawlRequest{} + +// AiSearchTriggerCrawlRequest struct for AiSearchTriggerCrawlRequest +type AiSearchTriggerCrawlRequest struct { + CrawlerUuid string `json:"crawler_uuid"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchTriggerCrawlRequest AiSearchTriggerCrawlRequest + +// NewAiSearchTriggerCrawlRequest instantiates a new AiSearchTriggerCrawlRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchTriggerCrawlRequest(crawlerUuid string) *AiSearchTriggerCrawlRequest { + this := AiSearchTriggerCrawlRequest{} + this.CrawlerUuid = crawlerUuid + return &this +} + +// NewAiSearchTriggerCrawlRequestWithDefaults instantiates a new AiSearchTriggerCrawlRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchTriggerCrawlRequestWithDefaults() *AiSearchTriggerCrawlRequest { + this := AiSearchTriggerCrawlRequest{} + return &this +} + +// GetCrawlerUuid returns the CrawlerUuid field value +func (o *AiSearchTriggerCrawlRequest) GetCrawlerUuid() string { + if o == nil { + var ret string + return ret + } + + return o.CrawlerUuid +} + +// GetCrawlerUuidOk returns a tuple with the CrawlerUuid field value +// and a boolean to check if the value has been set. +func (o *AiSearchTriggerCrawlRequest) GetCrawlerUuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CrawlerUuid, true +} + +// SetCrawlerUuid sets field value +func (o *AiSearchTriggerCrawlRequest) SetCrawlerUuid(v string) { + o.CrawlerUuid = v +} + +func (o AiSearchTriggerCrawlRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchTriggerCrawlRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["crawler_uuid"] = o.CrawlerUuid + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchTriggerCrawlRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "crawler_uuid", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAiSearchTriggerCrawlRequest := _AiSearchTriggerCrawlRequest{} + + err = json.Unmarshal(data, &varAiSearchTriggerCrawlRequest) + + if err != nil { + return err + } + + *o = AiSearchTriggerCrawlRequest(varAiSearchTriggerCrawlRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "crawler_uuid") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchTriggerCrawlRequest struct { + value *AiSearchTriggerCrawlRequest + isSet bool +} + +func (v NullableAiSearchTriggerCrawlRequest) Get() *AiSearchTriggerCrawlRequest { + return v.value +} + +func (v *NullableAiSearchTriggerCrawlRequest) Set(val *AiSearchTriggerCrawlRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchTriggerCrawlRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchTriggerCrawlRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchTriggerCrawlRequest(val *AiSearchTriggerCrawlRequest) *NullableAiSearchTriggerCrawlRequest { + return &NullableAiSearchTriggerCrawlRequest{value: val, isSet: true} +} + +func (v NullableAiSearchTriggerCrawlRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchTriggerCrawlRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ai_search_update_settings_request.go b/model_ai_search_update_settings_request.go new file mode 100644 index 00000000..e404b4a6 --- /dev/null +++ b/model_ai_search_update_settings_request.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the AiSearchUpdateSettingsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AiSearchUpdateSettingsRequest{} + +// AiSearchUpdateSettingsRequest struct for AiSearchUpdateSettingsRequest +type AiSearchUpdateSettingsRequest struct { + PublicAccess map[string]interface{} `json:"publicAccess,omitempty"` + RateLimits map[string]interface{} `json:"rateLimits,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AiSearchUpdateSettingsRequest AiSearchUpdateSettingsRequest + +// NewAiSearchUpdateSettingsRequest instantiates a new AiSearchUpdateSettingsRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAiSearchUpdateSettingsRequest() *AiSearchUpdateSettingsRequest { + this := AiSearchUpdateSettingsRequest{} + return &this +} + +// NewAiSearchUpdateSettingsRequestWithDefaults instantiates a new AiSearchUpdateSettingsRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAiSearchUpdateSettingsRequestWithDefaults() *AiSearchUpdateSettingsRequest { + this := AiSearchUpdateSettingsRequest{} + return &this +} + +// GetPublicAccess returns the PublicAccess field value if set, zero value otherwise. +func (o *AiSearchUpdateSettingsRequest) GetPublicAccess() map[string]interface{} { + if o == nil || IsNil(o.PublicAccess) { + var ret map[string]interface{} + return ret + } + return o.PublicAccess +} + +// GetPublicAccessOk returns a tuple with the PublicAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchUpdateSettingsRequest) GetPublicAccessOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PublicAccess) { + return map[string]interface{}{}, false + } + return o.PublicAccess, true +} + +// HasPublicAccess returns a boolean if a field has been set. +func (o *AiSearchUpdateSettingsRequest) HasPublicAccess() bool { + if o != nil && !IsNil(o.PublicAccess) { + return true + } + + return false +} + +// SetPublicAccess gets a reference to the given map[string]interface{} and assigns it to the PublicAccess field. +func (o *AiSearchUpdateSettingsRequest) SetPublicAccess(v map[string]interface{}) { + o.PublicAccess = v +} + +// GetRateLimits returns the RateLimits field value if set, zero value otherwise. +func (o *AiSearchUpdateSettingsRequest) GetRateLimits() map[string]interface{} { + if o == nil || IsNil(o.RateLimits) { + var ret map[string]interface{} + return ret + } + return o.RateLimits +} + +// GetRateLimitsOk returns a tuple with the RateLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AiSearchUpdateSettingsRequest) GetRateLimitsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.RateLimits) { + return map[string]interface{}{}, false + } + return o.RateLimits, true +} + +// HasRateLimits returns a boolean if a field has been set. +func (o *AiSearchUpdateSettingsRequest) HasRateLimits() bool { + if o != nil && !IsNil(o.RateLimits) { + return true + } + + return false +} + +// SetRateLimits gets a reference to the given map[string]interface{} and assigns it to the RateLimits field. +func (o *AiSearchUpdateSettingsRequest) SetRateLimits(v map[string]interface{}) { + o.RateLimits = v +} + +func (o AiSearchUpdateSettingsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AiSearchUpdateSettingsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PublicAccess) { + toSerialize["publicAccess"] = o.PublicAccess + } + if !IsNil(o.RateLimits) { + toSerialize["rateLimits"] = o.RateLimits + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AiSearchUpdateSettingsRequest) UnmarshalJSON(data []byte) (err error) { + varAiSearchUpdateSettingsRequest := _AiSearchUpdateSettingsRequest{} + + err = json.Unmarshal(data, &varAiSearchUpdateSettingsRequest) + + if err != nil { + return err + } + + *o = AiSearchUpdateSettingsRequest(varAiSearchUpdateSettingsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "publicAccess") + delete(additionalProperties, "rateLimits") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAiSearchUpdateSettingsRequest struct { + value *AiSearchUpdateSettingsRequest + isSet bool +} + +func (v NullableAiSearchUpdateSettingsRequest) Get() *AiSearchUpdateSettingsRequest { + return v.value +} + +func (v *NullableAiSearchUpdateSettingsRequest) Set(val *AiSearchUpdateSettingsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAiSearchUpdateSettingsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAiSearchUpdateSettingsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAiSearchUpdateSettingsRequest(val *AiSearchUpdateSettingsRequest) *NullableAiSearchUpdateSettingsRequest { + return &NullableAiSearchUpdateSettingsRequest{value: val, isSet: true} +} + +func (v NullableAiSearchUpdateSettingsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAiSearchUpdateSettingsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_application.go b/model_application.go index fc4fa779..5018bb31 100644 --- a/model_application.go +++ b/model_application.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_application_database.go b/model_application_database.go index 08105552..10f655cc 100644 --- a/model_application_database.go +++ b/model_application_database.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_application_deployment_information_inner.go b/model_application_deployment_information_inner.go index fc78f3e3..51c9e50b 100644 --- a/model_application_deployment_information_inner.go +++ b/model_application_deployment_information_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_application_filesystem.go b/model_application_filesystem.go index 4293a901..d7e17809 100644 --- a/model_application_filesystem.go +++ b/model_application_filesystem.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_application_image_reference.go b/model_application_image_reference.go index 781f7465..8b958c93 100644 --- a/model_application_image_reference.go +++ b/model_application_image_reference.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_bulk_set_environment_variables_request.go b/model_bulk_set_environment_variables_request.go index 6f248f24..2e591275 100644 --- a/model_bulk_set_environment_variables_request.go +++ b/model_bulk_set_environment_variables_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_bulk_set_environment_variables_request_environment_inner.go b/model_bulk_set_environment_variables_request_environment_inner.go index db1bcc40..aa7e1ac1 100644 --- a/model_bulk_set_environment_variables_request_environment_inner.go +++ b/model_bulk_set_environment_variables_request_environment_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response.go b/model_chat_inference_200_response.go index b4efbdc6..7ff33a04 100644 --- a/model_chat_inference_200_response.go +++ b/model_chat_inference_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_response.go b/model_chat_inference_200_response_response.go index 3563d584..3ffc7622 100644 --- a/model_chat_inference_200_response_response.go +++ b/model_chat_inference_200_response_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_response_tool_use.go b/model_chat_inference_200_response_response_tool_use.go index 4cbe842c..7051c33c 100644 --- a/model_chat_inference_200_response_response_tool_use.go +++ b/model_chat_inference_200_response_response_tool_use.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_response_tool_use_one_of.go b/model_chat_inference_200_response_response_tool_use_one_of.go index 73ee4473..8c03f515 100644 --- a/model_chat_inference_200_response_response_tool_use_one_of.go +++ b/model_chat_inference_200_response_response_tool_use_one_of.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_response_tool_use_one_of_1_inner.go b/model_chat_inference_200_response_response_tool_use_one_of_1_inner.go index c17eae0d..81cbdd87 100644 --- a/model_chat_inference_200_response_response_tool_use_one_of_1_inner.go +++ b/model_chat_inference_200_response_response_tool_use_one_of_1_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_response_tool_use_one_of_result.go b/model_chat_inference_200_response_response_tool_use_one_of_result.go index 4ba5e9cc..9524ad72 100644 --- a/model_chat_inference_200_response_response_tool_use_one_of_result.go +++ b/model_chat_inference_200_response_response_tool_use_one_of_result.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_200_response_usage.go b/model_chat_inference_200_response_usage.go index 7db30ee7..f6826963 100644 --- a/model_chat_inference_200_response_usage.go +++ b/model_chat_inference_200_response_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_202_response.go b/model_chat_inference_202_response.go index ea92531a..90af07de 100644 --- a/model_chat_inference_202_response.go +++ b/model_chat_inference_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request.go b/model_chat_inference_request.go index b7fb7d1e..0cb307b8 100644 --- a/model_chat_inference_request.go +++ b/model_chat_inference_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_guardrails.go b/model_chat_inference_request_guardrails.go index 6cb1ec57..0edf1695 100644 --- a/model_chat_inference_request_guardrails.go +++ b/model_chat_inference_request_guardrails.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner.go b/model_chat_inference_request_messages_inner.go index 3383bea5..98492c57 100644 --- a/model_chat_inference_request_messages_inner.go +++ b/model_chat_inference_request_messages_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content.go b/model_chat_inference_request_messages_inner_content.go index a6540997..1f24a30b 100644 --- a/model_chat_inference_request_messages_inner_content.go +++ b/model_chat_inference_request_messages_inner_content.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner.go b/model_chat_inference_request_messages_inner_content_one_of_inner.go index 8d71d72f..f33ed5a8 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of.go index 2aba682c..271d4c22 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1.go index 8ef851c8..5e7497c3 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image.go index eb6a3b4c..a104f4ec 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image_source.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image_source.go index a3db47ac..a42634d9 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image_source.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_1_image_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2.go index 380fc177..52dd555c 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video.go index 7e1c4739..b3ba60b4 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video_source.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video_source.go index f34e45fd..edb6763d 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video_source.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_2_video_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3.go index 814c0acf..66851da9 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document.go index 4c53663f..cabc42e8 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document_source.go b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document_source.go index 37493769..5935f0a4 100644 --- a/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document_source.go +++ b/model_chat_inference_request_messages_inner_content_one_of_inner_one_of_3_document_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_response_format.go b/model_chat_inference_request_response_format.go index 2ed4f006..1079b7c8 100644 --- a/model_chat_inference_request_response_format.go +++ b/model_chat_inference_request_response_format.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_tool_config.go b/model_chat_inference_request_tool_config.go index 33e59f4c..4780a656 100644 --- a/model_chat_inference_request_tool_config.go +++ b/model_chat_inference_request_tool_config.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_tool_config_tools_inner.go b/model_chat_inference_request_tool_config_tools_inner.go index 6aa9772c..f78a0c1f 100644 --- a/model_chat_inference_request_tool_config_tools_inner.go +++ b/model_chat_inference_request_tool_config_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_tool_config_tools_inner_tool_spec.go b/model_chat_inference_request_tool_config_tools_inner_tool_spec.go index 0af91348..2f7ad72e 100644 --- a/model_chat_inference_request_tool_config_tools_inner_tool_spec.go +++ b/model_chat_inference_request_tool_config_tools_inner_tool_spec.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.go b/model_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.go index c74c5f9e..e257ba8f 100644 --- a/model_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.go +++ b/model_chat_inference_request_tool_config_tools_inner_tool_spec_input_schema.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_stream_request.go b/model_chat_inference_stream_request.go index 965ff977..1f94fa73 100644 --- a/model_chat_inference_stream_request.go +++ b/model_chat_inference_stream_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_stream_request_messages_inner.go b/model_chat_inference_stream_request_messages_inner.go index f8855106..7a195f58 100644 --- a/model_chat_inference_stream_request_messages_inner.go +++ b/model_chat_inference_stream_request_messages_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_inference_stream_request_messages_inner_content.go b/model_chat_inference_stream_request_messages_inner_content.go index a97de9dc..932bbbd4 100644 --- a/model_chat_inference_stream_request_messages_inner_content.go +++ b/model_chat_inference_stream_request_messages_inner_content.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_200_response.go b/model_chat_with_ai_agent_200_response.go index 6f72a85d..d838164d 100644 --- a/model_chat_with_ai_agent_200_response.go +++ b/model_chat_with_ai_agent_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_200_response_response.go b/model_chat_with_ai_agent_200_response_response.go index 697505b5..ca5b3ecf 100644 --- a/model_chat_with_ai_agent_200_response_response.go +++ b/model_chat_with_ai_agent_200_response_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_200_response_response_usage.go b/model_chat_with_ai_agent_200_response_response_usage.go index b98d8861..26347d12 100644 --- a/model_chat_with_ai_agent_200_response_response_usage.go +++ b/model_chat_with_ai_agent_200_response_response_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_202_response.go b/model_chat_with_ai_agent_202_response.go index 88c7ca95..be1ea671 100644 --- a/model_chat_with_ai_agent_202_response.go +++ b/model_chat_with_ai_agent_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_chat_with_ai_agent_request.go b/model_chat_with_ai_agent_request.go index d7ce7fd8..5cad0efb 100644 --- a/model_chat_with_ai_agent_request.go +++ b/model_chat_with_ai_agent_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_command.go b/model_command.go index 8f1ec451..7eac3ec1 100644 --- a/model_command.go +++ b/model_command.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_compose.go b/model_compose.go index ab16ef2e..88b4a868 100644 --- a/model_compose.go +++ b/model_compose.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container.go b/model_container.go index 14861f3e..b0548ef7 100644 --- a/model_container.go +++ b/model_container.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_depends_on_inner.go b/model_container_depends_on_inner.go index 4d0f148f..3898a163 100644 --- a/model_container_depends_on_inner.go +++ b/model_container_depends_on_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_environment_inner.go b/model_container_environment_inner.go index edc1b874..79d9ee7f 100644 --- a/model_container_environment_inner.go +++ b/model_container_environment_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_health_check.go b/model_container_health_check.go index 0ab6c5fc..e27fee33 100644 --- a/model_container_health_check.go +++ b/model_container_health_check.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_image_reference.go b/model_container_image_reference.go index e9d34f39..39ad391a 100644 --- a/model_container_image_reference.go +++ b/model_container_image_reference.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_mount_points_inner.go b/model_container_mount_points_inner.go index 7e023bd5..0d869e13 100644 --- a/model_container_mount_points_inner.go +++ b/model_container_mount_points_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_origin_protection_config.go b/model_container_origin_protection_config.go index 5a19c881..728b5fe2 100644 --- a/model_container_origin_protection_config.go +++ b/model_container_origin_protection_config.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,8 @@ type ContainerOriginProtectionConfig struct { Enabled *bool `json:"enabled,omitempty"` // List of IP addresses or CIDR ranges that can bypass origin protection for direct access (e.g., VPN IPs) IpAllow []string `json:"ipAllow,omitempty"` + // Optional bare host (e.g. www.example.com). When set, requests denied by origin protection are 302-redirected to https:// with path and query preserved, instead of receiving a 403. Allowed IPs and valid-header (CDN) traffic are unaffected. + RedirectHost NullableString `json:"redirectHost,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,6 +116,48 @@ func (o *ContainerOriginProtectionConfig) SetIpAllow(v []string) { o.IpAllow = v } +// GetRedirectHost returns the RedirectHost field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContainerOriginProtectionConfig) GetRedirectHost() string { + if o == nil || IsNil(o.RedirectHost.Get()) { + var ret string + return ret + } + return *o.RedirectHost.Get() +} + +// GetRedirectHostOk returns a tuple with the RedirectHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContainerOriginProtectionConfig) GetRedirectHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RedirectHost.Get(), o.RedirectHost.IsSet() +} + +// HasRedirectHost returns a boolean if a field has been set. +func (o *ContainerOriginProtectionConfig) HasRedirectHost() bool { + if o != nil && o.RedirectHost.IsSet() { + return true + } + + return false +} + +// SetRedirectHost gets a reference to the given NullableString and assigns it to the RedirectHost field. +func (o *ContainerOriginProtectionConfig) SetRedirectHost(v string) { + o.RedirectHost.Set(&v) +} +// SetRedirectHostNil sets the value for RedirectHost to be an explicit nil +func (o *ContainerOriginProtectionConfig) SetRedirectHostNil() { + o.RedirectHost.Set(nil) +} + +// UnsetRedirectHost ensures that no value is present for RedirectHost, not even an explicit nil +func (o *ContainerOriginProtectionConfig) UnsetRedirectHost() { + o.RedirectHost.Unset() +} + func (o ContainerOriginProtectionConfig) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -130,6 +174,9 @@ func (o ContainerOriginProtectionConfig) ToMap() (map[string]interface{}, error) if o.IpAllow != nil { toSerialize["ipAllow"] = o.IpAllow } + if o.RedirectHost.IsSet() { + toSerialize["redirectHost"] = o.RedirectHost.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -154,6 +201,7 @@ func (o *ContainerOriginProtectionConfig) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "enabled") delete(additionalProperties, "ipAllow") + delete(additionalProperties, "redirectHost") o.AdditionalProperties = additionalProperties } diff --git a/model_container_secrets_inner.go b/model_container_secrets_inner.go index c2847cbb..15b56f50 100644 --- a/model_container_secrets_inner.go +++ b/model_container_secrets_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_crawlers_run_200_response.go b/model_crawlers_run_200_response.go index 32446bf4..66991140 100644 --- a/model_crawlers_run_200_response.go +++ b/model_crawlers_run_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_crawlers_run_request.go b/model_crawlers_run_request.go index 4f6eea69..fa54870e 100644 --- a/model_crawlers_run_request.go +++ b/model_crawlers_run_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_agent_201_response.go b/model_create_ai_agent_201_response.go index e5bacb89..af478c18 100644 --- a/model_create_ai_agent_201_response.go +++ b/model_create_ai_agent_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_agent_request.go b/model_create_ai_agent_request.go index 92dc9530..bbbed40c 100644 --- a/model_create_ai_agent_request.go +++ b/model_create_ai_agent_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -36,7 +36,7 @@ type CreateAIAgentRequest struct { // Enable 1M context window support LongContext *bool `json:"longContext,omitempty"` // Guardrail preset name - GuardrailPreset *string `json:"guardrailPreset,omitempty"` + GuardrailPreset NullableString `json:"guardrailPreset,omitempty"` // Filter policy IDs to apply to this agent's inference requests FilterPolicies []string `json:"filterPolicies,omitempty"` AdditionalProperties map[string]interface{} @@ -417,36 +417,46 @@ func (o *CreateAIAgentRequest) SetLongContext(v bool) { o.LongContext = &v } -// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise (both if not set or set to explicit null). func (o *CreateAIAgentRequest) GetGuardrailPreset() string { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil || IsNil(o.GuardrailPreset.Get()) { var ret string return ret } - return *o.GuardrailPreset + return *o.GuardrailPreset.Get() } // GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateAIAgentRequest) GetGuardrailPresetOk() (*string, bool) { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil { return nil, false } - return o.GuardrailPreset, true + return o.GuardrailPreset.Get(), o.GuardrailPreset.IsSet() } // HasGuardrailPreset returns a boolean if a field has been set. func (o *CreateAIAgentRequest) HasGuardrailPreset() bool { - if o != nil && !IsNil(o.GuardrailPreset) { + if o != nil && o.GuardrailPreset.IsSet() { return true } return false } -// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +// SetGuardrailPreset gets a reference to the given NullableString and assigns it to the GuardrailPreset field. func (o *CreateAIAgentRequest) SetGuardrailPreset(v string) { - o.GuardrailPreset = &v + o.GuardrailPreset.Set(&v) +} +// SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil +func (o *CreateAIAgentRequest) SetGuardrailPresetNil() { + o.GuardrailPreset.Set(nil) +} + +// UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil +func (o *CreateAIAgentRequest) UnsetGuardrailPreset() { + o.GuardrailPreset.Unset() } // GetFilterPolicies returns the FilterPolicies field value if set, zero value otherwise. @@ -519,8 +529,8 @@ func (o CreateAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.LongContext) { toSerialize["longContext"] = o.LongContext } - if !IsNil(o.GuardrailPreset) { - toSerialize["guardrailPreset"] = o.GuardrailPreset + if o.GuardrailPreset.IsSet() { + toSerialize["guardrailPreset"] = o.GuardrailPreset.Get() } if !IsNil(o.FilterPolicies) { toSerialize["filterPolicies"] = o.FilterPolicies diff --git a/model_create_ai_session_201_response.go b/model_create_ai_session_201_response.go index fbf5777f..39be5c1f 100644 --- a/model_create_ai_session_201_response.go +++ b/model_create_ai_session_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_session_request.go b/model_create_ai_session_request.go index f34a72af..9f36f463 100644 --- a/model_create_ai_session_request.go +++ b/model_create_ai_session_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_session_request_initial_messages_inner.go b/model_create_ai_session_request_initial_messages_inner.go index 0999704c..8a1df0f7 100644 --- a/model_create_ai_session_request_initial_messages_inner.go +++ b/model_create_ai_session_request_initial_messages_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_application_403_response.go b/model_create_application_403_response.go index e385f11f..a64ac32e 100644 --- a/model_create_application_403_response.go +++ b/model_create_application_403_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_application_request.go b/model_create_application_request.go index de46d850..01eff71c 100644 --- a/model_create_application_request.go +++ b/model_create_application_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_application_request_database.go b/model_create_application_request_database.go index 035c1c3b..010e1849 100644 --- a/model_create_application_request_database.go +++ b/model_create_application_request_database.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_application_request_environment_inner.go b/model_create_application_request_environment_inner.go index 49c66c5f..e28c7200 100644 --- a/model_create_application_request_environment_inner.go +++ b/model_create_application_request_environment_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_application_request_filesystem.go b/model_create_application_request_filesystem.go index 3d663841..ea443ae1 100644 --- a/model_create_application_request_filesystem.go +++ b/model_create_application_request_filesystem.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_backup_202_response.go b/model_create_backup_202_response.go index 78a3c6fb..a4c8f8ed 100644 --- a/model_create_backup_202_response.go +++ b/model_create_backup_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_backup_request.go b/model_create_backup_request.go index 96d100f3..56d594f4 100644 --- a/model_create_backup_request.go +++ b/model_create_backup_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_command_request.go b/model_create_command_request.go index 2d5bff8c..d9cc7504 100644 --- a/model_create_command_request.go +++ b/model_create_command_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_cron_job_request.go b/model_create_cron_job_request.go index 32e46d4f..8cbdccde 100644 --- a/model_create_cron_job_request.go +++ b/model_create_cron_job_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_custom_tool_201_response.go b/model_create_custom_tool_201_response.go index daabc8e1..f0f30654 100644 --- a/model_create_custom_tool_201_response.go +++ b/model_create_custom_tool_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_custom_tool_request.go b/model_create_custom_tool_request.go index ee99dfde..24411023 100644 --- a/model_create_custom_tool_request.go +++ b/model_create_custom_tool_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,14 +26,14 @@ type CreateCustomToolRequest struct { Description string `json:"description"` // JavaScript source code for the edge function EdgeFunctionCode string `json:"edgeFunctionCode"` - // JSON Schema defining the tool's input parameters - InputSchema map[string]interface{} `json:"inputSchema"` + // JSON-encoded JSON Schema object defining the tool's input parameters + InputSchema string `json:"inputSchema"` // Whether this tool runs asynchronously (>5 seconds) IsAsync *bool `json:"isAsync,omitempty"` // Tool execution timeout TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` - // JSON Schema defining the tool's output structure - OutputSchema map[string]interface{} `json:"outputSchema,omitempty"` + // JSON-encoded JSON Schema object defining the tool's output structure + OutputSchema NullableString `json:"outputSchema,omitempty"` // Human-readable description of the tool's output OutputSchemaDescription NullableString `json:"outputSchemaDescription,omitempty"` // Category to group related tools @@ -49,7 +49,7 @@ type _CreateCustomToolRequest CreateCustomToolRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateCustomToolRequest(name string, description string, edgeFunctionCode string, inputSchema map[string]interface{}) *CreateCustomToolRequest { +func NewCreateCustomToolRequest(name string, description string, edgeFunctionCode string, inputSchema string) *CreateCustomToolRequest { this := CreateCustomToolRequest{} this.Name = name this.Description = description @@ -147,9 +147,9 @@ func (o *CreateCustomToolRequest) SetEdgeFunctionCode(v string) { } // GetInputSchema returns the InputSchema field value -func (o *CreateCustomToolRequest) GetInputSchema() map[string]interface{} { +func (o *CreateCustomToolRequest) GetInputSchema() string { if o == nil { - var ret map[string]interface{} + var ret string return ret } @@ -158,15 +158,15 @@ func (o *CreateCustomToolRequest) GetInputSchema() map[string]interface{} { // GetInputSchemaOk returns a tuple with the InputSchema field value // and a boolean to check if the value has been set. -func (o *CreateCustomToolRequest) GetInputSchemaOk() (map[string]interface{}, bool) { +func (o *CreateCustomToolRequest) GetInputSchemaOk() (*string, bool) { if o == nil { - return map[string]interface{}{}, false + return nil, false } - return o.InputSchema, true + return &o.InputSchema, true } // SetInputSchema sets field value -func (o *CreateCustomToolRequest) SetInputSchema(v map[string]interface{}) { +func (o *CreateCustomToolRequest) SetInputSchema(v string) { o.InputSchema = v } @@ -235,36 +235,45 @@ func (o *CreateCustomToolRequest) SetTimeoutSeconds(v int32) { } // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CreateCustomToolRequest) GetOutputSchema() map[string]interface{} { - if o == nil { - var ret map[string]interface{} +func (o *CreateCustomToolRequest) GetOutputSchema() string { + if o == nil || IsNil(o.OutputSchema.Get()) { + var ret string return ret } - return o.OutputSchema + return *o.OutputSchema.Get() } // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CreateCustomToolRequest) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.OutputSchema) { - return map[string]interface{}{}, false +func (o *CreateCustomToolRequest) GetOutputSchemaOk() (*string, bool) { + if o == nil { + return nil, false } - return o.OutputSchema, true + return o.OutputSchema.Get(), o.OutputSchema.IsSet() } // HasOutputSchema returns a boolean if a field has been set. func (o *CreateCustomToolRequest) HasOutputSchema() bool { - if o != nil && !IsNil(o.OutputSchema) { + if o != nil && o.OutputSchema.IsSet() { return true } return false } -// SetOutputSchema gets a reference to the given map[string]interface{} and assigns it to the OutputSchema field. -func (o *CreateCustomToolRequest) SetOutputSchema(v map[string]interface{}) { - o.OutputSchema = v +// SetOutputSchema gets a reference to the given NullableString and assigns it to the OutputSchema field. +func (o *CreateCustomToolRequest) SetOutputSchema(v string) { + o.OutputSchema.Set(&v) +} +// SetOutputSchemaNil sets the value for OutputSchema to be an explicit nil +func (o *CreateCustomToolRequest) SetOutputSchemaNil() { + o.OutputSchema.Set(nil) +} + +// UnsetOutputSchema ensures that no value is present for OutputSchema, not even an explicit nil +func (o *CreateCustomToolRequest) UnsetOutputSchema() { + o.OutputSchema.Unset() } // GetOutputSchemaDescription returns the OutputSchemaDescription field value if set, zero value otherwise (both if not set or set to explicit null). @@ -413,8 +422,8 @@ func (o CreateCustomToolRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.TimeoutSeconds) { toSerialize["timeoutSeconds"] = o.TimeoutSeconds } - if o.OutputSchema != nil { - toSerialize["outputSchema"] = o.OutputSchema + if o.OutputSchema.IsSet() { + toSerialize["outputSchema"] = o.OutputSchema.Get() } if o.OutputSchemaDescription.IsSet() { toSerialize["outputSchemaDescription"] = o.OutputSchemaDescription.Get() diff --git a/model_create_environment_403_response.go b/model_create_environment_403_response.go index cd42e7ec..0ebc2403 100644 --- a/model_create_environment_403_response.go +++ b/model_create_environment_403_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_environment_request.go b/model_create_environment_request.go index 93015a35..aeb65222 100644 --- a/model_create_environment_request.go +++ b/model_create_environment_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_environment_request_environment_inner.go b/model_create_environment_request_environment_inner.go index 60570de7..24b352dc 100644 --- a/model_create_environment_request_environment_inner.go +++ b/model_create_environment_request_environment_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_filter_policy_request.go b/model_create_filter_policy_request.go index ee8ca647..000b0292 100644 --- a/model_create_filter_policy_request.go +++ b/model_create_filter_policy_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_filter_policy_request_rules_inner.go b/model_create_filter_policy_request_rules_inner.go index 627ae908..cc2b6269 100644 --- a/model_create_filter_policy_request_rules_inner.go +++ b/model_create_filter_policy_request_rules_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_filter_policy_request_rules_inner_match.go b/model_create_filter_policy_request_rules_inner_match.go index f764001f..97d1a11e 100644 --- a/model_create_filter_policy_request_rules_inner_match.go +++ b/model_create_filter_policy_request_rules_inner_match.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request.go b/model_create_orchestration_request.go index 08fe65d8..8d172822 100644 --- a/model_create_orchestration_request.go +++ b/model_create_orchestration_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request_input_source.go b/model_create_orchestration_request_input_source.go index 423639e5..e57570ec 100644 --- a/model_create_orchestration_request_input_source.go +++ b/model_create_orchestration_request_input_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_orchestration_request_stop_condition.go b/model_create_orchestration_request_stop_condition.go index 561db794..677f7ffb 100644 --- a/model_create_orchestration_request_stop_condition.go +++ b/model_create_orchestration_request_stop_condition.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_skill_201_response.go b/model_create_skill_201_response.go index 83be9fe8..a519ea1f 100644 --- a/model_create_skill_201_response.go +++ b/model_create_skill_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_skill_request.go b/model_create_skill_request.go index 9ade1165..1482e167 100644 --- a/model_create_skill_request.go +++ b/model_create_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_slack_bot_201_response.go b/model_create_slack_bot_201_response.go index a3483400..247846db 100644 --- a/model_create_slack_bot_201_response.go +++ b/model_create_slack_bot_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_slack_bot_request.go b/model_create_slack_bot_request.go index becc3f04..7dc9a3eb 100644 --- a/model_create_slack_bot_request.go +++ b/model_create_slack_bot_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_task_201_response.go b/model_create_task_201_response.go index 60d7794d..1dfa44a8 100644 --- a/model_create_task_201_response.go +++ b/model_create_task_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_task_request.go b/model_create_task_request.go index 89e9a5d8..975c8165 100644 --- a/model_create_task_request.go +++ b/model_create_task_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_vector_collection_201_response.go b/model_create_vector_collection_201_response.go index 3d594b24..464ffdd8 100644 --- a/model_create_vector_collection_201_response.go +++ b/model_create_vector_collection_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_vector_collection_201_response_collection.go b/model_create_vector_collection_201_response_collection.go index bdac1c15..8d016c22 100644 --- a/model_create_vector_collection_201_response_collection.go +++ b/model_create_vector_collection_201_response_collection.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_vector_collection_request.go b/model_create_vector_collection_request.go index b01ff8e3..18f67850 100644 --- a/model_create_vector_collection_request.go +++ b/model_create_vector_collection_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_volume_request.go b/model_create_volume_request.go index 9694c4b9..c2a54c22 100644 --- a/model_create_volume_request.go +++ b/model_create_volume_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron.go b/model_cron.go index 5b8e2d45..6107c86b 100644 --- a/model_cron.go +++ b/model_cron.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron_run.go b/model_cron_run.go index 14618781..32203192 100644 --- a/model_cron_run.go +++ b/model_cron_run.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_agent_overlay_200_response.go b/model_delete_agent_overlay_200_response.go index b109f2a5..d3821361 100644 --- a/model_delete_agent_overlay_200_response.go +++ b/model_delete_agent_overlay_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_ai_agent_200_response.go b/model_delete_ai_agent_200_response.go index f0f94d02..50ae443b 100644 --- a/model_delete_ai_agent_200_response.go +++ b/model_delete_ai_agent_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_ai_session_200_response.go b/model_delete_ai_session_200_response.go index 9aa6375c..8cdd156c 100644 --- a/model_delete_ai_session_200_response.go +++ b/model_delete_ai_session_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_backup_200_response.go b/model_delete_backup_200_response.go index bcd7de09..322c7df4 100644 --- a/model_delete_backup_200_response.go +++ b/model_delete_backup_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_custom_tool_200_response.go b/model_delete_custom_tool_200_response.go index b9a58420..3bbf7f7d 100644 --- a/model_delete_custom_tool_200_response.go +++ b/model_delete_custom_tool_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_file_200_response.go b/model_delete_file_200_response.go index 2aeb1e6e..65f74bf7 100644 --- a/model_delete_file_200_response.go +++ b/model_delete_file_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_skill_200_response.go b/model_delete_skill_200_response.go index 0621f291..237e0b9e 100644 --- a/model_delete_skill_200_response.go +++ b/model_delete_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_skill_collection_200_response.go b/model_delete_skill_collection_200_response.go index 0294bfa6..fa3a93f1 100644 --- a/model_delete_skill_collection_200_response.go +++ b/model_delete_skill_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_slack_bot_200_response.go b/model_delete_slack_bot_200_response.go index b969dc0f..eb3a3741 100644 --- a/model_delete_slack_bot_200_response.go +++ b/model_delete_slack_bot_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_task_200_response.go b/model_delete_task_200_response.go index 467c124c..516f072a 100644 --- a/model_delete_task_200_response.go +++ b/model_delete_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_task_409_response.go b/model_delete_task_409_response.go index 8ea654a5..64331602 100644 --- a/model_delete_task_409_response.go +++ b/model_delete_task_409_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_200_response.go b/model_delete_vector_documents_200_response.go index 1f76819d..261450b9 100644 --- a/model_delete_vector_documents_200_response.go +++ b/model_delete_vector_documents_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_request.go b/model_delete_vector_documents_request.go index eafc04e4..9622bf07 100644 --- a/model_delete_vector_documents_request.go +++ b/model_delete_vector_documents_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_documents_request_metadata.go b/model_delete_vector_documents_request_metadata.go index 9bedcfa6..96f5dcd4 100644 --- a/model_delete_vector_documents_request_metadata.go +++ b/model_delete_vector_documents_request_metadata.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_download_backup_200_response.go b/model_download_backup_200_response.go index ee014ddc..6b1bfd99 100644 --- a/model_download_backup_200_response.go +++ b/model_download_backup_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_embeddings_200_response.go b/model_embeddings_200_response.go index c960a481..37289c24 100644 --- a/model_embeddings_200_response.go +++ b/model_embeddings_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_embeddings_200_response_embeddings.go b/model_embeddings_200_response_embeddings.go index a089f74f..e7587968 100644 --- a/model_embeddings_200_response_embeddings.go +++ b/model_embeddings_200_response_embeddings.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_embeddings_200_response_usage.go b/model_embeddings_200_response_usage.go index 265e9b1f..2235b9b0 100644 --- a/model_embeddings_200_response_usage.go +++ b/model_embeddings_200_response_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_embeddings_request.go b/model_embeddings_request.go index 4f0817d9..20b153cf 100644 --- a/model_embeddings_request.go +++ b/model_embeddings_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_embeddings_request_input.go b/model_embeddings_request_input.go index 40c2612a..c819b64a 100644 --- a/model_embeddings_request_input.go +++ b/model_embeddings_request_input.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment.go b/model_environment.go index cfb6b9b9..e32ed409 100644 --- a/model_environment.go +++ b/model_environment.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment_response.go b/model_environment_response.go index 5ac67a44..9ecab79e 100644 --- a/model_environment_response.go +++ b/model_environment_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment_summary.go b/model_environment_summary.go index 0bf9cfed..93a76280 100644 --- a/model_environment_summary.go +++ b/model_environment_summary.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extend_ai_session_200_response.go b/model_extend_ai_session_200_response.go index 619a3ba6..bedd004d 100644 --- a/model_extend_ai_session_200_response.go +++ b/model_extend_ai_session_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extend_ai_session_request.go b/model_extend_ai_session_request.go index a96ab738..d022a477 100644 --- a/model_extend_ai_session_request.go +++ b/model_extend_ai_session_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_agent_overlay_200_response.go b/model_get_agent_overlay_200_response.go index ff2df6d4..25b95413 100644 --- a/model_get_agent_overlay_200_response.go +++ b/model_get_agent_overlay_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_agent_overlay_200_response_base.go b/model_get_agent_overlay_200_response_base.go index a693847e..7516c65c 100644 --- a/model_get_agent_overlay_200_response_base.go +++ b/model_get_agent_overlay_200_response_base.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_agent_overlay_200_response_overlay.go b/model_get_agent_overlay_200_response_overlay.go index 80d42021..10290c70 100644 --- a/model_get_agent_overlay_200_response_overlay.go +++ b/model_get_agent_overlay_200_response_overlay.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_agent_200_response.go b/model_get_ai_agent_200_response.go index b223126e..016aa39c 100644 --- a/model_get_ai_agent_200_response.go +++ b/model_get_ai_agent_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_agent_200_response_agent.go b/model_get_ai_agent_200_response_agent.go index 0514bfc3..e35ed642 100644 --- a/model_get_ai_agent_200_response_agent.go +++ b/model_get_ai_agent_200_response_agent.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_model_200_response.go b/model_get_ai_model_200_response.go index b4060826..c25a3e20 100644 --- a/model_get_ai_model_200_response.go +++ b/model_get_ai_model_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_model_200_response_capabilities.go b/model_get_ai_model_200_response_capabilities.go index a7d05b16..b7a673d6 100644 --- a/model_get_ai_model_200_response_capabilities.go +++ b/model_get_ai_model_200_response_capabilities.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_model_200_response_pricing.go b/model_get_ai_model_200_response_pricing.go index 6d558ecf..473b5f6e 100644 --- a/model_get_ai_model_200_response_pricing.go +++ b/model_get_ai_model_200_response_pricing.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_model_404_response.go b/model_get_ai_model_404_response.go index 0bdf1a83..a5885fa1 100644 --- a/model_get_ai_model_404_response.go +++ b/model_get_ai_model_404_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_orchestration_status_200_response.go b/model_get_ai_orchestration_status_200_response.go index 2b06ebb5..2c6a912e 100644 --- a/model_get_ai_orchestration_status_200_response.go +++ b/model_get_ai_orchestration_status_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,7 +30,7 @@ type GetAIOrchestrationStatus200Response struct { // Number of tools that have completed CompletedTools *int32 `json:"completedTools,omitempty"` // AI-synthesized response combining all tool results (only present when status=complete) - SynthesizedResponse *string `json:"synthesizedResponse,omitempty"` + Result *string `json:"result,omitempty"` // Status of individual tool executions Tools []GetAIOrchestrationStatus200ResponseToolsInner `json:"tools,omitempty"` // Error message (only present when status=failed) @@ -39,6 +39,8 @@ type GetAIOrchestrationStatus200Response struct { CreatedAt time.Time `json:"createdAt"` // When orchestration completed (if status in complete or failed) CompletedAt *time.Time `json:"completedAt,omitempty"` + // Seconds from creation to completion (present only once completed) + Duration *int32 `json:"duration,omitempty"` AdditionalProperties map[string]interface{} } @@ -169,36 +171,36 @@ func (o *GetAIOrchestrationStatus200Response) SetCompletedTools(v int32) { o.CompletedTools = &v } -// GetSynthesizedResponse returns the SynthesizedResponse field value if set, zero value otherwise. -func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponse() string { - if o == nil || IsNil(o.SynthesizedResponse) { +// GetResult returns the Result field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetResult() string { + if o == nil || IsNil(o.Result) { var ret string return ret } - return *o.SynthesizedResponse + return *o.Result } -// GetSynthesizedResponseOk returns a tuple with the SynthesizedResponse field value if set, nil otherwise +// GetResultOk returns a tuple with the Result field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponseOk() (*string, bool) { - if o == nil || IsNil(o.SynthesizedResponse) { +func (o *GetAIOrchestrationStatus200Response) GetResultOk() (*string, bool) { + if o == nil || IsNil(o.Result) { return nil, false } - return o.SynthesizedResponse, true + return o.Result, true } -// HasSynthesizedResponse returns a boolean if a field has been set. -func (o *GetAIOrchestrationStatus200Response) HasSynthesizedResponse() bool { - if o != nil && !IsNil(o.SynthesizedResponse) { +// HasResult returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasResult() bool { + if o != nil && !IsNil(o.Result) { return true } return false } -// SetSynthesizedResponse gets a reference to the given string and assigns it to the SynthesizedResponse field. -func (o *GetAIOrchestrationStatus200Response) SetSynthesizedResponse(v string) { - o.SynthesizedResponse = &v +// SetResult gets a reference to the given string and assigns it to the Result field. +func (o *GetAIOrchestrationStatus200Response) SetResult(v string) { + o.Result = &v } // GetTools returns the Tools field value if set, zero value otherwise. @@ -321,6 +323,38 @@ func (o *GetAIOrchestrationStatus200Response) SetCompletedAt(v time.Time) { o.CompletedAt = &v } +// GetDuration returns the Duration field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetDuration() int32 { + if o == nil || IsNil(o.Duration) { + var ret int32 + return ret + } + return *o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetDurationOk() (*int32, bool) { + if o == nil || IsNil(o.Duration) { + return nil, false + } + return o.Duration, true +} + +// HasDuration returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasDuration() bool { + if o != nil && !IsNil(o.Duration) { + return true + } + + return false +} + +// SetDuration gets a reference to the given int32 and assigns it to the Duration field. +func (o *GetAIOrchestrationStatus200Response) SetDuration(v int32) { + o.Duration = &v +} + func (o GetAIOrchestrationStatus200Response) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -337,8 +371,8 @@ func (o GetAIOrchestrationStatus200Response) ToMap() (map[string]interface{}, er if !IsNil(o.CompletedTools) { toSerialize["completedTools"] = o.CompletedTools } - if !IsNil(o.SynthesizedResponse) { - toSerialize["synthesizedResponse"] = o.SynthesizedResponse + if !IsNil(o.Result) { + toSerialize["result"] = o.Result } if !IsNil(o.Tools) { toSerialize["tools"] = o.Tools @@ -350,6 +384,9 @@ func (o GetAIOrchestrationStatus200Response) ToMap() (map[string]interface{}, er if !IsNil(o.CompletedAt) { toSerialize["completedAt"] = o.CompletedAt } + if !IsNil(o.Duration) { + toSerialize["duration"] = o.Duration + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -400,11 +437,12 @@ func (o *GetAIOrchestrationStatus200Response) UnmarshalJSON(data []byte) (err er delete(additionalProperties, "status") delete(additionalProperties, "toolCount") delete(additionalProperties, "completedTools") - delete(additionalProperties, "synthesizedResponse") + delete(additionalProperties, "result") delete(additionalProperties, "tools") delete(additionalProperties, "error") delete(additionalProperties, "createdAt") delete(additionalProperties, "completedAt") + delete(additionalProperties, "duration") o.AdditionalProperties = additionalProperties } diff --git a/model_get_ai_orchestration_status_200_response_tools_inner.go b/model_get_ai_orchestration_status_200_response_tools_inner.go index 1aa5633d..b459651b 100644 --- a/model_get_ai_orchestration_status_200_response_tools_inner.go +++ b/model_get_ai_orchestration_status_200_response_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_orchestration_status_404_response.go b/model_get_ai_orchestration_status_404_response.go index bf1f6eff..a8a1ab48 100644 --- a/model_get_ai_orchestration_status_404_response.go +++ b/model_get_ai_orchestration_status_404_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_session_200_response.go b/model_get_ai_session_200_response.go index eec5266d..eecc349e 100644 --- a/model_get_ai_session_200_response.go +++ b/model_get_ai_session_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_tool_execution_status_200_response.go b/model_get_ai_tool_execution_status_200_response.go index 0e4c92c8..006097bd 100644 --- a/model_get_ai_tool_execution_status_200_response.go +++ b/model_get_ai_tool_execution_status_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_tool_execution_status_200_response_result.go b/model_get_ai_tool_execution_status_200_response_result.go index cf8a71cd..9bd12474 100644 --- a/model_get_ai_tool_execution_status_200_response_result.go +++ b/model_get_ai_tool_execution_status_200_response_result.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_tool_execution_status_404_response.go b/model_get_ai_tool_execution_status_404_response.go index 2784deb7..c13a9a07 100644 --- a/model_get_ai_tool_execution_status_404_response.go +++ b/model_get_ai_tool_execution_status_404_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ai_usage_stats_200_response.go b/model_get_ai_usage_stats_200_response.go deleted file mode 100644 index c00043b8..00000000 --- a/model_get_ai_usage_stats_200_response.go +++ /dev/null @@ -1,232 +0,0 @@ -/* -QuantCDN API - -Unified API for QuantCDN Admin and QuantCloud Platform services - -API version: 4.15.8 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package quantadmingo - -import ( - "encoding/json" -) - -// checks if the GetAIUsageStats200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAIUsageStats200Response{} - -// GetAIUsageStats200Response struct for GetAIUsageStats200Response -type GetAIUsageStats200Response struct { - // Total number of API requests - TotalRequests *int32 `json:"total_requests,omitempty"` - // Total tokens consumed across all requests - TotalTokens *int32 `json:"total_tokens,omitempty"` - // Usage breakdown by model ID - ByModel *map[string]GetAIUsageStats200ResponseByModelValue `json:"by_model,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _GetAIUsageStats200Response GetAIUsageStats200Response - -// NewGetAIUsageStats200Response instantiates a new GetAIUsageStats200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAIUsageStats200Response() *GetAIUsageStats200Response { - this := GetAIUsageStats200Response{} - return &this -} - -// NewGetAIUsageStats200ResponseWithDefaults instantiates a new GetAIUsageStats200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAIUsageStats200ResponseWithDefaults() *GetAIUsageStats200Response { - this := GetAIUsageStats200Response{} - return &this -} - -// GetTotalRequests returns the TotalRequests field value if set, zero value otherwise. -func (o *GetAIUsageStats200Response) GetTotalRequests() int32 { - if o == nil || IsNil(o.TotalRequests) { - var ret int32 - return ret - } - return *o.TotalRequests -} - -// GetTotalRequestsOk returns a tuple with the TotalRequests field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAIUsageStats200Response) GetTotalRequestsOk() (*int32, bool) { - if o == nil || IsNil(o.TotalRequests) { - return nil, false - } - return o.TotalRequests, true -} - -// HasTotalRequests returns a boolean if a field has been set. -func (o *GetAIUsageStats200Response) HasTotalRequests() bool { - if o != nil && !IsNil(o.TotalRequests) { - return true - } - - return false -} - -// SetTotalRequests gets a reference to the given int32 and assigns it to the TotalRequests field. -func (o *GetAIUsageStats200Response) SetTotalRequests(v int32) { - o.TotalRequests = &v -} - -// GetTotalTokens returns the TotalTokens field value if set, zero value otherwise. -func (o *GetAIUsageStats200Response) GetTotalTokens() int32 { - if o == nil || IsNil(o.TotalTokens) { - var ret int32 - return ret - } - return *o.TotalTokens -} - -// GetTotalTokensOk returns a tuple with the TotalTokens field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAIUsageStats200Response) GetTotalTokensOk() (*int32, bool) { - if o == nil || IsNil(o.TotalTokens) { - return nil, false - } - return o.TotalTokens, true -} - -// HasTotalTokens returns a boolean if a field has been set. -func (o *GetAIUsageStats200Response) HasTotalTokens() bool { - if o != nil && !IsNil(o.TotalTokens) { - return true - } - - return false -} - -// SetTotalTokens gets a reference to the given int32 and assigns it to the TotalTokens field. -func (o *GetAIUsageStats200Response) SetTotalTokens(v int32) { - o.TotalTokens = &v -} - -// GetByModel returns the ByModel field value if set, zero value otherwise. -func (o *GetAIUsageStats200Response) GetByModel() map[string]GetAIUsageStats200ResponseByModelValue { - if o == nil || IsNil(o.ByModel) { - var ret map[string]GetAIUsageStats200ResponseByModelValue - return ret - } - return *o.ByModel -} - -// GetByModelOk returns a tuple with the ByModel field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAIUsageStats200Response) GetByModelOk() (*map[string]GetAIUsageStats200ResponseByModelValue, bool) { - if o == nil || IsNil(o.ByModel) { - return nil, false - } - return o.ByModel, true -} - -// HasByModel returns a boolean if a field has been set. -func (o *GetAIUsageStats200Response) HasByModel() bool { - if o != nil && !IsNil(o.ByModel) { - return true - } - - return false -} - -// SetByModel gets a reference to the given map[string]GetAIUsageStats200ResponseByModelValue and assigns it to the ByModel field. -func (o *GetAIUsageStats200Response) SetByModel(v map[string]GetAIUsageStats200ResponseByModelValue) { - o.ByModel = &v -} - -func (o GetAIUsageStats200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAIUsageStats200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.TotalRequests) { - toSerialize["total_requests"] = o.TotalRequests - } - if !IsNil(o.TotalTokens) { - toSerialize["total_tokens"] = o.TotalTokens - } - if !IsNil(o.ByModel) { - toSerialize["by_model"] = o.ByModel - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *GetAIUsageStats200Response) UnmarshalJSON(data []byte) (err error) { - varGetAIUsageStats200Response := _GetAIUsageStats200Response{} - - err = json.Unmarshal(data, &varGetAIUsageStats200Response) - - if err != nil { - return err - } - - *o = GetAIUsageStats200Response(varGetAIUsageStats200Response) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "total_requests") - delete(additionalProperties, "total_tokens") - delete(additionalProperties, "by_model") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableGetAIUsageStats200Response struct { - value *GetAIUsageStats200Response - isSet bool -} - -func (v NullableGetAIUsageStats200Response) Get() *GetAIUsageStats200Response { - return v.value -} - -func (v *NullableGetAIUsageStats200Response) Set(val *GetAIUsageStats200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGetAIUsageStats200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAIUsageStats200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAIUsageStats200Response(val *GetAIUsageStats200Response) *NullableGetAIUsageStats200Response { - return &NullableGetAIUsageStats200Response{value: val, isSet: true} -} - -func (v NullableGetAIUsageStats200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAIUsageStats200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_get_ai_usage_stats_200_response_by_model_value.go b/model_get_ai_usage_stats_200_response_by_model_value.go deleted file mode 100644 index 287e3e39..00000000 --- a/model_get_ai_usage_stats_200_response_by_model_value.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -QuantCDN API - -Unified API for QuantCDN Admin and QuantCloud Platform services - -API version: 4.15.8 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package quantadmingo - -import ( - "encoding/json" -) - -// checks if the GetAIUsageStats200ResponseByModelValue type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAIUsageStats200ResponseByModelValue{} - -// GetAIUsageStats200ResponseByModelValue struct for GetAIUsageStats200ResponseByModelValue -type GetAIUsageStats200ResponseByModelValue struct { - // Number of requests for this model - Requests *int32 `json:"requests,omitempty"` - // Total tokens for this model - Tokens *int32 `json:"tokens,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _GetAIUsageStats200ResponseByModelValue GetAIUsageStats200ResponseByModelValue - -// NewGetAIUsageStats200ResponseByModelValue instantiates a new GetAIUsageStats200ResponseByModelValue object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAIUsageStats200ResponseByModelValue() *GetAIUsageStats200ResponseByModelValue { - this := GetAIUsageStats200ResponseByModelValue{} - return &this -} - -// NewGetAIUsageStats200ResponseByModelValueWithDefaults instantiates a new GetAIUsageStats200ResponseByModelValue object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAIUsageStats200ResponseByModelValueWithDefaults() *GetAIUsageStats200ResponseByModelValue { - this := GetAIUsageStats200ResponseByModelValue{} - return &this -} - -// GetRequests returns the Requests field value if set, zero value otherwise. -func (o *GetAIUsageStats200ResponseByModelValue) GetRequests() int32 { - if o == nil || IsNil(o.Requests) { - var ret int32 - return ret - } - return *o.Requests -} - -// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAIUsageStats200ResponseByModelValue) GetRequestsOk() (*int32, bool) { - if o == nil || IsNil(o.Requests) { - return nil, false - } - return o.Requests, true -} - -// HasRequests returns a boolean if a field has been set. -func (o *GetAIUsageStats200ResponseByModelValue) HasRequests() bool { - if o != nil && !IsNil(o.Requests) { - return true - } - - return false -} - -// SetRequests gets a reference to the given int32 and assigns it to the Requests field. -func (o *GetAIUsageStats200ResponseByModelValue) SetRequests(v int32) { - o.Requests = &v -} - -// GetTokens returns the Tokens field value if set, zero value otherwise. -func (o *GetAIUsageStats200ResponseByModelValue) GetTokens() int32 { - if o == nil || IsNil(o.Tokens) { - var ret int32 - return ret - } - return *o.Tokens -} - -// GetTokensOk returns a tuple with the Tokens field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetAIUsageStats200ResponseByModelValue) GetTokensOk() (*int32, bool) { - if o == nil || IsNil(o.Tokens) { - return nil, false - } - return o.Tokens, true -} - -// HasTokens returns a boolean if a field has been set. -func (o *GetAIUsageStats200ResponseByModelValue) HasTokens() bool { - if o != nil && !IsNil(o.Tokens) { - return true - } - - return false -} - -// SetTokens gets a reference to the given int32 and assigns it to the Tokens field. -func (o *GetAIUsageStats200ResponseByModelValue) SetTokens(v int32) { - o.Tokens = &v -} - -func (o GetAIUsageStats200ResponseByModelValue) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAIUsageStats200ResponseByModelValue) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Requests) { - toSerialize["requests"] = o.Requests - } - if !IsNil(o.Tokens) { - toSerialize["tokens"] = o.Tokens - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *GetAIUsageStats200ResponseByModelValue) UnmarshalJSON(data []byte) (err error) { - varGetAIUsageStats200ResponseByModelValue := _GetAIUsageStats200ResponseByModelValue{} - - err = json.Unmarshal(data, &varGetAIUsageStats200ResponseByModelValue) - - if err != nil { - return err - } - - *o = GetAIUsageStats200ResponseByModelValue(varGetAIUsageStats200ResponseByModelValue) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "requests") - delete(additionalProperties, "tokens") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableGetAIUsageStats200ResponseByModelValue struct { - value *GetAIUsageStats200ResponseByModelValue - isSet bool -} - -func (v NullableGetAIUsageStats200ResponseByModelValue) Get() *GetAIUsageStats200ResponseByModelValue { - return v.value -} - -func (v *NullableGetAIUsageStats200ResponseByModelValue) Set(val *GetAIUsageStats200ResponseByModelValue) { - v.value = val - v.isSet = true -} - -func (v NullableGetAIUsageStats200ResponseByModelValue) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAIUsageStats200ResponseByModelValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAIUsageStats200ResponseByModelValue(val *GetAIUsageStats200ResponseByModelValue) *NullableGetAIUsageStats200ResponseByModelValue { - return &NullableGetAIUsageStats200ResponseByModelValue{value: val, isSet: true} -} - -func (v NullableGetAIUsageStats200ResponseByModelValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAIUsageStats200ResponseByModelValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_get_custom_tool_200_response.go b/model_get_custom_tool_200_response.go index 79ee3eaf..1fb00aaf 100644 --- a/model_get_custom_tool_200_response.go +++ b/model_get_custom_tool_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_custom_tool_200_response_tool.go b/model_get_custom_tool_200_response_tool.go index 7c0e62c1..734f0e81 100644 --- a/model_get_custom_tool_200_response_tool.go +++ b/model_get_custom_tool_200_response_tool.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ type GetCustomTool200ResponseTool struct { // The deployed edge function source code EdgeFunctionCode *string `json:"edgeFunctionCode,omitempty"` IsAsync *bool `json:"isAsync,omitempty"` - InputSchema map[string]interface{} `json:"inputSchema,omitempty"` - OutputSchema map[string]interface{} `json:"outputSchema,omitempty"` + InputSchema *string `json:"inputSchema,omitempty"` + OutputSchema NullableString `json:"outputSchema,omitempty"` OutputSchemaDescription NullableString `json:"outputSchemaDescription,omitempty"` Category NullableString `json:"category,omitempty"` ResponseMode NullableString `json:"responseMode,omitempty"` @@ -215,19 +215,19 @@ func (o *GetCustomTool200ResponseTool) SetIsAsync(v bool) { } // GetInputSchema returns the InputSchema field value if set, zero value otherwise. -func (o *GetCustomTool200ResponseTool) GetInputSchema() map[string]interface{} { +func (o *GetCustomTool200ResponseTool) GetInputSchema() string { if o == nil || IsNil(o.InputSchema) { - var ret map[string]interface{} + var ret string return ret } - return o.InputSchema + return *o.InputSchema } // GetInputSchemaOk returns a tuple with the InputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GetCustomTool200ResponseTool) GetInputSchemaOk() (map[string]interface{}, bool) { +func (o *GetCustomTool200ResponseTool) GetInputSchemaOk() (*string, bool) { if o == nil || IsNil(o.InputSchema) { - return map[string]interface{}{}, false + return nil, false } return o.InputSchema, true } @@ -241,42 +241,51 @@ func (o *GetCustomTool200ResponseTool) HasInputSchema() bool { return false } -// SetInputSchema gets a reference to the given map[string]interface{} and assigns it to the InputSchema field. -func (o *GetCustomTool200ResponseTool) SetInputSchema(v map[string]interface{}) { - o.InputSchema = v +// SetInputSchema gets a reference to the given string and assigns it to the InputSchema field. +func (o *GetCustomTool200ResponseTool) SetInputSchema(v string) { + o.InputSchema = &v } // GetOutputSchema returns the OutputSchema field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GetCustomTool200ResponseTool) GetOutputSchema() map[string]interface{} { - if o == nil { - var ret map[string]interface{} +func (o *GetCustomTool200ResponseTool) GetOutputSchema() string { + if o == nil || IsNil(o.OutputSchema.Get()) { + var ret string return ret } - return o.OutputSchema + return *o.OutputSchema.Get() } // GetOutputSchemaOk returns a tuple with the OutputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetCustomTool200ResponseTool) GetOutputSchemaOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.OutputSchema) { - return map[string]interface{}{}, false +func (o *GetCustomTool200ResponseTool) GetOutputSchemaOk() (*string, bool) { + if o == nil { + return nil, false } - return o.OutputSchema, true + return o.OutputSchema.Get(), o.OutputSchema.IsSet() } // HasOutputSchema returns a boolean if a field has been set. func (o *GetCustomTool200ResponseTool) HasOutputSchema() bool { - if o != nil && !IsNil(o.OutputSchema) { + if o != nil && o.OutputSchema.IsSet() { return true } return false } -// SetOutputSchema gets a reference to the given map[string]interface{} and assigns it to the OutputSchema field. -func (o *GetCustomTool200ResponseTool) SetOutputSchema(v map[string]interface{}) { - o.OutputSchema = v +// SetOutputSchema gets a reference to the given NullableString and assigns it to the OutputSchema field. +func (o *GetCustomTool200ResponseTool) SetOutputSchema(v string) { + o.OutputSchema.Set(&v) +} +// SetOutputSchemaNil sets the value for OutputSchema to be an explicit nil +func (o *GetCustomTool200ResponseTool) SetOutputSchemaNil() { + o.OutputSchema.Set(nil) +} + +// UnsetOutputSchema ensures that no value is present for OutputSchema, not even an explicit nil +func (o *GetCustomTool200ResponseTool) UnsetOutputSchema() { + o.OutputSchema.Unset() } // GetOutputSchemaDescription returns the OutputSchemaDescription field value if set, zero value otherwise (both if not set or set to explicit null). @@ -465,8 +474,8 @@ func (o GetCustomTool200ResponseTool) ToMap() (map[string]interface{}, error) { if !IsNil(o.InputSchema) { toSerialize["inputSchema"] = o.InputSchema } - if o.OutputSchema != nil { - toSerialize["outputSchema"] = o.OutputSchema + if o.OutputSchema.IsSet() { + toSerialize["outputSchema"] = o.OutputSchema.Get() } if o.OutputSchemaDescription.IsSet() { toSerialize["outputSchemaDescription"] = o.OutputSchemaDescription.Get() diff --git a/model_get_dependency_graph_200_response.go b/model_get_dependency_graph_200_response.go index cb5d44f4..adb893d4 100644 --- a/model_get_dependency_graph_200_response.go +++ b/model_get_dependency_graph_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response.go b/model_get_durable_execution_status_200_response.go index c7b08387..0f7c3b81 100644 --- a/model_get_durable_execution_status_200_response.go +++ b/model_get_durable_execution_status_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_error.go b/model_get_durable_execution_status_200_response_error.go index 0c7c95e6..4dbb14f0 100644 --- a/model_get_durable_execution_status_200_response_error.go +++ b/model_get_durable_execution_status_200_response_error.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_pending_tools_inner.go b/model_get_durable_execution_status_200_response_pending_tools_inner.go index b5255bfb..e8a089ef 100644 --- a/model_get_durable_execution_status_200_response_pending_tools_inner.go +++ b/model_get_durable_execution_status_200_response_pending_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result.go b/model_get_durable_execution_status_200_response_result.go index 4be52bf1..9f2a737b 100644 --- a/model_get_durable_execution_status_200_response_result.go +++ b/model_get_durable_execution_status_200_response_result.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result_response.go b/model_get_durable_execution_status_200_response_result_response.go index 0df5b15d..8afa2ca2 100644 --- a/model_get_durable_execution_status_200_response_result_response.go +++ b/model_get_durable_execution_status_200_response_result_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_durable_execution_status_200_response_result_usage.go b/model_get_durable_execution_status_200_response_result_usage.go index 1ea9b1f5..f252ae4a 100644 --- a/model_get_durable_execution_status_200_response_result_usage.go +++ b/model_get_durable_execution_status_200_response_result_usage.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ecr_login_credentials_200_response.go b/model_get_ecr_login_credentials_200_response.go index 65180bdf..9de3a2ba 100644 --- a/model_get_ecr_login_credentials_200_response.go +++ b/model_get_ecr_login_credentials_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_environment_logs_200_response.go b/model_get_environment_logs_200_response.go index 53a7fddf..59fdc313 100644 --- a/model_get_environment_logs_200_response.go +++ b/model_get_environment_logs_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_environment_logs_200_response_log_events_inner.go b/model_get_environment_logs_200_response_log_events_inner.go index 2d36601d..98277af2 100644 --- a/model_get_environment_logs_200_response_log_events_inner.go +++ b/model_get_environment_logs_200_response_log_events_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_file_200_response.go b/model_get_file_200_response.go index dab35dbc..87a56c36 100644 --- a/model_get_file_200_response.go +++ b/model_get_file_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_config_200_response.go b/model_get_governance_config_200_response.go index c827438a..1a2d9353 100644 --- a/model_get_governance_config_200_response.go +++ b/model_get_governance_config_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_config_200_response_spend_limits.go b/model_get_governance_config_200_response_spend_limits.go index 2384166d..744b8097 100644 --- a/model_get_governance_config_200_response_spend_limits.go +++ b/model_get_governance_config_200_response_spend_limits.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,10 @@ type GetGovernanceConfig200ResponseSpendLimits struct { PerUserMonthlyBudgetCents NullableInt32 `json:"perUserMonthlyBudgetCents,omitempty"` PerUserDailyBudgetCents NullableInt32 `json:"perUserDailyBudgetCents,omitempty"` WarningThresholdPercent NullableInt32 `json:"warningThresholdPercent,omitempty"` + // Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels. + InterfaceLimits *map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue `json:"interfaceLimits,omitempty"` + // Per-user budget overrides keyed by userId (numeric portal id, slack-, or system:code-agent). Replaces the flat per-user budget for that user; unlimited=true exempts them. + UserOverrides *map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue `json:"userOverrides,omitempty"` AdditionalProperties map[string]interface{} } @@ -256,6 +260,70 @@ func (o *GetGovernanceConfig200ResponseSpendLimits) UnsetWarningThresholdPercent o.WarningThresholdPercent.Unset() } +// GetInterfaceLimits returns the InterfaceLimits field value if set, zero value otherwise. +func (o *GetGovernanceConfig200ResponseSpendLimits) GetInterfaceLimits() map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue { + if o == nil || IsNil(o.InterfaceLimits) { + var ret map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue + return ret + } + return *o.InterfaceLimits +} + +// GetInterfaceLimitsOk returns a tuple with the InterfaceLimits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) GetInterfaceLimitsOk() (*map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue, bool) { + if o == nil || IsNil(o.InterfaceLimits) { + return nil, false + } + return o.InterfaceLimits, true +} + +// HasInterfaceLimits returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasInterfaceLimits() bool { + if o != nil && !IsNil(o.InterfaceLimits) { + return true + } + + return false +} + +// SetInterfaceLimits gets a reference to the given map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue and assigns it to the InterfaceLimits field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetInterfaceLimits(v map[string]GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) { + o.InterfaceLimits = &v +} + +// GetUserOverrides returns the UserOverrides field value if set, zero value otherwise. +func (o *GetGovernanceConfig200ResponseSpendLimits) GetUserOverrides() map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue { + if o == nil || IsNil(o.UserOverrides) { + var ret map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue + return ret + } + return *o.UserOverrides +} + +// GetUserOverridesOk returns a tuple with the UserOverrides field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) GetUserOverridesOk() (*map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue, bool) { + if o == nil || IsNil(o.UserOverrides) { + return nil, false + } + return o.UserOverrides, true +} + +// HasUserOverrides returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimits) HasUserOverrides() bool { + if o != nil && !IsNil(o.UserOverrides) { + return true + } + + return false +} + +// SetUserOverrides gets a reference to the given map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue and assigns it to the UserOverrides field. +func (o *GetGovernanceConfig200ResponseSpendLimits) SetUserOverrides(v map[string]GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) { + o.UserOverrides = &v +} + func (o GetGovernanceConfig200ResponseSpendLimits) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -281,6 +349,12 @@ func (o GetGovernanceConfig200ResponseSpendLimits) ToMap() (map[string]interface if o.WarningThresholdPercent.IsSet() { toSerialize["warningThresholdPercent"] = o.WarningThresholdPercent.Get() } + if !IsNil(o.InterfaceLimits) { + toSerialize["interfaceLimits"] = o.InterfaceLimits + } + if !IsNil(o.UserOverrides) { + toSerialize["userOverrides"] = o.UserOverrides + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -308,6 +382,8 @@ func (o *GetGovernanceConfig200ResponseSpendLimits) UnmarshalJSON(data []byte) ( delete(additionalProperties, "perUserMonthlyBudgetCents") delete(additionalProperties, "perUserDailyBudgetCents") delete(additionalProperties, "warningThresholdPercent") + delete(additionalProperties, "interfaceLimits") + delete(additionalProperties, "userOverrides") o.AdditionalProperties = additionalProperties } diff --git a/model_get_governance_config_200_response_spend_limits_interface_limits_value.go b/model_get_governance_config_200_response_spend_limits_interface_limits_value.go new file mode 100644 index 00000000..6be74551 --- /dev/null +++ b/model_get_governance_config_200_response_spend_limits_interface_limits_value.go @@ -0,0 +1,212 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue{} + +// GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue struct for GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue +type GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue struct { + DailyCents NullableInt32 `json:"dailyCents,omitempty"` + MonthlyCents NullableInt32 `json:"monthlyCents,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue + +// NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue instantiates a new GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue() *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue { + this := GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue{} + return &this +} + +// NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValueWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValueWithDefaults() *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue { + this := GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue{} + return &this +} + +// GetDailyCents returns the DailyCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetDailyCents() int32 { + if o == nil || IsNil(o.DailyCents.Get()) { + var ret int32 + return ret + } + return *o.DailyCents.Get() +} + +// GetDailyCentsOk returns a tuple with the DailyCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetDailyCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DailyCents.Get(), o.DailyCents.IsSet() +} + +// HasDailyCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) HasDailyCents() bool { + if o != nil && o.DailyCents.IsSet() { + return true + } + + return false +} + +// SetDailyCents gets a reference to the given NullableInt32 and assigns it to the DailyCents field. +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetDailyCents(v int32) { + o.DailyCents.Set(&v) +} +// SetDailyCentsNil sets the value for DailyCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetDailyCentsNil() { + o.DailyCents.Set(nil) +} + +// UnsetDailyCents ensures that no value is present for DailyCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnsetDailyCents() { + o.DailyCents.Unset() +} + +// GetMonthlyCents returns the MonthlyCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetMonthlyCents() int32 { + if o == nil || IsNil(o.MonthlyCents.Get()) { + var ret int32 + return ret + } + return *o.MonthlyCents.Get() +} + +// GetMonthlyCentsOk returns a tuple with the MonthlyCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) GetMonthlyCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MonthlyCents.Get(), o.MonthlyCents.IsSet() +} + +// HasMonthlyCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) HasMonthlyCents() bool { + if o != nil && o.MonthlyCents.IsSet() { + return true + } + + return false +} + +// SetMonthlyCents gets a reference to the given NullableInt32 and assigns it to the MonthlyCents field. +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetMonthlyCents(v int32) { + o.MonthlyCents.Set(&v) +} +// SetMonthlyCentsNil sets the value for MonthlyCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) SetMonthlyCentsNil() { + o.MonthlyCents.Set(nil) +} + +// UnsetMonthlyCents ensures that no value is present for MonthlyCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnsetMonthlyCents() { + o.MonthlyCents.Unset() +} + +func (o GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DailyCents.IsSet() { + toSerialize["dailyCents"] = o.DailyCents.Get() + } + if o.MonthlyCents.IsSet() { + toSerialize["monthlyCents"] = o.MonthlyCents.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnmarshalJSON(data []byte) (err error) { + varGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue := _GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue{} + + err = json.Unmarshal(data, &varGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) + + if err != nil { + return err + } + + *o = GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue(varGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dailyCents") + delete(additionalProperties, "monthlyCents") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue struct { + value *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue + isSet bool +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) Get() *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue { + return v.value +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) Set(val *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) { + v.value = val + v.isSet = true +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue(val *GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) *NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue { + return &NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue{value: val, isSet: true} +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_governance_config_200_response_spend_limits_user_overrides_value.go b/model_get_governance_config_200_response_spend_limits_user_overrides_value.go new file mode 100644 index 00000000..cb95dcb7 --- /dev/null +++ b/model_get_governance_config_200_response_spend_limits_user_overrides_value.go @@ -0,0 +1,259 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue{} + +// GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue struct for GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue +type GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue struct { + DailyCents NullableInt32 `json:"dailyCents,omitempty"` + MonthlyCents NullableInt32 `json:"monthlyCents,omitempty"` + Unlimited NullableBool `json:"unlimited,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue + +// NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue instantiates a new GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue() *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue { + this := GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue{} + return &this +} + +// NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValueWithDefaults instantiates a new GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetGovernanceConfig200ResponseSpendLimitsUserOverridesValueWithDefaults() *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue { + this := GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue{} + return &this +} + +// GetDailyCents returns the DailyCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetDailyCents() int32 { + if o == nil || IsNil(o.DailyCents.Get()) { + var ret int32 + return ret + } + return *o.DailyCents.Get() +} + +// GetDailyCentsOk returns a tuple with the DailyCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetDailyCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DailyCents.Get(), o.DailyCents.IsSet() +} + +// HasDailyCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasDailyCents() bool { + if o != nil && o.DailyCents.IsSet() { + return true + } + + return false +} + +// SetDailyCents gets a reference to the given NullableInt32 and assigns it to the DailyCents field. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetDailyCents(v int32) { + o.DailyCents.Set(&v) +} +// SetDailyCentsNil sets the value for DailyCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetDailyCentsNil() { + o.DailyCents.Set(nil) +} + +// UnsetDailyCents ensures that no value is present for DailyCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetDailyCents() { + o.DailyCents.Unset() +} + +// GetMonthlyCents returns the MonthlyCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetMonthlyCents() int32 { + if o == nil || IsNil(o.MonthlyCents.Get()) { + var ret int32 + return ret + } + return *o.MonthlyCents.Get() +} + +// GetMonthlyCentsOk returns a tuple with the MonthlyCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetMonthlyCentsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MonthlyCents.Get(), o.MonthlyCents.IsSet() +} + +// HasMonthlyCents returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasMonthlyCents() bool { + if o != nil && o.MonthlyCents.IsSet() { + return true + } + + return false +} + +// SetMonthlyCents gets a reference to the given NullableInt32 and assigns it to the MonthlyCents field. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetMonthlyCents(v int32) { + o.MonthlyCents.Set(&v) +} +// SetMonthlyCentsNil sets the value for MonthlyCents to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetMonthlyCentsNil() { + o.MonthlyCents.Set(nil) +} + +// UnsetMonthlyCents ensures that no value is present for MonthlyCents, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetMonthlyCents() { + o.MonthlyCents.Unset() +} + +// GetUnlimited returns the Unlimited field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetUnlimited() bool { + if o == nil || IsNil(o.Unlimited.Get()) { + var ret bool + return ret + } + return *o.Unlimited.Get() +} + +// GetUnlimitedOk returns a tuple with the Unlimited field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) GetUnlimitedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Unlimited.Get(), o.Unlimited.IsSet() +} + +// HasUnlimited returns a boolean if a field has been set. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) HasUnlimited() bool { + if o != nil && o.Unlimited.IsSet() { + return true + } + + return false +} + +// SetUnlimited gets a reference to the given NullableBool and assigns it to the Unlimited field. +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetUnlimited(v bool) { + o.Unlimited.Set(&v) +} +// SetUnlimitedNil sets the value for Unlimited to be an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) SetUnlimitedNil() { + o.Unlimited.Set(nil) +} + +// UnsetUnlimited ensures that no value is present for Unlimited, not even an explicit nil +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnsetUnlimited() { + o.Unlimited.Unset() +} + +func (o GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.DailyCents.IsSet() { + toSerialize["dailyCents"] = o.DailyCents.Get() + } + if o.MonthlyCents.IsSet() { + toSerialize["monthlyCents"] = o.MonthlyCents.Get() + } + if o.Unlimited.IsSet() { + toSerialize["unlimited"] = o.Unlimited.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnmarshalJSON(data []byte) (err error) { + varGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue := _GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue{} + + err = json.Unmarshal(data, &varGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) + + if err != nil { + return err + } + + *o = GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue(varGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dailyCents") + delete(additionalProperties, "monthlyCents") + delete(additionalProperties, "unlimited") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue struct { + value *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue + isSet bool +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) Get() *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue { + return v.value +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) Set(val *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) { + v.value = val + v.isSet = true +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) IsSet() bool { + return v.isSet +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue(val *GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) *NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue { + return &NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue{value: val, isSet: true} +} + +func (v NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetGovernanceConfig200ResponseSpendLimitsUserOverridesValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_governance_spend_200_response.go b/model_get_governance_spend_200_response.go index 28dfc23d..b6b50885 100644 --- a/model_get_governance_spend_200_response.go +++ b/model_get_governance_spend_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response_budget.go b/model_get_governance_spend_200_response_budget.go index 956d3d62..1cd23310 100644 --- a/model_get_governance_spend_200_response_budget.go +++ b/model_get_governance_spend_200_response_budget.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response_daily_budget.go b/model_get_governance_spend_200_response_daily_budget.go index 97ac998e..88e537c1 100644 --- a/model_get_governance_spend_200_response_daily_budget.go +++ b/model_get_governance_spend_200_response_daily_budget.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response_org_total.go b/model_get_governance_spend_200_response_org_total.go index 665d22e0..9efdcbac 100644 --- a/model_get_governance_spend_200_response_org_total.go +++ b/model_get_governance_spend_200_response_org_total.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response_today_total.go b/model_get_governance_spend_200_response_today_total.go index fdfa8b70..56dce47f 100644 --- a/model_get_governance_spend_200_response_today_total.go +++ b/model_get_governance_spend_200_response_today_total.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response_user_total.go b/model_get_governance_spend_200_response_user_total.go index 9fb70802..620818f3 100644 --- a/model_get_governance_spend_200_response_user_total.go +++ b/model_get_governance_spend_200_response_user_total.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_my_usage_200_response.go b/model_get_my_usage_200_response.go index 399bbd46..ef84bc1e 100644 --- a/model_get_my_usage_200_response.go +++ b/model_get_my_usage_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_my_usage_200_response_daily.go b/model_get_my_usage_200_response_daily.go index ad760d9a..6da6744f 100644 --- a/model_get_my_usage_200_response_daily.go +++ b/model_get_my_usage_200_response_daily.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_my_usage_200_response_monthly.go b/model_get_my_usage_200_response_monthly.go index e93cc831..4cdc5829 100644 --- a/model_get_my_usage_200_response_monthly.go +++ b/model_get_my_usage_200_response_monthly.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_my_usage_200_response_quota.go b/model_get_my_usage_200_response_quota.go index 116575fc..65211a1d 100644 --- a/model_get_my_usage_200_response_quota.go +++ b/model_get_my_usage_200_response_quota.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,8 @@ var _ MappedNullable = &GetMyUsage200ResponseQuota{} // GetMyUsage200ResponseQuota struct for GetMyUsage200ResponseQuota type GetMyUsage200ResponseQuota struct { - // Per-user monthly budget in US cents - MonthlyLimit NullableInt32 `json:"monthlyLimit,omitempty"` - // Per-user daily budget in US cents - DailyLimit NullableInt32 `json:"dailyLimit,omitempty"` + MonthlyLimit NullableGetMyUsage200ResponseQuotaMonthlyLimit `json:"monthlyLimit,omitempty"` + DailyLimit NullableGetMyUsage200ResponseQuotaDailyLimit `json:"dailyLimit,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +44,9 @@ func NewGetMyUsage200ResponseQuotaWithDefaults() *GetMyUsage200ResponseQuota { } // GetMonthlyLimit returns the MonthlyLimit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GetMyUsage200ResponseQuota) GetMonthlyLimit() int32 { +func (o *GetMyUsage200ResponseQuota) GetMonthlyLimit() GetMyUsage200ResponseQuotaMonthlyLimit { if o == nil || IsNil(o.MonthlyLimit.Get()) { - var ret int32 + var ret GetMyUsage200ResponseQuotaMonthlyLimit return ret } return *o.MonthlyLimit.Get() @@ -57,7 +55,7 @@ func (o *GetMyUsage200ResponseQuota) GetMonthlyLimit() int32 { // GetMonthlyLimitOk returns a tuple with the MonthlyLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetMyUsage200ResponseQuota) GetMonthlyLimitOk() (*int32, bool) { +func (o *GetMyUsage200ResponseQuota) GetMonthlyLimitOk() (*GetMyUsage200ResponseQuotaMonthlyLimit, bool) { if o == nil { return nil, false } @@ -73,8 +71,8 @@ func (o *GetMyUsage200ResponseQuota) HasMonthlyLimit() bool { return false } -// SetMonthlyLimit gets a reference to the given NullableInt32 and assigns it to the MonthlyLimit field. -func (o *GetMyUsage200ResponseQuota) SetMonthlyLimit(v int32) { +// SetMonthlyLimit gets a reference to the given NullableGetMyUsage200ResponseQuotaMonthlyLimit and assigns it to the MonthlyLimit field. +func (o *GetMyUsage200ResponseQuota) SetMonthlyLimit(v GetMyUsage200ResponseQuotaMonthlyLimit) { o.MonthlyLimit.Set(&v) } // SetMonthlyLimitNil sets the value for MonthlyLimit to be an explicit nil @@ -88,9 +86,9 @@ func (o *GetMyUsage200ResponseQuota) UnsetMonthlyLimit() { } // GetDailyLimit returns the DailyLimit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GetMyUsage200ResponseQuota) GetDailyLimit() int32 { +func (o *GetMyUsage200ResponseQuota) GetDailyLimit() GetMyUsage200ResponseQuotaDailyLimit { if o == nil || IsNil(o.DailyLimit.Get()) { - var ret int32 + var ret GetMyUsage200ResponseQuotaDailyLimit return ret } return *o.DailyLimit.Get() @@ -99,7 +97,7 @@ func (o *GetMyUsage200ResponseQuota) GetDailyLimit() int32 { // GetDailyLimitOk returns a tuple with the DailyLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GetMyUsage200ResponseQuota) GetDailyLimitOk() (*int32, bool) { +func (o *GetMyUsage200ResponseQuota) GetDailyLimitOk() (*GetMyUsage200ResponseQuotaDailyLimit, bool) { if o == nil { return nil, false } @@ -115,8 +113,8 @@ func (o *GetMyUsage200ResponseQuota) HasDailyLimit() bool { return false } -// SetDailyLimit gets a reference to the given NullableInt32 and assigns it to the DailyLimit field. -func (o *GetMyUsage200ResponseQuota) SetDailyLimit(v int32) { +// SetDailyLimit gets a reference to the given NullableGetMyUsage200ResponseQuotaDailyLimit and assigns it to the DailyLimit field. +func (o *GetMyUsage200ResponseQuota) SetDailyLimit(v GetMyUsage200ResponseQuotaDailyLimit) { o.DailyLimit.Set(&v) } // SetDailyLimitNil sets the value for DailyLimit to be an explicit nil diff --git a/model_get_my_usage_200_response_quota_daily_limit.go b/model_get_my_usage_200_response_quota_daily_limit.go new file mode 100644 index 00000000..b8d8969e --- /dev/null +++ b/model_get_my_usage_200_response_quota_daily_limit.go @@ -0,0 +1,271 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the GetMyUsage200ResponseQuotaDailyLimit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMyUsage200ResponseQuotaDailyLimit{} + +// GetMyUsage200ResponseQuotaDailyLimit Per-user daily spend cap (object form, present when an org-level perUserDailyBudget is configured) +type GetMyUsage200ResponseQuotaDailyLimit struct { + // The configured daily cap in US cents + LimitCents *int32 `json:"limitCents,omitempty"` + // Percentage of the cap consumed today (0–100+) + UsedPercent *float32 `json:"usedPercent,omitempty"` + // Cents remaining before the cap is hit; can be negative if overspent + RemainingCents *int32 `json:"remainingCents,omitempty"` + // UTC timestamp when the daily counter resets (always next UTC midnight) + ResetsAt *time.Time `json:"resetsAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetMyUsage200ResponseQuotaDailyLimit GetMyUsage200ResponseQuotaDailyLimit + +// NewGetMyUsage200ResponseQuotaDailyLimit instantiates a new GetMyUsage200ResponseQuotaDailyLimit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMyUsage200ResponseQuotaDailyLimit() *GetMyUsage200ResponseQuotaDailyLimit { + this := GetMyUsage200ResponseQuotaDailyLimit{} + return &this +} + +// NewGetMyUsage200ResponseQuotaDailyLimitWithDefaults instantiates a new GetMyUsage200ResponseQuotaDailyLimit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMyUsage200ResponseQuotaDailyLimitWithDefaults() *GetMyUsage200ResponseQuotaDailyLimit { + this := GetMyUsage200ResponseQuotaDailyLimit{} + return &this +} + +// GetLimitCents returns the LimitCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetLimitCents() int32 { + if o == nil || IsNil(o.LimitCents) { + var ret int32 + return ret + } + return *o.LimitCents +} + +// GetLimitCentsOk returns a tuple with the LimitCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetLimitCentsOk() (*int32, bool) { + if o == nil || IsNil(o.LimitCents) { + return nil, false + } + return o.LimitCents, true +} + +// HasLimitCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) HasLimitCents() bool { + if o != nil && !IsNil(o.LimitCents) { + return true + } + + return false +} + +// SetLimitCents gets a reference to the given int32 and assigns it to the LimitCents field. +func (o *GetMyUsage200ResponseQuotaDailyLimit) SetLimitCents(v int32) { + o.LimitCents = &v +} + +// GetUsedPercent returns the UsedPercent field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetUsedPercent() float32 { + if o == nil || IsNil(o.UsedPercent) { + var ret float32 + return ret + } + return *o.UsedPercent +} + +// GetUsedPercentOk returns a tuple with the UsedPercent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetUsedPercentOk() (*float32, bool) { + if o == nil || IsNil(o.UsedPercent) { + return nil, false + } + return o.UsedPercent, true +} + +// HasUsedPercent returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) HasUsedPercent() bool { + if o != nil && !IsNil(o.UsedPercent) { + return true + } + + return false +} + +// SetUsedPercent gets a reference to the given float32 and assigns it to the UsedPercent field. +func (o *GetMyUsage200ResponseQuotaDailyLimit) SetUsedPercent(v float32) { + o.UsedPercent = &v +} + +// GetRemainingCents returns the RemainingCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetRemainingCents() int32 { + if o == nil || IsNil(o.RemainingCents) { + var ret int32 + return ret + } + return *o.RemainingCents +} + +// GetRemainingCentsOk returns a tuple with the RemainingCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetRemainingCentsOk() (*int32, bool) { + if o == nil || IsNil(o.RemainingCents) { + return nil, false + } + return o.RemainingCents, true +} + +// HasRemainingCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) HasRemainingCents() bool { + if o != nil && !IsNil(o.RemainingCents) { + return true + } + + return false +} + +// SetRemainingCents gets a reference to the given int32 and assigns it to the RemainingCents field. +func (o *GetMyUsage200ResponseQuotaDailyLimit) SetRemainingCents(v int32) { + o.RemainingCents = &v +} + +// GetResetsAt returns the ResetsAt field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetResetsAt() time.Time { + if o == nil || IsNil(o.ResetsAt) { + var ret time.Time + return ret + } + return *o.ResetsAt +} + +// GetResetsAtOk returns a tuple with the ResetsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) GetResetsAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.ResetsAt) { + return nil, false + } + return o.ResetsAt, true +} + +// HasResetsAt returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaDailyLimit) HasResetsAt() bool { + if o != nil && !IsNil(o.ResetsAt) { + return true + } + + return false +} + +// SetResetsAt gets a reference to the given time.Time and assigns it to the ResetsAt field. +func (o *GetMyUsage200ResponseQuotaDailyLimit) SetResetsAt(v time.Time) { + o.ResetsAt = &v +} + +func (o GetMyUsage200ResponseQuotaDailyLimit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMyUsage200ResponseQuotaDailyLimit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LimitCents) { + toSerialize["limitCents"] = o.LimitCents + } + if !IsNil(o.UsedPercent) { + toSerialize["usedPercent"] = o.UsedPercent + } + if !IsNil(o.RemainingCents) { + toSerialize["remainingCents"] = o.RemainingCents + } + if !IsNil(o.ResetsAt) { + toSerialize["resetsAt"] = o.ResetsAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMyUsage200ResponseQuotaDailyLimit) UnmarshalJSON(data []byte) (err error) { + varGetMyUsage200ResponseQuotaDailyLimit := _GetMyUsage200ResponseQuotaDailyLimit{} + + err = json.Unmarshal(data, &varGetMyUsage200ResponseQuotaDailyLimit) + + if err != nil { + return err + } + + *o = GetMyUsage200ResponseQuotaDailyLimit(varGetMyUsage200ResponseQuotaDailyLimit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "limitCents") + delete(additionalProperties, "usedPercent") + delete(additionalProperties, "remainingCents") + delete(additionalProperties, "resetsAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMyUsage200ResponseQuotaDailyLimit struct { + value *GetMyUsage200ResponseQuotaDailyLimit + isSet bool +} + +func (v NullableGetMyUsage200ResponseQuotaDailyLimit) Get() *GetMyUsage200ResponseQuotaDailyLimit { + return v.value +} + +func (v *NullableGetMyUsage200ResponseQuotaDailyLimit) Set(val *GetMyUsage200ResponseQuotaDailyLimit) { + v.value = val + v.isSet = true +} + +func (v NullableGetMyUsage200ResponseQuotaDailyLimit) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMyUsage200ResponseQuotaDailyLimit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMyUsage200ResponseQuotaDailyLimit(val *GetMyUsage200ResponseQuotaDailyLimit) *NullableGetMyUsage200ResponseQuotaDailyLimit { + return &NullableGetMyUsage200ResponseQuotaDailyLimit{value: val, isSet: true} +} + +func (v NullableGetMyUsage200ResponseQuotaDailyLimit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMyUsage200ResponseQuotaDailyLimit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_my_usage_200_response_quota_monthly_limit.go b/model_get_my_usage_200_response_quota_monthly_limit.go new file mode 100644 index 00000000..fdb6ddcf --- /dev/null +++ b/model_get_my_usage_200_response_quota_monthly_limit.go @@ -0,0 +1,232 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetMyUsage200ResponseQuotaMonthlyLimit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMyUsage200ResponseQuotaMonthlyLimit{} + +// GetMyUsage200ResponseQuotaMonthlyLimit Per-user monthly spend cap (object form, present when an org-level perUserMonthlyBudget is configured) +type GetMyUsage200ResponseQuotaMonthlyLimit struct { + // The configured monthly cap in US cents + LimitCents *int32 `json:"limitCents,omitempty"` + // Percentage of the cap consumed this month (0–100+) + UsedPercent *float32 `json:"usedPercent,omitempty"` + // Cents remaining before the cap is hit; can be negative if overspent + RemainingCents *int32 `json:"remainingCents,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetMyUsage200ResponseQuotaMonthlyLimit GetMyUsage200ResponseQuotaMonthlyLimit + +// NewGetMyUsage200ResponseQuotaMonthlyLimit instantiates a new GetMyUsage200ResponseQuotaMonthlyLimit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetMyUsage200ResponseQuotaMonthlyLimit() *GetMyUsage200ResponseQuotaMonthlyLimit { + this := GetMyUsage200ResponseQuotaMonthlyLimit{} + return &this +} + +// NewGetMyUsage200ResponseQuotaMonthlyLimitWithDefaults instantiates a new GetMyUsage200ResponseQuotaMonthlyLimit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetMyUsage200ResponseQuotaMonthlyLimitWithDefaults() *GetMyUsage200ResponseQuotaMonthlyLimit { + this := GetMyUsage200ResponseQuotaMonthlyLimit{} + return &this +} + +// GetLimitCents returns the LimitCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetLimitCents() int32 { + if o == nil || IsNil(o.LimitCents) { + var ret int32 + return ret + } + return *o.LimitCents +} + +// GetLimitCentsOk returns a tuple with the LimitCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetLimitCentsOk() (*int32, bool) { + if o == nil || IsNil(o.LimitCents) { + return nil, false + } + return o.LimitCents, true +} + +// HasLimitCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasLimitCents() bool { + if o != nil && !IsNil(o.LimitCents) { + return true + } + + return false +} + +// SetLimitCents gets a reference to the given int32 and assigns it to the LimitCents field. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetLimitCents(v int32) { + o.LimitCents = &v +} + +// GetUsedPercent returns the UsedPercent field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetUsedPercent() float32 { + if o == nil || IsNil(o.UsedPercent) { + var ret float32 + return ret + } + return *o.UsedPercent +} + +// GetUsedPercentOk returns a tuple with the UsedPercent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetUsedPercentOk() (*float32, bool) { + if o == nil || IsNil(o.UsedPercent) { + return nil, false + } + return o.UsedPercent, true +} + +// HasUsedPercent returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasUsedPercent() bool { + if o != nil && !IsNil(o.UsedPercent) { + return true + } + + return false +} + +// SetUsedPercent gets a reference to the given float32 and assigns it to the UsedPercent field. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetUsedPercent(v float32) { + o.UsedPercent = &v +} + +// GetRemainingCents returns the RemainingCents field value if set, zero value otherwise. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetRemainingCents() int32 { + if o == nil || IsNil(o.RemainingCents) { + var ret int32 + return ret + } + return *o.RemainingCents +} + +// GetRemainingCentsOk returns a tuple with the RemainingCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) GetRemainingCentsOk() (*int32, bool) { + if o == nil || IsNil(o.RemainingCents) { + return nil, false + } + return o.RemainingCents, true +} + +// HasRemainingCents returns a boolean if a field has been set. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) HasRemainingCents() bool { + if o != nil && !IsNil(o.RemainingCents) { + return true + } + + return false +} + +// SetRemainingCents gets a reference to the given int32 and assigns it to the RemainingCents field. +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) SetRemainingCents(v int32) { + o.RemainingCents = &v +} + +func (o GetMyUsage200ResponseQuotaMonthlyLimit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMyUsage200ResponseQuotaMonthlyLimit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LimitCents) { + toSerialize["limitCents"] = o.LimitCents + } + if !IsNil(o.UsedPercent) { + toSerialize["usedPercent"] = o.UsedPercent + } + if !IsNil(o.RemainingCents) { + toSerialize["remainingCents"] = o.RemainingCents + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetMyUsage200ResponseQuotaMonthlyLimit) UnmarshalJSON(data []byte) (err error) { + varGetMyUsage200ResponseQuotaMonthlyLimit := _GetMyUsage200ResponseQuotaMonthlyLimit{} + + err = json.Unmarshal(data, &varGetMyUsage200ResponseQuotaMonthlyLimit) + + if err != nil { + return err + } + + *o = GetMyUsage200ResponseQuotaMonthlyLimit(varGetMyUsage200ResponseQuotaMonthlyLimit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "limitCents") + delete(additionalProperties, "usedPercent") + delete(additionalProperties, "remainingCents") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetMyUsage200ResponseQuotaMonthlyLimit struct { + value *GetMyUsage200ResponseQuotaMonthlyLimit + isSet bool +} + +func (v NullableGetMyUsage200ResponseQuotaMonthlyLimit) Get() *GetMyUsage200ResponseQuotaMonthlyLimit { + return v.value +} + +func (v *NullableGetMyUsage200ResponseQuotaMonthlyLimit) Set(val *GetMyUsage200ResponseQuotaMonthlyLimit) { + v.value = val + v.isSet = true +} + +func (v NullableGetMyUsage200ResponseQuotaMonthlyLimit) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMyUsage200ResponseQuotaMonthlyLimit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMyUsage200ResponseQuotaMonthlyLimit(val *GetMyUsage200ResponseQuotaMonthlyLimit) *NullableGetMyUsage200ResponseQuotaMonthlyLimit { + return &NullableGetMyUsage200ResponseQuotaMonthlyLimit{value: val, isSet: true} +} + +func (v NullableGetMyUsage200ResponseQuotaMonthlyLimit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMyUsage200ResponseQuotaMonthlyLimit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_restore_status_200_response.go b/model_get_restore_status_200_response.go new file mode 100644 index 00000000..7822433d --- /dev/null +++ b/model_get_restore_status_200_response.go @@ -0,0 +1,566 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the GetRestoreStatus200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetRestoreStatus200Response{} + +// GetRestoreStatus200Response struct for GetRestoreStatus200Response +type GetRestoreStatus200Response struct { + RestoreId *string `json:"restoreId,omitempty"` + OrgName *string `json:"orgName,omitempty"` + AppName *string `json:"appName,omitempty"` + EnvName *string `json:"envName,omitempty"` + BackupId *string `json:"backupId,omitempty"` + Status *string `json:"status,omitempty"` + StartedAt *time.Time `json:"startedAt,omitempty"` + CompletedAt NullableTime `json:"completedAt,omitempty"` + ErrorMessage NullableString `json:"errorMessage,omitempty"` + TaskArn NullableString `json:"taskArn,omitempty"` + Ttl NullableInt32 `json:"ttl,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetRestoreStatus200Response GetRestoreStatus200Response + +// NewGetRestoreStatus200Response instantiates a new GetRestoreStatus200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetRestoreStatus200Response() *GetRestoreStatus200Response { + this := GetRestoreStatus200Response{} + return &this +} + +// NewGetRestoreStatus200ResponseWithDefaults instantiates a new GetRestoreStatus200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetRestoreStatus200ResponseWithDefaults() *GetRestoreStatus200Response { + this := GetRestoreStatus200Response{} + return &this +} + +// GetRestoreId returns the RestoreId field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetRestoreId() string { + if o == nil || IsNil(o.RestoreId) { + var ret string + return ret + } + return *o.RestoreId +} + +// GetRestoreIdOk returns a tuple with the RestoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetRestoreIdOk() (*string, bool) { + if o == nil || IsNil(o.RestoreId) { + return nil, false + } + return o.RestoreId, true +} + +// HasRestoreId returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasRestoreId() bool { + if o != nil && !IsNil(o.RestoreId) { + return true + } + + return false +} + +// SetRestoreId gets a reference to the given string and assigns it to the RestoreId field. +func (o *GetRestoreStatus200Response) SetRestoreId(v string) { + o.RestoreId = &v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *GetRestoreStatus200Response) SetOrgName(v string) { + o.OrgName = &v +} + +// GetAppName returns the AppName field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetAppName() string { + if o == nil || IsNil(o.AppName) { + var ret string + return ret + } + return *o.AppName +} + +// GetAppNameOk returns a tuple with the AppName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetAppNameOk() (*string, bool) { + if o == nil || IsNil(o.AppName) { + return nil, false + } + return o.AppName, true +} + +// HasAppName returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasAppName() bool { + if o != nil && !IsNil(o.AppName) { + return true + } + + return false +} + +// SetAppName gets a reference to the given string and assigns it to the AppName field. +func (o *GetRestoreStatus200Response) SetAppName(v string) { + o.AppName = &v +} + +// GetEnvName returns the EnvName field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetEnvName() string { + if o == nil || IsNil(o.EnvName) { + var ret string + return ret + } + return *o.EnvName +} + +// GetEnvNameOk returns a tuple with the EnvName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetEnvNameOk() (*string, bool) { + if o == nil || IsNil(o.EnvName) { + return nil, false + } + return o.EnvName, true +} + +// HasEnvName returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasEnvName() bool { + if o != nil && !IsNil(o.EnvName) { + return true + } + + return false +} + +// SetEnvName gets a reference to the given string and assigns it to the EnvName field. +func (o *GetRestoreStatus200Response) SetEnvName(v string) { + o.EnvName = &v +} + +// GetBackupId returns the BackupId field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetBackupId() string { + if o == nil || IsNil(o.BackupId) { + var ret string + return ret + } + return *o.BackupId +} + +// GetBackupIdOk returns a tuple with the BackupId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetBackupIdOk() (*string, bool) { + if o == nil || IsNil(o.BackupId) { + return nil, false + } + return o.BackupId, true +} + +// HasBackupId returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasBackupId() bool { + if o != nil && !IsNil(o.BackupId) { + return true + } + + return false +} + +// SetBackupId gets a reference to the given string and assigns it to the BackupId field. +func (o *GetRestoreStatus200Response) SetBackupId(v string) { + o.BackupId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *GetRestoreStatus200Response) SetStatus(v string) { + o.Status = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *GetRestoreStatus200Response) GetStartedAt() time.Time { + if o == nil || IsNil(o.StartedAt) { + var ret time.Time + return ret + } + return *o.StartedAt +} + +// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetRestoreStatus200Response) GetStartedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StartedAt) { + return nil, false + } + return o.StartedAt, true +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasStartedAt() bool { + if o != nil && !IsNil(o.StartedAt) { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given time.Time and assigns it to the StartedAt field. +func (o *GetRestoreStatus200Response) SetStartedAt(v time.Time) { + o.StartedAt = &v +} + +// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetRestoreStatus200Response) GetCompletedAt() time.Time { + if o == nil || IsNil(o.CompletedAt.Get()) { + var ret time.Time + return ret + } + return *o.CompletedAt.Get() +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetRestoreStatus200Response) GetCompletedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CompletedAt.Get(), o.CompletedAt.IsSet() +} + +// HasCompletedAt returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasCompletedAt() bool { + if o != nil && o.CompletedAt.IsSet() { + return true + } + + return false +} + +// SetCompletedAt gets a reference to the given NullableTime and assigns it to the CompletedAt field. +func (o *GetRestoreStatus200Response) SetCompletedAt(v time.Time) { + o.CompletedAt.Set(&v) +} +// SetCompletedAtNil sets the value for CompletedAt to be an explicit nil +func (o *GetRestoreStatus200Response) SetCompletedAtNil() { + o.CompletedAt.Set(nil) +} + +// UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +func (o *GetRestoreStatus200Response) UnsetCompletedAt() { + o.CompletedAt.Unset() +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetRestoreStatus200Response) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage.Get()) { + var ret string + return ret + } + return *o.ErrorMessage.Get() +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetRestoreStatus200Response) GetErrorMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ErrorMessage.Get(), o.ErrorMessage.IsSet() +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasErrorMessage() bool { + if o != nil && o.ErrorMessage.IsSet() { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given NullableString and assigns it to the ErrorMessage field. +func (o *GetRestoreStatus200Response) SetErrorMessage(v string) { + o.ErrorMessage.Set(&v) +} +// SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil +func (o *GetRestoreStatus200Response) SetErrorMessageNil() { + o.ErrorMessage.Set(nil) +} + +// UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil +func (o *GetRestoreStatus200Response) UnsetErrorMessage() { + o.ErrorMessage.Unset() +} + +// GetTaskArn returns the TaskArn field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetRestoreStatus200Response) GetTaskArn() string { + if o == nil || IsNil(o.TaskArn.Get()) { + var ret string + return ret + } + return *o.TaskArn.Get() +} + +// GetTaskArnOk returns a tuple with the TaskArn field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetRestoreStatus200Response) GetTaskArnOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskArn.Get(), o.TaskArn.IsSet() +} + +// HasTaskArn returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasTaskArn() bool { + if o != nil && o.TaskArn.IsSet() { + return true + } + + return false +} + +// SetTaskArn gets a reference to the given NullableString and assigns it to the TaskArn field. +func (o *GetRestoreStatus200Response) SetTaskArn(v string) { + o.TaskArn.Set(&v) +} +// SetTaskArnNil sets the value for TaskArn to be an explicit nil +func (o *GetRestoreStatus200Response) SetTaskArnNil() { + o.TaskArn.Set(nil) +} + +// UnsetTaskArn ensures that no value is present for TaskArn, not even an explicit nil +func (o *GetRestoreStatus200Response) UnsetTaskArn() { + o.TaskArn.Unset() +} + +// GetTtl returns the Ttl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetRestoreStatus200Response) GetTtl() int32 { + if o == nil || IsNil(o.Ttl.Get()) { + var ret int32 + return ret + } + return *o.Ttl.Get() +} + +// GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetRestoreStatus200Response) GetTtlOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Ttl.Get(), o.Ttl.IsSet() +} + +// HasTtl returns a boolean if a field has been set. +func (o *GetRestoreStatus200Response) HasTtl() bool { + if o != nil && o.Ttl.IsSet() { + return true + } + + return false +} + +// SetTtl gets a reference to the given NullableInt32 and assigns it to the Ttl field. +func (o *GetRestoreStatus200Response) SetTtl(v int32) { + o.Ttl.Set(&v) +} +// SetTtlNil sets the value for Ttl to be an explicit nil +func (o *GetRestoreStatus200Response) SetTtlNil() { + o.Ttl.Set(nil) +} + +// UnsetTtl ensures that no value is present for Ttl, not even an explicit nil +func (o *GetRestoreStatus200Response) UnsetTtl() { + o.Ttl.Unset() +} + +func (o GetRestoreStatus200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetRestoreStatus200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RestoreId) { + toSerialize["restoreId"] = o.RestoreId + } + if !IsNil(o.OrgName) { + toSerialize["orgName"] = o.OrgName + } + if !IsNil(o.AppName) { + toSerialize["appName"] = o.AppName + } + if !IsNil(o.EnvName) { + toSerialize["envName"] = o.EnvName + } + if !IsNil(o.BackupId) { + toSerialize["backupId"] = o.BackupId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StartedAt) { + toSerialize["startedAt"] = o.StartedAt + } + if o.CompletedAt.IsSet() { + toSerialize["completedAt"] = o.CompletedAt.Get() + } + if o.ErrorMessage.IsSet() { + toSerialize["errorMessage"] = o.ErrorMessage.Get() + } + if o.TaskArn.IsSet() { + toSerialize["taskArn"] = o.TaskArn.Get() + } + if o.Ttl.IsSet() { + toSerialize["ttl"] = o.Ttl.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetRestoreStatus200Response) UnmarshalJSON(data []byte) (err error) { + varGetRestoreStatus200Response := _GetRestoreStatus200Response{} + + err = json.Unmarshal(data, &varGetRestoreStatus200Response) + + if err != nil { + return err + } + + *o = GetRestoreStatus200Response(varGetRestoreStatus200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "restoreId") + delete(additionalProperties, "orgName") + delete(additionalProperties, "appName") + delete(additionalProperties, "envName") + delete(additionalProperties, "backupId") + delete(additionalProperties, "status") + delete(additionalProperties, "startedAt") + delete(additionalProperties, "completedAt") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "taskArn") + delete(additionalProperties, "ttl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetRestoreStatus200Response struct { + value *GetRestoreStatus200Response + isSet bool +} + +func (v NullableGetRestoreStatus200Response) Get() *GetRestoreStatus200Response { + return v.value +} + +func (v *NullableGetRestoreStatus200Response) Set(val *GetRestoreStatus200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetRestoreStatus200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetRestoreStatus200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetRestoreStatus200Response(val *GetRestoreStatus200Response) *NullableGetRestoreStatus200Response { + return &NullableGetRestoreStatus200Response{value: val, isSet: true} +} + +func (v NullableGetRestoreStatus200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetRestoreStatus200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_scaling_policy_response.go b/model_get_scaling_policy_response.go new file mode 100644 index 00000000..918dca18 --- /dev/null +++ b/model_get_scaling_policy_response.go @@ -0,0 +1,352 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetScalingPolicyResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetScalingPolicyResponse{} + +// GetScalingPolicyResponse struct for GetScalingPolicyResponse +type GetScalingPolicyResponse struct { + Metric *string `json:"metric,omitempty"` + TargetValue *float64 `json:"targetValue,omitempty"` + ScaleInCooldownSeconds *int32 `json:"scaleInCooldownSeconds,omitempty"` + ScaleOutCooldownSeconds *int32 `json:"scaleOutCooldownSeconds,omitempty"` + // Name of the underlying Application Auto Scaling policy. + PolicyName *string `json:"policyName,omitempty"` + // ALB ResourceLabel for RPS policies (target group identifier). + ResourceLabel NullableString `json:"resourceLabel,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetScalingPolicyResponse GetScalingPolicyResponse + +// NewGetScalingPolicyResponse instantiates a new GetScalingPolicyResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetScalingPolicyResponse() *GetScalingPolicyResponse { + this := GetScalingPolicyResponse{} + return &this +} + +// NewGetScalingPolicyResponseWithDefaults instantiates a new GetScalingPolicyResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetScalingPolicyResponseWithDefaults() *GetScalingPolicyResponse { + this := GetScalingPolicyResponse{} + return &this +} + +// GetMetric returns the Metric field value if set, zero value otherwise. +func (o *GetScalingPolicyResponse) GetMetric() string { + if o == nil || IsNil(o.Metric) { + var ret string + return ret + } + return *o.Metric +} + +// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetScalingPolicyResponse) GetMetricOk() (*string, bool) { + if o == nil || IsNil(o.Metric) { + return nil, false + } + return o.Metric, true +} + +// HasMetric returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasMetric() bool { + if o != nil && !IsNil(o.Metric) { + return true + } + + return false +} + +// SetMetric gets a reference to the given string and assigns it to the Metric field. +func (o *GetScalingPolicyResponse) SetMetric(v string) { + o.Metric = &v +} + +// GetTargetValue returns the TargetValue field value if set, zero value otherwise. +func (o *GetScalingPolicyResponse) GetTargetValue() float64 { + if o == nil || IsNil(o.TargetValue) { + var ret float64 + return ret + } + return *o.TargetValue +} + +// GetTargetValueOk returns a tuple with the TargetValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetScalingPolicyResponse) GetTargetValueOk() (*float64, bool) { + if o == nil || IsNil(o.TargetValue) { + return nil, false + } + return o.TargetValue, true +} + +// HasTargetValue returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasTargetValue() bool { + if o != nil && !IsNil(o.TargetValue) { + return true + } + + return false +} + +// SetTargetValue gets a reference to the given float64 and assigns it to the TargetValue field. +func (o *GetScalingPolicyResponse) SetTargetValue(v float64) { + o.TargetValue = &v +} + +// GetScaleInCooldownSeconds returns the ScaleInCooldownSeconds field value if set, zero value otherwise. +func (o *GetScalingPolicyResponse) GetScaleInCooldownSeconds() int32 { + if o == nil || IsNil(o.ScaleInCooldownSeconds) { + var ret int32 + return ret + } + return *o.ScaleInCooldownSeconds +} + +// GetScaleInCooldownSecondsOk returns a tuple with the ScaleInCooldownSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetScalingPolicyResponse) GetScaleInCooldownSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.ScaleInCooldownSeconds) { + return nil, false + } + return o.ScaleInCooldownSeconds, true +} + +// HasScaleInCooldownSeconds returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasScaleInCooldownSeconds() bool { + if o != nil && !IsNil(o.ScaleInCooldownSeconds) { + return true + } + + return false +} + +// SetScaleInCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleInCooldownSeconds field. +func (o *GetScalingPolicyResponse) SetScaleInCooldownSeconds(v int32) { + o.ScaleInCooldownSeconds = &v +} + +// GetScaleOutCooldownSeconds returns the ScaleOutCooldownSeconds field value if set, zero value otherwise. +func (o *GetScalingPolicyResponse) GetScaleOutCooldownSeconds() int32 { + if o == nil || IsNil(o.ScaleOutCooldownSeconds) { + var ret int32 + return ret + } + return *o.ScaleOutCooldownSeconds +} + +// GetScaleOutCooldownSecondsOk returns a tuple with the ScaleOutCooldownSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetScalingPolicyResponse) GetScaleOutCooldownSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.ScaleOutCooldownSeconds) { + return nil, false + } + return o.ScaleOutCooldownSeconds, true +} + +// HasScaleOutCooldownSeconds returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasScaleOutCooldownSeconds() bool { + if o != nil && !IsNil(o.ScaleOutCooldownSeconds) { + return true + } + + return false +} + +// SetScaleOutCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleOutCooldownSeconds field. +func (o *GetScalingPolicyResponse) SetScaleOutCooldownSeconds(v int32) { + o.ScaleOutCooldownSeconds = &v +} + +// GetPolicyName returns the PolicyName field value if set, zero value otherwise. +func (o *GetScalingPolicyResponse) GetPolicyName() string { + if o == nil || IsNil(o.PolicyName) { + var ret string + return ret + } + return *o.PolicyName +} + +// GetPolicyNameOk returns a tuple with the PolicyName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetScalingPolicyResponse) GetPolicyNameOk() (*string, bool) { + if o == nil || IsNil(o.PolicyName) { + return nil, false + } + return o.PolicyName, true +} + +// HasPolicyName returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasPolicyName() bool { + if o != nil && !IsNil(o.PolicyName) { + return true + } + + return false +} + +// SetPolicyName gets a reference to the given string and assigns it to the PolicyName field. +func (o *GetScalingPolicyResponse) SetPolicyName(v string) { + o.PolicyName = &v +} + +// GetResourceLabel returns the ResourceLabel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetScalingPolicyResponse) GetResourceLabel() string { + if o == nil || IsNil(o.ResourceLabel.Get()) { + var ret string + return ret + } + return *o.ResourceLabel.Get() +} + +// GetResourceLabelOk returns a tuple with the ResourceLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetScalingPolicyResponse) GetResourceLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ResourceLabel.Get(), o.ResourceLabel.IsSet() +} + +// HasResourceLabel returns a boolean if a field has been set. +func (o *GetScalingPolicyResponse) HasResourceLabel() bool { + if o != nil && o.ResourceLabel.IsSet() { + return true + } + + return false +} + +// SetResourceLabel gets a reference to the given NullableString and assigns it to the ResourceLabel field. +func (o *GetScalingPolicyResponse) SetResourceLabel(v string) { + o.ResourceLabel.Set(&v) +} +// SetResourceLabelNil sets the value for ResourceLabel to be an explicit nil +func (o *GetScalingPolicyResponse) SetResourceLabelNil() { + o.ResourceLabel.Set(nil) +} + +// UnsetResourceLabel ensures that no value is present for ResourceLabel, not even an explicit nil +func (o *GetScalingPolicyResponse) UnsetResourceLabel() { + o.ResourceLabel.Unset() +} + +func (o GetScalingPolicyResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetScalingPolicyResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Metric) { + toSerialize["metric"] = o.Metric + } + if !IsNil(o.TargetValue) { + toSerialize["targetValue"] = o.TargetValue + } + if !IsNil(o.ScaleInCooldownSeconds) { + toSerialize["scaleInCooldownSeconds"] = o.ScaleInCooldownSeconds + } + if !IsNil(o.ScaleOutCooldownSeconds) { + toSerialize["scaleOutCooldownSeconds"] = o.ScaleOutCooldownSeconds + } + if !IsNil(o.PolicyName) { + toSerialize["policyName"] = o.PolicyName + } + if o.ResourceLabel.IsSet() { + toSerialize["resourceLabel"] = o.ResourceLabel.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetScalingPolicyResponse) UnmarshalJSON(data []byte) (err error) { + varGetScalingPolicyResponse := _GetScalingPolicyResponse{} + + err = json.Unmarshal(data, &varGetScalingPolicyResponse) + + if err != nil { + return err + } + + *o = GetScalingPolicyResponse(varGetScalingPolicyResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "metric") + delete(additionalProperties, "targetValue") + delete(additionalProperties, "scaleInCooldownSeconds") + delete(additionalProperties, "scaleOutCooldownSeconds") + delete(additionalProperties, "policyName") + delete(additionalProperties, "resourceLabel") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetScalingPolicyResponse struct { + value *GetScalingPolicyResponse + isSet bool +} + +func (v NullableGetScalingPolicyResponse) Get() *GetScalingPolicyResponse { + return v.value +} + +func (v *NullableGetScalingPolicyResponse) Set(val *GetScalingPolicyResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetScalingPolicyResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetScalingPolicyResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetScalingPolicyResponse(val *GetScalingPolicyResponse) *NullableGetScalingPolicyResponse { + return &NullableGetScalingPolicyResponse{value: val, isSet: true} +} + +func (v NullableGetScalingPolicyResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetScalingPolicyResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_skill_200_response.go b/model_get_skill_200_response.go index 210fc08f..eda9bc87 100644 --- a/model_get_skill_200_response.go +++ b/model_get_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_skill_200_response_skill.go b/model_get_skill_200_response_skill.go index ec5ac01e..7d66a4b6 100644 --- a/model_get_skill_200_response_skill.go +++ b/model_get_skill_200_response_skill.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_slack_bot_200_response.go b/model_get_slack_bot_200_response.go index 4ba039cb..5fac0c43 100644 --- a/model_get_slack_bot_200_response.go +++ b/model_get_slack_bot_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_slack_bot_200_response_bot.go b/model_get_slack_bot_200_response_bot.go index 77b2318c..a8c3811e 100644 --- a/model_get_slack_bot_200_response_bot.go +++ b/model_get_slack_bot_200_response_bot.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ssh_access_credentials_200_response.go b/model_get_ssh_access_credentials_200_response.go index c76b7769..e0f480c7 100644 --- a/model_get_ssh_access_credentials_200_response.go +++ b/model_get_ssh_access_credentials_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_ssh_access_credentials_200_response_credentials.go b/model_get_ssh_access_credentials_200_response_credentials.go index 1b4a86d8..72a2b672 100644 --- a/model_get_ssh_access_credentials_200_response_credentials.go +++ b/model_get_ssh_access_credentials_200_response_credentials.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_task_200_response.go b/model_get_task_200_response.go index 8f56378a..34da4885 100644 --- a/model_get_task_200_response.go +++ b/model_get_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_vector_collection_200_response.go b/model_get_vector_collection_200_response.go index a0350ee9..4a06f20e 100644 --- a/model_get_vector_collection_200_response.go +++ b/model_get_vector_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_vector_collection_200_response_collection.go b/model_get_vector_collection_200_response_collection.go index bbcd50db..2a37cfbe 100644 --- a/model_get_vector_collection_200_response_collection.go +++ b/model_get_vector_collection_200_response_collection.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_200_response.go b/model_image_generation_200_response.go index 583b70ab..faa6fd0f 100644 --- a/model_image_generation_200_response.go +++ b/model_image_generation_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request.go b/model_image_generation_request.go index 54aefec9..b7976887 100644 --- a/model_image_generation_request.go +++ b/model_image_generation_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_background_removal_params.go b/model_image_generation_request_background_removal_params.go index b396ae66..d1ffc113 100644 --- a/model_image_generation_request_background_removal_params.go +++ b/model_image_generation_request_background_removal_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_color_guided_generation_params.go b/model_image_generation_request_color_guided_generation_params.go index 67ba64a6..83eee175 100644 --- a/model_image_generation_request_color_guided_generation_params.go +++ b/model_image_generation_request_color_guided_generation_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_image_generation_config.go b/model_image_generation_request_image_generation_config.go index 215c7868..70f8768a 100644 --- a/model_image_generation_request_image_generation_config.go +++ b/model_image_generation_request_image_generation_config.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_image_variation_params.go b/model_image_generation_request_image_variation_params.go index 47599a35..aec8a54b 100644 --- a/model_image_generation_request_image_variation_params.go +++ b/model_image_generation_request_image_variation_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_in_painting_params.go b/model_image_generation_request_in_painting_params.go index 9974ec25..32852a20 100644 --- a/model_image_generation_request_in_painting_params.go +++ b/model_image_generation_request_in_painting_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_out_painting_params.go b/model_image_generation_request_out_painting_params.go index 1819b5b6..050eb16b 100644 --- a/model_image_generation_request_out_painting_params.go +++ b/model_image_generation_request_out_painting_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_generation_request_text_to_image_params.go b/model_image_generation_request_text_to_image_params.go index 465fac85..19fcbac5 100644 --- a/model_image_generation_request_text_to_image_params.go +++ b/model_image_generation_request_text_to_image_params.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_201_response.go b/model_import_skill_201_response.go index 1ce76236..ec7e7036 100644 --- a/model_import_skill_201_response.go +++ b/model_import_skill_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_201_response.go b/model_import_skill_collection_201_response.go index 724a392d..d0950493 100644 --- a/model_import_skill_collection_201_response.go +++ b/model_import_skill_collection_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_request.go b/model_import_skill_collection_request.go index fdf3a28a..cfa3eff8 100644 --- a/model_import_skill_collection_request.go +++ b/model_import_skill_collection_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_collection_request_source.go b/model_import_skill_collection_request_source.go index 5efbcae8..be9874a0 100644 --- a/model_import_skill_collection_request_source.go +++ b/model_import_skill_collection_request_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_request.go b/model_import_skill_request.go index 42d0fcb3..b9e29cf6 100644 --- a/model_import_skill_request.go +++ b/model_import_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_import_skill_request_source.go b/model_import_skill_request_source.go index aaf9a84a..16cf2188 100644 --- a/model_import_skill_request_source.go +++ b/model_import_skill_request_source.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_items_create_200_response.go b/model_kv_items_create_200_response.go index bf8bce79..caf1f8ca 100644 --- a/model_kv_items_create_200_response.go +++ b/model_kv_items_create_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_items_delete_200_response.go b/model_kv_items_delete_200_response.go index 2145b441..ad94d219 100644 --- a/model_kv_items_delete_200_response.go +++ b/model_kv_items_delete_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_items_show_200_response.go b/model_kv_items_show_200_response.go index d21962a4..a53ed133 100644 --- a/model_kv_items_show_200_response.go +++ b/model_kv_items_show_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_items_show_200_response_value.go b/model_kv_items_show_200_response_value.go index 6441f17b..b4dea7c3 100644 --- a/model_kv_items_show_200_response_value.go +++ b/model_kv_items_show_200_response_value.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_link_to_project_200_response.go b/model_kv_link_to_project_200_response.go index 65c699df..902c5c2d 100644 --- a/model_kv_link_to_project_200_response.go +++ b/model_kv_link_to_project_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kv_link_to_project_request.go b/model_kv_link_to_project_request.go index e201c4cd..1f8f41e7 100644 --- a/model_kv_link_to_project_request.go +++ b/model_kv_link_to_project_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_agents_200_response.go b/model_list_ai_agents_200_response.go index 2f852010..f1abefab 100644 --- a/model_list_ai_agents_200_response.go +++ b/model_list_ai_agents_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_agents_200_response_agents_inner.go b/model_list_ai_agents_200_response_agents_inner.go index 60a62d0f..d4e83987 100644 --- a/model_list_ai_agents_200_response_agents_inner.go +++ b/model_list_ai_agents_200_response_agents_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_models_200_response.go b/model_list_ai_models_200_response.go index fb54d5c1..d3566ad3 100644 --- a/model_list_ai_models_200_response.go +++ b/model_list_ai_models_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_models_200_response_models_inner.go b/model_list_ai_models_200_response_models_inner.go index 1eefc81b..acb28731 100644 --- a/model_list_ai_models_200_response_models_inner.go +++ b/model_list_ai_models_200_response_models_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_models_200_response_models_inner_capabilities.go b/model_list_ai_models_200_response_models_inner_capabilities.go index d095158e..77de2c81 100644 --- a/model_list_ai_models_200_response_models_inner_capabilities.go +++ b/model_list_ai_models_200_response_models_inner_capabilities.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_sessions_200_response_inner.go b/model_list_ai_sessions_200_response_inner.go index 8350cbde..a8400db9 100644 --- a/model_list_ai_sessions_200_response_inner.go +++ b/model_list_ai_sessions_200_response_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tool_executions_200_response.go b/model_list_ai_tool_executions_200_response.go index a1d50486..3e57ae94 100644 --- a/model_list_ai_tool_executions_200_response.go +++ b/model_list_ai_tool_executions_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tool_executions_200_response_executions_inner.go b/model_list_ai_tool_executions_200_response_executions_inner.go index 2a0e8c7c..2b7afac8 100644 --- a/model_list_ai_tool_executions_200_response_executions_inner.go +++ b/model_list_ai_tool_executions_200_response_executions_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tool_names_200_response.go b/model_list_ai_tool_names_200_response.go index c1996634..9aebad65 100644 --- a/model_list_ai_tool_names_200_response.go +++ b/model_list_ai_tool_names_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tools_200_response.go b/model_list_ai_tools_200_response.go index 3e3ec4e3..45e021a2 100644 --- a/model_list_ai_tools_200_response.go +++ b/model_list_ai_tools_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tools_200_response_tools_inner.go b/model_list_ai_tools_200_response_tools_inner.go index 7cfc903f..f8e246ba 100644 --- a/model_list_ai_tools_200_response_tools_inner.go +++ b/model_list_ai_tools_200_response_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tools_200_response_tools_inner_tool_spec.go b/model_list_ai_tools_200_response_tools_inner_tool_spec.go index 667e1227..076879f0 100644 --- a/model_list_ai_tools_200_response_tools_inner_tool_spec.go +++ b/model_list_ai_tools_200_response_tools_inner_tool_spec.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_tools_200_response_tools_inner_tool_spec_input_schema.go b/model_list_ai_tools_200_response_tools_inner_tool_spec_input_schema.go index 6c271d05..d936292e 100644 --- a/model_list_ai_tools_200_response_tools_inner_tool_spec_input_schema.go +++ b/model_list_ai_tools_200_response_tools_inner_tool_spec_input_schema.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_backups_200_response.go b/model_list_backups_200_response.go index 7d232570..0f5ae58d 100644 --- a/model_list_backups_200_response.go +++ b/model_list_backups_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_backups_200_response_backups_inner.go b/model_list_backups_200_response_backups_inner.go index 536b67d8..39baa4bc 100644 --- a/model_list_backups_200_response_backups_inner.go +++ b/model_list_backups_200_response_backups_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_backups_422_response.go b/model_list_backups_422_response.go index 2ea96faf..bd8532d6 100644 --- a/model_list_backups_422_response.go +++ b/model_list_backups_422_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_custom_tools_200_response.go b/model_list_custom_tools_200_response.go index be2c23c9..2a4ed071 100644 --- a/model_list_custom_tools_200_response.go +++ b/model_list_custom_tools_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_custom_tools_200_response_tools_inner.go b/model_list_custom_tools_200_response_tools_inner.go index 8f4f9069..2534e769 100644 --- a/model_list_custom_tools_200_response_tools_inner.go +++ b/model_list_custom_tools_200_response_tools_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,7 +24,7 @@ type ListCustomTools200ResponseToolsInner struct { Description *string `json:"description,omitempty"` EdgeFunctionUrl *string `json:"edgeFunctionUrl,omitempty"` IsAsync *bool `json:"isAsync,omitempty"` - InputSchema map[string]interface{} `json:"inputSchema,omitempty"` + InputSchema *string `json:"inputSchema,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` AdditionalProperties map[string]interface{} } @@ -177,19 +177,19 @@ func (o *ListCustomTools200ResponseToolsInner) SetIsAsync(v bool) { } // GetInputSchema returns the InputSchema field value if set, zero value otherwise. -func (o *ListCustomTools200ResponseToolsInner) GetInputSchema() map[string]interface{} { +func (o *ListCustomTools200ResponseToolsInner) GetInputSchema() string { if o == nil || IsNil(o.InputSchema) { - var ret map[string]interface{} + var ret string return ret } - return o.InputSchema + return *o.InputSchema } // GetInputSchemaOk returns a tuple with the InputSchema field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListCustomTools200ResponseToolsInner) GetInputSchemaOk() (map[string]interface{}, bool) { +func (o *ListCustomTools200ResponseToolsInner) GetInputSchemaOk() (*string, bool) { if o == nil || IsNil(o.InputSchema) { - return map[string]interface{}{}, false + return nil, false } return o.InputSchema, true } @@ -203,9 +203,9 @@ func (o *ListCustomTools200ResponseToolsInner) HasInputSchema() bool { return false } -// SetInputSchema gets a reference to the given map[string]interface{} and assigns it to the InputSchema field. -func (o *ListCustomTools200ResponseToolsInner) SetInputSchema(v map[string]interface{}) { - o.InputSchema = v +// SetInputSchema gets a reference to the given string and assigns it to the InputSchema field. +func (o *ListCustomTools200ResponseToolsInner) SetInputSchema(v string) { + o.InputSchema = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. diff --git a/model_list_files_200_response.go b/model_list_files_200_response.go index 300e738d..5fb4507e 100644 --- a/model_list_files_200_response.go +++ b/model_list_files_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_files_200_response_files_inner.go b/model_list_files_200_response_files_inner.go index 66813342..fe824290 100644 --- a/model_list_files_200_response_files_inner.go +++ b/model_list_files_200_response_files_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestration_batches_200_response.go b/model_list_orchestration_batches_200_response.go index dd5668c5..e430d933 100644 --- a/model_list_orchestration_batches_200_response.go +++ b/model_list_orchestration_batches_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestration_batches_200_response_batches_inner.go b/model_list_orchestration_batches_200_response_batches_inner.go index 3cb4513a..53447d49 100644 --- a/model_list_orchestration_batches_200_response_batches_inner.go +++ b/model_list_orchestration_batches_200_response_batches_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_orchestrations_200_response.go b/model_list_orchestrations_200_response.go index ce092d2d..a861415e 100644 --- a/model_list_orchestrations_200_response.go +++ b/model_list_orchestrations_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skill_collections_200_response.go b/model_list_skill_collections_200_response.go index 202669a8..3ddd2f6c 100644 --- a/model_list_skill_collections_200_response.go +++ b/model_list_skill_collections_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skill_collections_200_response_collections_inner.go b/model_list_skill_collections_200_response_collections_inner.go index c2c2cb70..eb358060 100644 --- a/model_list_skill_collections_200_response_collections_inner.go +++ b/model_list_skill_collections_200_response_collections_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skills_200_response.go b/model_list_skills_200_response.go index 47682b35..debdb9fd 100644 --- a/model_list_skills_200_response.go +++ b/model_list_skills_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_skills_200_response_skills_inner.go b/model_list_skills_200_response_skills_inner.go index 1527583d..aae0555d 100644 --- a/model_list_skills_200_response_skills_inner.go +++ b/model_list_skills_200_response_skills_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_slack_bots_200_response.go b/model_list_slack_bots_200_response.go index f7250596..162f60f7 100644 --- a/model_list_slack_bots_200_response.go +++ b/model_list_slack_bots_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_slack_bots_200_response_bots_inner.go b/model_list_slack_bots_200_response_bots_inner.go index 8d901594..8ba4a883 100644 --- a/model_list_slack_bots_200_response_bots_inner.go +++ b/model_list_slack_bots_200_response_bots_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_tasks_200_response.go b/model_list_tasks_200_response.go index 2b2270a6..abb2d870 100644 --- a/model_list_tasks_200_response.go +++ b/model_list_tasks_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_tasks_200_response_tasks_inner.go b/model_list_tasks_200_response_tasks_inner.go index 0457eae3..d42f86ec 100644 --- a/model_list_tasks_200_response_tasks_inner.go +++ b/model_list_tasks_200_response_tasks_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_vector_collections_200_response.go b/model_list_vector_collections_200_response.go index 737a54ad..f2c0fb48 100644 --- a/model_list_vector_collections_200_response.go +++ b/model_list_vector_collections_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_vector_collections_200_response_collections_inner.go b/model_list_vector_collections_200_response_collections_inner.go index 6abf00c6..7fc530e5 100644 --- a/model_list_vector_collections_200_response_collections_inner.go +++ b/model_list_vector_collections_200_response_collections_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_organizations_list_200_response_inner.go b/model_organizations_list_200_response_inner.go index d29a8182..89a11207 100644 --- a/model_organizations_list_200_response_inner.go +++ b/model_organizations_list_200_response_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_environment_compose_202_response.go b/model_patch_environment_compose_202_response.go index 5033de68..07c77c48 100644 --- a/model_patch_environment_compose_202_response.go +++ b/model_patch_environment_compose_202_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_environment_compose_202_response_spot_configuration.go b/model_patch_environment_compose_202_response_spot_configuration.go index 657c9232..d43e924c 100644 --- a/model_patch_environment_compose_202_response_spot_configuration.go +++ b/model_patch_environment_compose_202_response_spot_configuration.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_environment_compose_400_response.go b/model_patch_environment_compose_400_response.go index 6861e71c..a66c4cdc 100644 --- a/model_patch_environment_compose_400_response.go +++ b/model_patch_environment_compose_400_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_environment_compose_request.go b/model_patch_environment_compose_request.go index 2d38a0a4..f335216d 100644 --- a/model_patch_environment_compose_request.go +++ b/model_patch_environment_compose_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_environment_compose_request_spot_configuration.go b/model_patch_environment_compose_request_spot_configuration.go index f8730150..b45f2c6e 100644 --- a/model_patch_environment_compose_request_spot_configuration.go +++ b/model_patch_environment_compose_request_spot_configuration.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_purge_create_request.go b/model_purge_create_request.go index 039247b4..8b637a5d 100644 --- a/model_purge_create_request.go +++ b/model_purge_create_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_200_response.go b/model_query_vector_collection_200_response.go index ae6c8278..40518b9f 100644 --- a/model_query_vector_collection_200_response.go +++ b/model_query_vector_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_200_response_pagination.go b/model_query_vector_collection_200_response_pagination.go index 27ab787e..ecd201be 100644 --- a/model_query_vector_collection_200_response_pagination.go +++ b/model_query_vector_collection_200_response_pagination.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_200_response_results_inner.go b/model_query_vector_collection_200_response_results_inner.go index ff72b6b5..5aff581b 100644 --- a/model_query_vector_collection_200_response_results_inner.go +++ b/model_query_vector_collection_200_response_results_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_request.go b/model_query_vector_collection_request.go index ce6c5f86..032cc357 100644 --- a/model_query_vector_collection_request.go +++ b/model_query_vector_collection_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_query_vector_collection_request_filter.go b/model_query_vector_collection_request_filter.go index fe4b8a5b..982e4f30 100644 --- a/model_query_vector_collection_request_filter.go +++ b/model_query_vector_collection_request_filter.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_restore_database_202_response.go b/model_restore_database_202_response.go new file mode 100644 index 00000000..675a0523 --- /dev/null +++ b/model_restore_database_202_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the RestoreDatabase202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreDatabase202Response{} + +// RestoreDatabase202Response struct for RestoreDatabase202Response +type RestoreDatabase202Response struct { + RestoreId *string `json:"restoreId,omitempty"` + Status *string `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RestoreDatabase202Response RestoreDatabase202Response + +// NewRestoreDatabase202Response instantiates a new RestoreDatabase202Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreDatabase202Response() *RestoreDatabase202Response { + this := RestoreDatabase202Response{} + return &this +} + +// NewRestoreDatabase202ResponseWithDefaults instantiates a new RestoreDatabase202Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreDatabase202ResponseWithDefaults() *RestoreDatabase202Response { + this := RestoreDatabase202Response{} + return &this +} + +// GetRestoreId returns the RestoreId field value if set, zero value otherwise. +func (o *RestoreDatabase202Response) GetRestoreId() string { + if o == nil || IsNil(o.RestoreId) { + var ret string + return ret + } + return *o.RestoreId +} + +// GetRestoreIdOk returns a tuple with the RestoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreDatabase202Response) GetRestoreIdOk() (*string, bool) { + if o == nil || IsNil(o.RestoreId) { + return nil, false + } + return o.RestoreId, true +} + +// HasRestoreId returns a boolean if a field has been set. +func (o *RestoreDatabase202Response) HasRestoreId() bool { + if o != nil && !IsNil(o.RestoreId) { + return true + } + + return false +} + +// SetRestoreId gets a reference to the given string and assigns it to the RestoreId field. +func (o *RestoreDatabase202Response) SetRestoreId(v string) { + o.RestoreId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RestoreDatabase202Response) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreDatabase202Response) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RestoreDatabase202Response) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *RestoreDatabase202Response) SetStatus(v string) { + o.Status = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *RestoreDatabase202Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreDatabase202Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *RestoreDatabase202Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *RestoreDatabase202Response) SetMessage(v string) { + o.Message = &v +} + +func (o RestoreDatabase202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreDatabase202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RestoreId) { + toSerialize["restoreId"] = o.RestoreId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreDatabase202Response) UnmarshalJSON(data []byte) (err error) { + varRestoreDatabase202Response := _RestoreDatabase202Response{} + + err = json.Unmarshal(data, &varRestoreDatabase202Response) + + if err != nil { + return err + } + + *o = RestoreDatabase202Response(varRestoreDatabase202Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "restoreId") + delete(additionalProperties, "status") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreDatabase202Response struct { + value *RestoreDatabase202Response + isSet bool +} + +func (v NullableRestoreDatabase202Response) Get() *RestoreDatabase202Response { + return v.value +} + +func (v *NullableRestoreDatabase202Response) Set(val *RestoreDatabase202Response) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreDatabase202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreDatabase202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreDatabase202Response(val *RestoreDatabase202Response) *NullableRestoreDatabase202Response { + return &NullableRestoreDatabase202Response{value: val, isSet: true} +} + +func (v NullableRestoreDatabase202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreDatabase202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_restore_database_request.go b/model_restore_database_request.go new file mode 100644 index 00000000..ed104a00 --- /dev/null +++ b/model_restore_database_request.go @@ -0,0 +1,199 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the RestoreDatabaseRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreDatabaseRequest{} + +// RestoreDatabaseRequest struct for RestoreDatabaseRequest +type RestoreDatabaseRequest struct { + // The backup ID to restore (must match path param) + BackupId string `json:"backupId"` + // Must be true to confirm existing data will be overwritten + AcknowledgeDataloss bool `json:"acknowledgeDataloss"` + AdditionalProperties map[string]interface{} +} + +type _RestoreDatabaseRequest RestoreDatabaseRequest + +// NewRestoreDatabaseRequest instantiates a new RestoreDatabaseRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreDatabaseRequest(backupId string, acknowledgeDataloss bool) *RestoreDatabaseRequest { + this := RestoreDatabaseRequest{} + this.BackupId = backupId + this.AcknowledgeDataloss = acknowledgeDataloss + return &this +} + +// NewRestoreDatabaseRequestWithDefaults instantiates a new RestoreDatabaseRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreDatabaseRequestWithDefaults() *RestoreDatabaseRequest { + this := RestoreDatabaseRequest{} + return &this +} + +// GetBackupId returns the BackupId field value +func (o *RestoreDatabaseRequest) GetBackupId() string { + if o == nil { + var ret string + return ret + } + + return o.BackupId +} + +// GetBackupIdOk returns a tuple with the BackupId field value +// and a boolean to check if the value has been set. +func (o *RestoreDatabaseRequest) GetBackupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BackupId, true +} + +// SetBackupId sets field value +func (o *RestoreDatabaseRequest) SetBackupId(v string) { + o.BackupId = v +} + +// GetAcknowledgeDataloss returns the AcknowledgeDataloss field value +func (o *RestoreDatabaseRequest) GetAcknowledgeDataloss() bool { + if o == nil { + var ret bool + return ret + } + + return o.AcknowledgeDataloss +} + +// GetAcknowledgeDatalossOk returns a tuple with the AcknowledgeDataloss field value +// and a boolean to check if the value has been set. +func (o *RestoreDatabaseRequest) GetAcknowledgeDatalossOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AcknowledgeDataloss, true +} + +// SetAcknowledgeDataloss sets field value +func (o *RestoreDatabaseRequest) SetAcknowledgeDataloss(v bool) { + o.AcknowledgeDataloss = v +} + +func (o RestoreDatabaseRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreDatabaseRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["backupId"] = o.BackupId + toSerialize["acknowledgeDataloss"] = o.AcknowledgeDataloss + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreDatabaseRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "backupId", + "acknowledgeDataloss", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRestoreDatabaseRequest := _RestoreDatabaseRequest{} + + err = json.Unmarshal(data, &varRestoreDatabaseRequest) + + if err != nil { + return err + } + + *o = RestoreDatabaseRequest(varRestoreDatabaseRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "backupId") + delete(additionalProperties, "acknowledgeDataloss") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreDatabaseRequest struct { + value *RestoreDatabaseRequest + isSet bool +} + +func (v NullableRestoreDatabaseRequest) Get() *RestoreDatabaseRequest { + return v.value +} + +func (v *NullableRestoreDatabaseRequest) Set(val *RestoreDatabaseRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreDatabaseRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreDatabaseRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreDatabaseRequest(val *RestoreDatabaseRequest) *NullableRestoreDatabaseRequest { + return &NullableRestoreDatabaseRequest{value: val, isSet: true} +} + +func (v NullableRestoreDatabaseRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreDatabaseRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_restore_filesystem_202_response.go b/model_restore_filesystem_202_response.go new file mode 100644 index 00000000..f8195e8a --- /dev/null +++ b/model_restore_filesystem_202_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the RestoreFilesystem202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreFilesystem202Response{} + +// RestoreFilesystem202Response struct for RestoreFilesystem202Response +type RestoreFilesystem202Response struct { + RestoreId *string `json:"restoreId,omitempty"` + Status *string `json:"status,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RestoreFilesystem202Response RestoreFilesystem202Response + +// NewRestoreFilesystem202Response instantiates a new RestoreFilesystem202Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreFilesystem202Response() *RestoreFilesystem202Response { + this := RestoreFilesystem202Response{} + return &this +} + +// NewRestoreFilesystem202ResponseWithDefaults instantiates a new RestoreFilesystem202Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreFilesystem202ResponseWithDefaults() *RestoreFilesystem202Response { + this := RestoreFilesystem202Response{} + return &this +} + +// GetRestoreId returns the RestoreId field value if set, zero value otherwise. +func (o *RestoreFilesystem202Response) GetRestoreId() string { + if o == nil || IsNil(o.RestoreId) { + var ret string + return ret + } + return *o.RestoreId +} + +// GetRestoreIdOk returns a tuple with the RestoreId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreFilesystem202Response) GetRestoreIdOk() (*string, bool) { + if o == nil || IsNil(o.RestoreId) { + return nil, false + } + return o.RestoreId, true +} + +// HasRestoreId returns a boolean if a field has been set. +func (o *RestoreFilesystem202Response) HasRestoreId() bool { + if o != nil && !IsNil(o.RestoreId) { + return true + } + + return false +} + +// SetRestoreId gets a reference to the given string and assigns it to the RestoreId field. +func (o *RestoreFilesystem202Response) SetRestoreId(v string) { + o.RestoreId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RestoreFilesystem202Response) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreFilesystem202Response) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RestoreFilesystem202Response) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *RestoreFilesystem202Response) SetStatus(v string) { + o.Status = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *RestoreFilesystem202Response) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RestoreFilesystem202Response) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *RestoreFilesystem202Response) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *RestoreFilesystem202Response) SetMessage(v string) { + o.Message = &v +} + +func (o RestoreFilesystem202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreFilesystem202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RestoreId) { + toSerialize["restoreId"] = o.RestoreId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreFilesystem202Response) UnmarshalJSON(data []byte) (err error) { + varRestoreFilesystem202Response := _RestoreFilesystem202Response{} + + err = json.Unmarshal(data, &varRestoreFilesystem202Response) + + if err != nil { + return err + } + + *o = RestoreFilesystem202Response(varRestoreFilesystem202Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "restoreId") + delete(additionalProperties, "status") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreFilesystem202Response struct { + value *RestoreFilesystem202Response + isSet bool +} + +func (v NullableRestoreFilesystem202Response) Get() *RestoreFilesystem202Response { + return v.value +} + +func (v *NullableRestoreFilesystem202Response) Set(val *RestoreFilesystem202Response) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreFilesystem202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreFilesystem202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreFilesystem202Response(val *RestoreFilesystem202Response) *NullableRestoreFilesystem202Response { + return &NullableRestoreFilesystem202Response{value: val, isSet: true} +} + +func (v NullableRestoreFilesystem202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreFilesystem202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_restore_filesystem_request.go b/model_restore_filesystem_request.go new file mode 100644 index 00000000..177c676f --- /dev/null +++ b/model_restore_filesystem_request.go @@ -0,0 +1,199 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the RestoreFilesystemRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RestoreFilesystemRequest{} + +// RestoreFilesystemRequest struct for RestoreFilesystemRequest +type RestoreFilesystemRequest struct { + // The backup ID to restore (must match path param) + BackupId string `json:"backupId"` + // Must be true. tar extraction overwrites same-named files in the target EFS in place; pre-existing files not in the archive are preserved. + AcknowledgeDataloss bool `json:"acknowledgeDataloss"` + AdditionalProperties map[string]interface{} +} + +type _RestoreFilesystemRequest RestoreFilesystemRequest + +// NewRestoreFilesystemRequest instantiates a new RestoreFilesystemRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRestoreFilesystemRequest(backupId string, acknowledgeDataloss bool) *RestoreFilesystemRequest { + this := RestoreFilesystemRequest{} + this.BackupId = backupId + this.AcknowledgeDataloss = acknowledgeDataloss + return &this +} + +// NewRestoreFilesystemRequestWithDefaults instantiates a new RestoreFilesystemRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRestoreFilesystemRequestWithDefaults() *RestoreFilesystemRequest { + this := RestoreFilesystemRequest{} + return &this +} + +// GetBackupId returns the BackupId field value +func (o *RestoreFilesystemRequest) GetBackupId() string { + if o == nil { + var ret string + return ret + } + + return o.BackupId +} + +// GetBackupIdOk returns a tuple with the BackupId field value +// and a boolean to check if the value has been set. +func (o *RestoreFilesystemRequest) GetBackupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BackupId, true +} + +// SetBackupId sets field value +func (o *RestoreFilesystemRequest) SetBackupId(v string) { + o.BackupId = v +} + +// GetAcknowledgeDataloss returns the AcknowledgeDataloss field value +func (o *RestoreFilesystemRequest) GetAcknowledgeDataloss() bool { + if o == nil { + var ret bool + return ret + } + + return o.AcknowledgeDataloss +} + +// GetAcknowledgeDatalossOk returns a tuple with the AcknowledgeDataloss field value +// and a boolean to check if the value has been set. +func (o *RestoreFilesystemRequest) GetAcknowledgeDatalossOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AcknowledgeDataloss, true +} + +// SetAcknowledgeDataloss sets field value +func (o *RestoreFilesystemRequest) SetAcknowledgeDataloss(v bool) { + o.AcknowledgeDataloss = v +} + +func (o RestoreFilesystemRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RestoreFilesystemRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["backupId"] = o.BackupId + toSerialize["acknowledgeDataloss"] = o.AcknowledgeDataloss + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RestoreFilesystemRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "backupId", + "acknowledgeDataloss", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRestoreFilesystemRequest := _RestoreFilesystemRequest{} + + err = json.Unmarshal(data, &varRestoreFilesystemRequest) + + if err != nil { + return err + } + + *o = RestoreFilesystemRequest(varRestoreFilesystemRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "backupId") + delete(additionalProperties, "acknowledgeDataloss") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRestoreFilesystemRequest struct { + value *RestoreFilesystemRequest + isSet bool +} + +func (v NullableRestoreFilesystemRequest) Get() *RestoreFilesystemRequest { + return v.value +} + +func (v *NullableRestoreFilesystemRequest) Set(val *RestoreFilesystemRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRestoreFilesystemRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRestoreFilesystemRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestoreFilesystemRequest(val *RestoreFilesystemRequest) *NullableRestoreFilesystemRequest { + return &NullableRestoreFilesystemRequest{value: val, isSet: true} +} + +func (v NullableRestoreFilesystemRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestoreFilesystemRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_scaling_policy.go b/model_scaling_policy.go deleted file mode 100644 index 29d09756..00000000 --- a/model_scaling_policy.go +++ /dev/null @@ -1,266 +0,0 @@ -/* -QuantCDN API - -Unified API for QuantCDN Admin and QuantCloud Platform services - -API version: 4.15.8 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package quantadmingo - -import ( - "encoding/json" -) - -// checks if the ScalingPolicy type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ScalingPolicy{} - -// ScalingPolicy struct for ScalingPolicy -type ScalingPolicy struct { - Metric *string `json:"metric,omitempty"` - TargetValue *float32 `json:"targetValue,omitempty"` - ScaleInCooldownSeconds *int32 `json:"scaleInCooldownSeconds,omitempty"` - ScaleOutCooldownSeconds *int32 `json:"scaleOutCooldownSeconds,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ScalingPolicy ScalingPolicy - -// NewScalingPolicy instantiates a new ScalingPolicy object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewScalingPolicy() *ScalingPolicy { - this := ScalingPolicy{} - return &this -} - -// NewScalingPolicyWithDefaults instantiates a new ScalingPolicy object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewScalingPolicyWithDefaults() *ScalingPolicy { - this := ScalingPolicy{} - return &this -} - -// GetMetric returns the Metric field value if set, zero value otherwise. -func (o *ScalingPolicy) GetMetric() string { - if o == nil || IsNil(o.Metric) { - var ret string - return ret - } - return *o.Metric -} - -// GetMetricOk returns a tuple with the Metric field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ScalingPolicy) GetMetricOk() (*string, bool) { - if o == nil || IsNil(o.Metric) { - return nil, false - } - return o.Metric, true -} - -// HasMetric returns a boolean if a field has been set. -func (o *ScalingPolicy) HasMetric() bool { - if o != nil && !IsNil(o.Metric) { - return true - } - - return false -} - -// SetMetric gets a reference to the given string and assigns it to the Metric field. -func (o *ScalingPolicy) SetMetric(v string) { - o.Metric = &v -} - -// GetTargetValue returns the TargetValue field value if set, zero value otherwise. -func (o *ScalingPolicy) GetTargetValue() float32 { - if o == nil || IsNil(o.TargetValue) { - var ret float32 - return ret - } - return *o.TargetValue -} - -// GetTargetValueOk returns a tuple with the TargetValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ScalingPolicy) GetTargetValueOk() (*float32, bool) { - if o == nil || IsNil(o.TargetValue) { - return nil, false - } - return o.TargetValue, true -} - -// HasTargetValue returns a boolean if a field has been set. -func (o *ScalingPolicy) HasTargetValue() bool { - if o != nil && !IsNil(o.TargetValue) { - return true - } - - return false -} - -// SetTargetValue gets a reference to the given float32 and assigns it to the TargetValue field. -func (o *ScalingPolicy) SetTargetValue(v float32) { - o.TargetValue = &v -} - -// GetScaleInCooldownSeconds returns the ScaleInCooldownSeconds field value if set, zero value otherwise. -func (o *ScalingPolicy) GetScaleInCooldownSeconds() int32 { - if o == nil || IsNil(o.ScaleInCooldownSeconds) { - var ret int32 - return ret - } - return *o.ScaleInCooldownSeconds -} - -// GetScaleInCooldownSecondsOk returns a tuple with the ScaleInCooldownSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ScalingPolicy) GetScaleInCooldownSecondsOk() (*int32, bool) { - if o == nil || IsNil(o.ScaleInCooldownSeconds) { - return nil, false - } - return o.ScaleInCooldownSeconds, true -} - -// HasScaleInCooldownSeconds returns a boolean if a field has been set. -func (o *ScalingPolicy) HasScaleInCooldownSeconds() bool { - if o != nil && !IsNil(o.ScaleInCooldownSeconds) { - return true - } - - return false -} - -// SetScaleInCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleInCooldownSeconds field. -func (o *ScalingPolicy) SetScaleInCooldownSeconds(v int32) { - o.ScaleInCooldownSeconds = &v -} - -// GetScaleOutCooldownSeconds returns the ScaleOutCooldownSeconds field value if set, zero value otherwise. -func (o *ScalingPolicy) GetScaleOutCooldownSeconds() int32 { - if o == nil || IsNil(o.ScaleOutCooldownSeconds) { - var ret int32 - return ret - } - return *o.ScaleOutCooldownSeconds -} - -// GetScaleOutCooldownSecondsOk returns a tuple with the ScaleOutCooldownSeconds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ScalingPolicy) GetScaleOutCooldownSecondsOk() (*int32, bool) { - if o == nil || IsNil(o.ScaleOutCooldownSeconds) { - return nil, false - } - return o.ScaleOutCooldownSeconds, true -} - -// HasScaleOutCooldownSeconds returns a boolean if a field has been set. -func (o *ScalingPolicy) HasScaleOutCooldownSeconds() bool { - if o != nil && !IsNil(o.ScaleOutCooldownSeconds) { - return true - } - - return false -} - -// SetScaleOutCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleOutCooldownSeconds field. -func (o *ScalingPolicy) SetScaleOutCooldownSeconds(v int32) { - o.ScaleOutCooldownSeconds = &v -} - -func (o ScalingPolicy) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ScalingPolicy) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Metric) { - toSerialize["metric"] = o.Metric - } - if !IsNil(o.TargetValue) { - toSerialize["targetValue"] = o.TargetValue - } - if !IsNil(o.ScaleInCooldownSeconds) { - toSerialize["scaleInCooldownSeconds"] = o.ScaleInCooldownSeconds - } - if !IsNil(o.ScaleOutCooldownSeconds) { - toSerialize["scaleOutCooldownSeconds"] = o.ScaleOutCooldownSeconds - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ScalingPolicy) UnmarshalJSON(data []byte) (err error) { - varScalingPolicy := _ScalingPolicy{} - - err = json.Unmarshal(data, &varScalingPolicy) - - if err != nil { - return err - } - - *o = ScalingPolicy(varScalingPolicy) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "metric") - delete(additionalProperties, "targetValue") - delete(additionalProperties, "scaleInCooldownSeconds") - delete(additionalProperties, "scaleOutCooldownSeconds") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableScalingPolicy struct { - value *ScalingPolicy - isSet bool -} - -func (v NullableScalingPolicy) Get() *ScalingPolicy { - return v.value -} - -func (v *NullableScalingPolicy) Set(val *ScalingPolicy) { - v.value = val - v.isSet = true -} - -func (v NullableScalingPolicy) IsSet() bool { - return v.isSet -} - -func (v *NullableScalingPolicy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableScalingPolicy(val *ScalingPolicy) *NullableScalingPolicy { - return &NullableScalingPolicy{value: val, isSet: true} -} - -func (v NullableScalingPolicy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableScalingPolicy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_scaling_policy_list_response.go b/model_scaling_policy_list_response.go new file mode 100644 index 00000000..91f22c8b --- /dev/null +++ b/model_scaling_policy_list_response.go @@ -0,0 +1,155 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ScalingPolicyListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScalingPolicyListResponse{} + +// ScalingPolicyListResponse struct for ScalingPolicyListResponse +type ScalingPolicyListResponse struct { + Policies []GetScalingPolicyResponse `json:"policies,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ScalingPolicyListResponse ScalingPolicyListResponse + +// NewScalingPolicyListResponse instantiates a new ScalingPolicyListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScalingPolicyListResponse() *ScalingPolicyListResponse { + this := ScalingPolicyListResponse{} + return &this +} + +// NewScalingPolicyListResponseWithDefaults instantiates a new ScalingPolicyListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScalingPolicyListResponseWithDefaults() *ScalingPolicyListResponse { + this := ScalingPolicyListResponse{} + return &this +} + +// GetPolicies returns the Policies field value if set, zero value otherwise. +func (o *ScalingPolicyListResponse) GetPolicies() []GetScalingPolicyResponse { + if o == nil || IsNil(o.Policies) { + var ret []GetScalingPolicyResponse + return ret + } + return o.Policies +} + +// GetPoliciesOk returns a tuple with the Policies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScalingPolicyListResponse) GetPoliciesOk() ([]GetScalingPolicyResponse, bool) { + if o == nil || IsNil(o.Policies) { + return nil, false + } + return o.Policies, true +} + +// HasPolicies returns a boolean if a field has been set. +func (o *ScalingPolicyListResponse) HasPolicies() bool { + if o != nil && !IsNil(o.Policies) { + return true + } + + return false +} + +// SetPolicies gets a reference to the given []GetScalingPolicyResponse and assigns it to the Policies field. +func (o *ScalingPolicyListResponse) SetPolicies(v []GetScalingPolicyResponse) { + o.Policies = v +} + +func (o ScalingPolicyListResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScalingPolicyListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Policies) { + toSerialize["policies"] = o.Policies + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScalingPolicyListResponse) UnmarshalJSON(data []byte) (err error) { + varScalingPolicyListResponse := _ScalingPolicyListResponse{} + + err = json.Unmarshal(data, &varScalingPolicyListResponse) + + if err != nil { + return err + } + + *o = ScalingPolicyListResponse(varScalingPolicyListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "policies") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScalingPolicyListResponse struct { + value *ScalingPolicyListResponse + isSet bool +} + +func (v NullableScalingPolicyListResponse) Get() *ScalingPolicyListResponse { + return v.value +} + +func (v *NullableScalingPolicyListResponse) Set(val *ScalingPolicyListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableScalingPolicyListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableScalingPolicyListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScalingPolicyListResponse(val *ScalingPolicyListResponse) *NullableScalingPolicyListResponse { + return &NullableScalingPolicyListResponse{value: val, isSet: true} +} + +func (v NullableScalingPolicyListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScalingPolicyListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_search_slack_workspace_channels_200_response.go b/model_search_slack_workspace_channels_200_response.go index 958c8789..41b487f4 100644 --- a/model_search_slack_workspace_channels_200_response.go +++ b/model_search_slack_workspace_channels_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search_slack_workspace_channels_200_response_results_inner.go b/model_search_slack_workspace_channels_200_response_results_inner.go index bd1a8fd6..f658c5a6 100644 --- a/model_search_slack_workspace_channels_200_response_results_inner.go +++ b/model_search_slack_workspace_channels_200_response_results_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search_slack_workspace_users_200_response.go b/model_search_slack_workspace_users_200_response.go index aeebcebb..0da22161 100644 --- a/model_search_slack_workspace_users_200_response.go +++ b/model_search_slack_workspace_users_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_search_slack_workspace_users_200_response_results_inner.go b/model_search_slack_workspace_users_200_response_results_inner.go index a41bb986..76b4b821 100644 --- a/model_search_slack_workspace_users_200_response_results_inner.go +++ b/model_search_slack_workspace_users_200_response_results_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_set_scaling_policy_request.go b/model_set_scaling_policy_request.go new file mode 100644 index 00000000..6652ddc4 --- /dev/null +++ b/model_set_scaling_policy_request.go @@ -0,0 +1,283 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.19.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the SetScalingPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SetScalingPolicyRequest{} + +// SetScalingPolicyRequest struct for SetScalingPolicyRequest +type SetScalingPolicyRequest struct { + // Metric to track for scaling. + Metric string `json:"metric"` + // Target value. Percentage for CPU/Memory; req/sec per task for RPS. + TargetValue float64 `json:"targetValue"` + // Cooldown (seconds) before another scale-in can start. + ScaleInCooldownSeconds *int32 `json:"scaleInCooldownSeconds,omitempty"` + // Cooldown (seconds) before another scale-out can start. + ScaleOutCooldownSeconds *int32 `json:"scaleOutCooldownSeconds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SetScalingPolicyRequest SetScalingPolicyRequest + +// NewSetScalingPolicyRequest instantiates a new SetScalingPolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSetScalingPolicyRequest(metric string, targetValue float64) *SetScalingPolicyRequest { + this := SetScalingPolicyRequest{} + this.Metric = metric + this.TargetValue = targetValue + var scaleInCooldownSeconds int32 = 300 + this.ScaleInCooldownSeconds = &scaleInCooldownSeconds + var scaleOutCooldownSeconds int32 = 60 + this.ScaleOutCooldownSeconds = &scaleOutCooldownSeconds + return &this +} + +// NewSetScalingPolicyRequestWithDefaults instantiates a new SetScalingPolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSetScalingPolicyRequestWithDefaults() *SetScalingPolicyRequest { + this := SetScalingPolicyRequest{} + var scaleInCooldownSeconds int32 = 300 + this.ScaleInCooldownSeconds = &scaleInCooldownSeconds + var scaleOutCooldownSeconds int32 = 60 + this.ScaleOutCooldownSeconds = &scaleOutCooldownSeconds + return &this +} + +// GetMetric returns the Metric field value +func (o *SetScalingPolicyRequest) GetMetric() string { + if o == nil { + var ret string + return ret + } + + return o.Metric +} + +// GetMetricOk returns a tuple with the Metric field value +// and a boolean to check if the value has been set. +func (o *SetScalingPolicyRequest) GetMetricOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Metric, true +} + +// SetMetric sets field value +func (o *SetScalingPolicyRequest) SetMetric(v string) { + o.Metric = v +} + +// GetTargetValue returns the TargetValue field value +func (o *SetScalingPolicyRequest) GetTargetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.TargetValue +} + +// GetTargetValueOk returns a tuple with the TargetValue field value +// and a boolean to check if the value has been set. +func (o *SetScalingPolicyRequest) GetTargetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.TargetValue, true +} + +// SetTargetValue sets field value +func (o *SetScalingPolicyRequest) SetTargetValue(v float64) { + o.TargetValue = v +} + +// GetScaleInCooldownSeconds returns the ScaleInCooldownSeconds field value if set, zero value otherwise. +func (o *SetScalingPolicyRequest) GetScaleInCooldownSeconds() int32 { + if o == nil || IsNil(o.ScaleInCooldownSeconds) { + var ret int32 + return ret + } + return *o.ScaleInCooldownSeconds +} + +// GetScaleInCooldownSecondsOk returns a tuple with the ScaleInCooldownSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SetScalingPolicyRequest) GetScaleInCooldownSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.ScaleInCooldownSeconds) { + return nil, false + } + return o.ScaleInCooldownSeconds, true +} + +// HasScaleInCooldownSeconds returns a boolean if a field has been set. +func (o *SetScalingPolicyRequest) HasScaleInCooldownSeconds() bool { + if o != nil && !IsNil(o.ScaleInCooldownSeconds) { + return true + } + + return false +} + +// SetScaleInCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleInCooldownSeconds field. +func (o *SetScalingPolicyRequest) SetScaleInCooldownSeconds(v int32) { + o.ScaleInCooldownSeconds = &v +} + +// GetScaleOutCooldownSeconds returns the ScaleOutCooldownSeconds field value if set, zero value otherwise. +func (o *SetScalingPolicyRequest) GetScaleOutCooldownSeconds() int32 { + if o == nil || IsNil(o.ScaleOutCooldownSeconds) { + var ret int32 + return ret + } + return *o.ScaleOutCooldownSeconds +} + +// GetScaleOutCooldownSecondsOk returns a tuple with the ScaleOutCooldownSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SetScalingPolicyRequest) GetScaleOutCooldownSecondsOk() (*int32, bool) { + if o == nil || IsNil(o.ScaleOutCooldownSeconds) { + return nil, false + } + return o.ScaleOutCooldownSeconds, true +} + +// HasScaleOutCooldownSeconds returns a boolean if a field has been set. +func (o *SetScalingPolicyRequest) HasScaleOutCooldownSeconds() bool { + if o != nil && !IsNil(o.ScaleOutCooldownSeconds) { + return true + } + + return false +} + +// SetScaleOutCooldownSeconds gets a reference to the given int32 and assigns it to the ScaleOutCooldownSeconds field. +func (o *SetScalingPolicyRequest) SetScaleOutCooldownSeconds(v int32) { + o.ScaleOutCooldownSeconds = &v +} + +func (o SetScalingPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SetScalingPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["metric"] = o.Metric + toSerialize["targetValue"] = o.TargetValue + if !IsNil(o.ScaleInCooldownSeconds) { + toSerialize["scaleInCooldownSeconds"] = o.ScaleInCooldownSeconds + } + if !IsNil(o.ScaleOutCooldownSeconds) { + toSerialize["scaleOutCooldownSeconds"] = o.ScaleOutCooldownSeconds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SetScalingPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "metric", + "targetValue", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSetScalingPolicyRequest := _SetScalingPolicyRequest{} + + err = json.Unmarshal(data, &varSetScalingPolicyRequest) + + if err != nil { + return err + } + + *o = SetScalingPolicyRequest(varSetScalingPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "metric") + delete(additionalProperties, "targetValue") + delete(additionalProperties, "scaleInCooldownSeconds") + delete(additionalProperties, "scaleOutCooldownSeconds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSetScalingPolicyRequest struct { + value *SetScalingPolicyRequest + isSet bool +} + +func (v NullableSetScalingPolicyRequest) Get() *SetScalingPolicyRequest { + return v.value +} + +func (v *NullableSetScalingPolicyRequest) Set(val *SetScalingPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSetScalingPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSetScalingPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSetScalingPolicyRequest(val *SetScalingPolicyRequest) *NullableSetScalingPolicyRequest { + return &NullableSetScalingPolicyRequest{value: val, isSet: true} +} + +func (v NullableSetScalingPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSetScalingPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_spot_configuration.go b/model_spot_configuration.go index 46ddfda1..b50cd54c 100644 --- a/model_spot_configuration.go +++ b/model_spot_configuration.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_200_response.go b/model_submit_tool_callback_200_response.go index 6a5494a3..20090cd9 100644 --- a/model_submit_tool_callback_200_response.go +++ b/model_submit_tool_callback_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_request.go b/model_submit_tool_callback_request.go index b133818c..24e7800d 100644 --- a/model_submit_tool_callback_request.go +++ b/model_submit_tool_callback_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_submit_tool_callback_request_tool_results_inner.go b/model_submit_tool_callback_request_tool_results_inner.go index 210cffea..9294b2ce 100644 --- a/model_submit_tool_callback_request_tool_results_inner.go +++ b/model_submit_tool_callback_request_tool_results_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_operation.go b/model_sync_operation.go index 1c952360..75fb6b9d 100644 --- a/model_sync_operation.go +++ b/model_sync_operation.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_skill_collection_200_response.go b/model_sync_skill_collection_200_response.go index 3c0a6ab4..2a40be97 100644 --- a/model_sync_skill_collection_200_response.go +++ b/model_sync_skill_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_sync_to_environment_request.go b/model_sync_to_environment_request.go index 006629ae..45ccf4f2 100644 --- a/model_sync_to_environment_request.go +++ b/model_sync_to_environment_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_create_201_response.go b/model_tokens_create_201_response.go index 221d7464..c2234ba1 100644 --- a/model_tokens_create_201_response.go +++ b/model_tokens_create_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_create_request.go b/model_tokens_create_request.go index 08e263b4..5776b972 100644 --- a/model_tokens_create_request.go +++ b/model_tokens_create_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_delete_200_response.go b/model_tokens_delete_200_response.go index b70e5e09..f256b807 100644 --- a/model_tokens_delete_200_response.go +++ b/model_tokens_delete_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tokens_list_200_response_inner.go b/model_tokens_list_200_response_inner.go index 70671da6..e9c31c60 100644 --- a/model_tokens_list_200_response_inner.go +++ b/model_tokens_list_200_response_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_agent_200_response.go b/model_update_ai_agent_200_response.go index ebca3f48..3b961854 100644 --- a/model_update_ai_agent_200_response.go +++ b/model_update_ai_agent_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_agent_request.go b/model_update_ai_agent_request.go index ee071ef9..0cd9bb66 100644 --- a/model_update_ai_agent_request.go +++ b/model_update_ai_agent_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -33,7 +33,7 @@ type UpdateAIAgentRequest struct { // Enable 1M context window support LongContext *bool `json:"longContext,omitempty"` // Guardrail preset name - GuardrailPreset *string `json:"guardrailPreset,omitempty"` + GuardrailPreset NullableString `json:"guardrailPreset,omitempty"` // Filter policy IDs to apply to this agent's inference requests FilterPolicies []string `json:"filterPolicies,omitempty"` AdditionalProperties map[string]interface{} @@ -410,36 +410,46 @@ func (o *UpdateAIAgentRequest) SetLongContext(v bool) { o.LongContext = &v } -// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UpdateAIAgentRequest) GetGuardrailPreset() string { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil || IsNil(o.GuardrailPreset.Get()) { var ret string return ret } - return *o.GuardrailPreset + return *o.GuardrailPreset.Get() } // GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UpdateAIAgentRequest) GetGuardrailPresetOk() (*string, bool) { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil { return nil, false } - return o.GuardrailPreset, true + return o.GuardrailPreset.Get(), o.GuardrailPreset.IsSet() } // HasGuardrailPreset returns a boolean if a field has been set. func (o *UpdateAIAgentRequest) HasGuardrailPreset() bool { - if o != nil && !IsNil(o.GuardrailPreset) { + if o != nil && o.GuardrailPreset.IsSet() { return true } return false } -// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +// SetGuardrailPreset gets a reference to the given NullableString and assigns it to the GuardrailPreset field. func (o *UpdateAIAgentRequest) SetGuardrailPreset(v string) { - o.GuardrailPreset = &v + o.GuardrailPreset.Set(&v) +} +// SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil +func (o *UpdateAIAgentRequest) SetGuardrailPresetNil() { + o.GuardrailPreset.Set(nil) +} + +// UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil +func (o *UpdateAIAgentRequest) UnsetGuardrailPreset() { + o.GuardrailPreset.Unset() } // GetFilterPolicies returns the FilterPolicies field value if set, zero value otherwise. @@ -517,8 +527,8 @@ func (o UpdateAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.LongContext) { toSerialize["longContext"] = o.LongContext } - if !IsNil(o.GuardrailPreset) { - toSerialize["guardrailPreset"] = o.GuardrailPreset + if o.GuardrailPreset.IsSet() { + toSerialize["guardrailPreset"] = o.GuardrailPreset.Get() } if !IsNil(o.FilterPolicies) { toSerialize["filterPolicies"] = o.FilterPolicies diff --git a/model_update_ai_session_200_response.go b/model_update_ai_session_200_response.go index 36fe228c..c44d34bc 100644 --- a/model_update_ai_session_200_response.go +++ b/model_update_ai_session_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_session_request.go b/model_update_ai_session_request.go index 362d03de..730c3817 100644 --- a/model_update_ai_session_request.go +++ b/model_update_ai_session_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_session_request_new_messages_inner.go b/model_update_ai_session_request_new_messages_inner.go index bbcab6b5..fc822a77 100644 --- a/model_update_ai_session_request_new_messages_inner.go +++ b/model_update_ai_session_request_new_messages_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_cron_job_request.go b/model_update_cron_job_request.go index 4a9dbe6d..a6050d9e 100644 --- a/model_update_cron_job_request.go +++ b/model_update_cron_job_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_environment_request.go b/model_update_environment_request.go index 9053bee1..9ace8223 100644 --- a/model_update_environment_request.go +++ b/model_update_environment_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_environment_state_request.go b/model_update_environment_state_request.go index 838c94f2..632346d8 100644 --- a/model_update_environment_state_request.go +++ b/model_update_environment_state_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_environment_variable_request.go b/model_update_environment_variable_request.go index 14e1872c..93998560 100644 --- a/model_update_environment_variable_request.go +++ b/model_update_environment_variable_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_filter_policy_request.go b/model_update_filter_policy_request.go index 6964783a..a3965b8d 100644 --- a/model_update_filter_policy_request.go +++ b/model_update_filter_policy_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_governance_config_200_response.go b/model_update_governance_config_200_response.go index 9e131ab8..8572b8c7 100644 --- a/model_update_governance_config_200_response.go +++ b/model_update_governance_config_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_governance_config_request.go b/model_update_governance_config_request.go index c12efee0..b1e47e6a 100644 --- a/model_update_governance_config_request.go +++ b/model_update_governance_config_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_skill_200_response.go b/model_update_skill_200_response.go index 2bc365e9..8a058190 100644 --- a/model_update_skill_200_response.go +++ b/model_update_skill_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_skill_request.go b/model_update_skill_request.go index 5c327651..b643e325 100644 --- a/model_update_skill_request.go +++ b/model_update_skill_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_slack_bot_request.go b/model_update_slack_bot_request.go index a64ad14e..b4d18ab6 100644 --- a/model_update_slack_bot_request.go +++ b/model_update_slack_bot_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_task_200_response.go b/model_update_task_200_response.go index 153d7035..6198a12c 100644 --- a/model_update_task_200_response.go +++ b/model_update_task_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_task_request.go b/model_update_task_request.go index e5766a74..8bf535bb 100644 --- a/model_update_task_request.go +++ b/model_update_task_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_file_201_response.go b/model_upload_file_201_response.go index 91215d74..4e3e8617 100644 --- a/model_upload_file_201_response.go +++ b/model_upload_file_201_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_file_request.go b/model_upload_file_request.go index 05a3e4db..be1e2f6e 100644 --- a/model_upload_file_request.go +++ b/model_upload_file_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_vector_documents_200_response.go b/model_upload_vector_documents_200_response.go index 517e487f..eecda7ee 100644 --- a/model_upload_vector_documents_200_response.go +++ b/model_upload_vector_documents_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_vector_documents_request.go b/model_upload_vector_documents_request.go index 7ecd9199..dae1b87b 100644 --- a/model_upload_vector_documents_request.go +++ b/model_upload_vector_documents_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_vector_documents_request_documents_inner.go b/model_upload_vector_documents_request_documents_inner.go index 597197fc..61f4e55f 100644 --- a/model_upload_vector_documents_request_documents_inner.go +++ b/model_upload_vector_documents_request_documents_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upload_vector_documents_request_documents_inner_metadata.go b/model_upload_vector_documents_request_documents_inner_metadata.go index c4d4f2d4..0dd1c988 100644 --- a/model_upload_vector_documents_request_documents_inner_metadata.go +++ b/model_upload_vector_documents_request_documents_inner_metadata.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upsert_agent_overlay_200_response.go b/model_upsert_agent_overlay_200_response.go index ff15fcaf..1ffc963c 100644 --- a/model_upsert_agent_overlay_200_response.go +++ b/model_upsert_agent_overlay_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_upsert_agent_overlay_request.go b/model_upsert_agent_overlay_request.go index b99c8d27..5e09873c 100644 --- a/model_upsert_agent_overlay_request.go +++ b/model_upsert_agent_overlay_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,7 +38,7 @@ type UpsertAgentOverlayRequest struct { // Vector DB collections AllowedCollections []string `json:"allowedCollections,omitempty"` // Guardrail preset - GuardrailPreset *string `json:"guardrailPreset,omitempty"` + GuardrailPreset NullableString `json:"guardrailPreset,omitempty"` // Current version for optimistic concurrency Version *int32 `json:"version,omitempty"` AdditionalProperties map[string]interface{} @@ -351,36 +351,46 @@ func (o *UpsertAgentOverlayRequest) SetAllowedCollections(v []string) { o.AllowedCollections = v } -// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise. +// GetGuardrailPreset returns the GuardrailPreset field value if set, zero value otherwise (both if not set or set to explicit null). func (o *UpsertAgentOverlayRequest) GetGuardrailPreset() string { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil || IsNil(o.GuardrailPreset.Get()) { var ret string return ret } - return *o.GuardrailPreset + return *o.GuardrailPreset.Get() } // GetGuardrailPresetOk returns a tuple with the GuardrailPreset field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *UpsertAgentOverlayRequest) GetGuardrailPresetOk() (*string, bool) { - if o == nil || IsNil(o.GuardrailPreset) { + if o == nil { return nil, false } - return o.GuardrailPreset, true + return o.GuardrailPreset.Get(), o.GuardrailPreset.IsSet() } // HasGuardrailPreset returns a boolean if a field has been set. func (o *UpsertAgentOverlayRequest) HasGuardrailPreset() bool { - if o != nil && !IsNil(o.GuardrailPreset) { + if o != nil && o.GuardrailPreset.IsSet() { return true } return false } -// SetGuardrailPreset gets a reference to the given string and assigns it to the GuardrailPreset field. +// SetGuardrailPreset gets a reference to the given NullableString and assigns it to the GuardrailPreset field. func (o *UpsertAgentOverlayRequest) SetGuardrailPreset(v string) { - o.GuardrailPreset = &v + o.GuardrailPreset.Set(&v) +} +// SetGuardrailPresetNil sets the value for GuardrailPreset to be an explicit nil +func (o *UpsertAgentOverlayRequest) SetGuardrailPresetNil() { + o.GuardrailPreset.Set(nil) +} + +// UnsetGuardrailPreset ensures that no value is present for GuardrailPreset, not even an explicit nil +func (o *UpsertAgentOverlayRequest) UnsetGuardrailPreset() { + o.GuardrailPreset.Unset() } // GetVersion returns the Version field value if set, zero value otherwise. @@ -452,8 +462,8 @@ func (o UpsertAgentOverlayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AllowedCollections) { toSerialize["allowedCollections"] = o.AllowedCollections } - if !IsNil(o.GuardrailPreset) { - toSerialize["guardrailPreset"] = o.GuardrailPreset + if o.GuardrailPreset.IsSet() { + toSerialize["guardrailPreset"] = o.GuardrailPreset.Get() } if !IsNil(o.Version) { toSerialize["version"] = o.Version diff --git a/model_v1_content_item.go b/model_v1_content_item.go index b818db91..e3087551 100644 --- a/model_v1_content_item.go +++ b/model_v1_content_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_content_list_response.go b/model_v1_content_list_response.go index f7b70f48..bafdc86d 100644 --- a/model_v1_content_list_response.go +++ b/model_v1_content_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_content_request.go b/model_v1_content_request.go index 8eb7c33e..b0f16395 100644 --- a/model_v1_content_request.go +++ b/model_v1_content_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_delete_response.go b/model_v1_delete_response.go index 85aaaa60..75ebb170 100644 --- a/model_v1_delete_response.go +++ b/model_v1_delete_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_error.go b/model_v1_error.go index 3ab98750..3ac9de5c 100644 --- a/model_v1_error.go +++ b/model_v1_error.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_form_submission_item.go b/model_v1_form_submission_item.go index 63270219..61542435 100644 --- a/model_v1_form_submission_item.go +++ b/model_v1_form_submission_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_form_submission_list_response.go b/model_v1_form_submission_list_response.go index cb874068..bff9df66 100644 --- a/model_v1_form_submission_list_response.go +++ b/model_v1_form_submission_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_get_metric_series_response.go b/model_v1_get_metric_series_response.go index 776e30e6..8e147521 100644 --- a/model_v1_get_metric_series_response.go +++ b/model_v1_get_metric_series_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_get_metric_series_response_data.go b/model_v1_get_metric_series_response_data.go index f030a00b..42ddacd7 100644 --- a/model_v1_get_metric_series_response_data.go +++ b/model_v1_get_metric_series_response_data.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_get_metrics_response.go b/model_v1_get_metrics_response.go index efd2784d..66860f9b 100644 --- a/model_v1_get_metrics_response.go +++ b/model_v1_get_metrics_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_get_metrics_response_data.go b/model_v1_get_metrics_response_data.go index c4fcc213..ffa27b04 100644 --- a/model_v1_get_metrics_response_data.go +++ b/model_v1_get_metrics_response_data.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_global_meta_response.go b/model_v1_global_meta_response.go index a21a183e..f6a34389 100644 --- a/model_v1_global_meta_response.go +++ b/model_v1_global_meta_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_global_meta_response_global_meta.go b/model_v1_global_meta_response_global_meta.go index 0915b079..e2d1941c 100644 --- a/model_v1_global_meta_response_global_meta.go +++ b/model_v1_global_meta_response_global_meta.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_info.go b/model_v1_info.go index 75ef32a2..6dab250d 100644 --- a/model_v1_info.go +++ b/model_v1_info.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_meta.go b/model_v1_meta.go index a76126c2..b4a7f4cb 100644 --- a/model_v1_meta.go +++ b/model_v1_meta.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_metric_day_stats.go b/model_v1_metric_day_stats.go index ec7414be..a47b0b97 100644 --- a/model_v1_metric_day_stats.go +++ b/model_v1_metric_day_stats.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_metric_minute_stats.go b/model_v1_metric_minute_stats.go index 9d29348a..e442429a 100644 --- a/model_v1_metric_minute_stats.go +++ b/model_v1_metric_minute_stats.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_metric_month_stats.go b/model_v1_metric_month_stats.go index 4cd614a5..35400439 100644 --- a/model_v1_metric_month_stats.go +++ b/model_v1_metric_month_stats.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_ping_response.go b/model_v1_ping_response.go index 08230ae3..abf4f839 100644 --- a/model_v1_ping_response.go +++ b/model_v1_ping_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_proxy_item.go b/model_v1_proxy_item.go index 004bda54..82e80fe7 100644 --- a/model_v1_proxy_item.go +++ b/model_v1_proxy_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_proxy_list_response.go b/model_v1_proxy_list_response.go index b28c9511..d988459c 100644 --- a/model_v1_proxy_list_response.go +++ b/model_v1_proxy_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_redirect_item.go b/model_v1_redirect_item.go index c67be9c1..9c647357 100644 --- a/model_v1_redirect_item.go +++ b/model_v1_redirect_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_redirect_list_response.go b/model_v1_redirect_list_response.go index 030f83dc..7fdd03a1 100644 --- a/model_v1_redirect_list_response.go +++ b/model_v1_redirect_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_redirect_request.go b/model_v1_redirect_request.go index 9d834381..4e5eadac 100644 --- a/model_v1_redirect_request.go +++ b/model_v1_redirect_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_redirect_response.go b/model_v1_redirect_response.go index 7cfc6184..506422af 100644 --- a/model_v1_redirect_response.go +++ b/model_v1_redirect_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_revision.go b/model_v1_revision.go index e88a78d0..5cd4ede3 100644 --- a/model_v1_revision.go +++ b/model_v1_revision.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_revisions_response.go b/model_v1_revisions_response.go index 80253064..2eb095ff 100644 --- a/model_v1_revisions_response.go +++ b/model_v1_revisions_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_search_hit.go b/model_v1_search_hit.go index e5405481..0b746cfa 100644 --- a/model_v1_search_hit.go +++ b/model_v1_search_hit.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_search_items_response.go b/model_v1_search_items_response.go index 237ab097..bde58824 100644 --- a/model_v1_search_items_response.go +++ b/model_v1_search_items_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_search_mutation_response.go b/model_v1_search_mutation_response.go index e74958ac..42852f32 100644 --- a/model_v1_search_mutation_response.go +++ b/model_v1_search_mutation_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_search_record.go b/model_v1_search_record.go index 71c54282..abd89c79 100644 --- a/model_v1_search_record.go +++ b/model_v1_search_record.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_search_response.go b/model_v1_search_response.go index 87a8305a..3e6b6730 100644 --- a/model_v1_search_response.go +++ b/model_v1_search_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_series_point_day.go b/model_v1_series_point_day.go index 7b51dd29..b2cad261 100644 --- a/model_v1_series_point_day.go +++ b/model_v1_series_point_day.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_series_point_month.go b/model_v1_series_point_month.go index 6246c510..5a4c7b68 100644 --- a/model_v1_series_point_month.go +++ b/model_v1_series_point_month.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_transition.go b/model_v1_transition.go index 205b1aa8..bd7d1dc7 100644 --- a/model_v1_transition.go +++ b/model_v1_transition.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_upload_response.go b/model_v1_upload_response.go index 8a3738f7..00965064 100644 --- a/model_v1_upload_response.go +++ b/model_v1_upload_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_url_meta_request.go b/model_v1_url_meta_request.go index 1ece18bf..8501539a 100644 --- a/model_v1_url_meta_request.go +++ b/model_v1_url_meta_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_url_meta_response.go b/model_v1_url_meta_response.go index 1b99103b..d7716fc3 100644 --- a/model_v1_url_meta_response.go +++ b/model_v1_url_meta_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_waf_log_item.go b/model_v1_waf_log_item.go index b81992b6..c9649ed9 100644 --- a/model_v1_waf_log_item.go +++ b/model_v1_waf_log_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_waf_log_list_response.go b/model_v1_waf_log_list_response.go index 280f69ab..1c29947c 100644 --- a/model_v1_waf_log_list_response.go +++ b/model_v1_waf_log_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler.go b/model_v2_crawler.go index c126ebff..16008f24 100644 --- a/model_v2_crawler.go +++ b/model_v2_crawler.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_assets.go b/model_v2_crawler_assets.go index 3ac3c900..d715f7c4 100644 --- a/model_v2_crawler_assets.go +++ b/model_v2_crawler_assets.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_assets_network_intercept.go b/model_v2_crawler_assets_network_intercept.go index 8c5f8f4b..0fbbf3c7 100644 --- a/model_v2_crawler_assets_network_intercept.go +++ b/model_v2_crawler_assets_network_intercept.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_assets_parser.go b/model_v2_crawler_assets_parser.go index 8249541c..cb5de75a 100644 --- a/model_v2_crawler_assets_parser.go +++ b/model_v2_crawler_assets_parser.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_request.go b/model_v2_crawler_request.go index 1177b7ad..ad1d433f 100644 --- a/model_v2_crawler_request.go +++ b/model_v2_crawler_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_run.go b/model_v2_crawler_run.go index 82231d9f..d0694f80 100644 --- a/model_v2_crawler_run.go +++ b/model_v2_crawler_run.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_schedule.go b/model_v2_crawler_schedule.go index 62df987e..7b1c940e 100644 --- a/model_v2_crawler_schedule.go +++ b/model_v2_crawler_schedule.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_schedule_request.go b/model_v2_crawler_schedule_request.go index 8a9daf96..6e69c00e 100644 --- a/model_v2_crawler_schedule_request.go +++ b/model_v2_crawler_schedule_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_sitemap_inner.go b/model_v2_crawler_sitemap_inner.go index 618ccc0d..fa3c5fe9 100644 --- a/model_v2_crawler_sitemap_inner.go +++ b/model_v2_crawler_sitemap_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_custom_header_request.go b/model_v2_custom_header_request.go index c8464e7f..e5e544a4 100644 --- a/model_v2_custom_header_request.go +++ b/model_v2_custom_header_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_domain.go b/model_v2_domain.go index 9cca172e..d891820d 100644 --- a/model_v2_domain.go +++ b/model_v2_domain.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_domain_dns_go_live_records_inner.go b/model_v2_domain_dns_go_live_records_inner.go index b56a4c07..b87eff1b 100644 --- a/model_v2_domain_dns_go_live_records_inner.go +++ b/model_v2_domain_dns_go_live_records_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_domain_dns_validation_records_inner.go b/model_v2_domain_dns_validation_records_inner.go index e6e51061..da44c703 100644 --- a/model_v2_domain_dns_validation_records_inner.go +++ b/model_v2_domain_dns_validation_records_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_domain_request.go b/model_v2_domain_request.go index af041190..b7ddda62 100644 --- a/model_v2_domain_request.go +++ b/model_v2_domain_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_error.go b/model_v2_error.go index a340a06b..d0dadc51 100644 --- a/model_v2_error.go +++ b/model_v2_error.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data.go b/model_v2_metric_data.go index d4e6e8aa..3eec42c9 100644 --- a/model_v2_metric_data.go +++ b/model_v2_metric_data.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data_point.go b/model_v2_metric_data_point.go index 27d17a0d..bf446e14 100644 --- a/model_v2_metric_data_point.go +++ b/model_v2_metric_data_point.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metric_data_point_timestamp.go b/model_v2_metric_data_point_timestamp.go index c09e51db..e023c3b8 100644 --- a/model_v2_metric_data_point_timestamp.go +++ b/model_v2_metric_data_point_timestamp.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metrics_meta.go b/model_v2_metrics_meta.go index 3c3b3441..5200bb62 100644 --- a/model_v2_metrics_meta.go +++ b/model_v2_metrics_meta.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_metrics_response.go b/model_v2_metrics_response.go index ff4effa8..97035a1b 100644 --- a/model_v2_metrics_response.go +++ b/model_v2_metrics_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_organization.go b/model_v2_organization.go index 3af5b13b..44d63ac0 100644 --- a/model_v2_organization.go +++ b/model_v2_organization.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_organization_request.go b/model_v2_organization_request.go index 9c2eddce..66f7fec4 100644 --- a/model_v2_organization_request.go +++ b/model_v2_organization_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_project.go b/model_v2_project.go index af3d00ad..c638d1f6 100644 --- a/model_v2_project.go +++ b/model_v2_project.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_project_request.go b/model_v2_project_request.go index d2182f81..f39cf2a6 100644 --- a/model_v2_project_request.go +++ b/model_v2_project_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule.go b/model_v2_rule.go index b6d5c5c0..36bd6039 100644 --- a/model_v2_rule.go +++ b/model_v2_rule.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_auth.go b/model_v2_rule_auth.go index 528f9723..a107d848 100644 --- a/model_v2_rule_auth.go +++ b/model_v2_rule_auth.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_auth_action.go b/model_v2_rule_auth_action.go index 584825e4..739d0944 100644 --- a/model_v2_rule_auth_action.go +++ b/model_v2_rule_auth_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_auth_request.go b/model_v2_rule_auth_request.go index 7127a74f..6dab1872 100644 --- a/model_v2_rule_auth_request.go +++ b/model_v2_rule_auth_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_bot_challenge.go b/model_v2_rule_bot_challenge.go index a91476db..e437c26b 100644 --- a/model_v2_rule_bot_challenge.go +++ b/model_v2_rule_bot_challenge.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_bot_challenge_action.go b/model_v2_rule_bot_challenge_action.go index ff99351f..afe8cc77 100644 --- a/model_v2_rule_bot_challenge_action.go +++ b/model_v2_rule_bot_challenge_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_bot_challenge_request.go b/model_v2_rule_bot_challenge_request.go index 2540f145..301d2ebe 100644 --- a/model_v2_rule_bot_challenge_request.go +++ b/model_v2_rule_bot_challenge_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_content_filter.go b/model_v2_rule_content_filter.go index dc1edec3..6e72efea 100644 --- a/model_v2_rule_content_filter.go +++ b/model_v2_rule_content_filter.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_content_filter_action.go b/model_v2_rule_content_filter_action.go index 0b57ff3b..c5f71743 100644 --- a/model_v2_rule_content_filter_action.go +++ b/model_v2_rule_content_filter_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_content_filter_request.go b/model_v2_rule_content_filter_request.go index 105cc329..8a0d985a 100644 --- a/model_v2_rule_content_filter_request.go +++ b/model_v2_rule_content_filter_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_custom_response.go b/model_v2_rule_custom_response.go index 3f8475dd..11f9614f 100644 --- a/model_v2_rule_custom_response.go +++ b/model_v2_rule_custom_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_custom_response_action.go b/model_v2_rule_custom_response_action.go index cbde6ddc..cf1548d5 100644 --- a/model_v2_rule_custom_response_action.go +++ b/model_v2_rule_custom_response_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_custom_response_request.go b/model_v2_rule_custom_response_request.go index 5261b02d..60d533ca 100644 --- a/model_v2_rule_custom_response_request.go +++ b/model_v2_rule_custom_response_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_function.go b/model_v2_rule_function.go index 991bb900..2dbf916f 100644 --- a/model_v2_rule_function.go +++ b/model_v2_rule_function.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_function_action.go b/model_v2_rule_function_action.go index 1d6f7718..37605818 100644 --- a/model_v2_rule_function_action.go +++ b/model_v2_rule_function_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_function_request.go b/model_v2_rule_function_request.go index cad49735..852a405d 100644 --- a/model_v2_rule_function_request.go +++ b/model_v2_rule_function_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_header.go b/model_v2_rule_header.go index eb76d3ca..dabbe876 100644 --- a/model_v2_rule_header.go +++ b/model_v2_rule_header.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_header_action.go b/model_v2_rule_header_action.go index 276f6115..9bc5d589 100644 --- a/model_v2_rule_header_action.go +++ b/model_v2_rule_header_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_header_request.go b/model_v2_rule_header_request.go index dfb30423..06a246a6 100644 --- a/model_v2_rule_header_request.go +++ b/model_v2_rule_header_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_proxy.go b/model_v2_rule_proxy.go index 384e9b42..5b7fe0b5 100644 --- a/model_v2_rule_proxy.go +++ b/model_v2_rule_proxy.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_proxy_action.go b/model_v2_rule_proxy_action.go index e4a9c945..93fe5b41 100644 --- a/model_v2_rule_proxy_action.go +++ b/model_v2_rule_proxy_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_proxy_action_notify_config.go b/model_v2_rule_proxy_action_notify_config.go index 809316f6..7476a570 100644 --- a/model_v2_rule_proxy_action_notify_config.go +++ b/model_v2_rule_proxy_action_notify_config.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_proxy_action_quant_cloud_selection.go b/model_v2_rule_proxy_action_quant_cloud_selection.go index 4c121ca7..56e6c851 100644 --- a/model_v2_rule_proxy_action_quant_cloud_selection.go +++ b/model_v2_rule_proxy_action_quant_cloud_selection.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_proxy_request.go b/model_v2_rule_proxy_request.go index 32e14a39..54b95a1f 100644 --- a/model_v2_rule_proxy_request.go +++ b/model_v2_rule_proxy_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_redirect.go b/model_v2_rule_redirect.go index 60416868..3f1cd146 100644 --- a/model_v2_rule_redirect.go +++ b/model_v2_rule_redirect.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_redirect_action.go b/model_v2_rule_redirect_action.go index 873aec1a..5fff2a0b 100644 --- a/model_v2_rule_redirect_action.go +++ b/model_v2_rule_redirect_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_redirect_request.go b/model_v2_rule_redirect_request.go index 18c465b5..7f51f610 100644 --- a/model_v2_rule_redirect_request.go +++ b/model_v2_rule_redirect_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_request.go b/model_v2_rule_request.go index a6259e6a..b2dc6ef3 100644 --- a/model_v2_rule_request.go +++ b/model_v2_rule_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_serve_static.go b/model_v2_rule_serve_static.go index 59c33c62..7fa28c49 100644 --- a/model_v2_rule_serve_static.go +++ b/model_v2_rule_serve_static.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_serve_static_action.go b/model_v2_rule_serve_static_action.go index 10ee4d45..ffae8544 100644 --- a/model_v2_rule_serve_static_action.go +++ b/model_v2_rule_serve_static_action.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_rule_serve_static_request.go b/model_v2_rule_serve_static_request.go index f529020c..1b922282 100644 --- a/model_v2_rule_serve_static_request.go +++ b/model_v2_rule_serve_static_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_secret_store.go b/model_v2_secret_store.go index bb865061..98f86957 100644 --- a/model_v2_secret_store.go +++ b/model_v2_secret_store.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_secret_store_request.go b/model_v2_secret_store_request.go index 713f5846..5d3ee254 100644 --- a/model_v2_secret_store_request.go +++ b/model_v2_secret_store_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store.go b/model_v2_store.go index 802d8cc0..81c78890 100644 --- a/model_v2_store.go +++ b/model_v2_store.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store_item.go b/model_v2_store_item.go index 47d0bd96..2eb52692 100644 --- a/model_v2_store_item.go +++ b/model_v2_store_item.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store_item_request.go b/model_v2_store_item_request.go index 4d105aa5..b02e9eac 100644 --- a/model_v2_store_item_request.go +++ b/model_v2_store_item_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store_item_update_request.go b/model_v2_store_item_update_request.go index c0f9d95e..7521d93d 100644 --- a/model_v2_store_item_update_request.go +++ b/model_v2_store_item_update_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store_items_list_response.go b/model_v2_store_items_list_response.go index 8dc6b753..c741cde7 100644 --- a/model_v2_store_items_list_response.go +++ b/model_v2_store_items_list_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_store_request.go b/model_v2_store_request.go index a9ba02e4..c554e0a3 100644 --- a/model_v2_store_request.go +++ b/model_v2_store_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_validate_compose_200_response.go b/model_validate_compose_200_response.go index 44eaad86..32eeb62d 100644 --- a/model_validate_compose_200_response.go +++ b/model_validate_compose_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_validate_compose_422_response.go b/model_validate_compose_422_response.go index 8700e3d0..841409e0 100644 --- a/model_validate_compose_422_response.go +++ b/model_validate_compose_422_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_validate_compose_request.go b/model_validate_compose_request.go index 2a328c1c..0ed4661c 100644 --- a/model_validate_compose_request.go +++ b/model_validate_compose_request.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_variable.go b/model_variable.go index 01fd83d8..ecb9e072 100644 --- a/model_variable.go +++ b/model_variable.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume.go b/model_volume.go index a81c0683..0ead5795 100644 --- a/model_volume.go +++ b/model_volume.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_waf_config.go b/model_waf_config.go index 70de42e0..42d7bc72 100644 --- a/model_waf_config.go +++ b/model_waf_config.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_waf_config_block_lists.go b/model_waf_config_block_lists.go index cf2baca0..ae36cdc8 100644 --- a/model_waf_config_block_lists.go +++ b/model_waf_config_block_lists.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_waf_config_httpbl.go b/model_waf_config_httpbl.go index a011b531..d6a9cbbc 100644 --- a/model_waf_config_httpbl.go +++ b/model_waf_config_httpbl.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_waf_config_thresholds_inner.go b/model_waf_config_thresholds_inner.go index 10fa4236..8b06251e 100644 --- a/model_waf_config_thresholds_inner.go +++ b/model_waf_config_thresholds_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/redact.go b/redact.go new file mode 100644 index 00000000..94f51b88 --- /dev/null +++ b/redact.go @@ -0,0 +1,27 @@ +package quantadmingo + +import ( + "fmt" + "net/http" +) + +// redactedDumpRequest renders an outbound request for debug logging as a single +// request line built only from non-credential fields (method, scheme, host, +// path/query, protocol). Header values and the body are intentionally omitted: +// request.Header is tainted by the Authorization / basic-auth credentials, so +// logging any header value — even from a redacted copy — trips CodeQL +// go/clear-text-logging. request.URL.User (basic-auth userinfo) is never read, +// so credentials cannot reach the log. +// +// This file is recreated verbatim by the SDK pipeline +// (portal .github/scripts/post-generate-sdk.sh), which also rewrites the single +// call site in client.go, so the redaction survives every regeneration. Keep +// this file and that script's heredoc identical. +func redactedDumpRequest(request *http.Request) ([]byte, error) { + scheme := request.URL.Scheme + if scheme == "" { + scheme = "https" + } + line := fmt.Sprintf("%s %s://%s%s %s", request.Method, scheme, request.URL.Host, request.URL.RequestURI(), request.Proto) + return []byte(line), nil +} diff --git a/response.go b/response.go index a225d796..8025c594 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_ai_search_test.go b/test/api_ai_search_test.go new file mode 100644 index 00000000..5c958139 --- /dev/null +++ b/test/api_ai_search_test.go @@ -0,0 +1,265 @@ +/* +QuantCDN API + +Testing AISearchAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_AISearchAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AISearchAPIService AiSearchChat", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchChat(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchDeletePages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchDeletePages(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchDisable", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchDisable(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchEnable", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchEnable(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchGetCrawl", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + var jobId string + + httpRes, err := apiClient.AISearchAPI.AiSearchGetCrawl(context.Background(), organisation, project, jobId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchGetCrawlPages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + var jobId string + + httpRes, err := apiClient.AISearchAPI.AiSearchGetCrawlPages(context.Background(), organisation, project, jobId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchGetSettings", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchGetSettings(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchIngestPages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchIngestPages(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchListCrawls", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchListCrawls(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchListPages", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchListPages(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchPurgeIndex", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchPurgeIndex(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchSearch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchSearch(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchStatus(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchTopQueries", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchTopQueries(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchTriggerCrawl", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchTriggerCrawl(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchUpdateSettings", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchUpdateSettings(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AISearchAPIService AiSearchUsage", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var project string + + httpRes, err := apiClient.AISearchAPI.AiSearchUsage(context.Background(), organisation, project).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_monitoring_test.go b/test/api_ai_test.go similarity index 63% rename from test/api_ai_monitoring_test.go rename to test/api_ai_test.go index 07fb457f..bbc6b485 100644 --- a/test/api_ai_monitoring_test.go +++ b/test/api_ai_test.go @@ -1,7 +1,7 @@ /* QuantCDN API -Testing AIMonitoringAPIService +Testing AIAPIService */ @@ -17,21 +17,20 @@ import ( openapiclient "github.com/quantcdn/quant-admin-go/v4" ) -func Test_quantadmingo_AIMonitoringAPIService(t *testing.T) { +func Test_quantadmingo_AIAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test AIMonitoringAPIService GetAIUsageStats", func(t *testing.T) { + t.Run("Test AIAPIService GetAIUsageStats", func(t *testing.T) { t.Skip("skip test") // remove to run test var organisation string - resp, httpRes, err := apiClient.AIMonitoringAPI.GetAIUsageStats(context.Background(), organisation).Execute() + httpRes, err := apiClient.AIAPI.GetAIUsageStats(context.Background(), organisation).Execute() require.Nil(t, err) - require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) diff --git a/test/api_restore_management_test.go b/test/api_restore_management_test.go new file mode 100644 index 00000000..fa32f9c3 --- /dev/null +++ b/test/api_restore_management_test.go @@ -0,0 +1,76 @@ +/* +QuantCDN API + +Testing RestoreManagementAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_RestoreManagementAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RestoreManagementAPIService GetRestoreStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var application string + var environment string + var restoreId string + + resp, httpRes, err := apiClient.RestoreManagementAPI.GetRestoreStatus(context.Background(), organisation, application, environment, restoreId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RestoreManagementAPIService RestoreDatabase", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var application string + var environment string + var backupId string + + resp, httpRes, err := apiClient.RestoreManagementAPI.RestoreDatabase(context.Background(), organisation, application, environment, backupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RestoreManagementAPIService RestoreFilesystem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var application string + var environment string + var backupId string + + resp, httpRes, err := apiClient.RestoreManagementAPI.RestoreFilesystem(context.Background(), organisation, application, environment, backupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_scaling_policy_test.go b/test/api_scaling_policy_test.go index 46a38caa..3ea29589 100644 --- a/test/api_scaling_policy_test.go +++ b/test/api_scaling_policy_test.go @@ -29,16 +29,15 @@ func Test_quantadmingo_ScalingPolicyAPIService(t *testing.T) { var organisation string var application string var environment string - var policyName string - httpRes, err := apiClient.ScalingPolicyAPI.DeleteScalingPolicy(context.Background(), organisation, application, environment, policyName).Execute() + httpRes, err := apiClient.ScalingPolicyAPI.DeleteScalingPolicy(context.Background(), organisation, application, environment).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ScalingPolicyAPIService GetScalingPolicies", func(t *testing.T) { + t.Run("Test ScalingPolicyAPIService ListScalingPolicies", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -46,14 +45,15 @@ func Test_quantadmingo_ScalingPolicyAPIService(t *testing.T) { var application string var environment string - httpRes, err := apiClient.ScalingPolicyAPI.GetScalingPolicies(context.Background(), organisation, application, environment).Execute() + resp, httpRes, err := apiClient.ScalingPolicyAPI.ListScalingPolicies(context.Background(), organisation, application, environment).Execute() require.Nil(t, err) + require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ScalingPolicyAPIService UpdateScalingPolicy", func(t *testing.T) { + t.Run("Test ScalingPolicyAPIService UpsertScalingPolicy", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,9 +61,10 @@ func Test_quantadmingo_ScalingPolicyAPIService(t *testing.T) { var application string var environment string - httpRes, err := apiClient.ScalingPolicyAPI.UpdateScalingPolicy(context.Background(), organisation, application, environment).Execute() + resp, httpRes, err := apiClient.ScalingPolicyAPI.UpsertScalingPolicy(context.Background(), organisation, application, environment).Execute() require.Nil(t, err) + require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) diff --git a/test/api_subscription_test.go b/test/api_subscription_test.go new file mode 100644 index 00000000..6297950d --- /dev/null +++ b/test/api_subscription_test.go @@ -0,0 +1,38 @@ +/* +QuantCDN API + +Testing SubscriptionAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package quantadmingo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/quantcdn/quant-admin-go/v4" +) + +func Test_quantadmingo_SubscriptionAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SubscriptionAPIService GetSubscriptionCloudUsage", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + httpRes, err := apiClient.SubscriptionAPI.GetSubscriptionCloudUsage(context.Background(), organisation).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index 624398e6..37bb5056 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.19.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 73a6029c..67956db1 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package quantadmingo // Version of the SDK -const Version = "4.15.8" +const Version = "4.19.0"