diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2561e422..4ce5bbf5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,6 +11,7 @@ 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,6 +35,7 @@ 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 @@ -51,6 +53,7 @@ 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 +61,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 @@ -229,6 +240,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,14 +324,20 @@ 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 @@ -471,6 +492,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 @@ -631,6 +660,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 +739,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 @@ -869,6 +907,7 @@ 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 @@ -892,6 +931,7 @@ 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 diff --git a/README.md b/README.md index a0a10784..3d51f76b 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.17.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -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,9 @@ 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 *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 +328,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) @@ -468,6 +496,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 +575,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..6524becb 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.17.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -26,6 +26,9 @@ tags: 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" @@ -88,7 +91,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 @@ -10691,9 +11281,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 +11307,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 +11316,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 +11373,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,61 +11382,250 @@ 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: + "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: + - 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 + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The application ID + example: test-app + explode: false + in: path + name: application + required: true + schema: + type: string + style: simple + - description: The environment ID + example: staging + explode: false + in: path + name: environment + required: true + schema: + type: string + style: simple + - description: The restore operation ID + example: restore-abc123 + explode: false + in: path + 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: 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": - description: The scaling policy for the environment - summary: Update the scaling policy for an environment + content: + application/json: + schema: + $ref: '#/components/schemas/ScalingPolicyListResponse' + description: List of scaling policies for the environment. + summary: List Scaling Policies tags: - ScalingPolicy - /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}: - delete: - operationId: deleteScalingPolicy + 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: - - description: The organisation ID - example: test-org - explode: false + - explode: false in: path name: organisation required: true schema: type: string style: simple - - description: The application ID - example: test-app - explode: false + - explode: false in: path name: application required: true schema: type: string style: simple - - description: The environment ID - example: test-env - explode: false + - explode: false in: path name: environment required: true schema: type: string style: simple - - description: The policy name - explode: false - in: path + - description: Optional. Specify a custom policy name to upsert. + explode: true + in: query name: policyName - required: true + required: false schema: type: string - style: simple + style: form + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SetScalingPolicyRequest' + required: true responses: - "204": - description: The scaling policy for the environment - summary: Delete the scaling policy for an environment + "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: @@ -12367,12 +13180,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 +13228,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 +17646,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: @@ -19699,6 +20678,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 +20857,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 +21216,7 @@ components: - official - official-sensitive - protected + nullable: true type: string version: description: Current version for optimistic concurrency @@ -20262,7 +21244,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 +21263,7 @@ components: example: false type: boolean inputSchema: - type: object + type: string createdAt: format: date-time type: string @@ -20291,13 +21273,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 +21306,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 +21319,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 +21378,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 +21404,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 +21429,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 @@ -22683,28 +23666,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 +24286,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 diff --git a/api_ai_agents.go b/api_ai_agents.go index 5fc1cde5..a4bef204 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.17.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..b9932481 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.17.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..a7a14513 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.17.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..99d5b54f 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.17.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..7b73c10b 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.17.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..e8b6b281 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.17.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..954a259b 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_monitoring.go b/api_ai_monitoring.go index 2f1b7356..a42843da 100644 --- a/api_ai_monitoring.go +++ b/api_ai_monitoring.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.15.8 +API version: 4.17.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..8c4f47e7 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.17.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..ef7401e0 --- /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.17.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..90562e86 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.17.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..453c39db 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.17.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..dd784b65 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.17.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..1e64290d 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.17.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..b0fd2a6e 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.17.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..5e8ae1b8 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.17.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..78524d8d 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.17.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..8088a95a 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.17.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..c570c3e7 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.17.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..0fdb9111 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.17.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..11bf8e73 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.17.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..a8f969a1 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.17.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..9b236720 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.17.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..1ed594cd 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.17.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..709cac84 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.17.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..0a7b96af 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.17.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..e0744b35 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.17.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..e646bce8 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.17.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..f39b72a5 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.17.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..5423c880 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.17.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..d1acf1d1 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.17.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..9843fe66 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.17.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..37242f7b 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.17.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..2ba8be36 --- /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.17.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..f5003673 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.17.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..f039bdd1 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.17.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..314cdf5d 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tokens.go b/api_tokens.go index f967c05c..e1cfbb85 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.17.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..994e93d9 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.17.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..3632672d 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index fd7197ff..61573f1b 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.17.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.17.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -67,6 +67,8 @@ type APIClient struct { AIOrchestrationsAPI AIOrchestrationsAPI + AISearchAPI AISearchAPI + AISessionsAPI AISessionsAPI AISkillsAPI AISkillsAPI @@ -113,6 +115,8 @@ type APIClient struct { PurgeAPI PurgeAPI + RestoreManagementAPI RestoreManagementAPI + RulesAPI RulesAPI SSHAccessAPI SSHAccessAPI @@ -151,6 +155,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { 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,6 +179,7 @@ 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) diff --git a/configuration.go b/configuration.go index f1fd9b06..f03194c0 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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/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/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/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/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/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..a3d36a44 --- /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.17.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..9a6d2984 --- /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.17.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..3cac9093 --- /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.17.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..a28a02fd --- /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.17.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..ef322df2 --- /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.17.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..75c3adaa --- /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.17.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..14437e5d --- /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.17.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..5c4212b2 --- /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.17.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..c34f9a33 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.17.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..6e081710 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.17.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..08b3daf0 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.17.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..b88cd15d 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.17.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..cf3bf9e5 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.17.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..b8e6b33d 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.17.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..8335e99f 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.17.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..fce6e412 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.17.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..4b449031 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.17.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..a4ef9db0 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.17.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..eb181c7e 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.17.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..282d1e6f 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.17.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..92d71f0c 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.17.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..0d6fda8e 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.17.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..c285d91c 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.17.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..5ac53618 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.17.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..a3d9357c 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.17.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..3ecbb54d 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.17.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..7ef5e4d5 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.17.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..7a3462da 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.17.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..078f3a26 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.17.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..e9ae3099 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.17.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..ffedfa0d 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.17.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..1aed04fa 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.17.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..19183e56 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.17.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..4564b0dd 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.17.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..0a5296fb 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.17.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..623352ac 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.17.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..626a1c2d 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.17.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..4e5c0898 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.17.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..8a94bc4f 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.17.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..49c9962f 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.17.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..7bae4624 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.17.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..991e5cf7 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.17.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..c09e5bc1 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.17.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..ec17ee24 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.17.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..9cf1c85f 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.17.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..51443698 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.17.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..2c48fd8e 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.17.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..38a7699e 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.17.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..4ef6d651 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.17.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..ea3edb3e 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.17.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..eb6ac88a 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.17.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..c90d5bda 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.17.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..f42a5caf 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.17.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..4fdea9b5 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.17.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..f41d927d 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.17.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..75569da5 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.17.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..d86d5b4b 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.17.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..0ed06547 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.17.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..9677e6a0 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.17.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..a4b3a8b0 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container_secrets_inner.go b/model_container_secrets_inner.go index c2847cbb..bce792d2 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.17.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..c2cb7ac1 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.17.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..d711398d 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.17.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..7e9f70e0 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.17.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..d9c7a88a 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.17.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..958e00e6 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.17.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..82396262 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.17.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..7a2bebfa 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.17.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..69e836a2 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.17.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..3aea3aae 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.17.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..9891be1b 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.17.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..b6b3eaac 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.17.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..093e674b 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.17.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..26ea43e3 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.17.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..bda967e3 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.17.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..bf21c635 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.17.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..718396ec 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.17.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..dbf59b63 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.17.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..175b3615 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.17.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..40310ae1 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.17.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..bb26986c 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.17.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..8a4493b9 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.17.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..b02ee0eb 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.17.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..53a5e008 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.17.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..919f8d0f 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.17.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..5a1be720 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.17.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..3394ce9f 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.17.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..b423426c 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.17.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..5979795b 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.17.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..b12cc1e9 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.17.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..ce5e0fbf 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.17.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..84eaf5f9 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.17.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..f23f44cf 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.17.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..d92aa07d 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.17.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..5ef98268 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.17.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..4569a235 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.17.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..b2409109 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.17.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..2fe314f6 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.17.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..ab112eab 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.17.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..70a7a576 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.17.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..00049037 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.17.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..a81c7653 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.17.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..b9800cbb 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.17.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..87e9f688 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.17.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..b0a5d9b7 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.17.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..730f4319 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.17.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..7456d052 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.17.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..dd89f3a6 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.17.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..5e2b1326 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.17.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..86114c1b 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.17.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..5d956438 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.17.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..456a3e10 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.17.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..606cf3ae 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.17.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..e2c5b086 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.17.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..d536b816 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.17.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..a1914058 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.17.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..40acb757 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.17.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..75c20527 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.17.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..24a1f0e5 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.17.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..9e76056e 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.17.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..16ea2ee3 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.17.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..09f86ad6 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.17.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..1d05e794 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.17.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..fcec9f24 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.17.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..b404a6a3 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.17.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..a3771c5f 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.17.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..4c342360 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.17.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..ee5c4a8e 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.17.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..856657d0 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.17.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..1530b75e 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.17.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..d31c0c14 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.17.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..146f45e6 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.17.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..6cf853a0 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.17.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..a2af38c0 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.17.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..8dd8039d 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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..53e394a5 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.17.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..d5b0a8a3 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.17.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..f5e91527 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.17.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..cb37fcc9 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.17.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..6e28c151 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.17.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..c3c68dc0 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.17.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 index c00043b8..aad32223 100644 --- a/model_get_ai_usage_stats_200_response.go +++ b/model_get_ai_usage_stats_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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 287e3e39..c74d05c6 100644 --- a/model_get_ai_usage_stats_200_response_by_model_value.go +++ b/model_get_ai_usage_stats_200_response_by_model_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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_custom_tool_200_response.go b/model_get_custom_tool_200_response.go index 79ee3eaf..0e25f590 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.17.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..494a20e7 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.17.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..9a85081c 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.17.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..2a41e8c2 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.17.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..277b608a 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.17.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..5b613866 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.17.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..e701c6db 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.17.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..71371d41 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.17.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..4d3a1653 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.17.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..a2eed0b4 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.17.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..a72326d9 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.17.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..a972cb6f 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.17.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..ca9e0f5b 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.17.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..f2faca54 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.17.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..5b849a19 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_governance_spend_200_response.go b/model_get_governance_spend_200_response.go index 28dfc23d..e9e213db 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.17.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..c2be81ff 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.17.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..e1232dde 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.17.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..b532c70f 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.17.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..0aa77cda 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.17.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..16748715 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.17.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..9cb435c0 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.17.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..1b156636 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.17.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..d13c7519 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.17.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..a129278f 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.17.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..282a00ba --- /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.17.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..948faf27 --- /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.17.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..aa36a1d2 --- /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.17.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..c9a5f94e --- /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.17.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..e8f15799 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.17.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..b93e746e 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.17.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..abebabd9 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.17.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..05567b87 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.17.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..fbf35fe5 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.17.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..80ffdd93 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.17.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..46962e77 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.17.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..224a6886 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.17.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..159ed5d7 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.17.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..b0920aca 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.17.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..d0aa4f31 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.17.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..9151e8cb 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.17.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..4cc61881 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.17.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..b895d118 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.17.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..ccee3025 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.17.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..c2df65d0 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.17.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..b30e862a 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.17.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..8f99b4e2 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.17.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..f302e5a0 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.17.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..4d3a2653 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.17.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..7608994e 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.17.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..deea4fe1 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.17.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..c00002ce 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.17.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..2ad1692f 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.17.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..46c30a38 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.17.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..0a33532a 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.17.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..f3393522 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.17.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..584093cf 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.17.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..b2a40be4 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.17.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..516635d5 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.17.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..9491733a 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.17.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..39eb9419 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.17.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..70448fd3 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.17.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..690dfe77 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.17.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..20c92707 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.17.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..fcecc277 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.17.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..b9a1833d 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.17.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..c1d32bfe 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.17.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..546a0389 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.17.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..18338781 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.17.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..c0d36db3 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.17.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..b1434cc6 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.17.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..1981d7f6 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.17.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..6fa5f87c 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.17.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..c130485e 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.17.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..736931f6 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.17.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..696f5b68 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.17.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..8e3e1fe0 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.17.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..b6aee13c 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.17.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..b286cd54 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.17.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..5e18979a 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.17.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..6b594fd4 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.17.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..b0025382 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.17.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..d442bc99 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.17.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..5925aebb 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.17.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..e2a05694 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.17.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..40a2edeb 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.17.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..ba0325df 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.17.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..8d75ed7c 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.17.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..7e633c38 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.17.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..9c589253 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.17.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..98b5a186 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.17.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..ed644cd0 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.17.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..5d897948 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.17.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..e52500ba 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.17.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..ec23cf04 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.17.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..16b23b4e 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.17.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..d86a4e4d 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.17.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..08b9aca9 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.17.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..270c509f 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.17.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..1b314dd9 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.17.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..ff5ab8fc 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.17.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..2cf7f942 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.17.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..d5d54b11 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.17.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..8a8c7b00 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.17.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..709bbdc1 --- /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.17.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..926d4b0a --- /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.17.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..f25e7b1c --- /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.17.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..6e31b45c --- /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.17.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..3cb556b1 --- /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.17.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..0c85ec30 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.17.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..28f28601 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.17.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..b4e752ab 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.17.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..8b31f2ed 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.17.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..c3f2e387 --- /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.17.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..4db0244c 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.17.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..66da46c7 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.17.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..1b71c8b0 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.17.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..60821634 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.17.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..69f2711a 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.17.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..022ed410 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.17.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..089068f1 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.17.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..5f7a635e 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.17.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..460d6f25 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.17.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..8f8fca9b 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.17.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..3e858050 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.17.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..3f714c74 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.17.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..775b3935 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.17.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..abec6528 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.17.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..cfd230a2 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.17.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..7d1bfd4d 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.17.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..774175fe 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.17.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..0f59c4a1 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.17.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..2d2ba11d 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.17.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..9861b310 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.17.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..39e2a432 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.17.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..2008d15b 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.17.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..6ff93f9f 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.17.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..82b43aec 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.17.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..a7f88e30 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.17.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..8a0410f0 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.17.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..115275b6 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.17.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..97d6e932 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.17.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..6f163ef6 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.17.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..758c63e0 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.17.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..e58560b6 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.17.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..94251d15 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.17.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..32aeb55b 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.17.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..45d94ff3 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.17.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..c111719c 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.17.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..d4860810 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.17.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..f4615960 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.17.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..8b72df92 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.17.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..60b8f534 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.17.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..6b42eed0 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.17.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..4e315a8c 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.17.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..c0605616 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.17.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..bf92688f 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.17.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..12a46bd7 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.17.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..770dff53 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.17.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..784a414c 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.17.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..c2c58f0a 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.17.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..a332600f 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.17.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..4ead8214 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.17.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..b8faeea4 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.17.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..de2cf457 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.17.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..8ce94f75 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.17.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..d1181b9d 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.17.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..624843bb 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.17.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..8b9aeed8 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.17.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..35bb9a43 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.17.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..b721896e 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.17.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..9472f7db 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.17.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..7d8c1d0f 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.17.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..adac592e 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.17.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..f2a836da 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.17.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..2998b3b9 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.17.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..cd4ecfac 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.17.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..fba16946 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.17.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..02e9a913 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.17.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..93df858a 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.17.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..6b5ee655 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.17.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..19aa7e6e 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.17.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..5db00582 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.17.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..838c825c 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.17.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..d7a4ed0a 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.17.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..9d9e0cd3 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.17.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..55ac811e 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.17.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..9d2f7139 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.17.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..3dfa6a9d 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.17.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..5a6205d3 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.17.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..b1e9d9a0 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.17.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..58a16e3e 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.17.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..0dd762db 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.17.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..49e046db 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.17.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..1a05f644 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.17.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..c53d4442 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.17.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..9bde6225 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.17.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..266c1f01 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.17.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..5a4d18dc 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.17.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..cb0034e0 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.17.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..f41dfc5b 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.17.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..c2a05481 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.17.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..6b718162 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.17.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..d68c286a 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.17.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..df058fd0 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.17.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..f46464f5 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.17.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..f50253f6 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.17.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..633b6683 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.17.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..aac1822a 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.17.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..4c3e78d4 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.17.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..763cd421 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.17.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..4e556d0e 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.17.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..307ea199 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.17.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..0389bed7 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.17.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..142b6318 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.17.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..342bae60 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.17.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..e1759d0f 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.17.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..cefe6411 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.17.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..f7815c0f 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.17.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..da981ea7 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.17.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..5fb38192 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.17.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..3675882f 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.17.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..a85af62d 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.17.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..2a2d5397 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.17.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..740b37b5 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.17.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..1fdb6388 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.17.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..d37875fa 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.17.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..72cdf3c9 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.17.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..2a0d7b18 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.17.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..fd4dee6e 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.17.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..32d128bd 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.17.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..349af946 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.17.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..41cc9892 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.17.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..b338f1a0 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.17.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..3bbe9db1 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.17.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..a7de4a72 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.17.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..2e380e4f 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.17.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..6b00a691 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.17.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..cdb14cb0 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.17.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..0df06eba 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.17.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..11ba993f 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.17.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..b7c0d0b2 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.17.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..30652160 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.17.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..36049f16 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.17.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..84a13a8b 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.17.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..1af8ba24 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.17.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..8fc5017b 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.17.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..71604444 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.17.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..fbd8a87a 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.17.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..1d873d6d 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.17.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..577293b4 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.17.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..fc1eab00 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.17.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..6841c758 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.17.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..e0ba03ed 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.17.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..4792010e 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.17.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..357b796a 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.17.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..8b89ca01 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.17.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..e4cc9e3f 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.17.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..505a8fad 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.17.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..25a75de8 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.17.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..fe47fd97 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.17.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..7bdb5895 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index a225d796..a008dd9b 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.17.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_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/utils.go b/utils.go index 624398e6..eb0327b3 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.17.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 73a6029c..ca56eb1f 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.17.0"