From 42a7b84689abe23fa15baa32c591a02f7bf02064 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Thu, 12 Feb 2026 03:20:55 +0000 Subject: [PATCH] feat(sdk): v4.10.0 - Auto-generated from unified API spec Generated from unified API spec v4.10.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 40 + README.md | 38 +- api/openapi.yaml | 1333 ++++++++++++++++- api_ai_agents.go | 2 +- api_ai_custom_tools.go | 2 +- api_ai_file_storage.go | 2 +- api_ai_inference.go | 2 +- api_ai_models.go | 2 +- api_ai_monitoring.go | 2 +- api_ai_orchestrations.go | 1235 +++++++++++++++ api_ai_sessions.go | 2 +- api_ai_task_management.go | 2 +- api_ai_tools.go | 16 +- api_ai_vector_database.go | 158 +- api_applications.go | 2 +- api_backup_management.go | 2 +- api_cdn_metrics.go | 520 +++++++ api_commands.go | 2 +- api_compose.go | 2 +- api_containers.go | 2 +- api_crawler_schedules.go | 2 +- api_crawlers.go | 2 +- api_cron.go | 2 +- api_domains.go | 2 +- api_environments.go | 2 +- api_headers.go | 2 +- api_kv.go | 322 +++- api_orchestration.go | 16 +- api_organizations.go | 2 +- api_projects.go | 2 +- api_purge.go | 2 +- api_rules.go | 2 +- api_scaling_policy.go | 2 +- api_ssh_access.go | 2 +- api_variables.go | 2 +- api_volumes.go | 2 +- client.go | 10 +- configuration.go | 2 +- docs/AIOrchestrationsAPI.md | 678 +++++++++ docs/AIToolsAPI.md | 4 +- docs/AIVectorDatabaseAPI.md | 76 + docs/CDNMetricsAPI.md | 248 +++ docs/ChatInferenceRequest.md | 52 + docs/ChatInferenceRequestGuardrails.md | 108 ++ docs/ChatInferenceStreamRequest.md | 52 + docs/CrawlerSchedulesAPI.md | 4 +- docs/CreateOrchestrationRequest.md | 346 +++++ docs/CreateOrchestrationRequestInputSource.md | 129 ++ ...CreateOrchestrationRequestStopCondition.md | 108 ++ docs/DeleteVectorDocuments200Response.md | 108 ++ docs/DeleteVectorDocumentsRequest.md | 108 ++ docs/DeleteVectorDocumentsRequestMetadata.md | 82 + docs/KVAPI.md | 156 ++ docs/KVLinkToProject200Response.md | 82 + docs/KVLinkToProjectRequest.md | 51 + docs/ListOrchestrationBatches200Response.md | 92 ++ ...estrationBatches200ResponseBatchesInner.md | 300 ++++ docs/ListOrchestrations200Response.md | 92 ++ docs/OrchestrationAPI.md | 4 +- docs/V2CrawlerSchedule.md | 2 +- docs/V2CrawlerScheduleRequest.md | 11 +- docs/V2MetricData.md | 114 ++ docs/V2MetricDataPoint.md | 72 + docs/V2MetricDataPointTimestamp.md | 30 + docs/V2MetricsMeta.md | 171 +++ docs/V2MetricsResponse.md | 72 + model_application.go | 2 +- model_application_database.go | 2 +- ...pplication_deployment_information_inner.go | 2 +- model_application_environments_inner.go | 2 +- model_application_filesystem.go | 2 +- model_application_image_reference.go | 2 +- ..._bulk_set_environment_variables_request.go | 2 +- ...ent_variables_request_environment_inner.go | 2 +- model_chat_inference_200_response.go | 2 +- model_chat_inference_200_response_response.go | 2 +- ...nference_200_response_response_tool_use.go | 2 +- ...e_200_response_response_tool_use_one_of.go | 2 +- ...sponse_response_tool_use_one_of_1_inner.go | 2 +- ...esponse_response_tool_use_one_of_result.go | 2 +- model_chat_inference_200_response_usage.go | 2 +- model_chat_inference_202_response.go | 2 +- model_chat_inference_request.go | 77 +- model_chat_inference_request_guardrails.go | 232 +++ ...l_chat_inference_request_messages_inner.go | 2 +- ...nference_request_messages_inner_content.go | 2 +- ...est_messages_inner_content_one_of_inner.go | 2 +- ...sages_inner_content_one_of_inner_one_of.go | 2 +- ...ges_inner_content_one_of_inner_one_of_1.go | 2 +- ...ner_content_one_of_inner_one_of_1_image.go | 2 +- ...tent_one_of_inner_one_of_1_image_source.go | 2 +- ...ges_inner_content_one_of_inner_one_of_2.go | 2 +- ...ner_content_one_of_inner_one_of_2_video.go | 2 +- ...tent_one_of_inner_one_of_2_video_source.go | 2 +- ...ges_inner_content_one_of_inner_one_of_3.go | 2 +- ..._content_one_of_inner_one_of_3_document.go | 2 +- ...t_one_of_inner_one_of_3_document_source.go | 2 +- ..._chat_inference_request_response_format.go | 2 +- model_chat_inference_request_tool_config.go | 2 +- ...ference_request_tool_config_tools_inner.go | 2 +- ...quest_tool_config_tools_inner_tool_spec.go | 2 +- ...nfig_tools_inner_tool_spec_input_schema.go | 2 +- model_chat_inference_stream_request.go | 77 +- ...inference_stream_request_messages_inner.go | 2 +- ...e_stream_request_messages_inner_content.go | 2 +- model_chat_with_ai_agent_200_response.go | 2 +- ...hat_with_ai_agent_200_response_response.go | 2 +- ...th_ai_agent_200_response_response_usage.go | 2 +- model_chat_with_ai_agent_202_response.go | 2 +- model_chat_with_ai_agent_request.go | 2 +- model_command.go | 2 +- model_compose.go | 2 +- model_container.go | 2 +- model_container_depends_on_inner.go | 2 +- model_container_environment_inner.go | 2 +- model_container_health_check.go | 2 +- model_container_image_reference.go | 2 +- model_container_mount_points_inner.go | 2 +- model_container_origin_protection_config.go | 2 +- model_container_secrets_inner.go | 2 +- model_crawlers_run_200_response.go | 2 +- model_crawlers_run_request.go | 2 +- model_create_ai_agent_201_response.go | 2 +- model_create_ai_agent_request.go | 2 +- model_create_ai_session_201_response.go | 2 +- model_create_ai_session_request.go | 2 +- ..._session_request_initial_messages_inner.go | 2 +- model_create_application_403_response.go | 2 +- model_create_application_request.go | 2 +- model_create_application_request_database.go | 2 +- ...e_application_request_environment_inner.go | 2 +- ...l_create_application_request_filesystem.go | 2 +- model_create_backup_202_response.go | 2 +- model_create_backup_request.go | 2 +- model_create_command_request.go | 2 +- model_create_cron_job_request.go | 2 +- model_create_custom_tool_201_response.go | 2 +- model_create_custom_tool_request.go | 2 +- model_create_environment_403_response.go | 2 +- model_create_environment_request.go | 2 +- ...e_environment_request_environment_inner.go | 2 +- model_create_orchestration_request.go | 591 ++++++++ ...eate_orchestration_request_input_source.go | 283 ++++ ...te_orchestration_request_stop_condition.go | 235 +++ model_create_task_201_response.go | 2 +- model_create_task_request.go | 2 +- ...l_create_vector_collection_201_response.go | 2 +- ...ctor_collection_201_response_collection.go | 2 +- model_create_vector_collection_request.go | 2 +- model_create_volume_request.go | 2 +- model_cron.go | 2 +- model_cron_run.go | 2 +- model_delete_ai_agent_200_response.go | 2 +- model_delete_ai_session_200_response.go | 2 +- model_delete_backup_200_response.go | 2 +- model_delete_custom_tool_200_response.go | 2 +- model_delete_file_200_response.go | 2 +- model_delete_task_200_response.go | 2 +- model_delete_task_409_response.go | 2 +- ...l_delete_vector_collection_200_response.go | 2 +- model_delete_vector_documents_200_response.go | 229 +++ model_delete_vector_documents_request.go | 231 +++ ...elete_vector_documents_request_metadata.go | 194 +++ model_download_backup_200_response.go | 2 +- model_embeddings_200_response.go | 2 +- model_embeddings_200_response_embeddings.go | 2 +- model_embeddings_200_response_usage.go | 2 +- model_embeddings_request.go | 2 +- model_embeddings_request_input.go | 2 +- model_environment.go | 2 +- model_environment_response.go | 2 +- model_environment_summary.go | 2 +- model_extend_ai_session_200_response.go | 2 +- model_extend_ai_session_request.go | 2 +- model_get_ai_agent_200_response.go | 2 +- model_get_ai_agent_200_response_agent.go | 2 +- model_get_ai_model_200_response.go | 2 +- ..._get_ai_model_200_response_capabilities.go | 2 +- model_get_ai_model_200_response_pricing.go | 2 +- model_get_ai_model_404_response.go | 2 +- ...et_ai_orchestration_status_200_response.go | 2 +- ...tration_status_200_response_tools_inner.go | 2 +- ...et_ai_orchestration_status_404_response.go | 2 +- model_get_ai_session_200_response.go | 2 +- ...t_ai_tool_execution_status_200_response.go | 2 +- ...ol_execution_status_200_response_result.go | 2 +- ...t_ai_tool_execution_status_404_response.go | 2 +- model_get_ai_usage_stats_200_response.go | 2 +- ...usage_stats_200_response_by_model_value.go | 2 +- model_get_dependency_graph_200_response.go | 2 +- ...t_durable_execution_status_200_response.go | 2 +- ...ble_execution_status_200_response_error.go | 2 +- ...status_200_response_pending_tools_inner.go | 2 +- ...le_execution_status_200_response_result.go | 2 +- ...ion_status_200_response_result_response.go | 2 +- ...cution_status_200_response_result_usage.go | 2 +- ..._get_ecr_login_credentials_200_response.go | 2 +- model_get_environment_logs_200_response.go | 2 +- ...ment_logs_200_response_log_events_inner.go | 2 +- model_get_file_200_response.go | 2 +- ...get_ssh_access_credentials_200_response.go | 2 +- ...ss_credentials_200_response_credentials.go | 2 +- model_get_task_200_response.go | 2 +- model_get_vector_collection_200_response.go | 2 +- ...ctor_collection_200_response_collection.go | 2 +- model_image_generation_200_response.go | 2 +- model_image_generation_request.go | 2 +- ...ation_request_background_removal_params.go | 2 +- ..._request_color_guided_generation_params.go | 2 +- ...eration_request_image_generation_config.go | 2 +- ...neration_request_image_variation_params.go | 2 +- ...e_generation_request_in_painting_params.go | 2 +- ..._generation_request_out_painting_params.go | 2 +- ...generation_request_text_to_image_params.go | 2 +- model_kv_items_create_200_response.go | 2 +- model_kv_items_delete_200_response.go | 2 +- model_kv_items_show_200_response.go | 2 +- model_kv_items_show_200_response_value.go | 2 +- model_kv_link_to_project_200_response.go | 192 +++ model_kv_link_to_project_request.go | 169 +++ model_list_ai_agents_200_response.go | 2 +- ...ist_ai_agents_200_response_agents_inner.go | 2 +- model_list_ai_models_200_response.go | 2 +- ...ist_ai_models_200_response_models_inner.go | 2 +- ..._200_response_models_inner_capabilities.go | 2 +- model_list_ai_sessions_200_response_inner.go | 2 +- model_list_ai_tool_executions_200_response.go | 2 +- ...xecutions_200_response_executions_inner.go | 2 +- model_list_ai_tool_names_200_response.go | 2 +- model_list_ai_tools_200_response.go | 2 +- ..._list_ai_tools_200_response_tools_inner.go | 2 +- ...ools_200_response_tools_inner_tool_spec.go | 2 +- ...onse_tools_inner_tool_spec_input_schema.go | 2 +- model_list_backups_200_response.go | 2 +- ...list_backups_200_response_backups_inner.go | 2 +- model_list_backups_422_response.go | 2 +- model_list_custom_tools_200_response.go | 2 +- ...t_custom_tools_200_response_tools_inner.go | 2 +- model_list_files_200_response.go | 2 +- model_list_files_200_response_files_inner.go | 2 +- ...list_orchestration_batches_200_response.go | 202 +++ ...tion_batches_200_response_batches_inner.go | 499 ++++++ model_list_orchestrations_200_response.go | 202 +++ model_list_tasks_200_response.go | 2 +- model_list_tasks_200_response_tasks_inner.go | 2 +- model_list_vector_collections_200_response.go | 2 +- ...lections_200_response_collections_inner.go | 2 +- ...l_organizations_list_200_response_inner.go | 2 +- ..._patch_environment_compose_202_response.go | 2 +- ...compose_202_response_spot_configuration.go | 2 +- ..._patch_environment_compose_400_response.go | 2 +- model_patch_environment_compose_request.go | 2 +- ...ment_compose_request_spot_configuration.go | 2 +- model_purge_create_request.go | 2 +- model_query_vector_collection_200_response.go | 2 +- ...ctor_collection_200_response_pagination.go | 2 +- ...r_collection_200_response_results_inner.go | 2 +- model_query_vector_collection_request.go | 2 +- ..._query_vector_collection_request_filter.go | 2 +- model_scaling_policy.go | 2 +- model_spot_configuration.go | 2 +- model_submit_tool_callback_200_response.go | 2 +- model_submit_tool_callback_request.go | 2 +- ...ool_callback_request_tool_results_inner.go | 2 +- model_sync_operation.go | 2 +- model_sync_to_environment_request.go | 2 +- model_update_ai_agent_200_response.go | 2 +- model_update_ai_agent_request.go | 2 +- model_update_ai_session_200_response.go | 2 +- model_update_ai_session_request.go | 2 +- ...e_ai_session_request_new_messages_inner.go | 2 +- model_update_cron_job_request.go | 2 +- model_update_environment_request.go | 2 +- model_update_environment_state_request.go | 2 +- model_update_environment_variable_request.go | 2 +- model_update_task_200_response.go | 2 +- model_update_task_request.go | 2 +- model_upload_file_201_response.go | 2 +- model_upload_file_request.go | 2 +- model_upload_vector_documents_200_response.go | 2 +- model_upload_vector_documents_request.go | 2 +- ...ector_documents_request_documents_inner.go | 2 +- ...uments_request_documents_inner_metadata.go | 2 +- model_v1_content_item.go | 2 +- model_v1_content_list_response.go | 2 +- model_v1_content_request.go | 2 +- model_v1_delete_response.go | 2 +- model_v1_error.go | 2 +- model_v1_form_submission_item.go | 2 +- model_v1_form_submission_list_response.go | 2 +- model_v1_get_metric_series_response.go | 2 +- model_v1_get_metric_series_response_data.go | 2 +- model_v1_get_metrics_response.go | 2 +- model_v1_get_metrics_response_data.go | 2 +- model_v1_global_meta_response.go | 2 +- model_v1_global_meta_response_global_meta.go | 2 +- model_v1_info.go | 2 +- model_v1_meta.go | 2 +- model_v1_metric_day_stats.go | 2 +- model_v1_metric_minute_stats.go | 2 +- model_v1_metric_month_stats.go | 2 +- model_v1_ping_response.go | 2 +- model_v1_proxy_item.go | 2 +- model_v1_proxy_list_response.go | 2 +- model_v1_redirect_item.go | 2 +- model_v1_redirect_list_response.go | 2 +- model_v1_redirect_request.go | 2 +- model_v1_redirect_response.go | 2 +- model_v1_revision.go | 2 +- model_v1_revisions_response.go | 2 +- model_v1_search_hit.go | 2 +- model_v1_search_items_response.go | 2 +- model_v1_search_mutation_response.go | 2 +- model_v1_search_record.go | 2 +- model_v1_search_response.go | 2 +- model_v1_series_point_day.go | 2 +- model_v1_series_point_month.go | 2 +- model_v1_transition.go | 2 +- model_v1_upload_response.go | 2 +- model_v1_url_meta_request.go | 2 +- model_v1_url_meta_response.go | 2 +- model_v1_waf_log_item.go | 2 +- model_v1_waf_log_list_response.go | 2 +- model_v2_crawler.go | 2 +- model_v2_crawler_assets.go | 2 +- model_v2_crawler_assets_network_intercept.go | 2 +- model_v2_crawler_assets_parser.go | 2 +- model_v2_crawler_request.go | 2 +- model_v2_crawler_run.go | 2 +- model_v2_crawler_schedule.go | 4 +- model_v2_crawler_schedule_request.go | 42 +- model_v2_crawler_sitemap_inner.go | 2 +- model_v2_custom_header_request.go | 2 +- model_v2_domain.go | 2 +- model_v2_domain_dns_go_live_records_inner.go | 2 +- ..._v2_domain_dns_validation_records_inner.go | 2 +- model_v2_domain_request.go | 2 +- model_v2_error.go | 2 +- model_v2_metric_data.go | 259 ++++ model_v2_metric_data_point.go | 198 +++ model_v2_metric_data_point_timestamp.go | 172 +++ model_v2_metrics_meta.go | 337 +++++ model_v2_metrics_response.go | 198 +++ model_v2_organization.go | 2 +- model_v2_organization_request.go | 2 +- model_v2_project.go | 2 +- model_v2_project_request.go | 2 +- model_v2_rule.go | 2 +- model_v2_rule_auth.go | 2 +- model_v2_rule_auth_action.go | 2 +- model_v2_rule_auth_request.go | 2 +- model_v2_rule_bot_challenge.go | 2 +- model_v2_rule_bot_challenge_action.go | 2 +- model_v2_rule_bot_challenge_request.go | 2 +- model_v2_rule_content_filter.go | 2 +- model_v2_rule_content_filter_action.go | 2 +- model_v2_rule_content_filter_request.go | 2 +- model_v2_rule_custom_response.go | 2 +- model_v2_rule_custom_response_action.go | 2 +- model_v2_rule_custom_response_request.go | 2 +- model_v2_rule_function.go | 2 +- model_v2_rule_function_action.go | 2 +- model_v2_rule_function_request.go | 2 +- model_v2_rule_header.go | 2 +- model_v2_rule_header_action.go | 2 +- model_v2_rule_header_request.go | 2 +- model_v2_rule_proxy.go | 2 +- model_v2_rule_proxy_action.go | 2 +- model_v2_rule_proxy_action_notify_config.go | 2 +- ...rule_proxy_action_quant_cloud_selection.go | 2 +- model_v2_rule_proxy_request.go | 2 +- model_v2_rule_redirect.go | 2 +- model_v2_rule_redirect_action.go | 2 +- model_v2_rule_redirect_request.go | 2 +- model_v2_rule_request.go | 2 +- model_v2_rule_serve_static.go | 2 +- model_v2_rule_serve_static_action.go | 2 +- model_v2_rule_serve_static_request.go | 2 +- model_v2_secret_store.go | 2 +- model_v2_secret_store_request.go | 2 +- model_v2_store.go | 2 +- model_v2_store_item.go | 2 +- model_v2_store_item_request.go | 2 +- model_v2_store_item_update_request.go | 2 +- model_v2_store_items_list_response.go | 2 +- model_v2_store_request.go | 2 +- model_validate_compose_200_response.go | 2 +- model_validate_compose_422_response.go | 2 +- model_validate_compose_request.go | 2 +- model_variable.go | 2 +- model_volume.go | 2 +- model_waf_config.go | 2 +- model_waf_config_block_lists.go | 2 +- model_waf_config_httpbl.go | 2 +- model_waf_config_thresholds_inner.go | 2 +- response.go | 2 +- test/api_ai_orchestrations_test.go | 157 ++ test/api_ai_vector_database_test.go | 15 + test/api_cdn_metrics_test.go | 70 + test/api_kv_test.go | 32 + utils.go | 2 +- version.go | 2 +- 402 files changed, 12191 insertions(+), 424 deletions(-) create mode 100644 api_ai_orchestrations.go create mode 100644 api_cdn_metrics.go create mode 100644 docs/AIOrchestrationsAPI.md create mode 100644 docs/CDNMetricsAPI.md create mode 100644 docs/ChatInferenceRequestGuardrails.md create mode 100644 docs/CreateOrchestrationRequest.md create mode 100644 docs/CreateOrchestrationRequestInputSource.md create mode 100644 docs/CreateOrchestrationRequestStopCondition.md create mode 100644 docs/DeleteVectorDocuments200Response.md create mode 100644 docs/DeleteVectorDocumentsRequest.md create mode 100644 docs/DeleteVectorDocumentsRequestMetadata.md create mode 100644 docs/KVLinkToProject200Response.md create mode 100644 docs/KVLinkToProjectRequest.md create mode 100644 docs/ListOrchestrationBatches200Response.md create mode 100644 docs/ListOrchestrationBatches200ResponseBatchesInner.md create mode 100644 docs/ListOrchestrations200Response.md create mode 100644 docs/V2MetricData.md create mode 100644 docs/V2MetricDataPoint.md create mode 100644 docs/V2MetricDataPointTimestamp.md create mode 100644 docs/V2MetricsMeta.md create mode 100644 docs/V2MetricsResponse.md create mode 100644 model_chat_inference_request_guardrails.go create mode 100644 model_create_orchestration_request.go create mode 100644 model_create_orchestration_request_input_source.go create mode 100644 model_create_orchestration_request_stop_condition.go create mode 100644 model_delete_vector_documents_200_response.go create mode 100644 model_delete_vector_documents_request.go create mode 100644 model_delete_vector_documents_request_metadata.go create mode 100644 model_kv_link_to_project_200_response.go create mode 100644 model_kv_link_to_project_request.go create mode 100644 model_list_orchestration_batches_200_response.go create mode 100644 model_list_orchestration_batches_200_response_batches_inner.go create mode 100644 model_list_orchestrations_200_response.go create mode 100644 model_v2_metric_data.go create mode 100644 model_v2_metric_data_point.go create mode 100644 model_v2_metric_data_point_timestamp.go create mode 100644 model_v2_metrics_meta.go create mode 100644 model_v2_metrics_response.go create mode 100644 test/api_ai_orchestrations_test.go create mode 100644 test/api_cdn_metrics_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b186598..88c5345 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -8,12 +8,14 @@ api_ai_file_storage.go api_ai_inference.go api_ai_models.go api_ai_monitoring.go +api_ai_orchestrations.go api_ai_sessions.go api_ai_task_management.go api_ai_tools.go api_ai_vector_database.go api_applications.go api_backup_management.go +api_cdn_metrics.go api_commands.go api_compose.go api_containers.go @@ -41,6 +43,7 @@ docs/AIFileStorageAPI.md docs/AIInferenceAPI.md docs/AIModelsAPI.md docs/AIMonitoringAPI.md +docs/AIOrchestrationsAPI.md docs/AISessionsAPI.md docs/AITaskManagementAPI.md docs/AIToolsAPI.md @@ -55,6 +58,7 @@ docs/ApplicationsAPI.md docs/BackupManagementAPI.md docs/BulkSetEnvironmentVariablesRequest.md docs/BulkSetEnvironmentVariablesRequestEnvironmentInner.md +docs/CDNMetricsAPI.md docs/ChatInference200Response.md docs/ChatInference200ResponseResponse.md docs/ChatInference200ResponseResponseToolUse.md @@ -64,6 +68,7 @@ docs/ChatInference200ResponseResponseToolUseOneOfResult.md docs/ChatInference200ResponseUsage.md docs/ChatInference202Response.md docs/ChatInferenceRequest.md +docs/ChatInferenceRequestGuardrails.md docs/ChatInferenceRequestMessagesInner.md docs/ChatInferenceRequestMessagesInnerContent.md docs/ChatInferenceRequestMessagesInnerContentOneOfInner.md @@ -126,6 +131,9 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateOrchestrationRequest.md +docs/CreateOrchestrationRequestInputSource.md +docs/CreateOrchestrationRequestStopCondition.md docs/CreateTask201Response.md docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md @@ -143,6 +151,9 @@ docs/DeleteFile200Response.md docs/DeleteTask200Response.md docs/DeleteTask409Response.md docs/DeleteVectorCollection200Response.md +docs/DeleteVectorDocuments200Response.md +docs/DeleteVectorDocumentsRequest.md +docs/DeleteVectorDocumentsRequestMetadata.md docs/DomainsAPI.md docs/DownloadBackup200Response.md docs/Embeddings200Response.md @@ -202,6 +213,8 @@ docs/KVItemsCreate200Response.md docs/KVItemsDelete200Response.md docs/KVItemsShow200Response.md docs/KVItemsShow200ResponseValue.md +docs/KVLinkToProject200Response.md +docs/KVLinkToProjectRequest.md docs/ListAIAgents200Response.md docs/ListAIAgents200ResponseAgentsInner.md docs/ListAIModels200Response.md @@ -222,6 +235,9 @@ docs/ListCustomTools200Response.md docs/ListCustomTools200ResponseToolsInner.md docs/ListFiles200Response.md docs/ListFiles200ResponseFilesInner.md +docs/ListOrchestrationBatches200Response.md +docs/ListOrchestrationBatches200ResponseBatchesInner.md +docs/ListOrchestrations200Response.md docs/ListTasks200Response.md docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md @@ -324,6 +340,11 @@ docs/V2DomainDnsGoLiveRecordsInner.md docs/V2DomainDnsValidationRecordsInner.md docs/V2DomainRequest.md docs/V2Error.md +docs/V2MetricData.md +docs/V2MetricDataPoint.md +docs/V2MetricDataPointTimestamp.md +docs/V2MetricsMeta.md +docs/V2MetricsResponse.md docs/V2Organization.md docs/V2OrganizationRequest.md docs/V2Project.md @@ -398,6 +419,7 @@ model_chat_inference_200_response_response_tool_use_one_of_result.go model_chat_inference_200_response_usage.go model_chat_inference_202_response.go model_chat_inference_request.go +model_chat_inference_request_guardrails.go model_chat_inference_request_messages_inner.go model_chat_inference_request_messages_inner_content.go model_chat_inference_request_messages_inner_content_one_of_inner.go @@ -455,6 +477,9 @@ model_create_custom_tool_request.go model_create_environment_403_response.go model_create_environment_request.go model_create_environment_request_environment_inner.go +model_create_orchestration_request.go +model_create_orchestration_request_input_source.go +model_create_orchestration_request_stop_condition.go model_create_task_201_response.go model_create_task_request.go model_create_vector_collection_201_response.go @@ -471,6 +496,9 @@ model_delete_file_200_response.go model_delete_task_200_response.go model_delete_task_409_response.go model_delete_vector_collection_200_response.go +model_delete_vector_documents_200_response.go +model_delete_vector_documents_request.go +model_delete_vector_documents_request_metadata.go model_download_backup_200_response.go model_embeddings_200_response.go model_embeddings_200_response_embeddings.go @@ -526,6 +554,8 @@ model_kv_items_create_200_response.go model_kv_items_delete_200_response.go model_kv_items_show_200_response.go model_kv_items_show_200_response_value.go +model_kv_link_to_project_200_response.go +model_kv_link_to_project_request.go model_list_ai_agents_200_response.go model_list_ai_agents_200_response_agents_inner.go model_list_ai_models_200_response.go @@ -546,6 +576,9 @@ model_list_custom_tools_200_response.go model_list_custom_tools_200_response_tools_inner.go model_list_files_200_response.go model_list_files_200_response_files_inner.go +model_list_orchestration_batches_200_response.go +model_list_orchestration_batches_200_response_batches_inner.go +model_list_orchestrations_200_response.go model_list_tasks_200_response.go model_list_tasks_200_response_tasks_inner.go model_list_vector_collections_200_response.go @@ -641,6 +674,11 @@ model_v2_domain_dns_go_live_records_inner.go model_v2_domain_dns_validation_records_inner.go model_v2_domain_request.go model_v2_error.go +model_v2_metric_data.go +model_v2_metric_data_point.go +model_v2_metric_data_point_timestamp.go +model_v2_metrics_meta.go +model_v2_metrics_response.go model_v2_organization.go model_v2_organization_request.go model_v2_project.go @@ -700,12 +738,14 @@ test/api_ai_file_storage_test.go test/api_ai_inference_test.go test/api_ai_models_test.go test/api_ai_monitoring_test.go +test/api_ai_orchestrations_test.go test/api_ai_sessions_test.go test/api_ai_task_management_test.go test/api_ai_tools_test.go test/api_ai_vector_database_test.go test/api_applications_test.go test/api_backup_management_test.go +test/api_cdn_metrics_test.go test/api_commands_test.go test/api_compose_test.go test/api_containers_test.go diff --git a/README.md b/README.md index 7db0547..87da8e4 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.9.0 +- API version: 4.10.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -100,6 +100,15 @@ Class | Method | HTTP request | Description *AIModelsAPI* | [**GetAIModel**](docs/AIModelsAPI.md#getaimodel) | **Get** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsAPI* | [**ListAIModels**](docs/AIModelsAPI.md#listaimodels) | **Get** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringAPI* | [**GetAIUsageStats**](docs/AIMonitoringAPI.md#getaiusagestats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics +*AIOrchestrationsAPI* | [**CancelOrchestration**](docs/AIOrchestrationsAPI.md#cancelorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration +*AIOrchestrationsAPI* | [**CreateOrchestration**](docs/AIOrchestrationsAPI.md#createorchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration +*AIOrchestrationsAPI* | [**DeleteOrchestration**](docs/AIOrchestrationsAPI.md#deleteorchestration) | **Delete** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration +*AIOrchestrationsAPI* | [**GetOrchestration**](docs/AIOrchestrationsAPI.md#getorchestration) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration +*AIOrchestrationsAPI* | [**ListOrchestrationBatches**](docs/AIOrchestrationsAPI.md#listorchestrationbatches) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches +*AIOrchestrationsAPI* | [**ListOrchestrations**](docs/AIOrchestrationsAPI.md#listorchestrations) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations +*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 *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 @@ -112,13 +121,14 @@ Class | Method | HTTP request | Description *AITaskManagementAPI* | [**GetTask**](docs/AITaskManagementAPI.md#gettask) | **Get** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details *AITaskManagementAPI* | [**ListTasks**](docs/AITaskManagementAPI.md#listtasks) | **Get** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering *AITaskManagementAPI* | [**UpdateTask**](docs/AITaskManagementAPI.md#updatetask) | **Put** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task -*AIToolsAPI* | [**GetAIOrchestrationStatus**](docs/AIToolsAPI.md#getaiorchestrationstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*AIToolsAPI* | [**GetAIOrchestrationStatus**](docs/AIToolsAPI.md#getaiorchestrationstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *AIToolsAPI* | [**GetAIToolExecutionStatus**](docs/AIToolsAPI.md#getaitoolexecutionstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result *AIToolsAPI* | [**ListAIToolExecutions**](docs/AIToolsAPI.md#listaitoolexecutions) | **Get** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsAPI* | [**ListAIToolNames**](docs/AIToolsAPI.md#listaitoolnames) | **Get** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) *AIToolsAPI* | [**ListAITools**](docs/AIToolsAPI.md#listaitools) | **Get** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling *AIVectorDatabaseAPI* | [**CreateVectorCollection**](docs/AIVectorDatabaseAPI.md#createvectorcollection) | **Post** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection *AIVectorDatabaseAPI* | [**DeleteVectorCollection**](docs/AIVectorDatabaseAPI.md#deletevectorcollection) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection +*AIVectorDatabaseAPI* | [**DeleteVectorDocuments**](docs/AIVectorDatabaseAPI.md#deletevectordocuments) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection *AIVectorDatabaseAPI* | [**GetVectorCollection**](docs/AIVectorDatabaseAPI.md#getvectorcollection) | **Get** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details *AIVectorDatabaseAPI* | [**ListVectorCollections**](docs/AIVectorDatabaseAPI.md#listvectorcollections) | **Get** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections *AIVectorDatabaseAPI* | [**QueryVectorCollection**](docs/AIVectorDatabaseAPI.md#queryvectorcollection) | **Post** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query @@ -132,6 +142,9 @@ Class | Method | HTTP request | Description *BackupManagementAPI* | [**DeleteBackup**](docs/BackupManagementAPI.md#deletebackup) | **Delete** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId} | Delete a backup *BackupManagementAPI* | [**DownloadBackup**](docs/BackupManagementAPI.md#downloadbackup) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download | Generate a download URL for a backup *BackupManagementAPI* | [**ListBackups**](docs/BackupManagementAPI.md#listbackups) | **Get** /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{type} | List backups for an environment +*CDNMetricsAPI* | [**GetDailyMetrics**](docs/CDNMetricsAPI.md#getdailymetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics +*CDNMetricsAPI* | [**GetHourlyMetrics**](docs/CDNMetricsAPI.md#gethourlymetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics +*CDNMetricsAPI* | [**GetMonthlyMetrics**](docs/CDNMetricsAPI.md#getmonthlymetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics *CommandsAPI* | [**CreateCommand**](docs/CommandsAPI.md#createcommand) | **Post** /api/v3/organizations/{organisation}/environments/{environment}/commands | Create a command for an environment *CommandsAPI* | [**GetCommand**](docs/CommandsAPI.md#getcommand) | **Get** /api/v3/organizations/{organisation}/environments/{environment}/commands/{command} | Get a command *CommandsAPI* | [**ListCommands**](docs/CommandsAPI.md#listcommands) | **Get** /api/v3/organizations/{organisation}/environments/{environment}/commands | Get all commands for an environment @@ -185,9 +198,11 @@ Class | Method | HTTP request | Description *KVAPI* | [**KVItemsList**](docs/KVAPI.md#kvitemslist) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store *KVAPI* | [**KVItemsShow**](docs/KVAPI.md#kvitemsshow) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store *KVAPI* | [**KVItemsUpdate**](docs/KVAPI.md#kvitemsupdate) | **Put** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store +*KVAPI* | [**KVLinkToProject**](docs/KVAPI.md#kvlinktoproject) | **Post** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project *KVAPI* | [**KVList**](docs/KVAPI.md#kvlist) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores *KVAPI* | [**KVShow**](docs/KVAPI.md#kvshow) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store -*OrchestrationAPI* | [**GetAIOrchestrationStatus**](docs/OrchestrationAPI.md#getaiorchestrationstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +*KVAPI* | [**KVUnlinkFromProject**](docs/KVAPI.md#kvunlinkfromproject) | **Delete** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project +*OrchestrationAPI* | [**GetAIOrchestrationStatus**](docs/OrchestrationAPI.md#getaiorchestrationstatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) *OrganizationsAPI* | [**OrganizationsList**](docs/OrganizationsAPI.md#organizationslist) | **Get** /api/v2/organizations | Retrieve all organizations *OrganizationsAPI* | [**OrganizationsRead**](docs/OrganizationsAPI.md#organizationsread) | **Get** /api/v2/organizations/{organization} | Get details of a single organization *ProjectsAPI* | [**ProjectsCreate**](docs/ProjectsAPI.md#projectscreate) | **Post** /api/v2/organizations/{organization}/projects | Create a new project @@ -274,6 +289,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseUsage](docs/ChatInference200ResponseUsage.md) - [ChatInference202Response](docs/ChatInference202Response.md) - [ChatInferenceRequest](docs/ChatInferenceRequest.md) + - [ChatInferenceRequestGuardrails](docs/ChatInferenceRequestGuardrails.md) - [ChatInferenceRequestMessagesInner](docs/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/ChatInferenceRequestMessagesInnerContent.md) - [ChatInferenceRequestMessagesInnerContentOneOfInner](docs/ChatInferenceRequestMessagesInnerContentOneOfInner.md) @@ -331,6 +347,9 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateOrchestrationRequest](docs/CreateOrchestrationRequest.md) + - [CreateOrchestrationRequestInputSource](docs/CreateOrchestrationRequestInputSource.md) + - [CreateOrchestrationRequestStopCondition](docs/CreateOrchestrationRequestStopCondition.md) - [CreateTask201Response](docs/CreateTask201Response.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) @@ -347,6 +366,9 @@ Class | Method | HTTP request | Description - [DeleteTask200Response](docs/DeleteTask200Response.md) - [DeleteTask409Response](docs/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) + - [DeleteVectorDocuments200Response](docs/DeleteVectorDocuments200Response.md) + - [DeleteVectorDocumentsRequest](docs/DeleteVectorDocumentsRequest.md) + - [DeleteVectorDocumentsRequestMetadata](docs/DeleteVectorDocumentsRequestMetadata.md) - [DownloadBackup200Response](docs/DownloadBackup200Response.md) - [Embeddings200Response](docs/Embeddings200Response.md) - [Embeddings200ResponseEmbeddings](docs/Embeddings200ResponseEmbeddings.md) @@ -402,6 +424,8 @@ Class | Method | HTTP request | Description - [KVItemsDelete200Response](docs/KVItemsDelete200Response.md) - [KVItemsShow200Response](docs/KVItemsShow200Response.md) - [KVItemsShow200ResponseValue](docs/KVItemsShow200ResponseValue.md) + - [KVLinkToProject200Response](docs/KVLinkToProject200Response.md) + - [KVLinkToProjectRequest](docs/KVLinkToProjectRequest.md) - [ListAIAgents200Response](docs/ListAIAgents200Response.md) - [ListAIAgents200ResponseAgentsInner](docs/ListAIAgents200ResponseAgentsInner.md) - [ListAIModels200Response](docs/ListAIModels200Response.md) @@ -422,6 +446,9 @@ Class | Method | HTTP request | Description - [ListCustomTools200ResponseToolsInner](docs/ListCustomTools200ResponseToolsInner.md) - [ListFiles200Response](docs/ListFiles200Response.md) - [ListFiles200ResponseFilesInner](docs/ListFiles200ResponseFilesInner.md) + - [ListOrchestrationBatches200Response](docs/ListOrchestrationBatches200Response.md) + - [ListOrchestrationBatches200ResponseBatchesInner](docs/ListOrchestrationBatches200ResponseBatchesInner.md) + - [ListOrchestrations200Response](docs/ListOrchestrations200Response.md) - [ListTasks200Response](docs/ListTasks200Response.md) - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) @@ -517,6 +544,11 @@ Class | Method | HTTP request | Description - [V2DomainDnsValidationRecordsInner](docs/V2DomainDnsValidationRecordsInner.md) - [V2DomainRequest](docs/V2DomainRequest.md) - [V2Error](docs/V2Error.md) + - [V2MetricData](docs/V2MetricData.md) + - [V2MetricDataPoint](docs/V2MetricDataPoint.md) + - [V2MetricDataPointTimestamp](docs/V2MetricDataPointTimestamp.md) + - [V2MetricsMeta](docs/V2MetricsMeta.md) + - [V2MetricsResponse](docs/V2MetricsResponse.md) - [V2Organization](docs/V2Organization.md) - [V2OrganizationRequest](docs/V2OrganizationRequest.md) - [V2Project](docs/V2Project.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 0a6f1d3..5909834 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.9.0 + version: 4.10.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -51,6 +51,8 @@ tags: name: Variables - description: Persistent storage volume management name: Volumes +- description: CDN Metrics + name: CDN Metrics - description: AI Models name: AI Models - description: AI Sessions @@ -73,6 +75,8 @@ tags: name: AI Vector Database - description: AI File Storage name: AI File Storage +- description: AI Orchestrations + name: AI Orchestrations paths: /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules: get: @@ -1420,6 +1424,127 @@ paths: summary: Get a kv store tags: - KV + /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link: + delete: + description: Remove access to a linked KV store from this project. The store + must be linked (not owned by this project). + operationId: KV_unlink_from_project + parameters: + - description: Organization identifier + example: test-org + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Project identifier + example: test-project + explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - description: KV store identifier + example: store-123 + explode: false + in: path + name: store_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/KV_link_to_project_200_response' + description: Store unlinked successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Store not linked or invalid request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Cannot unlink store owned by this project + summary: Unlink a KV store from this project + tags: + - KV + post: + description: Share a KV store from the source project with a target project. + The store will be accessible in the target project. + operationId: KV_link_to_project + parameters: + - description: Organization identifier + example: test-org + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Source project identifier + example: test-project + explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - description: KV store identifier + example: store-123 + explode: false + in: path + name: store_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/KV_link_to_project_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/KV_link_to_project_200_response' + description: Store linked successfully + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Store already linked or invalid request + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Store or target project not found + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Access forbidden + summary: Link a KV store to another project + tags: + - KV /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items: get: operationId: KV_items_list @@ -1765,6 +1890,207 @@ paths: summary: Update an item in a kv store tags: - KV + /v2/organizations/{organization}/projects/{project}/metrics/hourly: + get: + description: Returns the last hour of minute-by-minute metrics data + operationId: getHourlyMetrics + parameters: + - description: Organization identifier + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Project identifier + explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - description: Filter by domain ID or domain name + explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - description: "Metrics to return (default: hits, bytes)" + explode: true + in: query + name: "metrics[]" + required: false + schema: + items: + type: string + type: array + style: form + - description: Timestamp format in response + explode: true + in: query + name: timestamp_format + required: false + schema: + default: iso8601 + enum: + - iso8601 + - unix + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/V2MetricsResponse' + description: Hourly metrics data + "400": + description: Invalid metric requested + "404": + description: No domains found or domain not found + security: + - bearerAuth: [] + summary: Get hourly metrics + tags: + - CDN Metrics + /v2/organizations/{organization}/projects/{project}/metrics/daily: + get: + description: Returns the last 30 days of daily metrics data + operationId: getDailyMetrics + parameters: + - description: Organization identifier + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Project identifier + explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - description: Filter by domain ID or domain name + explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - description: "Metrics to return (default: hits, bytes)" + explode: true + in: query + name: "metrics[]" + required: false + schema: + items: + type: string + type: array + style: form + - description: Timestamp format in response + explode: true + in: query + name: timestamp_format + required: false + schema: + default: iso8601 + enum: + - iso8601 + - unix + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/V2MetricsResponse' + description: Daily metrics data + "400": + description: Invalid metric requested + "404": + description: No domains found or domain not found + security: + - bearerAuth: [] + summary: Get daily metrics + tags: + - CDN Metrics + /v2/organizations/{organization}/projects/{project}/metrics/monthly: + get: + description: Returns the last 12 months of monthly metrics data + operationId: getMonthlyMetrics + parameters: + - description: Organization identifier + explode: false + in: path + name: organization + required: true + schema: + type: string + style: simple + - description: Project identifier + explode: false + in: path + name: project + required: true + schema: + type: string + style: simple + - description: Filter by domain ID or domain name + explode: true + in: query + name: domain + required: false + schema: + type: string + style: form + - description: "Metrics to return (default: hits, bytes)" + explode: true + in: query + name: "metrics[]" + required: false + schema: + items: + type: string + type: array + style: form + - description: Timestamp format in response + explode: true + in: query + name: timestamp_format + required: false + schema: + default: iso8601 + enum: + - iso8601 + - unix + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/V2MetricsResponse' + description: Monthly metrics data + "400": + description: Invalid metric requested + "404": + description: No domains found or domain not found + security: + - bearerAuth: [] + summary: Get monthly metrics + tags: + - CDN Metrics /api/v2/organizations: get: operationId: Organizations_list @@ -5651,7 +5977,10 @@ paths: /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}: get: description: |- - Retrieves the status and synthesized result of a multi-tool orchestration. + Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created @@ -5717,7 +6046,7 @@ paths: description: Access denied "500": description: Failed to retrieve orchestration status - summary: Get Orchestration Status + summary: Get Tool Orchestration Status (Async Tool Polling) tags: - AI Tools - Orchestration @@ -6339,20 +6668,23 @@ paths: tags: - AI Vector Database /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents: - post: + delete: description: |- - Uploads documents to a vector database collection with automatic embedding generation. Documents are chunked (if needed), embedded using the collection's embedding model, and stored. + Delete documents from a collection. Supports three deletion modes: * - * **Supported Content:** - * - Plain text content - * - URLs to fetch content from - * - Markdown documents + * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection * - * **Metadata:** - * Each document can include metadata (title, source_url, section, tags) that is returned with search results. - operationId: uploadVectorDocuments + * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs + * + * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values + * + * **Drupal Integration:** + * When using with Drupal AI Search, use metadata deletion with: + * - `field: 'drupal_entity_id'` to delete all chunks for specific entities + * - `field: 'drupal_long_id'` to delete specific chunks + operationId: deleteVectorDocuments parameters: - - description: The organisation ID + - description: Organisation machine name explode: false in: path name: organisation @@ -6360,7 +6692,61 @@ paths: schema: type: string style: simple - - description: The collection ID + - description: Collection UUID + explode: false + in: path + name: collectionId + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/deleteVectorDocuments_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteVectorDocuments_200_response' + description: Documents deleted successfully + "400": + description: "Invalid request - must specify purgeAll, documentIds, or metadata" + "403": + description: Access denied + "404": + description: Collection not found + "500": + description: Failed to delete documents + summary: Delete Documents from Collection + tags: + - AI Vector Database + post: + description: |- + Uploads documents to a vector database collection with automatic embedding generation. Documents are chunked (if needed), embedded using the collection's embedding model, and stored. + * + * **Supported Content:** + * - Plain text content + * - URLs to fetch content from + * - Markdown documents + * + * **Metadata:** + * Each document can include metadata (title, source_url, section, tags) that is returned with search results. + operationId: uploadVectorDocuments + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The collection ID explode: false in: path name: collectionId @@ -6616,18 +7002,416 @@ paths: "403": description: Access denied "404": - description: File not found + description: File not found + "500": + description: Failed to delete file + summary: Delete File + tags: + - AI File Storage + get: + description: Retrieves file metadata and a presigned download URL (valid for + 1 hour). + operationId: getFile + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The file ID + explode: false + in: path + name: fileId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getFile_200_response' + description: File metadata and download URL + "403": + description: Access denied + "404": + description: File not found + "500": + description: Failed to get file + summary: Get File + tags: + - AI File Storage + /api/v3/organizations/{organisation}/ai/orchestrations: + get: + description: |- + List durable orchestrations for an organization with optional filtering. + * + * **Note:** This is different from `/tools/orchestrations` which handles async tool execution + * polling. These durable orchestrations are for long-running batch processing loops. + * + * **Filter Options:** + * - `status`: Filter by orchestration status + * - `limit`: Max results (default 20, max 100) + * - `cursor`: Pagination cursor + operationId: listOrchestrations + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Filter by orchestration status + explode: true + in: query + name: status + required: false + schema: + enum: + - pending + - running + - paused + - completed + - failed + - cancelled + type: string + style: form + - description: Maximum number of results + explode: true + in: query + name: limit + required: false + schema: + default: 20 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: Pagination cursor from previous response + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/listOrchestrations_200_response' + description: List of orchestrations + "403": + description: Access denied + "500": + description: Failed to list orchestrations + summary: List Durable Orchestrations + tags: + - AI Orchestrations + post: + description: |- + Create a new durable orchestration for batch processing. + * + * **Input Sources:** + * - `static`: Process a fixed list of items + * - `task_query`: Process tasks matching a query + * - `generator`: AI generates items from a prompt + * + * **Stop Conditions:** + * - `all_complete`: Stop when all items processed + * - `max_iterations`: Stop after N iterations + * - `condition`: AI evaluates a prompt to decide + * - `manual`: Run until manually stopped + * + * **Auto-start:** + * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + operationId: createOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createOrchestration_request' + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Orchestration created + "400": + description: Invalid request + "403": + description: Access denied + "500": + description: Failed to create orchestration + summary: Create Durable Orchestration + tags: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}: + delete: + description: "Delete an orchestration. Can only delete orchestrations in completed,\ + \ failed, or cancelled status." + operationId: deleteOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "204": + description: Orchestration deleted + "400": + description: Cannot delete active orchestration + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to delete orchestration + summary: Delete Durable Orchestration + tags: + - AI Orchestrations + get: + description: |- + Get orchestration details including status and progress. + * + * **Progress Tracking:** + * - `total`: Total items to process + * - `completed`: Successfully processed + * - `failed`: Failed processing + * - `pending`: Awaiting processing + operationId: getOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + example: orch_1704067200_abc123xyz + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Orchestration details + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to get orchestration + summary: Get Durable Orchestration + tags: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start: + post: + description: "Start a pending orchestration. Only works on orchestrations created\ + \ with `autoStart: false`." + operationId: startOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Orchestration started + "400": + description: Orchestration not in pending state + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to start orchestration + summary: Start Durable Orchestration + tags: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause: + post: + description: "Pause a running orchestration. The current batch will complete,\ + \ but no new batches will start. Can be resumed later." + operationId: pauseOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Orchestration paused + "400": + description: Orchestration not running + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to pause orchestration + summary: Pause Durable Orchestration + tags: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume: + post: + description: Resume a paused orchestration. Processing continues from where + it left off. + operationId: resumeOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Orchestration resumed + "400": + description: Orchestration not paused + "403": + description: Access denied + "404": + description: Orchestration not found + "500": + description: Failed to resume orchestration + summary: Resume Durable Orchestration + tags: + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel: + post: + description: "Cancel an orchestration permanently. Cannot be resumed. Any in-progress\ + \ items will complete, but no new processing starts." + operationId: cancelOrchestration + parameters: + - description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier + explode: false + in: path + name: orchestrationId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + type: object + description: Orchestration cancelled + "400": + description: Orchestration already completed/cancelled + "403": + description: Access denied + "404": + description: Orchestration not found "500": - description: Failed to delete file - summary: Delete File + description: Failed to cancel orchestration + summary: Cancel Durable Orchestration tags: - - AI File Storage + - AI Orchestrations + /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches: get: - description: Retrieves file metadata and a presigned download URL (valid for - 1 hour). - operationId: getFile + description: Get history of batches processed by this orchestration. Returns + paginated batch records with status and item counts. + operationId: listOrchestrationBatches parameters: - - description: The organisation ID + - description: The organisation machine name explode: false in: path name: organisation @@ -6635,31 +7419,49 @@ paths: schema: type: string style: simple - - description: The file ID + - description: Orchestration identifier explode: false in: path - name: fileId + name: orchestrationId required: true schema: - format: uuid type: string style: simple + - description: Maximum number of batches to return + explode: true + in: query + name: limit + required: false + schema: + default: 20 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: Pagination cursor from previous response + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/getFile_200_response' - description: File metadata and download URL + $ref: '#/components/schemas/listOrchestrationBatches_200_response' + description: Batch history "403": description: Access denied "404": - description: File not found + description: Orchestration not found "500": - description: Failed to get file - summary: Get File + description: Failed to list orchestration batches + summary: List Orchestration Batches tags: - - AI File Storage + - AI Orchestrations /api/v3/organizations/{organisation}/applications: get: operationId: listApplications @@ -8927,6 +9729,16 @@ paths: tags: - Volumes components: + parameters: + organisation: + description: The organisation machine name + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple schemas: V2Error: example: @@ -10141,7 +10953,9 @@ components: example: 12345 type: integer schedule_cron_string: - description: Cron schedule string + description: "Standard Unix cron expression with 5 space-separated fields:\ + \ minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs\ + \ daily at 2 AM." example: 0 2 * * * type: string created_at: @@ -10164,18 +10978,19 @@ components: V2CrawlerScheduleRequest: example: schedule_cron_string: 0 2 * * * - name: Test schedule + name: Daily Crawl properties: name: - description: Schedule name - example: Test schedule + description: "Schedule name. If not provided, defaults to 'Schedule {crawler_name}'." + example: Daily Crawl type: string schedule_cron_string: - description: Cron schedule string + description: "Standard Unix cron expression with 5 space-separated fields:\ + \ minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for\ + \ daily at 2 AM." example: 0 2 * * * type: string required: - - name - schedule_cron_string type: object V2Crawler: @@ -10807,6 +11622,162 @@ components: - project_id - task_id type: object + V2MetricsResponse: + example: + data: + hits: + series: + - timestamp: 2026-01-29T12:00:00+00:00 + value: 150 + - timestamp: 2026-01-29T12:01:00+00:00 + value: 142 + period_total: 8523 + all_time_total: 1284567 + period_average: 142.05 + bytes: + series: + - timestamp: 2026-01-29T12:00:00+00:00 + value: 1520576 + - timestamp: 2026-01-29T12:01:00+00:00 + value: 1423456 + period_total: 91234567 + all_time_total: 12845670000 + period_average: 1520576.12 + meta: + start_time: 2026-01-29T12:00:00+00:00 + period: hourly + granularity: minute + domain: domain + end_time: 2026-01-29T13:00:00+00:00 + metrics: + - hits + - bytes + properties: + meta: + $ref: '#/components/schemas/V2MetricsMeta' + data: + additionalProperties: + $ref: '#/components/schemas/V2MetricData' + description: Metrics data keyed by metric name + example: + hits: + series: + - timestamp: 2026-01-29T12:00:00+00:00 + value: 150 + - timestamp: 2026-01-29T12:01:00+00:00 + value: 142 + period_total: 8523 + all_time_total: 1284567 + period_average: 142.05 + bytes: + series: + - timestamp: 2026-01-29T12:00:00+00:00 + value: 1520576 + - timestamp: 2026-01-29T12:01:00+00:00 + value: 1423456 + period_total: 91234567 + all_time_total: 12845670000 + period_average: 1520576.12 + type: object + required: + - data + - meta + type: object + V2MetricsMeta: + example: + start_time: 2026-01-29T12:00:00+00:00 + period: hourly + granularity: minute + domain: domain + end_time: 2026-01-29T13:00:00+00:00 + metrics: + - hits + - bytes + properties: + period: + description: The period type for this data + enum: + - hourly + - daily + - monthly + example: hourly + type: string + granularity: + description: The granularity of data points + enum: + - minute + - day + - month + example: minute + type: string + start_time: + description: Start time of the data range (ISO8601 or Unix timestamp based + on timestamp_format parameter) + example: 2026-01-29T12:00:00+00:00 + type: string + end_time: + description: End time of the data range (ISO8601 or Unix timestamp based + on timestamp_format parameter) + example: 2026-01-29T13:00:00+00:00 + type: string + metrics: + description: List of metrics included in the response + example: + - hits + - bytes + items: + type: string + type: array + domain: + description: Domain filter applied (if any) + nullable: true + type: string + example: null + required: + - end_time + - granularity + - metrics + - period + - start_time + type: object + V2MetricData: + properties: + series: + description: Time series data points + items: + $ref: '#/components/schemas/V2MetricDataPoint' + type: array + period_total: + description: Total value for the period + example: 8523 + type: number + all_time_total: + description: All-time total value + example: 1284567 + type: number + period_average: + description: Average value per time unit in the period + example: 142.05 + format: float + type: number + required: + - all_time_total + - period_average + - period_total + - series + type: object + V2MetricDataPoint: + properties: + timestamp: + $ref: '#/components/schemas/V2MetricDataPoint_timestamp' + value: + description: Metric value at this timestamp + example: 150 + type: number + required: + - timestamp + - value + type: object V2Organization: example: name: Test Organization @@ -14051,6 +15022,25 @@ components: example: "12345" type: string type: object + KV_link_to_project_request: + properties: + project_id: + description: Target project ID to link to + type: integer + required: + - project_id + type: object + KV_link_to_project_200_response: + example: + success: true + message: message + properties: + success: + example: true + type: boolean + message: + type: string + type: object KV_items_create_200_response: example: success: true @@ -15279,6 +16269,23 @@ components: type: string type: array type: object + chatInference_request_guardrails: + description: AWS Bedrock guardrails configuration for content filtering and + safety. + properties: + guardrailIdentifier: + description: Guardrail identifier from AWS Bedrock + type: string + guardrailVersion: + description: Guardrail version + type: string + trace: + description: Enable guardrail trace output + enum: + - enabled + - disabled + type: string + type: object chatInference_request: properties: messages: @@ -15335,6 +16342,17 @@ components: \ with pollUrl instead of waiting for completion. Use for long-running\ \ inference, client-executed tools, or operations >30 seconds." type: boolean + allowedTools: + description: Top-level convenience alias for toolConfig.allowedTools. Whitelists + which tools can be auto-executed. + example: + - get_weather + - generate_image + items: + type: string + type: array + guardrails: + $ref: '#/components/schemas/chatInference_request_guardrails' required: - messages - modelId @@ -15640,6 +16658,17 @@ components: \ with pollUrl instead of streaming. Use for long-running inference, client-executed\ \ tools, or operations >30 seconds." type: boolean + allowedTools: + description: Top-level convenience alias for toolConfig.allowedTools. Whitelists + which tools can be auto-executed. + example: + - get_weather + - generate_image + items: + type: string + type: array + guardrails: + $ref: '#/components/schemas/chatInference_request_guardrails' required: - messages - modelId @@ -17324,6 +18353,44 @@ components: message: type: string type: object + deleteVectorDocuments_request_metadata: + properties: + field: + description: "Metadata field name (e.g., 'drupal_entity_id')" + type: string + values: + description: Values to match (OR logic) + items: + type: string + type: array + type: object + deleteVectorDocuments_request: + properties: + purgeAll: + description: Delete ALL documents in collection + type: boolean + documentIds: + description: Delete specific documents by UUID + items: + format: uuid + type: string + type: array + metadata: + $ref: '#/components/schemas/deleteVectorDocuments_request_metadata' + type: object + deleteVectorDocuments_200_response: + example: + deletedCount: 0 + message: message + collectionId: collectionId + properties: + message: + type: string + collectionId: + type: string + deletedCount: + type: integer + type: object queryVectorCollection_request_filter: description: Filter results by metadata fields. Applied AFTER semantic search (or alone in listByMetadata mode). All conditions use AND logic. @@ -17717,6 +18784,188 @@ components: format: uuid type: string type: object + listOrchestrations_200_response: + example: + nextCursor: nextCursor + orchestrations: + - "{}" + - "{}" + properties: + orchestrations: + items: + type: object + type: array + nextCursor: + nullable: true + type: string + type: object + createOrchestration_request_inputSource: + properties: + type: + description: Input source type (api type not yet supported) + enum: + - static + - task_query + - generator + type: string + items: + description: Static items (for type=static) + items: + type: object + type: array + taskQuery: + description: Task query filters (for type=task_query) + type: object + generatorPrompt: + description: AI prompt (for type=generator) + type: string + required: + - type + type: object + createOrchestration_request_stopCondition: + properties: + type: + default: all_complete + enum: + - all_complete + - max_iterations + - condition + - manual + type: string + maxIterations: + description: Max iterations (for type=max_iterations) + minimum: 1 + type: integer + conditionPrompt: + description: AI prompt to evaluate stop (for type=condition) + type: string + type: object + createOrchestration_request: + properties: + name: + description: Orchestration name + example: Process batch documents + type: string + description: + description: Optional description + nullable: true + type: string + agentId: + description: Agent to process items + nullable: true + type: string + toolId: + description: Tool to execute for items + nullable: true + type: string + workflowId: + description: Workflow to run for items + nullable: true + type: string + inputSource: + $ref: '#/components/schemas/createOrchestration_request_inputSource' + batchSize: + default: 10 + description: Items per batch + maximum: 100 + minimum: 1 + type: integer + concurrency: + default: 1 + description: Concurrent items within a batch + maximum: 10 + minimum: 1 + type: integer + stopCondition: + $ref: '#/components/schemas/createOrchestration_request_stopCondition' + assignedSkills: + description: Skill IDs to assign + items: + type: string + type: array + autoStart: + default: true + description: Whether to start immediately + type: boolean + required: + - inputSource + - name + type: object + listOrchestrationBatches_200_response_batches_inner: + example: + completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + properties: + batchId: + type: string + orchestrationId: + type: string + iteration: + type: integer + itemCount: + type: integer + completedCount: + type: integer + failedCount: + type: integer + status: + enum: + - pending + - running + - completed + - failed + type: string + startedAt: + format: date-time + type: string + completedAt: + format: date-time + type: string + error: + nullable: true + type: string + type: object + listOrchestrationBatches_200_response: + example: + nextCursor: nextCursor + batches: + - completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + - completedAt: 2000-01-23T04:56:07.000+00:00 + failedCount: 5 + orchestrationId: orchestrationId + iteration: 0 + startedAt: 2000-01-23T04:56:07.000+00:00 + batchId: batchId + completedCount: 1 + error: error + itemCount: 6 + status: pending + properties: + batches: + items: + $ref: '#/components/schemas/listOrchestrationBatches_200_response_batches_inner' + type: array + nextCursor: + nullable: true + type: string + type: object createApplication_403_response: example: message: Application limit reached @@ -18739,6 +19988,16 @@ components: to the CDN endpoint. type: string type: object + V2MetricDataPoint_timestamp: + description: Timestamp for this data point (format depends on timestamp_format + parameter) + example: 2026-01-29T12:00:00+00:00 + oneOf: + - description: ISO8601 timestamp + format: date-time + type: string + - description: Unix timestamp + type: integer V2RuleProxyAction_notify_config: description: Notification configuration (required when notify is slack) example: diff --git a/api_ai_agents.go b/api_ai_agents.go index a71c53f..c714a50 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.9.0 +API version: 4.10.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 7aab12d..707145b 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.9.0 +API version: 4.10.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 7da4c91..a5be523 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.9.0 +API version: 4.10.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 c8b11b4..a5748a4 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.9.0 +API version: 4.10.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 27adc01..4a4d2d3 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.9.0 +API version: 4.10.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 7c999af..ec7d1b7 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..fd455ad --- /dev/null +++ b/api_ai_orchestrations.go @@ -0,0 +1,1235 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.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 AIOrchestrationsAPI interface { + + /* + CancelOrchestration Cancel Durable Orchestration + + Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPICancelOrchestrationRequest + */ + CancelOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPICancelOrchestrationRequest + + // CancelOrchestrationExecute executes the request + // @return map[string]interface{} + CancelOrchestrationExecute(r AIOrchestrationsAPICancelOrchestrationRequest) (map[string]interface{}, *http.Response, error) + + /* + CreateOrchestration Create Durable Orchestration + + Create a new durable orchestration for batch processing. + * + * **Input Sources:** + * - `static`: Process a fixed list of items + * - `task_query`: Process tasks matching a query + * - `generator`: AI generates items from a prompt + * + * **Stop Conditions:** + * - `all_complete`: Stop when all items processed + * - `max_iterations`: Stop after N iterations + * - `condition`: AI evaluates a prompt to decide + * - `manual`: Run until manually stopped + * + * **Auto-start:** + * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @return AIOrchestrationsAPICreateOrchestrationRequest + */ + CreateOrchestration(ctx context.Context, organisation string) AIOrchestrationsAPICreateOrchestrationRequest + + // CreateOrchestrationExecute executes the request + // @return map[string]interface{} + CreateOrchestrationExecute(r AIOrchestrationsAPICreateOrchestrationRequest) (map[string]interface{}, *http.Response, error) + + /* + DeleteOrchestration Delete Durable Orchestration + + Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIDeleteOrchestrationRequest + */ + DeleteOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIDeleteOrchestrationRequest + + // DeleteOrchestrationExecute executes the request + DeleteOrchestrationExecute(r AIOrchestrationsAPIDeleteOrchestrationRequest) (*http.Response, error) + + /* + GetOrchestration Get Durable Orchestration + + Get orchestration details including status and progress. + * + * **Progress Tracking:** + * - `total`: Total items to process + * - `completed`: Successfully processed + * - `failed`: Failed processing + * - `pending`: Awaiting processing + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIGetOrchestrationRequest + */ + GetOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIGetOrchestrationRequest + + // GetOrchestrationExecute executes the request + // @return map[string]interface{} + GetOrchestrationExecute(r AIOrchestrationsAPIGetOrchestrationRequest) (map[string]interface{}, *http.Response, error) + + /* + ListOrchestrationBatches List Orchestration Batches + + Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIListOrchestrationBatchesRequest + */ + ListOrchestrationBatches(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIListOrchestrationBatchesRequest + + // ListOrchestrationBatchesExecute executes the request + // @return ListOrchestrationBatches200Response + ListOrchestrationBatchesExecute(r AIOrchestrationsAPIListOrchestrationBatchesRequest) (*ListOrchestrationBatches200Response, *http.Response, error) + + /* + ListOrchestrations List Durable Orchestrations + + List durable orchestrations for an organization with optional filtering. + * + * **Note:** This is different from `/tools/orchestrations` which handles async tool execution + * polling. These durable orchestrations are for long-running batch processing loops. + * + * **Filter Options:** + * - `status`: Filter by orchestration status + * - `limit`: Max results (default 20, max 100) + * - `cursor`: Pagination cursor + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @return AIOrchestrationsAPIListOrchestrationsRequest + */ + ListOrchestrations(ctx context.Context, organisation string) AIOrchestrationsAPIListOrchestrationsRequest + + // ListOrchestrationsExecute executes the request + // @return ListOrchestrations200Response + ListOrchestrationsExecute(r AIOrchestrationsAPIListOrchestrationsRequest) (*ListOrchestrations200Response, *http.Response, error) + + /* + PauseOrchestration Pause Durable Orchestration + + Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIPauseOrchestrationRequest + */ + PauseOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIPauseOrchestrationRequest + + // PauseOrchestrationExecute executes the request + // @return map[string]interface{} + PauseOrchestrationExecute(r AIOrchestrationsAPIPauseOrchestrationRequest) (map[string]interface{}, *http.Response, error) + + /* + ResumeOrchestration Resume Durable Orchestration + + Resume a paused orchestration. Processing continues from where it left off. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIResumeOrchestrationRequest + */ + ResumeOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIResumeOrchestrationRequest + + // ResumeOrchestrationExecute executes the request + // @return map[string]interface{} + ResumeOrchestrationExecute(r AIOrchestrationsAPIResumeOrchestrationRequest) (map[string]interface{}, *http.Response, error) + + /* + StartOrchestration Start Durable Orchestration + + Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIStartOrchestrationRequest + */ + StartOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIStartOrchestrationRequest + + // StartOrchestrationExecute executes the request + // @return map[string]interface{} + StartOrchestrationExecute(r AIOrchestrationsAPIStartOrchestrationRequest) (map[string]interface{}, *http.Response, error) +} + +// AIOrchestrationsAPIService AIOrchestrationsAPI service +type AIOrchestrationsAPIService service + +type AIOrchestrationsAPICancelOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPICancelOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CancelOrchestrationExecute(r) +} + +/* +CancelOrchestration Cancel Durable Orchestration + +Cancel an orchestration permanently. Cannot be resumed. Any in-progress items will complete, but no new processing starts. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPICancelOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) CancelOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPICancelOrchestrationRequest { + return AIOrchestrationsAPICancelOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) CancelOrchestrationExecute(r AIOrchestrationsAPICancelOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.CancelOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 AIOrchestrationsAPICreateOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + createOrchestrationRequest *CreateOrchestrationRequest +} + +func (r AIOrchestrationsAPICreateOrchestrationRequest) CreateOrchestrationRequest(createOrchestrationRequest CreateOrchestrationRequest) AIOrchestrationsAPICreateOrchestrationRequest { + r.createOrchestrationRequest = &createOrchestrationRequest + return r +} + +func (r AIOrchestrationsAPICreateOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CreateOrchestrationExecute(r) +} + +/* +CreateOrchestration Create Durable Orchestration + +Create a new durable orchestration for batch processing. + * + * **Input Sources:** + * - `static`: Process a fixed list of items + * - `task_query`: Process tasks matching a query + * - `generator`: AI generates items from a prompt + * + * **Stop Conditions:** + * - `all_complete`: Stop when all items processed + * - `max_iterations`: Stop after N iterations + * - `condition`: AI evaluates a prompt to decide + * - `manual`: Run until manually stopped + * + * **Auto-start:** + * By default, the orchestration starts immediately. Set `autoStart: false` to create in pending state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @return AIOrchestrationsAPICreateOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) CreateOrchestration(ctx context.Context, organisation string) AIOrchestrationsAPICreateOrchestrationRequest { + return AIOrchestrationsAPICreateOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) CreateOrchestrationExecute(r AIOrchestrationsAPICreateOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.CreateOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createOrchestrationRequest == nil { + return localVarReturnValue, nil, reportError("createOrchestrationRequest 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.createOrchestrationRequest + 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 AIOrchestrationsAPIDeleteOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPIDeleteOrchestrationRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteOrchestrationExecute(r) +} + +/* +DeleteOrchestration Delete Durable Orchestration + +Delete an orchestration. Can only delete orchestrations in completed, failed, or cancelled status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIDeleteOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) DeleteOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIDeleteOrchestrationRequest { + return AIOrchestrationsAPIDeleteOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +func (a *AIOrchestrationsAPIService) DeleteOrchestrationExecute(r AIOrchestrationsAPIDeleteOrchestrationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.DeleteOrchestration") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 AIOrchestrationsAPIGetOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPIGetOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetOrchestrationExecute(r) +} + +/* +GetOrchestration Get Durable Orchestration + +Get orchestration details including status and progress. + * + * **Progress Tracking:** + * - `total`: Total items to process + * - `completed`: Successfully processed + * - `failed`: Failed processing + * - `pending`: Awaiting processing + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIGetOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) GetOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIGetOrchestrationRequest { + return AIOrchestrationsAPIGetOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) GetOrchestrationExecute(r AIOrchestrationsAPIGetOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.GetOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 AIOrchestrationsAPIListOrchestrationBatchesRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string + limit *int32 + cursor *string +} + +// Maximum number of batches to return +func (r AIOrchestrationsAPIListOrchestrationBatchesRequest) Limit(limit int32) AIOrchestrationsAPIListOrchestrationBatchesRequest { + r.limit = &limit + return r +} + +// Pagination cursor from previous response +func (r AIOrchestrationsAPIListOrchestrationBatchesRequest) Cursor(cursor string) AIOrchestrationsAPIListOrchestrationBatchesRequest { + r.cursor = &cursor + return r +} + +func (r AIOrchestrationsAPIListOrchestrationBatchesRequest) Execute() (*ListOrchestrationBatches200Response, *http.Response, error) { + return r.ApiService.ListOrchestrationBatchesExecute(r) +} + +/* +ListOrchestrationBatches List Orchestration Batches + +Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIListOrchestrationBatchesRequest +*/ +func (a *AIOrchestrationsAPIService) ListOrchestrationBatches(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIListOrchestrationBatchesRequest { + return AIOrchestrationsAPIListOrchestrationBatchesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return ListOrchestrationBatches200Response +func (a *AIOrchestrationsAPIService) ListOrchestrationBatchesExecute(r AIOrchestrationsAPIListOrchestrationBatchesRequest) (*ListOrchestrationBatches200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListOrchestrationBatches200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.ListOrchestrationBatches") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 20 + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "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{"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 AIOrchestrationsAPIListOrchestrationsRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + status *string + limit *int32 + cursor *string +} + +// Filter by orchestration status +func (r AIOrchestrationsAPIListOrchestrationsRequest) Status(status string) AIOrchestrationsAPIListOrchestrationsRequest { + r.status = &status + return r +} + +// Maximum number of results +func (r AIOrchestrationsAPIListOrchestrationsRequest) Limit(limit int32) AIOrchestrationsAPIListOrchestrationsRequest { + r.limit = &limit + return r +} + +// Pagination cursor from previous response +func (r AIOrchestrationsAPIListOrchestrationsRequest) Cursor(cursor string) AIOrchestrationsAPIListOrchestrationsRequest { + r.cursor = &cursor + return r +} + +func (r AIOrchestrationsAPIListOrchestrationsRequest) Execute() (*ListOrchestrations200Response, *http.Response, error) { + return r.ApiService.ListOrchestrationsExecute(r) +} + +/* +ListOrchestrations List Durable Orchestrations + +List durable orchestrations for an organization with optional filtering. + * + * **Note:** This is different from `/tools/orchestrations` which handles async tool execution + * polling. These durable orchestrations are for long-running batch processing loops. + * + * **Filter Options:** + * - `status`: Filter by orchestration status + * - `limit`: Max results (default 20, max 100) + * - `cursor`: Pagination cursor + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @return AIOrchestrationsAPIListOrchestrationsRequest +*/ +func (a *AIOrchestrationsAPIService) ListOrchestrations(ctx context.Context, organisation string) AIOrchestrationsAPIListOrchestrationsRequest { + return AIOrchestrationsAPIListOrchestrationsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListOrchestrations200Response +func (a *AIOrchestrationsAPIService) ListOrchestrationsExecute(r AIOrchestrationsAPIListOrchestrationsRequest) (*ListOrchestrations200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListOrchestrations200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.ListOrchestrations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 20 + r.limit = &defaultValue + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "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{"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 AIOrchestrationsAPIPauseOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPIPauseOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PauseOrchestrationExecute(r) +} + +/* +PauseOrchestration Pause Durable Orchestration + +Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIPauseOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) PauseOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIPauseOrchestrationRequest { + return AIOrchestrationsAPIPauseOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) PauseOrchestrationExecute(r AIOrchestrationsAPIPauseOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.PauseOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 AIOrchestrationsAPIResumeOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPIResumeOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ResumeOrchestrationExecute(r) +} + +/* +ResumeOrchestration Resume Durable Orchestration + +Resume a paused orchestration. Processing continues from where it left off. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIResumeOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) ResumeOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIResumeOrchestrationRequest { + return AIOrchestrationsAPIResumeOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) ResumeOrchestrationExecute(r AIOrchestrationsAPIResumeOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.ResumeOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 AIOrchestrationsAPIStartOrchestrationRequest struct { + ctx context.Context + ApiService AIOrchestrationsAPI + organisation string + orchestrationId string +} + +func (r AIOrchestrationsAPIStartOrchestrationRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.StartOrchestrationExecute(r) +} + +/* +StartOrchestration Start Durable Orchestration + +Start a pending orchestration. Only works on orchestrations created with `autoStart: false`. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation machine name + @param orchestrationId Orchestration identifier + @return AIOrchestrationsAPIStartOrchestrationRequest +*/ +func (a *AIOrchestrationsAPIService) StartOrchestration(ctx context.Context, organisation string, orchestrationId string) AIOrchestrationsAPIStartOrchestrationRequest { + return AIOrchestrationsAPIStartOrchestrationRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *AIOrchestrationsAPIService) StartOrchestrationExecute(r AIOrchestrationsAPIStartOrchestrationRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIOrchestrationsAPIService.StartOrchestration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"orchestrationId"+"}", url.PathEscape(parameterValueToString(r.orchestrationId, "orchestrationId")), -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 +} diff --git a/api_ai_sessions.go b/api_ai_sessions.go index 1d985b8..06ab29e 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.9.0 +API version: 4.10.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 7f2b2fc..ecc89b6 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.9.0 +API version: 4.10.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 b9f1f75..a363726 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,12 @@ import ( type AIToolsAPI interface { /* - GetAIOrchestrationStatus Get Orchestration Status + GetAIOrchestrationStatus Get Tool Orchestration Status (Async Tool Polling) - Retrieves the status and synthesized result of a multi-tool orchestration. + Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created @@ -211,9 +214,12 @@ func (r AIToolsAPIGetAIOrchestrationStatusRequest) Execute() (*GetAIOrchestratio } /* -GetAIOrchestrationStatus Get Orchestration Status +GetAIOrchestrationStatus Get Tool Orchestration Status (Async Tool Polling) -Retrieves the status and synthesized result of a multi-tool orchestration. +Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created diff --git a/api_ai_vector_database.go b/api_ai_vector_database.go index 7023c26..e2173c6 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -59,6 +59,33 @@ type AIVectorDatabaseAPI interface { // @return DeleteVectorCollection200Response DeleteVectorCollectionExecute(r AIVectorDatabaseAPIDeleteVectorCollectionRequest) (*DeleteVectorCollection200Response, *http.Response, error) + /* + DeleteVectorDocuments Delete Documents from Collection + + Delete documents from a collection. Supports three deletion modes: + * + * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection + * + * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs + * + * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values + * + * **Drupal Integration:** + * When using with Drupal AI Search, use metadata deletion with: + * - `field: 'drupal_entity_id'` to delete all chunks for specific entities + * - `field: 'drupal_long_id'` to delete specific chunks + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation Organisation machine name + @param collectionId Collection UUID + @return AIVectorDatabaseAPIDeleteVectorDocumentsRequest + */ + DeleteVectorDocuments(ctx context.Context, organisation string, collectionId string) AIVectorDatabaseAPIDeleteVectorDocumentsRequest + + // DeleteVectorDocumentsExecute executes the request + // @return DeleteVectorDocuments200Response + DeleteVectorDocumentsExecute(r AIVectorDatabaseAPIDeleteVectorDocumentsRequest) (*DeleteVectorDocuments200Response, *http.Response, error) + /* GetVectorCollection Get Collection Details @@ -394,6 +421,135 @@ func (a *AIVectorDatabaseAPIService) DeleteVectorCollectionExecute(r AIVectorDat return localVarReturnValue, localVarHTTPResponse, nil } +type AIVectorDatabaseAPIDeleteVectorDocumentsRequest struct { + ctx context.Context + ApiService AIVectorDatabaseAPI + organisation string + collectionId string + deleteVectorDocumentsRequest *DeleteVectorDocumentsRequest +} + +func (r AIVectorDatabaseAPIDeleteVectorDocumentsRequest) DeleteVectorDocumentsRequest(deleteVectorDocumentsRequest DeleteVectorDocumentsRequest) AIVectorDatabaseAPIDeleteVectorDocumentsRequest { + r.deleteVectorDocumentsRequest = &deleteVectorDocumentsRequest + return r +} + +func (r AIVectorDatabaseAPIDeleteVectorDocumentsRequest) Execute() (*DeleteVectorDocuments200Response, *http.Response, error) { + return r.ApiService.DeleteVectorDocumentsExecute(r) +} + +/* +DeleteVectorDocuments Delete Documents from Collection + +Delete documents from a collection. Supports three deletion modes: + * + * 1. **Purge All** - Set `purgeAll: true` to delete ALL documents in the collection + * + * 2. **By Document IDs** - Provide `documentIds` array with specific document UUIDs + * + * 3. **By Metadata** - Provide `metadata` object with `field` and `values` to delete documents where the metadata field matches any of the values + * + * **Drupal Integration:** + * When using with Drupal AI Search, use metadata deletion with: + * - `field: 'drupal_entity_id'` to delete all chunks for specific entities + * - `field: 'drupal_long_id'` to delete specific chunks + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation Organisation machine name + @param collectionId Collection UUID + @return AIVectorDatabaseAPIDeleteVectorDocumentsRequest +*/ +func (a *AIVectorDatabaseAPIService) DeleteVectorDocuments(ctx context.Context, organisation string, collectionId string) AIVectorDatabaseAPIDeleteVectorDocumentsRequest { + return AIVectorDatabaseAPIDeleteVectorDocumentsRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + collectionId: collectionId, + } +} + +// Execute executes the request +// @return DeleteVectorDocuments200Response +func (a *AIVectorDatabaseAPIService) DeleteVectorDocumentsExecute(r AIVectorDatabaseAPIDeleteVectorDocumentsRequest) (*DeleteVectorDocuments200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteVectorDocuments200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIVectorDatabaseAPIService.DeleteVectorDocuments") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"collectionId"+"}", url.PathEscape(parameterValueToString(r.collectionId, "collectionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.deleteVectorDocumentsRequest == nil { + return localVarReturnValue, nil, reportError("deleteVectorDocumentsRequest 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.deleteVectorDocumentsRequest + 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 AIVectorDatabaseAPIGetVectorCollectionRequest struct { ctx context.Context ApiService AIVectorDatabaseAPI diff --git a/api_applications.go b/api_applications.go index f406138..10d7cf3 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.9.0 +API version: 4.10.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 cc5845f..9c1f6f5 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..7cb0d3b --- /dev/null +++ b/api_cdn_metrics.go @@ -0,0 +1,520 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + "reflect" +) + + +type CDNMetricsAPI interface { + + /* + GetDailyMetrics Get daily metrics + + Returns the last 30 days of daily metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetDailyMetricsRequest + */ + GetDailyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetDailyMetricsRequest + + // GetDailyMetricsExecute executes the request + // @return V2MetricsResponse + GetDailyMetricsExecute(r CDNMetricsAPIGetDailyMetricsRequest) (*V2MetricsResponse, *http.Response, error) + + /* + GetHourlyMetrics Get hourly metrics + + Returns the last hour of minute-by-minute metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetHourlyMetricsRequest + */ + GetHourlyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetHourlyMetricsRequest + + // GetHourlyMetricsExecute executes the request + // @return V2MetricsResponse + GetHourlyMetricsExecute(r CDNMetricsAPIGetHourlyMetricsRequest) (*V2MetricsResponse, *http.Response, error) + + /* + GetMonthlyMetrics Get monthly metrics + + Returns the last 12 months of monthly metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetMonthlyMetricsRequest + */ + GetMonthlyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetMonthlyMetricsRequest + + // GetMonthlyMetricsExecute executes the request + // @return V2MetricsResponse + GetMonthlyMetricsExecute(r CDNMetricsAPIGetMonthlyMetricsRequest) (*V2MetricsResponse, *http.Response, error) +} + +// CDNMetricsAPIService CDNMetricsAPI service +type CDNMetricsAPIService service + +type CDNMetricsAPIGetDailyMetricsRequest struct { + ctx context.Context + ApiService CDNMetricsAPI + organization string + project string + domain *string + metrics *[]string + timestampFormat *string +} + +// Filter by domain ID or domain name +func (r CDNMetricsAPIGetDailyMetricsRequest) Domain(domain string) CDNMetricsAPIGetDailyMetricsRequest { + r.domain = &domain + return r +} + +// Metrics to return (default: hits, bytes) +func (r CDNMetricsAPIGetDailyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetDailyMetricsRequest { + r.metrics = &metrics + return r +} + +// Timestamp format in response +func (r CDNMetricsAPIGetDailyMetricsRequest) TimestampFormat(timestampFormat string) CDNMetricsAPIGetDailyMetricsRequest { + r.timestampFormat = ×tampFormat + return r +} + +func (r CDNMetricsAPIGetDailyMetricsRequest) Execute() (*V2MetricsResponse, *http.Response, error) { + return r.ApiService.GetDailyMetricsExecute(r) +} + +/* +GetDailyMetrics Get daily metrics + +Returns the last 30 days of daily metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetDailyMetricsRequest +*/ +func (a *CDNMetricsAPIService) GetDailyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetDailyMetricsRequest { + return CDNMetricsAPIGetDailyMetricsRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + project: project, + } +} + +// Execute executes the request +// @return V2MetricsResponse +func (a *CDNMetricsAPIService) GetDailyMetricsExecute(r CDNMetricsAPIGetDailyMetricsRequest) (*V2MetricsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V2MetricsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CDNMetricsAPIService.GetDailyMetrics") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/organizations/{organization}/projects/{project}/metrics/daily" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -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.domain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", r.domain, "form", "") + } + if r.metrics != nil { + t := *r.metrics + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", t, "form", "multi") + } + } + if r.timestampFormat != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "timestamp_format", r.timestampFormat, "form", "") + } else { + var defaultValue string = "iso8601" + r.timestampFormat = &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{"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 CDNMetricsAPIGetHourlyMetricsRequest struct { + ctx context.Context + ApiService CDNMetricsAPI + organization string + project string + domain *string + metrics *[]string + timestampFormat *string +} + +// Filter by domain ID or domain name +func (r CDNMetricsAPIGetHourlyMetricsRequest) Domain(domain string) CDNMetricsAPIGetHourlyMetricsRequest { + r.domain = &domain + return r +} + +// Metrics to return (default: hits, bytes) +func (r CDNMetricsAPIGetHourlyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetHourlyMetricsRequest { + r.metrics = &metrics + return r +} + +// Timestamp format in response +func (r CDNMetricsAPIGetHourlyMetricsRequest) TimestampFormat(timestampFormat string) CDNMetricsAPIGetHourlyMetricsRequest { + r.timestampFormat = ×tampFormat + return r +} + +func (r CDNMetricsAPIGetHourlyMetricsRequest) Execute() (*V2MetricsResponse, *http.Response, error) { + return r.ApiService.GetHourlyMetricsExecute(r) +} + +/* +GetHourlyMetrics Get hourly metrics + +Returns the last hour of minute-by-minute metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetHourlyMetricsRequest +*/ +func (a *CDNMetricsAPIService) GetHourlyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetHourlyMetricsRequest { + return CDNMetricsAPIGetHourlyMetricsRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + project: project, + } +} + +// Execute executes the request +// @return V2MetricsResponse +func (a *CDNMetricsAPIService) GetHourlyMetricsExecute(r CDNMetricsAPIGetHourlyMetricsRequest) (*V2MetricsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V2MetricsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CDNMetricsAPIService.GetHourlyMetrics") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/organizations/{organization}/projects/{project}/metrics/hourly" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -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.domain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", r.domain, "form", "") + } + if r.metrics != nil { + t := *r.metrics + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", t, "form", "multi") + } + } + if r.timestampFormat != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "timestamp_format", r.timestampFormat, "form", "") + } else { + var defaultValue string = "iso8601" + r.timestampFormat = &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{"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 CDNMetricsAPIGetMonthlyMetricsRequest struct { + ctx context.Context + ApiService CDNMetricsAPI + organization string + project string + domain *string + metrics *[]string + timestampFormat *string +} + +// Filter by domain ID or domain name +func (r CDNMetricsAPIGetMonthlyMetricsRequest) Domain(domain string) CDNMetricsAPIGetMonthlyMetricsRequest { + r.domain = &domain + return r +} + +// Metrics to return (default: hits, bytes) +func (r CDNMetricsAPIGetMonthlyMetricsRequest) Metrics(metrics []string) CDNMetricsAPIGetMonthlyMetricsRequest { + r.metrics = &metrics + return r +} + +// Timestamp format in response +func (r CDNMetricsAPIGetMonthlyMetricsRequest) TimestampFormat(timestampFormat string) CDNMetricsAPIGetMonthlyMetricsRequest { + r.timestampFormat = ×tampFormat + return r +} + +func (r CDNMetricsAPIGetMonthlyMetricsRequest) Execute() (*V2MetricsResponse, *http.Response, error) { + return r.ApiService.GetMonthlyMetricsExecute(r) +} + +/* +GetMonthlyMetrics Get monthly metrics + +Returns the last 12 months of monthly metrics data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @return CDNMetricsAPIGetMonthlyMetricsRequest +*/ +func (a *CDNMetricsAPIService) GetMonthlyMetrics(ctx context.Context, organization string, project string) CDNMetricsAPIGetMonthlyMetricsRequest { + return CDNMetricsAPIGetMonthlyMetricsRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + project: project, + } +} + +// Execute executes the request +// @return V2MetricsResponse +func (a *CDNMetricsAPIService) GetMonthlyMetricsExecute(r CDNMetricsAPIGetMonthlyMetricsRequest) (*V2MetricsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V2MetricsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CDNMetricsAPIService.GetMonthlyMetrics") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v2/organizations/{organization}/projects/{project}/metrics/monthly" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -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.domain != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", r.domain, "form", "") + } + if r.metrics != nil { + t := *r.metrics + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "metrics[]", t, "form", "multi") + } + } + if r.timestampFormat != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "timestamp_format", r.timestampFormat, "form", "") + } else { + var defaultValue string = "iso8601" + r.timestampFormat = &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{"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 +} diff --git a/api_commands.go b/api_commands.go index 8629f6d..6ab693b 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_compose.go b/api_compose.go index a5671d2..03beebd 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_containers.go b/api_containers.go index d5fdfc7..2243ce6 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.9.0 +API version: 4.10.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 8b30511..d0a17b0 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawlers.go b/api_crawlers.go index 13102c5..1aa6ebf 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_cron.go b/api_cron.go index f537ce2..ad311d7 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domains.go b/api_domains.go index edf0f99..b98c5f1 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_environments.go b/api_environments.go index 020e73e..a51f1a3 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_headers.go b/api_headers.go index f2a2788..ea8d146 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_kv.go b/api_kv.go index a52968f..5551770 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -130,6 +130,23 @@ type KVAPI interface { // @return KVItemsCreate200Response KVItemsUpdateExecute(r KVAPIKVItemsUpdateRequest) (*KVItemsCreate200Response, *http.Response, error) + /* + KVLinkToProject Link a KV store to another project + + Share a KV store from the source project with a target project. The store will be accessible in the target project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Source project identifier + @param storeId KV store identifier + @return KVAPIKVLinkToProjectRequest + */ + KVLinkToProject(ctx context.Context, organization string, project string, storeId string) KVAPIKVLinkToProjectRequest + + // KVLinkToProjectExecute executes the request + // @return KVLinkToProject200Response + KVLinkToProjectExecute(r KVAPIKVLinkToProjectRequest) (*KVLinkToProject200Response, *http.Response, error) + /* KVList List key-value stores @@ -158,6 +175,23 @@ type KVAPI interface { // KVShowExecute executes the request // @return V2Store KVShowExecute(r KVAPIKVShowRequest) (*V2Store, *http.Response, error) + + /* + KVUnlinkFromProject Unlink a KV store from this project + + Remove access to a linked KV store from this project. The store must be linked (not owned by this project). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @param storeId KV store identifier + @return KVAPIKVUnlinkFromProjectRequest + */ + KVUnlinkFromProject(ctx context.Context, organization string, project string, storeId string) KVAPIKVUnlinkFromProjectRequest + + // KVUnlinkFromProjectExecute executes the request + // @return KVLinkToProject200Response + KVUnlinkFromProjectExecute(r KVAPIKVUnlinkFromProjectRequest) (*KVLinkToProject200Response, *http.Response, error) } // KVAPIService KVAPI service @@ -1173,6 +1207,160 @@ func (a *KVAPIService) KVItemsUpdateExecute(r KVAPIKVItemsUpdateRequest) (*KVIte return localVarReturnValue, localVarHTTPResponse, nil } +type KVAPIKVLinkToProjectRequest struct { + ctx context.Context + ApiService KVAPI + organization string + project string + storeId string + kVLinkToProjectRequest *KVLinkToProjectRequest +} + +func (r KVAPIKVLinkToProjectRequest) KVLinkToProjectRequest(kVLinkToProjectRequest KVLinkToProjectRequest) KVAPIKVLinkToProjectRequest { + r.kVLinkToProjectRequest = &kVLinkToProjectRequest + return r +} + +func (r KVAPIKVLinkToProjectRequest) Execute() (*KVLinkToProject200Response, *http.Response, error) { + return r.ApiService.KVLinkToProjectExecute(r) +} + +/* +KVLinkToProject Link a KV store to another project + +Share a KV store from the source project with a target project. The store will be accessible in the target project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Source project identifier + @param storeId KV store identifier + @return KVAPIKVLinkToProjectRequest +*/ +func (a *KVAPIService) KVLinkToProject(ctx context.Context, organization string, project string, storeId string) KVAPIKVLinkToProjectRequest { + return KVAPIKVLinkToProjectRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + project: project, + storeId: storeId, + } +} + +// Execute executes the request +// @return KVLinkToProject200Response +func (a *KVAPIService) KVLinkToProjectExecute(r KVAPIKVLinkToProjectRequest) (*KVLinkToProject200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KVLinkToProject200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KVAPIService.KVLinkToProject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"store_id"+"}", url.PathEscape(parameterValueToString(r.storeId, "storeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.kVLinkToProjectRequest == nil { + return localVarReturnValue, nil, reportError("kVLinkToProjectRequest 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.kVLinkToProjectRequest + 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 == 400 { + var v V2Error + 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 + } + if localVarHTTPResponse.StatusCode == 404 { + var v V2Error + 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 + } + if localVarHTTPResponse.StatusCode == 403 { + var v V2Error + 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 KVAPIKVListRequest struct { ctx context.Context ApiService KVAPI @@ -1428,3 +1616,135 @@ func (a *KVAPIService) KVShowExecute(r KVAPIKVShowRequest) (*V2Store, *http.Resp return localVarReturnValue, localVarHTTPResponse, nil } + +type KVAPIKVUnlinkFromProjectRequest struct { + ctx context.Context + ApiService KVAPI + organization string + project string + storeId string +} + +func (r KVAPIKVUnlinkFromProjectRequest) Execute() (*KVLinkToProject200Response, *http.Response, error) { + return r.ApiService.KVUnlinkFromProjectExecute(r) +} + +/* +KVUnlinkFromProject Unlink a KV store from this project + +Remove access to a linked KV store from this project. The store must be linked (not owned by this project). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organization Organization identifier + @param project Project identifier + @param storeId KV store identifier + @return KVAPIKVUnlinkFromProjectRequest +*/ +func (a *KVAPIService) KVUnlinkFromProject(ctx context.Context, organization string, project string, storeId string) KVAPIKVUnlinkFromProjectRequest { + return KVAPIKVUnlinkFromProjectRequest{ + ApiService: a, + ctx: ctx, + organization: organization, + project: project, + storeId: storeId, + } +} + +// Execute executes the request +// @return KVLinkToProject200Response +func (a *KVAPIService) KVUnlinkFromProjectExecute(r KVAPIKVUnlinkFromProjectRequest) (*KVLinkToProject200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *KVLinkToProject200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KVAPIService.KVUnlinkFromProject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link" + localVarPath = strings.Replace(localVarPath, "{"+"organization"+"}", url.PathEscape(parameterValueToString(r.organization, "organization")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", url.PathEscape(parameterValueToString(r.project, "project")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"store_id"+"}", url.PathEscape(parameterValueToString(r.storeId, "storeId")), -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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v V2Error + 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 + } + if localVarHTTPResponse.StatusCode == 403 { + var v V2Error + 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_orchestration.go b/api_orchestration.go index eda5905..b292469 100644 --- a/api_orchestration.go +++ b/api_orchestration.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,12 @@ import ( type OrchestrationAPI interface { /* - GetAIOrchestrationStatus Get Orchestration Status + GetAIOrchestrationStatus Get Tool Orchestration Status (Async Tool Polling) - Retrieves the status and synthesized result of a multi-tool orchestration. + Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created @@ -82,9 +85,12 @@ func (r OrchestrationAPIGetAIOrchestrationStatusRequest) Execute() (*GetAIOrches } /* -GetAIOrchestrationStatus Get Orchestration Status +GetAIOrchestrationStatus Get Tool Orchestration Status (Async Tool Polling) -Retrieves the status and synthesized result of a multi-tool orchestration. +Retrieves the status and synthesized result of a multi-tool async execution orchestration. + * + * **Note:** This endpoint is for async tool execution polling (`/tools/orchestrations`). + * For durable batch processing orchestrations, see `GET /orchestrations` endpoints. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created diff --git a/api_organizations.go b/api_organizations.go index 14a1511..ea09706 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index 8f3670c..80d7a08 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_purge.go b/api_purge.go index c7c5ed9..0139b76 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_rules.go b/api_rules.go index abb6091..96da3ef 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.9.0 +API version: 4.10.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 9f39b63..5360190 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ssh_access.go b/api_ssh_access.go index 75a39a4..6442cc0 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_variables.go b/api_variables.go index 4b89e7c..c710972 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_volumes.go b/api_volumes.go index 5bde869..50956fd 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index b732f22..6b23ed1 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.9.0 +API version: 4.10.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.9.0 +// APIClient manages communication with the QuantCDN API API v4.10.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -61,6 +61,8 @@ type APIClient struct { AIMonitoringAPI AIMonitoringAPI + AIOrchestrationsAPI AIOrchestrationsAPI + AISessionsAPI AISessionsAPI AITaskManagementAPI AITaskManagementAPI @@ -73,6 +75,8 @@ type APIClient struct { BackupManagementAPI BackupManagementAPI + CDNMetricsAPI CDNMetricsAPI + CommandsAPI CommandsAPI ComposeAPI ComposeAPI @@ -134,12 +138,14 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AIInferenceAPI = (*AIInferenceAPIService)(&c.common) c.AIModelsAPI = (*AIModelsAPIService)(&c.common) c.AIMonitoringAPI = (*AIMonitoringAPIService)(&c.common) + c.AIOrchestrationsAPI = (*AIOrchestrationsAPIService)(&c.common) c.AISessionsAPI = (*AISessionsAPIService)(&c.common) c.AITaskManagementAPI = (*AITaskManagementAPIService)(&c.common) c.AIToolsAPI = (*AIToolsAPIService)(&c.common) c.AIVectorDatabaseAPI = (*AIVectorDatabaseAPIService)(&c.common) c.ApplicationsAPI = (*ApplicationsAPIService)(&c.common) c.BackupManagementAPI = (*BackupManagementAPIService)(&c.common) + c.CDNMetricsAPI = (*CDNMetricsAPIService)(&c.common) c.CommandsAPI = (*CommandsAPIService)(&c.common) c.ComposeAPI = (*ComposeAPIService)(&c.common) c.ContainersAPI = (*ContainersAPIService)(&c.common) diff --git a/configuration.go b/configuration.go index 4e2c659..6f03932 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/AIOrchestrationsAPI.md b/docs/AIOrchestrationsAPI.md new file mode 100644 index 0000000..45a991c --- /dev/null +++ b/docs/AIOrchestrationsAPI.md @@ -0,0 +1,678 @@ +# \AIOrchestrationsAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CancelOrchestration**](AIOrchestrationsAPI.md#CancelOrchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/cancel | Cancel Durable Orchestration +[**CreateOrchestration**](AIOrchestrationsAPI.md#CreateOrchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations | Create Durable Orchestration +[**DeleteOrchestration**](AIOrchestrationsAPI.md#DeleteOrchestration) | **Delete** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Delete Durable Orchestration +[**GetOrchestration**](AIOrchestrationsAPI.md#GetOrchestration) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId} | Get Durable Orchestration +[**ListOrchestrationBatches**](AIOrchestrationsAPI.md#ListOrchestrationBatches) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/batches | List Orchestration Batches +[**ListOrchestrations**](AIOrchestrationsAPI.md#ListOrchestrations) | **Get** /api/v3/organizations/{organisation}/ai/orchestrations | List Durable Orchestrations +[**PauseOrchestration**](AIOrchestrationsAPI.md#PauseOrchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/pause | Pause Durable Orchestration +[**ResumeOrchestration**](AIOrchestrationsAPI.md#ResumeOrchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/resume | Resume Durable Orchestration +[**StartOrchestration**](AIOrchestrationsAPI.md#StartOrchestration) | **Post** /api/v3/organizations/{organisation}/ai/orchestrations/{orchestrationId}/start | Start Durable Orchestration + + + +## CancelOrchestration + +> map[string]interface{} CancelOrchestration(ctx, organisation, orchestrationId).Execute() + +Cancel Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.CancelOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.CancelOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.CancelOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCancelOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### 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) + + +## CreateOrchestration + +> map[string]interface{} CreateOrchestration(ctx, organisation).CreateOrchestrationRequest(createOrchestrationRequest).Execute() + +Create Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + createOrchestrationRequest := *openapiclient.NewCreateOrchestrationRequest("Process batch documents", *openapiclient.NewCreateOrchestrationRequestInputSource("Type_example")) // CreateOrchestrationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.CreateOrchestration(context.Background(), organisation).CreateOrchestrationRequest(createOrchestrationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.CreateOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.CreateOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createOrchestrationRequest** | [**CreateOrchestrationRequest**](CreateOrchestrationRequest.md) | | + +### Return type + +**map[string]interface{}** + +### 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) + + +## DeleteOrchestration + +> DeleteOrchestration(ctx, organisation, orchestrationId).Execute() + +Delete Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AIOrchestrationsAPI.DeleteOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.DeleteOrchestration``: %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** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteOrchestrationRequest 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) + + +## GetOrchestration + +> map[string]interface{} GetOrchestration(ctx, organisation, orchestrationId).Execute() + +Get Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orch_1704067200_abc123xyz" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.GetOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.GetOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.GetOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### 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) + + +## ListOrchestrationBatches + +> ListOrchestrationBatches200Response ListOrchestrationBatches(ctx, organisation, orchestrationId).Limit(limit).Cursor(cursor).Execute() + +List Orchestration Batches + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + limit := int32(56) // int32 | Maximum number of batches to return (optional) (default to 20) + cursor := "cursor_example" // string | Pagination cursor from previous response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.ListOrchestrationBatches(context.Background(), organisation, orchestrationId).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.ListOrchestrationBatches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOrchestrationBatches`: ListOrchestrationBatches200Response + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.ListOrchestrationBatches`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListOrchestrationBatchesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **limit** | **int32** | Maximum number of batches to return | [default to 20] + **cursor** | **string** | Pagination cursor from previous response | + +### Return type + +[**ListOrchestrationBatches200Response**](ListOrchestrationBatches200Response.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) + + +## ListOrchestrations + +> ListOrchestrations200Response ListOrchestrations(ctx, organisation).Status(status).Limit(limit).Cursor(cursor).Execute() + +List Durable Orchestrations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + status := "status_example" // string | Filter by orchestration status (optional) + limit := int32(56) // int32 | Maximum number of results (optional) (default to 20) + cursor := "cursor_example" // string | Pagination cursor from previous response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.ListOrchestrations(context.Background(), organisation).Status(status).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.ListOrchestrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOrchestrations`: ListOrchestrations200Response + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.ListOrchestrations`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListOrchestrationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **string** | Filter by orchestration status | + **limit** | **int32** | Maximum number of results | [default to 20] + **cursor** | **string** | Pagination cursor from previous response | + +### Return type + +[**ListOrchestrations200Response**](ListOrchestrations200Response.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) + + +## PauseOrchestration + +> map[string]interface{} PauseOrchestration(ctx, organisation, orchestrationId).Execute() + +Pause Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.PauseOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.PauseOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PauseOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.PauseOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPauseOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### 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) + + +## ResumeOrchestration + +> map[string]interface{} ResumeOrchestration(ctx, organisation, orchestrationId).Execute() + +Resume Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.ResumeOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.ResumeOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResumeOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.ResumeOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiResumeOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### 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) + + +## StartOrchestration + +> map[string]interface{} StartOrchestration(ctx, organisation, orchestrationId).Execute() + +Start Durable Orchestration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation machine name + orchestrationId := "orchestrationId_example" // string | Orchestration identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIOrchestrationsAPI.StartOrchestration(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIOrchestrationsAPI.StartOrchestration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartOrchestration`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AIOrchestrationsAPI.StartOrchestration`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation machine name | +**orchestrationId** | **string** | Orchestration identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStartOrchestrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**map[string]interface{}** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AIToolsAPI.md b/docs/AIToolsAPI.md index 378f95f..146a63f 100644 --- a/docs/AIToolsAPI.md +++ b/docs/AIToolsAPI.md @@ -4,7 +4,7 @@ All URIs are relative to *https://dashboard.quantcdn.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetAIOrchestrationStatus**](AIToolsAPI.md#GetAIOrchestrationStatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +[**GetAIOrchestrationStatus**](AIToolsAPI.md#GetAIOrchestrationStatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) [**GetAIToolExecutionStatus**](AIToolsAPI.md#GetAIToolExecutionStatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result [**ListAIToolExecutions**](AIToolsAPI.md#ListAIToolExecutions) | **Get** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging [**ListAIToolNames**](AIToolsAPI.md#ListAIToolNames) | **Get** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) @@ -16,7 +16,7 @@ Method | HTTP request | Description > GetAIOrchestrationStatus200Response GetAIOrchestrationStatus(ctx, organisation, orchestrationId).Execute() -Get Orchestration Status +Get Tool Orchestration Status (Async Tool Polling) diff --git a/docs/AIVectorDatabaseAPI.md b/docs/AIVectorDatabaseAPI.md index cae60e9..d180a17 100644 --- a/docs/AIVectorDatabaseAPI.md +++ b/docs/AIVectorDatabaseAPI.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateVectorCollection**](AIVectorDatabaseAPI.md#CreateVectorCollection) | **Post** /api/v3/organizations/{organisation}/ai/vector-db/collections | Create Vector Database Collection [**DeleteVectorCollection**](AIVectorDatabaseAPI.md#DeleteVectorCollection) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Delete Collection +[**DeleteVectorDocuments**](AIVectorDatabaseAPI.md#DeleteVectorDocuments) | **Delete** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/documents | Delete Documents from Collection [**GetVectorCollection**](AIVectorDatabaseAPI.md#GetVectorCollection) | **Get** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId} | Get Collection Details [**ListVectorCollections**](AIVectorDatabaseAPI.md#ListVectorCollections) | **Get** /api/v3/organizations/{organisation}/ai/vector-db/collections | List Vector Database Collections [**QueryVectorCollection**](AIVectorDatabaseAPI.md#QueryVectorCollection) | **Post** /api/v3/organizations/{organisation}/ai/vector-db/collections/{collectionId}/query | Semantic Search Query @@ -158,6 +159,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DeleteVectorDocuments + +> DeleteVectorDocuments200Response DeleteVectorDocuments(ctx, organisation, collectionId).DeleteVectorDocumentsRequest(deleteVectorDocumentsRequest).Execute() + +Delete Documents from Collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | Organisation machine name + collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Collection UUID + deleteVectorDocumentsRequest := *openapiclient.NewDeleteVectorDocumentsRequest() // DeleteVectorDocumentsRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIVectorDatabaseAPI.DeleteVectorDocuments(context.Background(), organisation, collectionId).DeleteVectorDocumentsRequest(deleteVectorDocumentsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIVectorDatabaseAPI.DeleteVectorDocuments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVectorDocuments`: DeleteVectorDocuments200Response + fmt.Fprintf(os.Stdout, "Response from `AIVectorDatabaseAPI.DeleteVectorDocuments`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | Organisation machine name | +**collectionId** | **string** | Collection UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteVectorDocumentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deleteVectorDocumentsRequest** | [**DeleteVectorDocumentsRequest**](DeleteVectorDocumentsRequest.md) | | + +### Return type + +[**DeleteVectorDocuments200Response**](DeleteVectorDocuments200Response.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) + + ## GetVectorCollection > GetVectorCollection200Response GetVectorCollection(ctx, organisation, collectionId).Execute() diff --git a/docs/CDNMetricsAPI.md b/docs/CDNMetricsAPI.md new file mode 100644 index 0000000..0e16fc9 --- /dev/null +++ b/docs/CDNMetricsAPI.md @@ -0,0 +1,248 @@ +# \CDNMetricsAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetDailyMetrics**](CDNMetricsAPI.md#GetDailyMetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/daily | Get daily metrics +[**GetHourlyMetrics**](CDNMetricsAPI.md#GetHourlyMetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/hourly | Get hourly metrics +[**GetMonthlyMetrics**](CDNMetricsAPI.md#GetMonthlyMetrics) | **Get** /v2/organizations/{organization}/projects/{project}/metrics/monthly | Get monthly metrics + + + +## GetDailyMetrics + +> V2MetricsResponse GetDailyMetrics(ctx, organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + +Get daily metrics + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "organization_example" // string | Organization identifier + project := "project_example" // string | Project identifier + domain := "domain_example" // string | Filter by domain ID or domain name (optional) + metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CDNMetricsAPI.GetDailyMetrics(context.Background(), organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CDNMetricsAPI.GetDailyMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDailyMetrics`: V2MetricsResponse + fmt.Fprintf(os.Stdout, "Response from `CDNMetricsAPI.GetDailyMetrics`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDailyMetricsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **domain** | **string** | Filter by domain ID or domain name | + **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.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) + + +## GetHourlyMetrics + +> V2MetricsResponse GetHourlyMetrics(ctx, organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + +Get hourly metrics + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "organization_example" // string | Organization identifier + project := "project_example" // string | Project identifier + domain := "domain_example" // string | Filter by domain ID or domain name (optional) + metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CDNMetricsAPI.GetHourlyMetrics(context.Background(), organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CDNMetricsAPI.GetHourlyMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHourlyMetrics`: V2MetricsResponse + fmt.Fprintf(os.Stdout, "Response from `CDNMetricsAPI.GetHourlyMetrics`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetHourlyMetricsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **domain** | **string** | Filter by domain ID or domain name | + **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.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) + + +## GetMonthlyMetrics + +> V2MetricsResponse GetMonthlyMetrics(ctx, organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + +Get monthly metrics + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "organization_example" // string | Organization identifier + project := "project_example" // string | Project identifier + domain := "domain_example" // string | Filter by domain ID or domain name (optional) + metrics := []string{"Inner_example"} // []string | Metrics to return (default: hits, bytes) (optional) + timestampFormat := "timestampFormat_example" // string | Timestamp format in response (optional) (default to "iso8601") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CDNMetricsAPI.GetMonthlyMetrics(context.Background(), organization, project).Domain(domain).Metrics(metrics).TimestampFormat(timestampFormat).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CDNMetricsAPI.GetMonthlyMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMonthlyMetrics`: V2MetricsResponse + fmt.Fprintf(os.Stdout, "Response from `CDNMetricsAPI.GetMonthlyMetrics`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetMonthlyMetricsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **domain** | **string** | Filter by domain ID or domain name | + **metrics** | **[]string** | Metrics to return (default: hits, bytes) | + **timestampFormat** | **string** | Timestamp format in response | [default to "iso8601"] + +### Return type + +[**V2MetricsResponse**](V2MetricsResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ChatInferenceRequest.md b/docs/ChatInferenceRequest.md index 2e866b2..16d188b 100644 --- a/docs/ChatInferenceRequest.md +++ b/docs/ChatInferenceRequest.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **ToolConfig** | Pointer to [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **SessionId** | Pointer to **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] +**AllowedTools** | Pointer to **[]string** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**Guardrails** | Pointer to [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] ## Methods @@ -326,6 +328,56 @@ SetAsync sets Async field to given value. HasAsync returns a boolean if a field has been set. +### GetAllowedTools + +`func (o *ChatInferenceRequest) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *ChatInferenceRequest) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *ChatInferenceRequest) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *ChatInferenceRequest) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetGuardrails + +`func (o *ChatInferenceRequest) GetGuardrails() ChatInferenceRequestGuardrails` + +GetGuardrails returns the Guardrails field if non-nil, zero value otherwise. + +### GetGuardrailsOk + +`func (o *ChatInferenceRequest) GetGuardrailsOk() (*ChatInferenceRequestGuardrails, bool)` + +GetGuardrailsOk returns a tuple with the Guardrails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrails + +`func (o *ChatInferenceRequest) SetGuardrails(v ChatInferenceRequestGuardrails)` + +SetGuardrails sets Guardrails field to given value. + +### HasGuardrails + +`func (o *ChatInferenceRequest) HasGuardrails() bool` + +HasGuardrails 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/ChatInferenceRequestGuardrails.md b/docs/ChatInferenceRequestGuardrails.md new file mode 100644 index 0000000..1a33fe7 --- /dev/null +++ b/docs/ChatInferenceRequestGuardrails.md @@ -0,0 +1,108 @@ +# ChatInferenceRequestGuardrails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GuardrailIdentifier** | Pointer to **string** | Guardrail identifier from AWS Bedrock | [optional] +**GuardrailVersion** | Pointer to **string** | Guardrail version | [optional] +**Trace** | Pointer to **string** | Enable guardrail trace output | [optional] + +## Methods + +### NewChatInferenceRequestGuardrails + +`func NewChatInferenceRequestGuardrails() *ChatInferenceRequestGuardrails` + +NewChatInferenceRequestGuardrails instantiates a new ChatInferenceRequestGuardrails 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 + +### NewChatInferenceRequestGuardrailsWithDefaults + +`func NewChatInferenceRequestGuardrailsWithDefaults() *ChatInferenceRequestGuardrails` + +NewChatInferenceRequestGuardrailsWithDefaults instantiates a new ChatInferenceRequestGuardrails 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 + +### GetGuardrailIdentifier + +`func (o *ChatInferenceRequestGuardrails) GetGuardrailIdentifier() string` + +GetGuardrailIdentifier returns the GuardrailIdentifier field if non-nil, zero value otherwise. + +### GetGuardrailIdentifierOk + +`func (o *ChatInferenceRequestGuardrails) GetGuardrailIdentifierOk() (*string, bool)` + +GetGuardrailIdentifierOk returns a tuple with the GuardrailIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailIdentifier + +`func (o *ChatInferenceRequestGuardrails) SetGuardrailIdentifier(v string)` + +SetGuardrailIdentifier sets GuardrailIdentifier field to given value. + +### HasGuardrailIdentifier + +`func (o *ChatInferenceRequestGuardrails) HasGuardrailIdentifier() bool` + +HasGuardrailIdentifier returns a boolean if a field has been set. + +### GetGuardrailVersion + +`func (o *ChatInferenceRequestGuardrails) GetGuardrailVersion() string` + +GetGuardrailVersion returns the GuardrailVersion field if non-nil, zero value otherwise. + +### GetGuardrailVersionOk + +`func (o *ChatInferenceRequestGuardrails) GetGuardrailVersionOk() (*string, bool)` + +GetGuardrailVersionOk returns a tuple with the GuardrailVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrailVersion + +`func (o *ChatInferenceRequestGuardrails) SetGuardrailVersion(v string)` + +SetGuardrailVersion sets GuardrailVersion field to given value. + +### HasGuardrailVersion + +`func (o *ChatInferenceRequestGuardrails) HasGuardrailVersion() bool` + +HasGuardrailVersion returns a boolean if a field has been set. + +### GetTrace + +`func (o *ChatInferenceRequestGuardrails) GetTrace() string` + +GetTrace returns the Trace field if non-nil, zero value otherwise. + +### GetTraceOk + +`func (o *ChatInferenceRequestGuardrails) GetTraceOk() (*string, bool)` + +GetTraceOk returns a tuple with the Trace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrace + +`func (o *ChatInferenceRequestGuardrails) SetTrace(v string)` + +SetTrace sets Trace field to given value. + +### HasTrace + +`func (o *ChatInferenceRequestGuardrails) HasTrace() bool` + +HasTrace 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/ChatInferenceStreamRequest.md b/docs/ChatInferenceStreamRequest.md index 4acb6e8..8a5a2a1 100644 --- a/docs/ChatInferenceStreamRequest.md +++ b/docs/ChatInferenceStreamRequest.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **ToolConfig** | Pointer to [**ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] **SessionId** | Pointer to **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] **Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] +**AllowedTools** | Pointer to **[]string** | Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. | [optional] +**Guardrails** | Pointer to [**ChatInferenceRequestGuardrails**](ChatInferenceRequestGuardrails.md) | | [optional] ## Methods @@ -300,6 +302,56 @@ SetAsync sets Async field to given value. HasAsync returns a boolean if a field has been set. +### GetAllowedTools + +`func (o *ChatInferenceStreamRequest) GetAllowedTools() []string` + +GetAllowedTools returns the AllowedTools field if non-nil, zero value otherwise. + +### GetAllowedToolsOk + +`func (o *ChatInferenceStreamRequest) GetAllowedToolsOk() (*[]string, bool)` + +GetAllowedToolsOk returns a tuple with the AllowedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedTools + +`func (o *ChatInferenceStreamRequest) SetAllowedTools(v []string)` + +SetAllowedTools sets AllowedTools field to given value. + +### HasAllowedTools + +`func (o *ChatInferenceStreamRequest) HasAllowedTools() bool` + +HasAllowedTools returns a boolean if a field has been set. + +### GetGuardrails + +`func (o *ChatInferenceStreamRequest) GetGuardrails() ChatInferenceRequestGuardrails` + +GetGuardrails returns the Guardrails field if non-nil, zero value otherwise. + +### GetGuardrailsOk + +`func (o *ChatInferenceStreamRequest) GetGuardrailsOk() (*ChatInferenceRequestGuardrails, bool)` + +GetGuardrailsOk returns a tuple with the Guardrails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuardrails + +`func (o *ChatInferenceStreamRequest) SetGuardrails(v ChatInferenceRequestGuardrails)` + +SetGuardrails sets Guardrails field to given value. + +### HasGuardrails + +`func (o *ChatInferenceStreamRequest) HasGuardrails() bool` + +HasGuardrails 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/CrawlerSchedulesAPI.md b/docs/CrawlerSchedulesAPI.md index b02fde3..5c70d21 100644 --- a/docs/CrawlerSchedulesAPI.md +++ b/docs/CrawlerSchedulesAPI.md @@ -34,7 +34,7 @@ func main() { organization := "organization_example" // string | Organization identifier project := "project_example" // string | Project identifier crawler := "crawler_example" // string | Crawler identifier - v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("Test schedule", "0 2 * * *") // V2CrawlerScheduleRequest | + v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("0 2 * * *") // V2CrawlerScheduleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -186,7 +186,7 @@ func main() { project := "project_example" // string | Project identifier crawler := "crawler_example" // string | Crawler identifier crawlerSchedule := "crawlerSchedule_example" // string | Crawler schedule identifier - v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("Test schedule", "0 2 * * *") // V2CrawlerScheduleRequest | + v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("0 2 * * *") // V2CrawlerScheduleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/CreateOrchestrationRequest.md b/docs/CreateOrchestrationRequest.md new file mode 100644 index 0000000..0d8e808 --- /dev/null +++ b/docs/CreateOrchestrationRequest.md @@ -0,0 +1,346 @@ +# CreateOrchestrationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Orchestration name | +**Description** | Pointer to **NullableString** | Optional description | [optional] +**AgentId** | Pointer to **NullableString** | Agent to process items | [optional] +**ToolId** | Pointer to **NullableString** | Tool to execute for items | [optional] +**WorkflowId** | Pointer to **NullableString** | Workflow to run for items | [optional] +**InputSource** | [**CreateOrchestrationRequestInputSource**](CreateOrchestrationRequestInputSource.md) | | +**BatchSize** | Pointer to **int32** | Items per batch | [optional] [default to 10] +**Concurrency** | Pointer to **int32** | Concurrent items within a batch | [optional] [default to 1] +**StopCondition** | Pointer to [**CreateOrchestrationRequestStopCondition**](CreateOrchestrationRequestStopCondition.md) | | [optional] +**AssignedSkills** | Pointer to **[]string** | Skill IDs to assign | [optional] +**AutoStart** | Pointer to **bool** | Whether to start immediately | [optional] [default to true] + +## Methods + +### NewCreateOrchestrationRequest + +`func NewCreateOrchestrationRequest(name string, inputSource CreateOrchestrationRequestInputSource, ) *CreateOrchestrationRequest` + +NewCreateOrchestrationRequest instantiates a new CreateOrchestrationRequest 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 + +### NewCreateOrchestrationRequestWithDefaults + +`func NewCreateOrchestrationRequestWithDefaults() *CreateOrchestrationRequest` + +NewCreateOrchestrationRequestWithDefaults instantiates a new CreateOrchestrationRequest 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 + +### GetName + +`func (o *CreateOrchestrationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateOrchestrationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateOrchestrationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CreateOrchestrationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CreateOrchestrationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CreateOrchestrationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CreateOrchestrationRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *CreateOrchestrationRequest) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *CreateOrchestrationRequest) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetAgentId + +`func (o *CreateOrchestrationRequest) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *CreateOrchestrationRequest) GetAgentIdOk() (*string, bool)` + +GetAgentIdOk returns a tuple with the AgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentId + +`func (o *CreateOrchestrationRequest) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + +### HasAgentId + +`func (o *CreateOrchestrationRequest) HasAgentId() bool` + +HasAgentId returns a boolean if a field has been set. + +### SetAgentIdNil + +`func (o *CreateOrchestrationRequest) SetAgentIdNil(b bool)` + + SetAgentIdNil sets the value for AgentId to be an explicit nil + +### UnsetAgentId +`func (o *CreateOrchestrationRequest) UnsetAgentId()` + +UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +### GetToolId + +`func (o *CreateOrchestrationRequest) GetToolId() string` + +GetToolId returns the ToolId field if non-nil, zero value otherwise. + +### GetToolIdOk + +`func (o *CreateOrchestrationRequest) GetToolIdOk() (*string, bool)` + +GetToolIdOk returns a tuple with the ToolId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolId + +`func (o *CreateOrchestrationRequest) SetToolId(v string)` + +SetToolId sets ToolId field to given value. + +### HasToolId + +`func (o *CreateOrchestrationRequest) HasToolId() bool` + +HasToolId returns a boolean if a field has been set. + +### SetToolIdNil + +`func (o *CreateOrchestrationRequest) SetToolIdNil(b bool)` + + SetToolIdNil sets the value for ToolId to be an explicit nil + +### UnsetToolId +`func (o *CreateOrchestrationRequest) UnsetToolId()` + +UnsetToolId ensures that no value is present for ToolId, not even an explicit nil +### GetWorkflowId + +`func (o *CreateOrchestrationRequest) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *CreateOrchestrationRequest) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *CreateOrchestrationRequest) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *CreateOrchestrationRequest) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + +### SetWorkflowIdNil + +`func (o *CreateOrchestrationRequest) SetWorkflowIdNil(b bool)` + + SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil + +### UnsetWorkflowId +`func (o *CreateOrchestrationRequest) UnsetWorkflowId()` + +UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +### GetInputSource + +`func (o *CreateOrchestrationRequest) GetInputSource() CreateOrchestrationRequestInputSource` + +GetInputSource returns the InputSource field if non-nil, zero value otherwise. + +### GetInputSourceOk + +`func (o *CreateOrchestrationRequest) GetInputSourceOk() (*CreateOrchestrationRequestInputSource, bool)` + +GetInputSourceOk returns a tuple with the InputSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputSource + +`func (o *CreateOrchestrationRequest) SetInputSource(v CreateOrchestrationRequestInputSource)` + +SetInputSource sets InputSource field to given value. + + +### GetBatchSize + +`func (o *CreateOrchestrationRequest) GetBatchSize() int32` + +GetBatchSize returns the BatchSize field if non-nil, zero value otherwise. + +### GetBatchSizeOk + +`func (o *CreateOrchestrationRequest) GetBatchSizeOk() (*int32, bool)` + +GetBatchSizeOk returns a tuple with the BatchSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchSize + +`func (o *CreateOrchestrationRequest) SetBatchSize(v int32)` + +SetBatchSize sets BatchSize field to given value. + +### HasBatchSize + +`func (o *CreateOrchestrationRequest) HasBatchSize() bool` + +HasBatchSize returns a boolean if a field has been set. + +### GetConcurrency + +`func (o *CreateOrchestrationRequest) GetConcurrency() int32` + +GetConcurrency returns the Concurrency field if non-nil, zero value otherwise. + +### GetConcurrencyOk + +`func (o *CreateOrchestrationRequest) GetConcurrencyOk() (*int32, bool)` + +GetConcurrencyOk returns a tuple with the Concurrency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConcurrency + +`func (o *CreateOrchestrationRequest) SetConcurrency(v int32)` + +SetConcurrency sets Concurrency field to given value. + +### HasConcurrency + +`func (o *CreateOrchestrationRequest) HasConcurrency() bool` + +HasConcurrency returns a boolean if a field has been set. + +### GetStopCondition + +`func (o *CreateOrchestrationRequest) GetStopCondition() CreateOrchestrationRequestStopCondition` + +GetStopCondition returns the StopCondition field if non-nil, zero value otherwise. + +### GetStopConditionOk + +`func (o *CreateOrchestrationRequest) GetStopConditionOk() (*CreateOrchestrationRequestStopCondition, bool)` + +GetStopConditionOk returns a tuple with the StopCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStopCondition + +`func (o *CreateOrchestrationRequest) SetStopCondition(v CreateOrchestrationRequestStopCondition)` + +SetStopCondition sets StopCondition field to given value. + +### HasStopCondition + +`func (o *CreateOrchestrationRequest) HasStopCondition() bool` + +HasStopCondition returns a boolean if a field has been set. + +### GetAssignedSkills + +`func (o *CreateOrchestrationRequest) GetAssignedSkills() []string` + +GetAssignedSkills returns the AssignedSkills field if non-nil, zero value otherwise. + +### GetAssignedSkillsOk + +`func (o *CreateOrchestrationRequest) GetAssignedSkillsOk() (*[]string, bool)` + +GetAssignedSkillsOk returns a tuple with the AssignedSkills field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedSkills + +`func (o *CreateOrchestrationRequest) SetAssignedSkills(v []string)` + +SetAssignedSkills sets AssignedSkills field to given value. + +### HasAssignedSkills + +`func (o *CreateOrchestrationRequest) HasAssignedSkills() bool` + +HasAssignedSkills returns a boolean if a field has been set. + +### GetAutoStart + +`func (o *CreateOrchestrationRequest) GetAutoStart() bool` + +GetAutoStart returns the AutoStart field if non-nil, zero value otherwise. + +### GetAutoStartOk + +`func (o *CreateOrchestrationRequest) GetAutoStartOk() (*bool, bool)` + +GetAutoStartOk returns a tuple with the AutoStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoStart + +`func (o *CreateOrchestrationRequest) SetAutoStart(v bool)` + +SetAutoStart sets AutoStart field to given value. + +### HasAutoStart + +`func (o *CreateOrchestrationRequest) HasAutoStart() bool` + +HasAutoStart 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/CreateOrchestrationRequestInputSource.md b/docs/CreateOrchestrationRequestInputSource.md new file mode 100644 index 0000000..be42c4e --- /dev/null +++ b/docs/CreateOrchestrationRequestInputSource.md @@ -0,0 +1,129 @@ +# CreateOrchestrationRequestInputSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | Input source type (api type not yet supported) | +**Items** | Pointer to **[]map[string]interface{}** | Static items (for type=static) | [optional] +**TaskQuery** | Pointer to **map[string]interface{}** | Task query filters (for type=task_query) | [optional] +**GeneratorPrompt** | Pointer to **string** | AI prompt (for type=generator) | [optional] + +## Methods + +### NewCreateOrchestrationRequestInputSource + +`func NewCreateOrchestrationRequestInputSource(type_ string, ) *CreateOrchestrationRequestInputSource` + +NewCreateOrchestrationRequestInputSource instantiates a new CreateOrchestrationRequestInputSource 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 + +### NewCreateOrchestrationRequestInputSourceWithDefaults + +`func NewCreateOrchestrationRequestInputSourceWithDefaults() *CreateOrchestrationRequestInputSource` + +NewCreateOrchestrationRequestInputSourceWithDefaults instantiates a new CreateOrchestrationRequestInputSource 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 + +### GetType + +`func (o *CreateOrchestrationRequestInputSource) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CreateOrchestrationRequestInputSource) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CreateOrchestrationRequestInputSource) SetType(v string)` + +SetType sets Type field to given value. + + +### GetItems + +`func (o *CreateOrchestrationRequestInputSource) GetItems() []map[string]interface{}` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *CreateOrchestrationRequestInputSource) GetItemsOk() (*[]map[string]interface{}, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *CreateOrchestrationRequestInputSource) SetItems(v []map[string]interface{})` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *CreateOrchestrationRequestInputSource) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetTaskQuery + +`func (o *CreateOrchestrationRequestInputSource) GetTaskQuery() map[string]interface{}` + +GetTaskQuery returns the TaskQuery field if non-nil, zero value otherwise. + +### GetTaskQueryOk + +`func (o *CreateOrchestrationRequestInputSource) GetTaskQueryOk() (*map[string]interface{}, bool)` + +GetTaskQueryOk returns a tuple with the TaskQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskQuery + +`func (o *CreateOrchestrationRequestInputSource) SetTaskQuery(v map[string]interface{})` + +SetTaskQuery sets TaskQuery field to given value. + +### HasTaskQuery + +`func (o *CreateOrchestrationRequestInputSource) HasTaskQuery() bool` + +HasTaskQuery returns a boolean if a field has been set. + +### GetGeneratorPrompt + +`func (o *CreateOrchestrationRequestInputSource) GetGeneratorPrompt() string` + +GetGeneratorPrompt returns the GeneratorPrompt field if non-nil, zero value otherwise. + +### GetGeneratorPromptOk + +`func (o *CreateOrchestrationRequestInputSource) GetGeneratorPromptOk() (*string, bool)` + +GetGeneratorPromptOk returns a tuple with the GeneratorPrompt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeneratorPrompt + +`func (o *CreateOrchestrationRequestInputSource) SetGeneratorPrompt(v string)` + +SetGeneratorPrompt sets GeneratorPrompt field to given value. + +### HasGeneratorPrompt + +`func (o *CreateOrchestrationRequestInputSource) HasGeneratorPrompt() bool` + +HasGeneratorPrompt 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/CreateOrchestrationRequestStopCondition.md b/docs/CreateOrchestrationRequestStopCondition.md new file mode 100644 index 0000000..1058fd1 --- /dev/null +++ b/docs/CreateOrchestrationRequestStopCondition.md @@ -0,0 +1,108 @@ +# CreateOrchestrationRequestStopCondition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | | [optional] [default to "all_complete"] +**MaxIterations** | Pointer to **int32** | Max iterations (for type=max_iterations) | [optional] +**ConditionPrompt** | Pointer to **string** | AI prompt to evaluate stop (for type=condition) | [optional] + +## Methods + +### NewCreateOrchestrationRequestStopCondition + +`func NewCreateOrchestrationRequestStopCondition() *CreateOrchestrationRequestStopCondition` + +NewCreateOrchestrationRequestStopCondition instantiates a new CreateOrchestrationRequestStopCondition 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 + +### NewCreateOrchestrationRequestStopConditionWithDefaults + +`func NewCreateOrchestrationRequestStopConditionWithDefaults() *CreateOrchestrationRequestStopCondition` + +NewCreateOrchestrationRequestStopConditionWithDefaults instantiates a new CreateOrchestrationRequestStopCondition 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 + +### GetType + +`func (o *CreateOrchestrationRequestStopCondition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CreateOrchestrationRequestStopCondition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CreateOrchestrationRequestStopCondition) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CreateOrchestrationRequestStopCondition) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetMaxIterations + +`func (o *CreateOrchestrationRequestStopCondition) GetMaxIterations() int32` + +GetMaxIterations returns the MaxIterations field if non-nil, zero value otherwise. + +### GetMaxIterationsOk + +`func (o *CreateOrchestrationRequestStopCondition) GetMaxIterationsOk() (*int32, bool)` + +GetMaxIterationsOk returns a tuple with the MaxIterations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxIterations + +`func (o *CreateOrchestrationRequestStopCondition) SetMaxIterations(v int32)` + +SetMaxIterations sets MaxIterations field to given value. + +### HasMaxIterations + +`func (o *CreateOrchestrationRequestStopCondition) HasMaxIterations() bool` + +HasMaxIterations returns a boolean if a field has been set. + +### GetConditionPrompt + +`func (o *CreateOrchestrationRequestStopCondition) GetConditionPrompt() string` + +GetConditionPrompt returns the ConditionPrompt field if non-nil, zero value otherwise. + +### GetConditionPromptOk + +`func (o *CreateOrchestrationRequestStopCondition) GetConditionPromptOk() (*string, bool)` + +GetConditionPromptOk returns a tuple with the ConditionPrompt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionPrompt + +`func (o *CreateOrchestrationRequestStopCondition) SetConditionPrompt(v string)` + +SetConditionPrompt sets ConditionPrompt field to given value. + +### HasConditionPrompt + +`func (o *CreateOrchestrationRequestStopCondition) HasConditionPrompt() bool` + +HasConditionPrompt 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/DeleteVectorDocuments200Response.md b/docs/DeleteVectorDocuments200Response.md new file mode 100644 index 0000000..0388478 --- /dev/null +++ b/docs/DeleteVectorDocuments200Response.md @@ -0,0 +1,108 @@ +# DeleteVectorDocuments200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**CollectionId** | Pointer to **string** | | [optional] +**DeletedCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewDeleteVectorDocuments200Response + +`func NewDeleteVectorDocuments200Response() *DeleteVectorDocuments200Response` + +NewDeleteVectorDocuments200Response instantiates a new DeleteVectorDocuments200Response 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 + +### NewDeleteVectorDocuments200ResponseWithDefaults + +`func NewDeleteVectorDocuments200ResponseWithDefaults() *DeleteVectorDocuments200Response` + +NewDeleteVectorDocuments200ResponseWithDefaults instantiates a new DeleteVectorDocuments200Response 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 *DeleteVectorDocuments200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteVectorDocuments200Response) 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 *DeleteVectorDocuments200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteVectorDocuments200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCollectionId + +`func (o *DeleteVectorDocuments200Response) GetCollectionId() string` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *DeleteVectorDocuments200Response) GetCollectionIdOk() (*string, bool)` + +GetCollectionIdOk returns a tuple with the CollectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionId + +`func (o *DeleteVectorDocuments200Response) SetCollectionId(v string)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *DeleteVectorDocuments200Response) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetDeletedCount + +`func (o *DeleteVectorDocuments200Response) GetDeletedCount() int32` + +GetDeletedCount returns the DeletedCount field if non-nil, zero value otherwise. + +### GetDeletedCountOk + +`func (o *DeleteVectorDocuments200Response) GetDeletedCountOk() (*int32, bool)` + +GetDeletedCountOk returns a tuple with the DeletedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedCount + +`func (o *DeleteVectorDocuments200Response) SetDeletedCount(v int32)` + +SetDeletedCount sets DeletedCount field to given value. + +### HasDeletedCount + +`func (o *DeleteVectorDocuments200Response) HasDeletedCount() bool` + +HasDeletedCount 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/DeleteVectorDocumentsRequest.md b/docs/DeleteVectorDocumentsRequest.md new file mode 100644 index 0000000..ff4cd28 --- /dev/null +++ b/docs/DeleteVectorDocumentsRequest.md @@ -0,0 +1,108 @@ +# DeleteVectorDocumentsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PurgeAll** | Pointer to **bool** | Delete ALL documents in collection | [optional] +**DocumentIds** | Pointer to **[]string** | Delete specific documents by UUID | [optional] +**Metadata** | Pointer to [**DeleteVectorDocumentsRequestMetadata**](DeleteVectorDocumentsRequestMetadata.md) | | [optional] + +## Methods + +### NewDeleteVectorDocumentsRequest + +`func NewDeleteVectorDocumentsRequest() *DeleteVectorDocumentsRequest` + +NewDeleteVectorDocumentsRequest instantiates a new DeleteVectorDocumentsRequest 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 + +### NewDeleteVectorDocumentsRequestWithDefaults + +`func NewDeleteVectorDocumentsRequestWithDefaults() *DeleteVectorDocumentsRequest` + +NewDeleteVectorDocumentsRequestWithDefaults instantiates a new DeleteVectorDocumentsRequest 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 + +### GetPurgeAll + +`func (o *DeleteVectorDocumentsRequest) GetPurgeAll() bool` + +GetPurgeAll returns the PurgeAll field if non-nil, zero value otherwise. + +### GetPurgeAllOk + +`func (o *DeleteVectorDocumentsRequest) GetPurgeAllOk() (*bool, bool)` + +GetPurgeAllOk returns a tuple with the PurgeAll field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPurgeAll + +`func (o *DeleteVectorDocumentsRequest) SetPurgeAll(v bool)` + +SetPurgeAll sets PurgeAll field to given value. + +### HasPurgeAll + +`func (o *DeleteVectorDocumentsRequest) HasPurgeAll() bool` + +HasPurgeAll returns a boolean if a field has been set. + +### GetDocumentIds + +`func (o *DeleteVectorDocumentsRequest) GetDocumentIds() []string` + +GetDocumentIds returns the DocumentIds field if non-nil, zero value otherwise. + +### GetDocumentIdsOk + +`func (o *DeleteVectorDocumentsRequest) GetDocumentIdsOk() (*[]string, bool)` + +GetDocumentIdsOk returns a tuple with the DocumentIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentIds + +`func (o *DeleteVectorDocumentsRequest) SetDocumentIds(v []string)` + +SetDocumentIds sets DocumentIds field to given value. + +### HasDocumentIds + +`func (o *DeleteVectorDocumentsRequest) HasDocumentIds() bool` + +HasDocumentIds returns a boolean if a field has been set. + +### GetMetadata + +`func (o *DeleteVectorDocumentsRequest) GetMetadata() DeleteVectorDocumentsRequestMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *DeleteVectorDocumentsRequest) GetMetadataOk() (*DeleteVectorDocumentsRequestMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *DeleteVectorDocumentsRequest) SetMetadata(v DeleteVectorDocumentsRequestMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *DeleteVectorDocumentsRequest) HasMetadata() bool` + +HasMetadata 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/DeleteVectorDocumentsRequestMetadata.md b/docs/DeleteVectorDocumentsRequestMetadata.md new file mode 100644 index 0000000..52a757d --- /dev/null +++ b/docs/DeleteVectorDocumentsRequestMetadata.md @@ -0,0 +1,82 @@ +# DeleteVectorDocumentsRequestMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | Pointer to **string** | Metadata field name (e.g., 'drupal_entity_id') | [optional] +**Values** | Pointer to **[]string** | Values to match (OR logic) | [optional] + +## Methods + +### NewDeleteVectorDocumentsRequestMetadata + +`func NewDeleteVectorDocumentsRequestMetadata() *DeleteVectorDocumentsRequestMetadata` + +NewDeleteVectorDocumentsRequestMetadata instantiates a new DeleteVectorDocumentsRequestMetadata 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 + +### NewDeleteVectorDocumentsRequestMetadataWithDefaults + +`func NewDeleteVectorDocumentsRequestMetadataWithDefaults() *DeleteVectorDocumentsRequestMetadata` + +NewDeleteVectorDocumentsRequestMetadataWithDefaults instantiates a new DeleteVectorDocumentsRequestMetadata 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 + +### GetField + +`func (o *DeleteVectorDocumentsRequestMetadata) GetField() string` + +GetField returns the Field field if non-nil, zero value otherwise. + +### GetFieldOk + +`func (o *DeleteVectorDocumentsRequestMetadata) GetFieldOk() (*string, bool)` + +GetFieldOk returns a tuple with the Field field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetField + +`func (o *DeleteVectorDocumentsRequestMetadata) SetField(v string)` + +SetField sets Field field to given value. + +### HasField + +`func (o *DeleteVectorDocumentsRequestMetadata) HasField() bool` + +HasField returns a boolean if a field has been set. + +### GetValues + +`func (o *DeleteVectorDocumentsRequestMetadata) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *DeleteVectorDocumentsRequestMetadata) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *DeleteVectorDocumentsRequestMetadata) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *DeleteVectorDocumentsRequestMetadata) HasValues() bool` + +HasValues 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/KVAPI.md b/docs/KVAPI.md index a33939e..0842704 100644 --- a/docs/KVAPI.md +++ b/docs/KVAPI.md @@ -11,8 +11,10 @@ Method | HTTP request | Description [**KVItemsList**](KVAPI.md#KVItemsList) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items | List items in a kv store [**KVItemsShow**](KVAPI.md#KVItemsShow) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Get an item from a kv store [**KVItemsUpdate**](KVAPI.md#KVItemsUpdate) | **Put** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store +[**KVLinkToProject**](KVAPI.md#KVLinkToProject) | **Post** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Link a KV store to another project [**KVList**](KVAPI.md#KVList) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores [**KVShow**](KVAPI.md#KVShow) | **Get** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store +[**KVUnlinkFromProject**](KVAPI.md#KVUnlinkFromProject) | **Delete** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/link | Unlink a KV store from this project @@ -554,6 +556,84 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## KVLinkToProject + +> KVLinkToProject200Response KVLinkToProject(ctx, organization, project, storeId).KVLinkToProjectRequest(kVLinkToProjectRequest).Execute() + +Link a KV store to another project + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Source project identifier + storeId := "store-123" // string | KV store identifier + kVLinkToProjectRequest := *openapiclient.NewKVLinkToProjectRequest(int32(123)) // KVLinkToProjectRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KVAPI.KVLinkToProject(context.Background(), organization, project, storeId).KVLinkToProjectRequest(kVLinkToProjectRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KVAPI.KVLinkToProject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KVLinkToProject`: KVLinkToProject200Response + fmt.Fprintf(os.Stdout, "Response from `KVAPI.KVLinkToProject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**project** | **string** | Source project identifier | +**storeId** | **string** | KV store identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKVLinkToProjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **kVLinkToProjectRequest** | [**KVLinkToProjectRequest**](KVLinkToProjectRequest.md) | | + +### Return type + +[**KVLinkToProject200Response**](KVLinkToProject200Response.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) + + ## KVList > []V2Store KVList(ctx, organization, project).Execute() @@ -698,3 +778,79 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## KVUnlinkFromProject + +> KVLinkToProject200Response KVUnlinkFromProject(ctx, organization, project, storeId).Execute() + +Unlink a KV store from this project + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "store-123" // string | KV store identifier + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KVAPI.KVUnlinkFromProject(context.Background(), organization, project, storeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KVAPI.KVUnlinkFromProject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `KVUnlinkFromProject`: KVLinkToProject200Response + fmt.Fprintf(os.Stdout, "Response from `KVAPI.KVUnlinkFromProject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | +**storeId** | **string** | KV store identifier | + +### Other Parameters + +Other parameters are passed through a pointer to a apiKVUnlinkFromProjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**KVLinkToProject200Response**](KVLinkToProject200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/KVLinkToProject200Response.md b/docs/KVLinkToProject200Response.md new file mode 100644 index 0000000..a1e7a10 --- /dev/null +++ b/docs/KVLinkToProject200Response.md @@ -0,0 +1,82 @@ +# KVLinkToProject200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewKVLinkToProject200Response + +`func NewKVLinkToProject200Response() *KVLinkToProject200Response` + +NewKVLinkToProject200Response instantiates a new KVLinkToProject200Response 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 + +### NewKVLinkToProject200ResponseWithDefaults + +`func NewKVLinkToProject200ResponseWithDefaults() *KVLinkToProject200Response` + +NewKVLinkToProject200ResponseWithDefaults instantiates a new KVLinkToProject200Response 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 + +### GetSuccess + +`func (o *KVLinkToProject200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *KVLinkToProject200Response) GetSuccessOk() (*bool, bool)` + +GetSuccessOk returns a tuple with the Success field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccess + +`func (o *KVLinkToProject200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *KVLinkToProject200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *KVLinkToProject200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *KVLinkToProject200Response) 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 *KVLinkToProject200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *KVLinkToProject200Response) 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/KVLinkToProjectRequest.md b/docs/KVLinkToProjectRequest.md new file mode 100644 index 0000000..639797a --- /dev/null +++ b/docs/KVLinkToProjectRequest.md @@ -0,0 +1,51 @@ +# KVLinkToProjectRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **int32** | Target project ID to link to | + +## Methods + +### NewKVLinkToProjectRequest + +`func NewKVLinkToProjectRequest(projectId int32, ) *KVLinkToProjectRequest` + +NewKVLinkToProjectRequest instantiates a new KVLinkToProjectRequest 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 + +### NewKVLinkToProjectRequestWithDefaults + +`func NewKVLinkToProjectRequestWithDefaults() *KVLinkToProjectRequest` + +NewKVLinkToProjectRequestWithDefaults instantiates a new KVLinkToProjectRequest 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 + +### GetProjectId + +`func (o *KVLinkToProjectRequest) GetProjectId() int32` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *KVLinkToProjectRequest) GetProjectIdOk() (*int32, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *KVLinkToProjectRequest) SetProjectId(v int32)` + +SetProjectId sets ProjectId 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/ListOrchestrationBatches200Response.md b/docs/ListOrchestrationBatches200Response.md new file mode 100644 index 0000000..f6b4102 --- /dev/null +++ b/docs/ListOrchestrationBatches200Response.md @@ -0,0 +1,92 @@ +# ListOrchestrationBatches200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Batches** | Pointer to [**[]ListOrchestrationBatches200ResponseBatchesInner**](ListOrchestrationBatches200ResponseBatchesInner.md) | | [optional] +**NextCursor** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewListOrchestrationBatches200Response + +`func NewListOrchestrationBatches200Response() *ListOrchestrationBatches200Response` + +NewListOrchestrationBatches200Response instantiates a new ListOrchestrationBatches200Response 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 + +### NewListOrchestrationBatches200ResponseWithDefaults + +`func NewListOrchestrationBatches200ResponseWithDefaults() *ListOrchestrationBatches200Response` + +NewListOrchestrationBatches200ResponseWithDefaults instantiates a new ListOrchestrationBatches200Response 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 + +### GetBatches + +`func (o *ListOrchestrationBatches200Response) GetBatches() []ListOrchestrationBatches200ResponseBatchesInner` + +GetBatches returns the Batches field if non-nil, zero value otherwise. + +### GetBatchesOk + +`func (o *ListOrchestrationBatches200Response) GetBatchesOk() (*[]ListOrchestrationBatches200ResponseBatchesInner, bool)` + +GetBatchesOk returns a tuple with the Batches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatches + +`func (o *ListOrchestrationBatches200Response) SetBatches(v []ListOrchestrationBatches200ResponseBatchesInner)` + +SetBatches sets Batches field to given value. + +### HasBatches + +`func (o *ListOrchestrationBatches200Response) HasBatches() bool` + +HasBatches returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *ListOrchestrationBatches200Response) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *ListOrchestrationBatches200Response) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *ListOrchestrationBatches200Response) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *ListOrchestrationBatches200Response) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### SetNextCursorNil + +`func (o *ListOrchestrationBatches200Response) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *ListOrchestrationBatches200Response) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, 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/ListOrchestrationBatches200ResponseBatchesInner.md b/docs/ListOrchestrationBatches200ResponseBatchesInner.md new file mode 100644 index 0000000..3b1286c --- /dev/null +++ b/docs/ListOrchestrationBatches200ResponseBatchesInner.md @@ -0,0 +1,300 @@ +# ListOrchestrationBatches200ResponseBatchesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchId** | Pointer to **string** | | [optional] +**OrchestrationId** | Pointer to **string** | | [optional] +**Iteration** | Pointer to **int32** | | [optional] +**ItemCount** | Pointer to **int32** | | [optional] +**CompletedCount** | Pointer to **int32** | | [optional] +**FailedCount** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**StartedAt** | Pointer to **time.Time** | | [optional] +**CompletedAt** | Pointer to **time.Time** | | [optional] +**Error** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewListOrchestrationBatches200ResponseBatchesInner + +`func NewListOrchestrationBatches200ResponseBatchesInner() *ListOrchestrationBatches200ResponseBatchesInner` + +NewListOrchestrationBatches200ResponseBatchesInner instantiates a new ListOrchestrationBatches200ResponseBatchesInner 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 + +### NewListOrchestrationBatches200ResponseBatchesInnerWithDefaults + +`func NewListOrchestrationBatches200ResponseBatchesInnerWithDefaults() *ListOrchestrationBatches200ResponseBatchesInner` + +NewListOrchestrationBatches200ResponseBatchesInnerWithDefaults instantiates a new ListOrchestrationBatches200ResponseBatchesInner 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 + +### GetBatchId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetBatchId() string` + +GetBatchId returns the BatchId field if non-nil, zero value otherwise. + +### GetBatchIdOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetBatchIdOk() (*string, bool)` + +GetBatchIdOk returns a tuple with the BatchId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetBatchId(v string)` + +SetBatchId sets BatchId field to given value. + +### HasBatchId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasBatchId() bool` + +HasBatchId returns a boolean if a field has been set. + +### GetOrchestrationId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetOrchestrationId() string` + +GetOrchestrationId returns the OrchestrationId field if non-nil, zero value otherwise. + +### GetOrchestrationIdOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetOrchestrationIdOk() (*string, bool)` + +GetOrchestrationIdOk returns a tuple with the OrchestrationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestrationId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetOrchestrationId(v string)` + +SetOrchestrationId sets OrchestrationId field to given value. + +### HasOrchestrationId + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasOrchestrationId() bool` + +HasOrchestrationId returns a boolean if a field has been set. + +### GetIteration + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetIteration() int32` + +GetIteration returns the Iteration field if non-nil, zero value otherwise. + +### GetIterationOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetIterationOk() (*int32, bool)` + +GetIterationOk returns a tuple with the Iteration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIteration + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetIteration(v int32)` + +SetIteration sets Iteration field to given value. + +### HasIteration + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasIteration() bool` + +HasIteration returns a boolean if a field has been set. + +### GetItemCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetItemCount() int32` + +GetItemCount returns the ItemCount field if non-nil, zero value otherwise. + +### GetItemCountOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetItemCountOk() (*int32, bool)` + +GetItemCountOk returns a tuple with the ItemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetItemCount(v int32)` + +SetItemCount sets ItemCount field to given value. + +### HasItemCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasItemCount() bool` + +HasItemCount returns a boolean if a field has been set. + +### GetCompletedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedCount() int32` + +GetCompletedCount returns the CompletedCount field if non-nil, zero value otherwise. + +### GetCompletedCountOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedCountOk() (*int32, bool)` + +GetCompletedCountOk returns a tuple with the CompletedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetCompletedCount(v int32)` + +SetCompletedCount sets CompletedCount field to given value. + +### HasCompletedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasCompletedCount() bool` + +HasCompletedCount returns a boolean if a field has been set. + +### GetFailedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetFailedCount() int32` + +GetFailedCount returns the FailedCount field if non-nil, zero value otherwise. + +### GetFailedCountOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetFailedCountOk() (*int32, bool)` + +GetFailedCountOk returns a tuple with the FailedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetFailedCount(v int32)` + +SetFailedCount sets FailedCount field to given value. + +### HasFailedCount + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasFailedCount() bool` + +HasFailedCount returns a boolean if a field has been set. + +### GetStatus + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetStartedAt() time.Time` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) SetStartedAt(v time.Time)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetCompletedAt + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedAt() time.Time` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) SetCompletedAt(v time.Time)` + +SetCompletedAt sets CompletedAt field to given value. + +### HasCompletedAt + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasCompletedAt() bool` + +HasCompletedAt returns a boolean if a field has been set. + +### GetError + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *ListOrchestrationBatches200ResponseBatchesInner) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *ListOrchestrationBatches200ResponseBatchesInner) UnsetError()` + +UnsetError ensures that no value is present for Error, 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/ListOrchestrations200Response.md b/docs/ListOrchestrations200Response.md new file mode 100644 index 0000000..36618fb --- /dev/null +++ b/docs/ListOrchestrations200Response.md @@ -0,0 +1,92 @@ +# ListOrchestrations200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Orchestrations** | Pointer to **[]map[string]interface{}** | | [optional] +**NextCursor** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewListOrchestrations200Response + +`func NewListOrchestrations200Response() *ListOrchestrations200Response` + +NewListOrchestrations200Response instantiates a new ListOrchestrations200Response 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 + +### NewListOrchestrations200ResponseWithDefaults + +`func NewListOrchestrations200ResponseWithDefaults() *ListOrchestrations200Response` + +NewListOrchestrations200ResponseWithDefaults instantiates a new ListOrchestrations200Response 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 + +### GetOrchestrations + +`func (o *ListOrchestrations200Response) GetOrchestrations() []map[string]interface{}` + +GetOrchestrations returns the Orchestrations field if non-nil, zero value otherwise. + +### GetOrchestrationsOk + +`func (o *ListOrchestrations200Response) GetOrchestrationsOk() (*[]map[string]interface{}, bool)` + +GetOrchestrationsOk returns a tuple with the Orchestrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrchestrations + +`func (o *ListOrchestrations200Response) SetOrchestrations(v []map[string]interface{})` + +SetOrchestrations sets Orchestrations field to given value. + +### HasOrchestrations + +`func (o *ListOrchestrations200Response) HasOrchestrations() bool` + +HasOrchestrations returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *ListOrchestrations200Response) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *ListOrchestrations200Response) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *ListOrchestrations200Response) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *ListOrchestrations200Response) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### SetNextCursorNil + +`func (o *ListOrchestrations200Response) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *ListOrchestrations200Response) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, 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/OrchestrationAPI.md b/docs/OrchestrationAPI.md index 1d8e3c5..2ddec82 100644 --- a/docs/OrchestrationAPI.md +++ b/docs/OrchestrationAPI.md @@ -4,7 +4,7 @@ All URIs are relative to *https://dashboard.quantcdn.io* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetAIOrchestrationStatus**](OrchestrationAPI.md#GetAIOrchestrationStatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status +[**GetAIOrchestrationStatus**](OrchestrationAPI.md#GetAIOrchestrationStatus) | **Get** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Tool Orchestration Status (Async Tool Polling) @@ -12,7 +12,7 @@ Method | HTTP request | Description > GetAIOrchestrationStatus200Response GetAIOrchestrationStatus(ctx, organisation, orchestrationId).Execute() -Get Orchestration Status +Get Tool Orchestration Status (Async Tool Polling) diff --git a/docs/V2CrawlerSchedule.md b/docs/V2CrawlerSchedule.md index d5a6f92..c438473 100644 --- a/docs/V2CrawlerSchedule.md +++ b/docs/V2CrawlerSchedule.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **CrawlerUuid** | Pointer to **string** | Crawler UUID | [optional] **ProjectId** | **int32** | Project ID | **CrawlerLastRunId** | **int32** | Last run ID | -**ScheduleCronString** | **string** | Cron schedule string | +**ScheduleCronString** | **string** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM. | **CreatedAt** | Pointer to **time.Time** | Creation timestamp | [optional] **UpdatedAt** | Pointer to **time.Time** | Last update timestamp | [optional] diff --git a/docs/V2CrawlerScheduleRequest.md b/docs/V2CrawlerScheduleRequest.md index 4b75d9d..b8bd301 100644 --- a/docs/V2CrawlerScheduleRequest.md +++ b/docs/V2CrawlerScheduleRequest.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | Schedule name | -**ScheduleCronString** | **string** | Cron schedule string | +**Name** | Pointer to **string** | Schedule name. If not provided, defaults to 'Schedule {crawler_name}'. | [optional] +**ScheduleCronString** | **string** | Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM. | ## Methods ### NewV2CrawlerScheduleRequest -`func NewV2CrawlerScheduleRequest(name string, scheduleCronString string, ) *V2CrawlerScheduleRequest` +`func NewV2CrawlerScheduleRequest(scheduleCronString string, ) *V2CrawlerScheduleRequest` NewV2CrawlerScheduleRequest instantiates a new V2CrawlerScheduleRequest object This constructor will assign default values to properties that have it defined, @@ -45,6 +45,11 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### HasName + +`func (o *V2CrawlerScheduleRequest) HasName() bool` + +HasName returns a boolean if a field has been set. ### GetScheduleCronString diff --git a/docs/V2MetricData.md b/docs/V2MetricData.md new file mode 100644 index 0000000..bb9d85d --- /dev/null +++ b/docs/V2MetricData.md @@ -0,0 +1,114 @@ +# V2MetricData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Series** | [**[]V2MetricDataPoint**](V2MetricDataPoint.md) | Time series data points | +**PeriodTotal** | **float32** | Total value for the period | +**AllTimeTotal** | **float32** | All-time total value | +**PeriodAverage** | **float32** | Average value per time unit in the period | + +## Methods + +### NewV2MetricData + +`func NewV2MetricData(series []V2MetricDataPoint, periodTotal float32, allTimeTotal float32, periodAverage float32, ) *V2MetricData` + +NewV2MetricData instantiates a new V2MetricData 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 + +### NewV2MetricDataWithDefaults + +`func NewV2MetricDataWithDefaults() *V2MetricData` + +NewV2MetricDataWithDefaults instantiates a new V2MetricData 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 + +### GetSeries + +`func (o *V2MetricData) GetSeries() []V2MetricDataPoint` + +GetSeries returns the Series field if non-nil, zero value otherwise. + +### GetSeriesOk + +`func (o *V2MetricData) GetSeriesOk() (*[]V2MetricDataPoint, bool)` + +GetSeriesOk returns a tuple with the Series field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeries + +`func (o *V2MetricData) SetSeries(v []V2MetricDataPoint)` + +SetSeries sets Series field to given value. + + +### GetPeriodTotal + +`func (o *V2MetricData) GetPeriodTotal() float32` + +GetPeriodTotal returns the PeriodTotal field if non-nil, zero value otherwise. + +### GetPeriodTotalOk + +`func (o *V2MetricData) GetPeriodTotalOk() (*float32, bool)` + +GetPeriodTotalOk returns a tuple with the PeriodTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeriodTotal + +`func (o *V2MetricData) SetPeriodTotal(v float32)` + +SetPeriodTotal sets PeriodTotal field to given value. + + +### GetAllTimeTotal + +`func (o *V2MetricData) GetAllTimeTotal() float32` + +GetAllTimeTotal returns the AllTimeTotal field if non-nil, zero value otherwise. + +### GetAllTimeTotalOk + +`func (o *V2MetricData) GetAllTimeTotalOk() (*float32, bool)` + +GetAllTimeTotalOk returns a tuple with the AllTimeTotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllTimeTotal + +`func (o *V2MetricData) SetAllTimeTotal(v float32)` + +SetAllTimeTotal sets AllTimeTotal field to given value. + + +### GetPeriodAverage + +`func (o *V2MetricData) GetPeriodAverage() float32` + +GetPeriodAverage returns the PeriodAverage field if non-nil, zero value otherwise. + +### GetPeriodAverageOk + +`func (o *V2MetricData) GetPeriodAverageOk() (*float32, bool)` + +GetPeriodAverageOk returns a tuple with the PeriodAverage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeriodAverage + +`func (o *V2MetricData) SetPeriodAverage(v float32)` + +SetPeriodAverage sets PeriodAverage 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/V2MetricDataPoint.md b/docs/V2MetricDataPoint.md new file mode 100644 index 0000000..ff1f95f --- /dev/null +++ b/docs/V2MetricDataPoint.md @@ -0,0 +1,72 @@ +# V2MetricDataPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | [**V2MetricDataPointTimestamp**](V2MetricDataPointTimestamp.md) | | +**Value** | **float32** | Metric value at this timestamp | + +## Methods + +### NewV2MetricDataPoint + +`func NewV2MetricDataPoint(timestamp V2MetricDataPointTimestamp, value float32, ) *V2MetricDataPoint` + +NewV2MetricDataPoint instantiates a new V2MetricDataPoint 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 + +### NewV2MetricDataPointWithDefaults + +`func NewV2MetricDataPointWithDefaults() *V2MetricDataPoint` + +NewV2MetricDataPointWithDefaults instantiates a new V2MetricDataPoint 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 + +### GetTimestamp + +`func (o *V2MetricDataPoint) GetTimestamp() V2MetricDataPointTimestamp` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *V2MetricDataPoint) GetTimestampOk() (*V2MetricDataPointTimestamp, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *V2MetricDataPoint) SetTimestamp(v V2MetricDataPointTimestamp)` + +SetTimestamp sets Timestamp field to given value. + + +### GetValue + +`func (o *V2MetricDataPoint) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V2MetricDataPoint) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V2MetricDataPoint) SetValue(v float32)` + +SetValue sets Value 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/V2MetricDataPointTimestamp.md b/docs/V2MetricDataPointTimestamp.md new file mode 100644 index 0000000..4fe479d --- /dev/null +++ b/docs/V2MetricDataPointTimestamp.md @@ -0,0 +1,30 @@ +# V2MetricDataPointTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewV2MetricDataPointTimestamp + +`func NewV2MetricDataPointTimestamp() *V2MetricDataPointTimestamp` + +NewV2MetricDataPointTimestamp instantiates a new V2MetricDataPointTimestamp 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 + +### NewV2MetricDataPointTimestampWithDefaults + +`func NewV2MetricDataPointTimestampWithDefaults() *V2MetricDataPointTimestamp` + +NewV2MetricDataPointTimestampWithDefaults instantiates a new V2MetricDataPointTimestamp 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 + + +[[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/V2MetricsMeta.md b/docs/V2MetricsMeta.md new file mode 100644 index 0000000..97a1a90 --- /dev/null +++ b/docs/V2MetricsMeta.md @@ -0,0 +1,171 @@ +# V2MetricsMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Period** | **string** | The period type for this data | +**Granularity** | **string** | The granularity of data points | +**StartTime** | **string** | Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**EndTime** | **string** | End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) | +**Metrics** | **[]string** | List of metrics included in the response | +**Domain** | Pointer to **NullableString** | Domain filter applied (if any) | [optional] + +## Methods + +### NewV2MetricsMeta + +`func NewV2MetricsMeta(period string, granularity string, startTime string, endTime string, metrics []string, ) *V2MetricsMeta` + +NewV2MetricsMeta instantiates a new V2MetricsMeta 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 + +### NewV2MetricsMetaWithDefaults + +`func NewV2MetricsMetaWithDefaults() *V2MetricsMeta` + +NewV2MetricsMetaWithDefaults instantiates a new V2MetricsMeta 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 + +### GetPeriod + +`func (o *V2MetricsMeta) GetPeriod() string` + +GetPeriod returns the Period field if non-nil, zero value otherwise. + +### GetPeriodOk + +`func (o *V2MetricsMeta) GetPeriodOk() (*string, bool)` + +GetPeriodOk returns a tuple with the Period field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeriod + +`func (o *V2MetricsMeta) SetPeriod(v string)` + +SetPeriod sets Period field to given value. + + +### GetGranularity + +`func (o *V2MetricsMeta) GetGranularity() string` + +GetGranularity returns the Granularity field if non-nil, zero value otherwise. + +### GetGranularityOk + +`func (o *V2MetricsMeta) GetGranularityOk() (*string, bool)` + +GetGranularityOk returns a tuple with the Granularity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGranularity + +`func (o *V2MetricsMeta) SetGranularity(v string)` + +SetGranularity sets Granularity field to given value. + + +### GetStartTime + +`func (o *V2MetricsMeta) GetStartTime() string` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *V2MetricsMeta) GetStartTimeOk() (*string, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *V2MetricsMeta) SetStartTime(v string)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *V2MetricsMeta) GetEndTime() string` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *V2MetricsMeta) GetEndTimeOk() (*string, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *V2MetricsMeta) SetEndTime(v string)` + +SetEndTime sets EndTime field to given value. + + +### GetMetrics + +`func (o *V2MetricsMeta) GetMetrics() []string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *V2MetricsMeta) GetMetricsOk() (*[]string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *V2MetricsMeta) SetMetrics(v []string)` + +SetMetrics sets Metrics field to given value. + + +### GetDomain + +`func (o *V2MetricsMeta) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *V2MetricsMeta) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *V2MetricsMeta) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *V2MetricsMeta) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### SetDomainNil + +`func (o *V2MetricsMeta) SetDomainNil(b bool)` + + SetDomainNil sets the value for Domain to be an explicit nil + +### UnsetDomain +`func (o *V2MetricsMeta) UnsetDomain()` + +UnsetDomain ensures that no value is present for Domain, 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/V2MetricsResponse.md b/docs/V2MetricsResponse.md new file mode 100644 index 0000000..925be98 --- /dev/null +++ b/docs/V2MetricsResponse.md @@ -0,0 +1,72 @@ +# V2MetricsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**V2MetricsMeta**](V2MetricsMeta.md) | | +**Data** | [**map[string]V2MetricData**](V2MetricData.md) | Metrics data keyed by metric name | + +## Methods + +### NewV2MetricsResponse + +`func NewV2MetricsResponse(meta V2MetricsMeta, data map[string]V2MetricData, ) *V2MetricsResponse` + +NewV2MetricsResponse instantiates a new V2MetricsResponse 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 + +### NewV2MetricsResponseWithDefaults + +`func NewV2MetricsResponseWithDefaults() *V2MetricsResponse` + +NewV2MetricsResponseWithDefaults instantiates a new V2MetricsResponse 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 + +### GetMeta + +`func (o *V2MetricsResponse) GetMeta() V2MetricsMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *V2MetricsResponse) GetMetaOk() (*V2MetricsMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *V2MetricsResponse) SetMeta(v V2MetricsMeta)` + +SetMeta sets Meta field to given value. + + +### GetData + +`func (o *V2MetricsResponse) GetData() map[string]V2MetricData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V2MetricsResponse) GetDataOk() (*map[string]V2MetricData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *V2MetricsResponse) SetData(v map[string]V2MetricData)` + +SetData sets Data 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/model_application.go b/model_application.go index f012329..0dee5bb 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.9.0 +API version: 4.10.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 f39afc8..f1450ee 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.9.0 +API version: 4.10.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 8ec647c..11795d8 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_application_environments_inner.go b/model_application_environments_inner.go index 9f5a8f5..07d8694 100644 --- a/model_application_environments_inner.go +++ b/model_application_environments_inner.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.9.0 +API version: 4.10.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 e4f5001..7ed481a 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.9.0 +API version: 4.10.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 4f50043..dbc7bb9 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.9.0 +API version: 4.10.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 5e705a1..10bdfb0 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.9.0 +API version: 4.10.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 2787c60..28aa6f3 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.9.0 +API version: 4.10.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 2c26114..6214efc 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.9.0 +API version: 4.10.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 77bbbdd..bf4045d 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.9.0 +API version: 4.10.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 4493e95..c086484 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.9.0 +API version: 4.10.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 ca51a08..f7087d3 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.9.0 +API version: 4.10.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 15e7c96..611661a 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.9.0 +API version: 4.10.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 74f7cc2..694751f 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.9.0 +API version: 4.10.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 e3ec5ba..6f1220b 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.9.0 +API version: 4.10.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 c45e78b..11fd1da 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.9.0 +API version: 4.10.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 8bb19a0..07bf42b 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,6 +40,9 @@ type ChatInferenceRequest struct { SessionId *string `json:"sessionId,omitempty"` // Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. Async *bool `json:"async,omitempty"` + // Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. + AllowedTools []string `json:"allowedTools,omitempty"` + Guardrails *ChatInferenceRequestGuardrails `json:"guardrails,omitempty"` AdditionalProperties map[string]interface{} } @@ -444,6 +447,70 @@ func (o *ChatInferenceRequest) SetAsync(v bool) { o.Async = &v } +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *ChatInferenceRequest) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequest) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *ChatInferenceRequest) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *ChatInferenceRequest) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetGuardrails returns the Guardrails field value if set, zero value otherwise. +func (o *ChatInferenceRequest) GetGuardrails() ChatInferenceRequestGuardrails { + if o == nil || IsNil(o.Guardrails) { + var ret ChatInferenceRequestGuardrails + return ret + } + return *o.Guardrails +} + +// GetGuardrailsOk returns a tuple with the Guardrails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequest) GetGuardrailsOk() (*ChatInferenceRequestGuardrails, bool) { + if o == nil || IsNil(o.Guardrails) { + return nil, false + } + return o.Guardrails, true +} + +// HasGuardrails returns a boolean if a field has been set. +func (o *ChatInferenceRequest) HasGuardrails() bool { + if o != nil && !IsNil(o.Guardrails) { + return true + } + + return false +} + +// SetGuardrails gets a reference to the given ChatInferenceRequestGuardrails and assigns it to the Guardrails field. +func (o *ChatInferenceRequest) SetGuardrails(v ChatInferenceRequestGuardrails) { + o.Guardrails = &v +} + func (o ChatInferenceRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -486,6 +553,12 @@ func (o ChatInferenceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Async) { toSerialize["async"] = o.Async } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.Guardrails) { + toSerialize["guardrails"] = o.Guardrails + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -542,6 +615,8 @@ func (o *ChatInferenceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "toolConfig") delete(additionalProperties, "sessionId") delete(additionalProperties, "async") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "guardrails") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_request_guardrails.go b/model_chat_inference_request_guardrails.go new file mode 100644 index 0000000..1f40882 --- /dev/null +++ b/model_chat_inference_request_guardrails.go @@ -0,0 +1,232 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ChatInferenceRequestGuardrails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChatInferenceRequestGuardrails{} + +// ChatInferenceRequestGuardrails AWS Bedrock guardrails configuration for content filtering and safety. +type ChatInferenceRequestGuardrails struct { + // Guardrail identifier from AWS Bedrock + GuardrailIdentifier *string `json:"guardrailIdentifier,omitempty"` + // Guardrail version + GuardrailVersion *string `json:"guardrailVersion,omitempty"` + // Enable guardrail trace output + Trace *string `json:"trace,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ChatInferenceRequestGuardrails ChatInferenceRequestGuardrails + +// NewChatInferenceRequestGuardrails instantiates a new ChatInferenceRequestGuardrails 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 NewChatInferenceRequestGuardrails() *ChatInferenceRequestGuardrails { + this := ChatInferenceRequestGuardrails{} + return &this +} + +// NewChatInferenceRequestGuardrailsWithDefaults instantiates a new ChatInferenceRequestGuardrails 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 NewChatInferenceRequestGuardrailsWithDefaults() *ChatInferenceRequestGuardrails { + this := ChatInferenceRequestGuardrails{} + return &this +} + +// GetGuardrailIdentifier returns the GuardrailIdentifier field value if set, zero value otherwise. +func (o *ChatInferenceRequestGuardrails) GetGuardrailIdentifier() string { + if o == nil || IsNil(o.GuardrailIdentifier) { + var ret string + return ret + } + return *o.GuardrailIdentifier +} + +// GetGuardrailIdentifierOk returns a tuple with the GuardrailIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequestGuardrails) GetGuardrailIdentifierOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailIdentifier) { + return nil, false + } + return o.GuardrailIdentifier, true +} + +// HasGuardrailIdentifier returns a boolean if a field has been set. +func (o *ChatInferenceRequestGuardrails) HasGuardrailIdentifier() bool { + if o != nil && !IsNil(o.GuardrailIdentifier) { + return true + } + + return false +} + +// SetGuardrailIdentifier gets a reference to the given string and assigns it to the GuardrailIdentifier field. +func (o *ChatInferenceRequestGuardrails) SetGuardrailIdentifier(v string) { + o.GuardrailIdentifier = &v +} + +// GetGuardrailVersion returns the GuardrailVersion field value if set, zero value otherwise. +func (o *ChatInferenceRequestGuardrails) GetGuardrailVersion() string { + if o == nil || IsNil(o.GuardrailVersion) { + var ret string + return ret + } + return *o.GuardrailVersion +} + +// GetGuardrailVersionOk returns a tuple with the GuardrailVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequestGuardrails) GetGuardrailVersionOk() (*string, bool) { + if o == nil || IsNil(o.GuardrailVersion) { + return nil, false + } + return o.GuardrailVersion, true +} + +// HasGuardrailVersion returns a boolean if a field has been set. +func (o *ChatInferenceRequestGuardrails) HasGuardrailVersion() bool { + if o != nil && !IsNil(o.GuardrailVersion) { + return true + } + + return false +} + +// SetGuardrailVersion gets a reference to the given string and assigns it to the GuardrailVersion field. +func (o *ChatInferenceRequestGuardrails) SetGuardrailVersion(v string) { + o.GuardrailVersion = &v +} + +// GetTrace returns the Trace field value if set, zero value otherwise. +func (o *ChatInferenceRequestGuardrails) GetTrace() string { + if o == nil || IsNil(o.Trace) { + var ret string + return ret + } + return *o.Trace +} + +// GetTraceOk returns a tuple with the Trace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequestGuardrails) GetTraceOk() (*string, bool) { + if o == nil || IsNil(o.Trace) { + return nil, false + } + return o.Trace, true +} + +// HasTrace returns a boolean if a field has been set. +func (o *ChatInferenceRequestGuardrails) HasTrace() bool { + if o != nil && !IsNil(o.Trace) { + return true + } + + return false +} + +// SetTrace gets a reference to the given string and assigns it to the Trace field. +func (o *ChatInferenceRequestGuardrails) SetTrace(v string) { + o.Trace = &v +} + +func (o ChatInferenceRequestGuardrails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChatInferenceRequestGuardrails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.GuardrailIdentifier) { + toSerialize["guardrailIdentifier"] = o.GuardrailIdentifier + } + if !IsNil(o.GuardrailVersion) { + toSerialize["guardrailVersion"] = o.GuardrailVersion + } + if !IsNil(o.Trace) { + toSerialize["trace"] = o.Trace + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ChatInferenceRequestGuardrails) UnmarshalJSON(data []byte) (err error) { + varChatInferenceRequestGuardrails := _ChatInferenceRequestGuardrails{} + + err = json.Unmarshal(data, &varChatInferenceRequestGuardrails) + + if err != nil { + return err + } + + *o = ChatInferenceRequestGuardrails(varChatInferenceRequestGuardrails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "guardrailIdentifier") + delete(additionalProperties, "guardrailVersion") + delete(additionalProperties, "trace") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableChatInferenceRequestGuardrails struct { + value *ChatInferenceRequestGuardrails + isSet bool +} + +func (v NullableChatInferenceRequestGuardrails) Get() *ChatInferenceRequestGuardrails { + return v.value +} + +func (v *NullableChatInferenceRequestGuardrails) Set(val *ChatInferenceRequestGuardrails) { + v.value = val + v.isSet = true +} + +func (v NullableChatInferenceRequestGuardrails) IsSet() bool { + return v.isSet +} + +func (v *NullableChatInferenceRequestGuardrails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChatInferenceRequestGuardrails(val *ChatInferenceRequestGuardrails) *NullableChatInferenceRequestGuardrails { + return &NullableChatInferenceRequestGuardrails{value: val, isSet: true} +} + +func (v NullableChatInferenceRequestGuardrails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChatInferenceRequestGuardrails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_chat_inference_request_messages_inner.go b/model_chat_inference_request_messages_inner.go index dd5ba4a..0257096 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.9.0 +API version: 4.10.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 81b9f43..080b7c0 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.9.0 +API version: 4.10.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 2e65e0b..d729570 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.9.0 +API version: 4.10.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 84613ed..058ad70 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.9.0 +API version: 4.10.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 a4ff71b..1ffdab1 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.9.0 +API version: 4.10.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 feaaaeb..d8e78aa 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.9.0 +API version: 4.10.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 715b43e..a18df7f 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.9.0 +API version: 4.10.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 1119eac..d42e516 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.9.0 +API version: 4.10.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 e7d4175..9a50347 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.9.0 +API version: 4.10.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 faa51f9..67a09ed 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.9.0 +API version: 4.10.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 ff1d381..242b108 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.9.0 +API version: 4.10.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 979b7a6..968a093 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.9.0 +API version: 4.10.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 6f1450e..d3295b2 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.9.0 +API version: 4.10.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 dae47d6..9525240 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.9.0 +API version: 4.10.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 d287236..087c738 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.9.0 +API version: 4.10.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 970a467..9cd471d 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.9.0 +API version: 4.10.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 0b22b3a..ba55762 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.9.0 +API version: 4.10.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 cc83ec7..b6017c7 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.9.0 +API version: 4.10.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 ff6a853..e6aa4b3 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,6 +38,9 @@ type ChatInferenceStreamRequest struct { SessionId *string `json:"sessionId,omitempty"` // Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. Async *bool `json:"async,omitempty"` + // Top-level convenience alias for toolConfig.allowedTools. Whitelists which tools can be auto-executed. + AllowedTools []string `json:"allowedTools,omitempty"` + Guardrails *ChatInferenceRequestGuardrails `json:"guardrails,omitempty"` AdditionalProperties map[string]interface{} } @@ -410,6 +413,70 @@ func (o *ChatInferenceStreamRequest) SetAsync(v bool) { o.Async = &v } +// GetAllowedTools returns the AllowedTools field value if set, zero value otherwise. +func (o *ChatInferenceStreamRequest) GetAllowedTools() []string { + if o == nil || IsNil(o.AllowedTools) { + var ret []string + return ret + } + return o.AllowedTools +} + +// GetAllowedToolsOk returns a tuple with the AllowedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceStreamRequest) GetAllowedToolsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowedTools) { + return nil, false + } + return o.AllowedTools, true +} + +// HasAllowedTools returns a boolean if a field has been set. +func (o *ChatInferenceStreamRequest) HasAllowedTools() bool { + if o != nil && !IsNil(o.AllowedTools) { + return true + } + + return false +} + +// SetAllowedTools gets a reference to the given []string and assigns it to the AllowedTools field. +func (o *ChatInferenceStreamRequest) SetAllowedTools(v []string) { + o.AllowedTools = v +} + +// GetGuardrails returns the Guardrails field value if set, zero value otherwise. +func (o *ChatInferenceStreamRequest) GetGuardrails() ChatInferenceRequestGuardrails { + if o == nil || IsNil(o.Guardrails) { + var ret ChatInferenceRequestGuardrails + return ret + } + return *o.Guardrails +} + +// GetGuardrailsOk returns a tuple with the Guardrails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceStreamRequest) GetGuardrailsOk() (*ChatInferenceRequestGuardrails, bool) { + if o == nil || IsNil(o.Guardrails) { + return nil, false + } + return o.Guardrails, true +} + +// HasGuardrails returns a boolean if a field has been set. +func (o *ChatInferenceStreamRequest) HasGuardrails() bool { + if o != nil && !IsNil(o.Guardrails) { + return true + } + + return false +} + +// SetGuardrails gets a reference to the given ChatInferenceRequestGuardrails and assigns it to the Guardrails field. +func (o *ChatInferenceStreamRequest) SetGuardrails(v ChatInferenceRequestGuardrails) { + o.Guardrails = &v +} + func (o ChatInferenceStreamRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -449,6 +516,12 @@ func (o ChatInferenceStreamRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Async) { toSerialize["async"] = o.Async } + if !IsNil(o.AllowedTools) { + toSerialize["allowedTools"] = o.AllowedTools + } + if !IsNil(o.Guardrails) { + toSerialize["guardrails"] = o.Guardrails + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -504,6 +577,8 @@ func (o *ChatInferenceStreamRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "toolConfig") delete(additionalProperties, "sessionId") delete(additionalProperties, "async") + delete(additionalProperties, "allowedTools") + delete(additionalProperties, "guardrails") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_stream_request_messages_inner.go b/model_chat_inference_stream_request_messages_inner.go index 95165c4..090ebe6 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.9.0 +API version: 4.10.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 e65500d..9479ee0 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.9.0 +API version: 4.10.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 f064491..f044519 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.9.0 +API version: 4.10.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 13fd18f..1b31755 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.9.0 +API version: 4.10.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 bde77ee..5e02550 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.9.0 +API version: 4.10.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 009c556..e3c5668 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.9.0 +API version: 4.10.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 d174a50..c354c27 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_command.go b/model_command.go index 01eba9f..2a69a0e 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_compose.go b/model_compose.go index 0b153e4..0b62aae 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container.go b/model_container.go index fd08cf1..a9948f9 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.9.0 +API version: 4.10.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 f16a972..c6af8c0 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.9.0 +API version: 4.10.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 f77907e..6963a18 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.9.0 +API version: 4.10.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 46228e0..cc15c83 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.9.0 +API version: 4.10.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 920c145..881553d 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.9.0 +API version: 4.10.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 698002e..ba5e2c9 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.9.0 +API version: 4.10.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 900de2d..6ce1f5c 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.9.0 +API version: 4.10.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 e29e0e1..0161ab4 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.9.0 +API version: 4.10.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 e3e03f2..68c74ee 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.9.0 +API version: 4.10.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 56153aa..7f4aafb 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.9.0 +API version: 4.10.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 9fc6658..7605336 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.9.0 +API version: 4.10.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 3dbe991..0bef32d 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_ai_session_201_response.go b/model_create_ai_session_201_response.go index ee3e659..bda3ec4 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.9.0 +API version: 4.10.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 1515efb..301be7f 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.9.0 +API version: 4.10.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 66a4d2d..5e592e9 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.9.0 +API version: 4.10.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 7fe2849..6e3dffe 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.9.0 +API version: 4.10.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 fae1ab6..37e9691 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.9.0 +API version: 4.10.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 a5d221d..eb85911 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.9.0 +API version: 4.10.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 6f4e0a7..a7871da 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.9.0 +API version: 4.10.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 fd95e2d..f19c550 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.9.0 +API version: 4.10.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 852eaa9..6213fb6 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.9.0 +API version: 4.10.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 266d538..642a462 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.9.0 +API version: 4.10.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 1436627..e7dcef1 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.9.0 +API version: 4.10.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 cec550a..a52e9e3 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.9.0 +API version: 4.10.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 10697c3..8d0d60c 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.9.0 +API version: 4.10.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 097aa93..61399df 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_environment_403_response.go b/model_create_environment_403_response.go index 6ae6745..ef98fad 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.9.0 +API version: 4.10.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 996b2ad..1b41c14 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.9.0 +API version: 4.10.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 e7f72db..04a1e90 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..a964779 --- /dev/null +++ b/model_create_orchestration_request.go @@ -0,0 +1,591 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateOrchestrationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrchestrationRequest{} + +// CreateOrchestrationRequest struct for CreateOrchestrationRequest +type CreateOrchestrationRequest struct { + // Orchestration name + Name string `json:"name"` + // Optional description + Description NullableString `json:"description,omitempty"` + // Agent to process items + AgentId NullableString `json:"agentId,omitempty"` + // Tool to execute for items + ToolId NullableString `json:"toolId,omitempty"` + // Workflow to run for items + WorkflowId NullableString `json:"workflowId,omitempty"` + InputSource CreateOrchestrationRequestInputSource `json:"inputSource"` + // Items per batch + BatchSize *int32 `json:"batchSize,omitempty"` + // Concurrent items within a batch + Concurrency *int32 `json:"concurrency,omitempty"` + StopCondition *CreateOrchestrationRequestStopCondition `json:"stopCondition,omitempty"` + // Skill IDs to assign + AssignedSkills []string `json:"assignedSkills,omitempty"` + // Whether to start immediately + AutoStart *bool `json:"autoStart,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateOrchestrationRequest CreateOrchestrationRequest + +// NewCreateOrchestrationRequest instantiates a new CreateOrchestrationRequest 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 NewCreateOrchestrationRequest(name string, inputSource CreateOrchestrationRequestInputSource) *CreateOrchestrationRequest { + this := CreateOrchestrationRequest{} + this.Name = name + this.InputSource = inputSource + var batchSize int32 = 10 + this.BatchSize = &batchSize + var concurrency int32 = 1 + this.Concurrency = &concurrency + var autoStart bool = true + this.AutoStart = &autoStart + return &this +} + +// NewCreateOrchestrationRequestWithDefaults instantiates a new CreateOrchestrationRequest 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 NewCreateOrchestrationRequestWithDefaults() *CreateOrchestrationRequest { + this := CreateOrchestrationRequest{} + var batchSize int32 = 10 + this.BatchSize = &batchSize + var concurrency int32 = 1 + this.Concurrency = &concurrency + var autoStart bool = true + this.AutoStart = &autoStart + return &this +} + +// GetName returns the Name field value +func (o *CreateOrchestrationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateOrchestrationRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrchestrationRequest) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description 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 *CreateOrchestrationRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *CreateOrchestrationRequest) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *CreateOrchestrationRequest) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *CreateOrchestrationRequest) UnsetDescription() { + o.Description.Unset() +} + +// GetAgentId returns the AgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrchestrationRequest) GetAgentId() string { + if o == nil || IsNil(o.AgentId.Get()) { + var ret string + return ret + } + return *o.AgentId.Get() +} + +// GetAgentIdOk returns a tuple with the AgentId 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 *CreateOrchestrationRequest) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AgentId.Get(), o.AgentId.IsSet() +} + +// HasAgentId returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasAgentId() bool { + if o != nil && o.AgentId.IsSet() { + return true + } + + return false +} + +// SetAgentId gets a reference to the given NullableString and assigns it to the AgentId field. +func (o *CreateOrchestrationRequest) SetAgentId(v string) { + o.AgentId.Set(&v) +} +// SetAgentIdNil sets the value for AgentId to be an explicit nil +func (o *CreateOrchestrationRequest) SetAgentIdNil() { + o.AgentId.Set(nil) +} + +// UnsetAgentId ensures that no value is present for AgentId, not even an explicit nil +func (o *CreateOrchestrationRequest) UnsetAgentId() { + o.AgentId.Unset() +} + +// GetToolId returns the ToolId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrchestrationRequest) GetToolId() string { + if o == nil || IsNil(o.ToolId.Get()) { + var ret string + return ret + } + return *o.ToolId.Get() +} + +// GetToolIdOk returns a tuple with the ToolId 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 *CreateOrchestrationRequest) GetToolIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ToolId.Get(), o.ToolId.IsSet() +} + +// HasToolId returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasToolId() bool { + if o != nil && o.ToolId.IsSet() { + return true + } + + return false +} + +// SetToolId gets a reference to the given NullableString and assigns it to the ToolId field. +func (o *CreateOrchestrationRequest) SetToolId(v string) { + o.ToolId.Set(&v) +} +// SetToolIdNil sets the value for ToolId to be an explicit nil +func (o *CreateOrchestrationRequest) SetToolIdNil() { + o.ToolId.Set(nil) +} + +// UnsetToolId ensures that no value is present for ToolId, not even an explicit nil +func (o *CreateOrchestrationRequest) UnsetToolId() { + o.ToolId.Unset() +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateOrchestrationRequest) GetWorkflowId() string { + if o == nil || IsNil(o.WorkflowId.Get()) { + var ret string + return ret + } + return *o.WorkflowId.Get() +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId 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 *CreateOrchestrationRequest) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WorkflowId.Get(), o.WorkflowId.IsSet() +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasWorkflowId() bool { + if o != nil && o.WorkflowId.IsSet() { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given NullableString and assigns it to the WorkflowId field. +func (o *CreateOrchestrationRequest) SetWorkflowId(v string) { + o.WorkflowId.Set(&v) +} +// SetWorkflowIdNil sets the value for WorkflowId to be an explicit nil +func (o *CreateOrchestrationRequest) SetWorkflowIdNil() { + o.WorkflowId.Set(nil) +} + +// UnsetWorkflowId ensures that no value is present for WorkflowId, not even an explicit nil +func (o *CreateOrchestrationRequest) UnsetWorkflowId() { + o.WorkflowId.Unset() +} + +// GetInputSource returns the InputSource field value +func (o *CreateOrchestrationRequest) GetInputSource() CreateOrchestrationRequestInputSource { + if o == nil { + var ret CreateOrchestrationRequestInputSource + return ret + } + + return o.InputSource +} + +// GetInputSourceOk returns a tuple with the InputSource field value +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetInputSourceOk() (*CreateOrchestrationRequestInputSource, bool) { + if o == nil { + return nil, false + } + return &o.InputSource, true +} + +// SetInputSource sets field value +func (o *CreateOrchestrationRequest) SetInputSource(v CreateOrchestrationRequestInputSource) { + o.InputSource = v +} + +// GetBatchSize returns the BatchSize field value if set, zero value otherwise. +func (o *CreateOrchestrationRequest) GetBatchSize() int32 { + if o == nil || IsNil(o.BatchSize) { + var ret int32 + return ret + } + return *o.BatchSize +} + +// GetBatchSizeOk returns a tuple with the BatchSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetBatchSizeOk() (*int32, bool) { + if o == nil || IsNil(o.BatchSize) { + return nil, false + } + return o.BatchSize, true +} + +// HasBatchSize returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasBatchSize() bool { + if o != nil && !IsNil(o.BatchSize) { + return true + } + + return false +} + +// SetBatchSize gets a reference to the given int32 and assigns it to the BatchSize field. +func (o *CreateOrchestrationRequest) SetBatchSize(v int32) { + o.BatchSize = &v +} + +// GetConcurrency returns the Concurrency field value if set, zero value otherwise. +func (o *CreateOrchestrationRequest) GetConcurrency() int32 { + if o == nil || IsNil(o.Concurrency) { + var ret int32 + return ret + } + return *o.Concurrency +} + +// GetConcurrencyOk returns a tuple with the Concurrency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetConcurrencyOk() (*int32, bool) { + if o == nil || IsNil(o.Concurrency) { + return nil, false + } + return o.Concurrency, true +} + +// HasConcurrency returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasConcurrency() bool { + if o != nil && !IsNil(o.Concurrency) { + return true + } + + return false +} + +// SetConcurrency gets a reference to the given int32 and assigns it to the Concurrency field. +func (o *CreateOrchestrationRequest) SetConcurrency(v int32) { + o.Concurrency = &v +} + +// GetStopCondition returns the StopCondition field value if set, zero value otherwise. +func (o *CreateOrchestrationRequest) GetStopCondition() CreateOrchestrationRequestStopCondition { + if o == nil || IsNil(o.StopCondition) { + var ret CreateOrchestrationRequestStopCondition + return ret + } + return *o.StopCondition +} + +// GetStopConditionOk returns a tuple with the StopCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetStopConditionOk() (*CreateOrchestrationRequestStopCondition, bool) { + if o == nil || IsNil(o.StopCondition) { + return nil, false + } + return o.StopCondition, true +} + +// HasStopCondition returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasStopCondition() bool { + if o != nil && !IsNil(o.StopCondition) { + return true + } + + return false +} + +// SetStopCondition gets a reference to the given CreateOrchestrationRequestStopCondition and assigns it to the StopCondition field. +func (o *CreateOrchestrationRequest) SetStopCondition(v CreateOrchestrationRequestStopCondition) { + o.StopCondition = &v +} + +// GetAssignedSkills returns the AssignedSkills field value if set, zero value otherwise. +func (o *CreateOrchestrationRequest) GetAssignedSkills() []string { + if o == nil || IsNil(o.AssignedSkills) { + var ret []string + return ret + } + return o.AssignedSkills +} + +// GetAssignedSkillsOk returns a tuple with the AssignedSkills field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetAssignedSkillsOk() ([]string, bool) { + if o == nil || IsNil(o.AssignedSkills) { + return nil, false + } + return o.AssignedSkills, true +} + +// HasAssignedSkills returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasAssignedSkills() bool { + if o != nil && !IsNil(o.AssignedSkills) { + return true + } + + return false +} + +// SetAssignedSkills gets a reference to the given []string and assigns it to the AssignedSkills field. +func (o *CreateOrchestrationRequest) SetAssignedSkills(v []string) { + o.AssignedSkills = v +} + +// GetAutoStart returns the AutoStart field value if set, zero value otherwise. +func (o *CreateOrchestrationRequest) GetAutoStart() bool { + if o == nil || IsNil(o.AutoStart) { + var ret bool + return ret + } + return *o.AutoStart +} + +// GetAutoStartOk returns a tuple with the AutoStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequest) GetAutoStartOk() (*bool, bool) { + if o == nil || IsNil(o.AutoStart) { + return nil, false + } + return o.AutoStart, true +} + +// HasAutoStart returns a boolean if a field has been set. +func (o *CreateOrchestrationRequest) HasAutoStart() bool { + if o != nil && !IsNil(o.AutoStart) { + return true + } + + return false +} + +// SetAutoStart gets a reference to the given bool and assigns it to the AutoStart field. +func (o *CreateOrchestrationRequest) SetAutoStart(v bool) { + o.AutoStart = &v +} + +func (o CreateOrchestrationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrchestrationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if o.AgentId.IsSet() { + toSerialize["agentId"] = o.AgentId.Get() + } + if o.ToolId.IsSet() { + toSerialize["toolId"] = o.ToolId.Get() + } + if o.WorkflowId.IsSet() { + toSerialize["workflowId"] = o.WorkflowId.Get() + } + toSerialize["inputSource"] = o.InputSource + if !IsNil(o.BatchSize) { + toSerialize["batchSize"] = o.BatchSize + } + if !IsNil(o.Concurrency) { + toSerialize["concurrency"] = o.Concurrency + } + if !IsNil(o.StopCondition) { + toSerialize["stopCondition"] = o.StopCondition + } + if !IsNil(o.AssignedSkills) { + toSerialize["assignedSkills"] = o.AssignedSkills + } + if !IsNil(o.AutoStart) { + toSerialize["autoStart"] = o.AutoStart + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateOrchestrationRequest) 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{ + "name", + "inputSource", + } + + 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) + } + } + + varCreateOrchestrationRequest := _CreateOrchestrationRequest{} + + err = json.Unmarshal(data, &varCreateOrchestrationRequest) + + if err != nil { + return err + } + + *o = CreateOrchestrationRequest(varCreateOrchestrationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "agentId") + delete(additionalProperties, "toolId") + delete(additionalProperties, "workflowId") + delete(additionalProperties, "inputSource") + delete(additionalProperties, "batchSize") + delete(additionalProperties, "concurrency") + delete(additionalProperties, "stopCondition") + delete(additionalProperties, "assignedSkills") + delete(additionalProperties, "autoStart") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateOrchestrationRequest struct { + value *CreateOrchestrationRequest + isSet bool +} + +func (v NullableCreateOrchestrationRequest) Get() *CreateOrchestrationRequest { + return v.value +} + +func (v *NullableCreateOrchestrationRequest) Set(val *CreateOrchestrationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrchestrationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrchestrationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrchestrationRequest(val *CreateOrchestrationRequest) *NullableCreateOrchestrationRequest { + return &NullableCreateOrchestrationRequest{value: val, isSet: true} +} + +func (v NullableCreateOrchestrationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrchestrationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_orchestration_request_input_source.go b/model_create_orchestration_request_input_source.go new file mode 100644 index 0000000..1c69633 --- /dev/null +++ b/model_create_orchestration_request_input_source.go @@ -0,0 +1,283 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateOrchestrationRequestInputSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrchestrationRequestInputSource{} + +// CreateOrchestrationRequestInputSource struct for CreateOrchestrationRequestInputSource +type CreateOrchestrationRequestInputSource struct { + // Input source type (api type not yet supported) + Type string `json:"type"` + // Static items (for type=static) + Items []map[string]interface{} `json:"items,omitempty"` + // Task query filters (for type=task_query) + TaskQuery map[string]interface{} `json:"taskQuery,omitempty"` + // AI prompt (for type=generator) + GeneratorPrompt *string `json:"generatorPrompt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateOrchestrationRequestInputSource CreateOrchestrationRequestInputSource + +// NewCreateOrchestrationRequestInputSource instantiates a new CreateOrchestrationRequestInputSource 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 NewCreateOrchestrationRequestInputSource(type_ string) *CreateOrchestrationRequestInputSource { + this := CreateOrchestrationRequestInputSource{} + this.Type = type_ + return &this +} + +// NewCreateOrchestrationRequestInputSourceWithDefaults instantiates a new CreateOrchestrationRequestInputSource 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 NewCreateOrchestrationRequestInputSourceWithDefaults() *CreateOrchestrationRequestInputSource { + this := CreateOrchestrationRequestInputSource{} + return &this +} + +// GetType returns the Type field value +func (o *CreateOrchestrationRequestInputSource) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestInputSource) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CreateOrchestrationRequestInputSource) SetType(v string) { + o.Type = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestInputSource) GetItems() []map[string]interface{} { + if o == nil || IsNil(o.Items) { + var ret []map[string]interface{} + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestInputSource) GetItemsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestInputSource) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []map[string]interface{} and assigns it to the Items field. +func (o *CreateOrchestrationRequestInputSource) SetItems(v []map[string]interface{}) { + o.Items = v +} + +// GetTaskQuery returns the TaskQuery field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestInputSource) GetTaskQuery() map[string]interface{} { + if o == nil || IsNil(o.TaskQuery) { + var ret map[string]interface{} + return ret + } + return o.TaskQuery +} + +// GetTaskQueryOk returns a tuple with the TaskQuery field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestInputSource) GetTaskQueryOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TaskQuery) { + return map[string]interface{}{}, false + } + return o.TaskQuery, true +} + +// HasTaskQuery returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestInputSource) HasTaskQuery() bool { + if o != nil && !IsNil(o.TaskQuery) { + return true + } + + return false +} + +// SetTaskQuery gets a reference to the given map[string]interface{} and assigns it to the TaskQuery field. +func (o *CreateOrchestrationRequestInputSource) SetTaskQuery(v map[string]interface{}) { + o.TaskQuery = v +} + +// GetGeneratorPrompt returns the GeneratorPrompt field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestInputSource) GetGeneratorPrompt() string { + if o == nil || IsNil(o.GeneratorPrompt) { + var ret string + return ret + } + return *o.GeneratorPrompt +} + +// GetGeneratorPromptOk returns a tuple with the GeneratorPrompt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestInputSource) GetGeneratorPromptOk() (*string, bool) { + if o == nil || IsNil(o.GeneratorPrompt) { + return nil, false + } + return o.GeneratorPrompt, true +} + +// HasGeneratorPrompt returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestInputSource) HasGeneratorPrompt() bool { + if o != nil && !IsNil(o.GeneratorPrompt) { + return true + } + + return false +} + +// SetGeneratorPrompt gets a reference to the given string and assigns it to the GeneratorPrompt field. +func (o *CreateOrchestrationRequestInputSource) SetGeneratorPrompt(v string) { + o.GeneratorPrompt = &v +} + +func (o CreateOrchestrationRequestInputSource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrchestrationRequestInputSource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + if !IsNil(o.TaskQuery) { + toSerialize["taskQuery"] = o.TaskQuery + } + if !IsNil(o.GeneratorPrompt) { + toSerialize["generatorPrompt"] = o.GeneratorPrompt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateOrchestrationRequestInputSource) 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{ + "type", + } + + 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) + } + } + + varCreateOrchestrationRequestInputSource := _CreateOrchestrationRequestInputSource{} + + err = json.Unmarshal(data, &varCreateOrchestrationRequestInputSource) + + if err != nil { + return err + } + + *o = CreateOrchestrationRequestInputSource(varCreateOrchestrationRequestInputSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "items") + delete(additionalProperties, "taskQuery") + delete(additionalProperties, "generatorPrompt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateOrchestrationRequestInputSource struct { + value *CreateOrchestrationRequestInputSource + isSet bool +} + +func (v NullableCreateOrchestrationRequestInputSource) Get() *CreateOrchestrationRequestInputSource { + return v.value +} + +func (v *NullableCreateOrchestrationRequestInputSource) Set(val *CreateOrchestrationRequestInputSource) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrchestrationRequestInputSource) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrchestrationRequestInputSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrchestrationRequestInputSource(val *CreateOrchestrationRequestInputSource) *NullableCreateOrchestrationRequestInputSource { + return &NullableCreateOrchestrationRequestInputSource{value: val, isSet: true} +} + +func (v NullableCreateOrchestrationRequestInputSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrchestrationRequestInputSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_orchestration_request_stop_condition.go b/model_create_orchestration_request_stop_condition.go new file mode 100644 index 0000000..fb1cc5e --- /dev/null +++ b/model_create_orchestration_request_stop_condition.go @@ -0,0 +1,235 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateOrchestrationRequestStopCondition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOrchestrationRequestStopCondition{} + +// CreateOrchestrationRequestStopCondition struct for CreateOrchestrationRequestStopCondition +type CreateOrchestrationRequestStopCondition struct { + Type *string `json:"type,omitempty"` + // Max iterations (for type=max_iterations) + MaxIterations *int32 `json:"maxIterations,omitempty"` + // AI prompt to evaluate stop (for type=condition) + ConditionPrompt *string `json:"conditionPrompt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateOrchestrationRequestStopCondition CreateOrchestrationRequestStopCondition + +// NewCreateOrchestrationRequestStopCondition instantiates a new CreateOrchestrationRequestStopCondition 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 NewCreateOrchestrationRequestStopCondition() *CreateOrchestrationRequestStopCondition { + this := CreateOrchestrationRequestStopCondition{} + var type_ string = "all_complete" + this.Type = &type_ + return &this +} + +// NewCreateOrchestrationRequestStopConditionWithDefaults instantiates a new CreateOrchestrationRequestStopCondition 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 NewCreateOrchestrationRequestStopConditionWithDefaults() *CreateOrchestrationRequestStopCondition { + this := CreateOrchestrationRequestStopCondition{} + var type_ string = "all_complete" + this.Type = &type_ + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestStopCondition) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestStopCondition) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestStopCondition) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *CreateOrchestrationRequestStopCondition) SetType(v string) { + o.Type = &v +} + +// GetMaxIterations returns the MaxIterations field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestStopCondition) GetMaxIterations() int32 { + if o == nil || IsNil(o.MaxIterations) { + var ret int32 + return ret + } + return *o.MaxIterations +} + +// GetMaxIterationsOk returns a tuple with the MaxIterations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestStopCondition) GetMaxIterationsOk() (*int32, bool) { + if o == nil || IsNil(o.MaxIterations) { + return nil, false + } + return o.MaxIterations, true +} + +// HasMaxIterations returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestStopCondition) HasMaxIterations() bool { + if o != nil && !IsNil(o.MaxIterations) { + return true + } + + return false +} + +// SetMaxIterations gets a reference to the given int32 and assigns it to the MaxIterations field. +func (o *CreateOrchestrationRequestStopCondition) SetMaxIterations(v int32) { + o.MaxIterations = &v +} + +// GetConditionPrompt returns the ConditionPrompt field value if set, zero value otherwise. +func (o *CreateOrchestrationRequestStopCondition) GetConditionPrompt() string { + if o == nil || IsNil(o.ConditionPrompt) { + var ret string + return ret + } + return *o.ConditionPrompt +} + +// GetConditionPromptOk returns a tuple with the ConditionPrompt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateOrchestrationRequestStopCondition) GetConditionPromptOk() (*string, bool) { + if o == nil || IsNil(o.ConditionPrompt) { + return nil, false + } + return o.ConditionPrompt, true +} + +// HasConditionPrompt returns a boolean if a field has been set. +func (o *CreateOrchestrationRequestStopCondition) HasConditionPrompt() bool { + if o != nil && !IsNil(o.ConditionPrompt) { + return true + } + + return false +} + +// SetConditionPrompt gets a reference to the given string and assigns it to the ConditionPrompt field. +func (o *CreateOrchestrationRequestStopCondition) SetConditionPrompt(v string) { + o.ConditionPrompt = &v +} + +func (o CreateOrchestrationRequestStopCondition) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOrchestrationRequestStopCondition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.MaxIterations) { + toSerialize["maxIterations"] = o.MaxIterations + } + if !IsNil(o.ConditionPrompt) { + toSerialize["conditionPrompt"] = o.ConditionPrompt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateOrchestrationRequestStopCondition) UnmarshalJSON(data []byte) (err error) { + varCreateOrchestrationRequestStopCondition := _CreateOrchestrationRequestStopCondition{} + + err = json.Unmarshal(data, &varCreateOrchestrationRequestStopCondition) + + if err != nil { + return err + } + + *o = CreateOrchestrationRequestStopCondition(varCreateOrchestrationRequestStopCondition) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "maxIterations") + delete(additionalProperties, "conditionPrompt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateOrchestrationRequestStopCondition struct { + value *CreateOrchestrationRequestStopCondition + isSet bool +} + +func (v NullableCreateOrchestrationRequestStopCondition) Get() *CreateOrchestrationRequestStopCondition { + return v.value +} + +func (v *NullableCreateOrchestrationRequestStopCondition) Set(val *CreateOrchestrationRequestStopCondition) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOrchestrationRequestStopCondition) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOrchestrationRequestStopCondition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOrchestrationRequestStopCondition(val *CreateOrchestrationRequestStopCondition) *NullableCreateOrchestrationRequestStopCondition { + return &NullableCreateOrchestrationRequestStopCondition{value: val, isSet: true} +} + +func (v NullableCreateOrchestrationRequestStopCondition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOrchestrationRequestStopCondition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_task_201_response.go b/model_create_task_201_response.go index c884dd1..4af49fb 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.9.0 +API version: 4.10.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 5a89757..ed87398 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.9.0 +API version: 4.10.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 ed1ccfb..a260b13 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.9.0 +API version: 4.10.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 6e75b8d..616b520 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.9.0 +API version: 4.10.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 a4cace3..0d90f8c 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.9.0 +API version: 4.10.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 bdb6eeb..3a932c9 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron.go b/model_cron.go index 975ee40..cfb5bdc 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.9.0 +API version: 4.10.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 b0b2ae9..5ceed16 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.9.0 +API version: 4.10.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 6d04831..87b4e77 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.9.0 +API version: 4.10.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 552b0da..d51610d 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.9.0 +API version: 4.10.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 74d5cd6..6cfced1 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.9.0 +API version: 4.10.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 4dd8e11..fb24957 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.9.0 +API version: 4.10.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 b573a0a..d556e19 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.9.0 +API version: 4.10.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 da3d6c2..8e21e11 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.9.0 +API version: 4.10.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 3346ddf..0a52d14 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_vector_collection_200_response.go b/model_delete_vector_collection_200_response.go index e1f7a21..0f086db 100644 --- a/model_delete_vector_collection_200_response.go +++ b/model_delete_vector_collection_200_response.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..6fc02cc --- /dev/null +++ b/model_delete_vector_documents_200_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteVectorDocuments200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteVectorDocuments200Response{} + +// DeleteVectorDocuments200Response struct for DeleteVectorDocuments200Response +type DeleteVectorDocuments200Response struct { + Message *string `json:"message,omitempty"` + CollectionId *string `json:"collectionId,omitempty"` + DeletedCount *int32 `json:"deletedCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteVectorDocuments200Response DeleteVectorDocuments200Response + +// NewDeleteVectorDocuments200Response instantiates a new DeleteVectorDocuments200Response 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 NewDeleteVectorDocuments200Response() *DeleteVectorDocuments200Response { + this := DeleteVectorDocuments200Response{} + return &this +} + +// NewDeleteVectorDocuments200ResponseWithDefaults instantiates a new DeleteVectorDocuments200Response 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 NewDeleteVectorDocuments200ResponseWithDefaults() *DeleteVectorDocuments200Response { + this := DeleteVectorDocuments200Response{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteVectorDocuments200Response) 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 *DeleteVectorDocuments200Response) 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 *DeleteVectorDocuments200Response) 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 *DeleteVectorDocuments200Response) SetMessage(v string) { + o.Message = &v +} + +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *DeleteVectorDocuments200Response) GetCollectionId() string { + if o == nil || IsNil(o.CollectionId) { + var ret string + return ret + } + return *o.CollectionId +} + +// GetCollectionIdOk returns a tuple with the CollectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocuments200Response) GetCollectionIdOk() (*string, bool) { + if o == nil || IsNil(o.CollectionId) { + return nil, false + } + return o.CollectionId, true +} + +// HasCollectionId returns a boolean if a field has been set. +func (o *DeleteVectorDocuments200Response) HasCollectionId() bool { + if o != nil && !IsNil(o.CollectionId) { + return true + } + + return false +} + +// SetCollectionId gets a reference to the given string and assigns it to the CollectionId field. +func (o *DeleteVectorDocuments200Response) SetCollectionId(v string) { + o.CollectionId = &v +} + +// GetDeletedCount returns the DeletedCount field value if set, zero value otherwise. +func (o *DeleteVectorDocuments200Response) GetDeletedCount() int32 { + if o == nil || IsNil(o.DeletedCount) { + var ret int32 + return ret + } + return *o.DeletedCount +} + +// GetDeletedCountOk returns a tuple with the DeletedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocuments200Response) GetDeletedCountOk() (*int32, bool) { + if o == nil || IsNil(o.DeletedCount) { + return nil, false + } + return o.DeletedCount, true +} + +// HasDeletedCount returns a boolean if a field has been set. +func (o *DeleteVectorDocuments200Response) HasDeletedCount() bool { + if o != nil && !IsNil(o.DeletedCount) { + return true + } + + return false +} + +// SetDeletedCount gets a reference to the given int32 and assigns it to the DeletedCount field. +func (o *DeleteVectorDocuments200Response) SetDeletedCount(v int32) { + o.DeletedCount = &v +} + +func (o DeleteVectorDocuments200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteVectorDocuments200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.CollectionId) { + toSerialize["collectionId"] = o.CollectionId + } + if !IsNil(o.DeletedCount) { + toSerialize["deletedCount"] = o.DeletedCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteVectorDocuments200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteVectorDocuments200Response := _DeleteVectorDocuments200Response{} + + err = json.Unmarshal(data, &varDeleteVectorDocuments200Response) + + if err != nil { + return err + } + + *o = DeleteVectorDocuments200Response(varDeleteVectorDocuments200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "collectionId") + delete(additionalProperties, "deletedCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteVectorDocuments200Response struct { + value *DeleteVectorDocuments200Response + isSet bool +} + +func (v NullableDeleteVectorDocuments200Response) Get() *DeleteVectorDocuments200Response { + return v.value +} + +func (v *NullableDeleteVectorDocuments200Response) Set(val *DeleteVectorDocuments200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteVectorDocuments200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteVectorDocuments200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteVectorDocuments200Response(val *DeleteVectorDocuments200Response) *NullableDeleteVectorDocuments200Response { + return &NullableDeleteVectorDocuments200Response{value: val, isSet: true} +} + +func (v NullableDeleteVectorDocuments200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteVectorDocuments200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_vector_documents_request.go b/model_delete_vector_documents_request.go new file mode 100644 index 0000000..e285d6e --- /dev/null +++ b/model_delete_vector_documents_request.go @@ -0,0 +1,231 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteVectorDocumentsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteVectorDocumentsRequest{} + +// DeleteVectorDocumentsRequest struct for DeleteVectorDocumentsRequest +type DeleteVectorDocumentsRequest struct { + // Delete ALL documents in collection + PurgeAll *bool `json:"purgeAll,omitempty"` + // Delete specific documents by UUID + DocumentIds []string `json:"documentIds,omitempty"` + Metadata *DeleteVectorDocumentsRequestMetadata `json:"metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteVectorDocumentsRequest DeleteVectorDocumentsRequest + +// NewDeleteVectorDocumentsRequest instantiates a new DeleteVectorDocumentsRequest 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 NewDeleteVectorDocumentsRequest() *DeleteVectorDocumentsRequest { + this := DeleteVectorDocumentsRequest{} + return &this +} + +// NewDeleteVectorDocumentsRequestWithDefaults instantiates a new DeleteVectorDocumentsRequest 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 NewDeleteVectorDocumentsRequestWithDefaults() *DeleteVectorDocumentsRequest { + this := DeleteVectorDocumentsRequest{} + return &this +} + +// GetPurgeAll returns the PurgeAll field value if set, zero value otherwise. +func (o *DeleteVectorDocumentsRequest) GetPurgeAll() bool { + if o == nil || IsNil(o.PurgeAll) { + var ret bool + return ret + } + return *o.PurgeAll +} + +// GetPurgeAllOk returns a tuple with the PurgeAll field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocumentsRequest) GetPurgeAllOk() (*bool, bool) { + if o == nil || IsNil(o.PurgeAll) { + return nil, false + } + return o.PurgeAll, true +} + +// HasPurgeAll returns a boolean if a field has been set. +func (o *DeleteVectorDocumentsRequest) HasPurgeAll() bool { + if o != nil && !IsNil(o.PurgeAll) { + return true + } + + return false +} + +// SetPurgeAll gets a reference to the given bool and assigns it to the PurgeAll field. +func (o *DeleteVectorDocumentsRequest) SetPurgeAll(v bool) { + o.PurgeAll = &v +} + +// GetDocumentIds returns the DocumentIds field value if set, zero value otherwise. +func (o *DeleteVectorDocumentsRequest) GetDocumentIds() []string { + if o == nil || IsNil(o.DocumentIds) { + var ret []string + return ret + } + return o.DocumentIds +} + +// GetDocumentIdsOk returns a tuple with the DocumentIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocumentsRequest) GetDocumentIdsOk() ([]string, bool) { + if o == nil || IsNil(o.DocumentIds) { + return nil, false + } + return o.DocumentIds, true +} + +// HasDocumentIds returns a boolean if a field has been set. +func (o *DeleteVectorDocumentsRequest) HasDocumentIds() bool { + if o != nil && !IsNil(o.DocumentIds) { + return true + } + + return false +} + +// SetDocumentIds gets a reference to the given []string and assigns it to the DocumentIds field. +func (o *DeleteVectorDocumentsRequest) SetDocumentIds(v []string) { + o.DocumentIds = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *DeleteVectorDocumentsRequest) GetMetadata() DeleteVectorDocumentsRequestMetadata { + if o == nil || IsNil(o.Metadata) { + var ret DeleteVectorDocumentsRequestMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocumentsRequest) GetMetadataOk() (*DeleteVectorDocumentsRequestMetadata, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *DeleteVectorDocumentsRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given DeleteVectorDocumentsRequestMetadata and assigns it to the Metadata field. +func (o *DeleteVectorDocumentsRequest) SetMetadata(v DeleteVectorDocumentsRequestMetadata) { + o.Metadata = &v +} + +func (o DeleteVectorDocumentsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteVectorDocumentsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PurgeAll) { + toSerialize["purgeAll"] = o.PurgeAll + } + if !IsNil(o.DocumentIds) { + toSerialize["documentIds"] = o.DocumentIds + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteVectorDocumentsRequest) UnmarshalJSON(data []byte) (err error) { + varDeleteVectorDocumentsRequest := _DeleteVectorDocumentsRequest{} + + err = json.Unmarshal(data, &varDeleteVectorDocumentsRequest) + + if err != nil { + return err + } + + *o = DeleteVectorDocumentsRequest(varDeleteVectorDocumentsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "purgeAll") + delete(additionalProperties, "documentIds") + delete(additionalProperties, "metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteVectorDocumentsRequest struct { + value *DeleteVectorDocumentsRequest + isSet bool +} + +func (v NullableDeleteVectorDocumentsRequest) Get() *DeleteVectorDocumentsRequest { + return v.value +} + +func (v *NullableDeleteVectorDocumentsRequest) Set(val *DeleteVectorDocumentsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteVectorDocumentsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteVectorDocumentsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteVectorDocumentsRequest(val *DeleteVectorDocumentsRequest) *NullableDeleteVectorDocumentsRequest { + return &NullableDeleteVectorDocumentsRequest{value: val, isSet: true} +} + +func (v NullableDeleteVectorDocumentsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteVectorDocumentsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_vector_documents_request_metadata.go b/model_delete_vector_documents_request_metadata.go new file mode 100644 index 0000000..e0cf104 --- /dev/null +++ b/model_delete_vector_documents_request_metadata.go @@ -0,0 +1,194 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteVectorDocumentsRequestMetadata type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteVectorDocumentsRequestMetadata{} + +// DeleteVectorDocumentsRequestMetadata struct for DeleteVectorDocumentsRequestMetadata +type DeleteVectorDocumentsRequestMetadata struct { + // Metadata field name (e.g., 'drupal_entity_id') + Field *string `json:"field,omitempty"` + // Values to match (OR logic) + Values []string `json:"values,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteVectorDocumentsRequestMetadata DeleteVectorDocumentsRequestMetadata + +// NewDeleteVectorDocumentsRequestMetadata instantiates a new DeleteVectorDocumentsRequestMetadata 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 NewDeleteVectorDocumentsRequestMetadata() *DeleteVectorDocumentsRequestMetadata { + this := DeleteVectorDocumentsRequestMetadata{} + return &this +} + +// NewDeleteVectorDocumentsRequestMetadataWithDefaults instantiates a new DeleteVectorDocumentsRequestMetadata 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 NewDeleteVectorDocumentsRequestMetadataWithDefaults() *DeleteVectorDocumentsRequestMetadata { + this := DeleteVectorDocumentsRequestMetadata{} + return &this +} + +// GetField returns the Field field value if set, zero value otherwise. +func (o *DeleteVectorDocumentsRequestMetadata) GetField() string { + if o == nil || IsNil(o.Field) { + var ret string + return ret + } + return *o.Field +} + +// GetFieldOk returns a tuple with the Field field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocumentsRequestMetadata) GetFieldOk() (*string, bool) { + if o == nil || IsNil(o.Field) { + return nil, false + } + return o.Field, true +} + +// HasField returns a boolean if a field has been set. +func (o *DeleteVectorDocumentsRequestMetadata) HasField() bool { + if o != nil && !IsNil(o.Field) { + return true + } + + return false +} + +// SetField gets a reference to the given string and assigns it to the Field field. +func (o *DeleteVectorDocumentsRequestMetadata) SetField(v string) { + o.Field = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *DeleteVectorDocumentsRequestMetadata) GetValues() []string { + if o == nil || IsNil(o.Values) { + var ret []string + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteVectorDocumentsRequestMetadata) GetValuesOk() ([]string, bool) { + if o == nil || IsNil(o.Values) { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *DeleteVectorDocumentsRequestMetadata) HasValues() bool { + if o != nil && !IsNil(o.Values) { + return true + } + + return false +} + +// SetValues gets a reference to the given []string and assigns it to the Values field. +func (o *DeleteVectorDocumentsRequestMetadata) SetValues(v []string) { + o.Values = v +} + +func (o DeleteVectorDocumentsRequestMetadata) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteVectorDocumentsRequestMetadata) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Field) { + toSerialize["field"] = o.Field + } + if !IsNil(o.Values) { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteVectorDocumentsRequestMetadata) UnmarshalJSON(data []byte) (err error) { + varDeleteVectorDocumentsRequestMetadata := _DeleteVectorDocumentsRequestMetadata{} + + err = json.Unmarshal(data, &varDeleteVectorDocumentsRequestMetadata) + + if err != nil { + return err + } + + *o = DeleteVectorDocumentsRequestMetadata(varDeleteVectorDocumentsRequestMetadata) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "field") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteVectorDocumentsRequestMetadata struct { + value *DeleteVectorDocumentsRequestMetadata + isSet bool +} + +func (v NullableDeleteVectorDocumentsRequestMetadata) Get() *DeleteVectorDocumentsRequestMetadata { + return v.value +} + +func (v *NullableDeleteVectorDocumentsRequestMetadata) Set(val *DeleteVectorDocumentsRequestMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteVectorDocumentsRequestMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteVectorDocumentsRequestMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteVectorDocumentsRequestMetadata(val *DeleteVectorDocumentsRequestMetadata) *NullableDeleteVectorDocumentsRequestMetadata { + return &NullableDeleteVectorDocumentsRequestMetadata{value: val, isSet: true} +} + +func (v NullableDeleteVectorDocumentsRequestMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteVectorDocumentsRequestMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_download_backup_200_response.go b/model_download_backup_200_response.go index 883fb5f..8b87079 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.9.0 +API version: 4.10.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 07c7f93..c1058eb 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.9.0 +API version: 4.10.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 687d504..26e1adc 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.9.0 +API version: 4.10.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 f4016a1..3db087b 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.9.0 +API version: 4.10.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 c63ecfe..72a59a2 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.9.0 +API version: 4.10.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 bdc3e3e..5c91035 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment.go b/model_environment.go index 01e81b3..795118c 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.9.0 +API version: 4.10.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 f487e40..fc53933 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.9.0 +API version: 4.10.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 1ddc875..00892e7 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.9.0 +API version: 4.10.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 08c4dfe..674b71d 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.9.0 +API version: 4.10.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 3d20605..3a21b6b 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.9.0 +API version: 4.10.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 c1b16ac..a8a5e38 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.9.0 +API version: 4.10.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 80d6aff..09ee761 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.9.0 +API version: 4.10.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 207be87..14bd26a 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.9.0 +API version: 4.10.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 19c41e0..b0efb4a 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.9.0 +API version: 4.10.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 dcc663f..7982cc3 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.9.0 +API version: 4.10.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 8032c5b..63a469e 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.9.0 +API version: 4.10.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 c0e6c87..8773a6e 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.9.0 +API version: 4.10.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 c3dda02..bbc75b3 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.9.0 +API version: 4.10.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 5d8390e..0a7a763 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.9.0 +API version: 4.10.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 50d31e7..665cd01 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.9.0 +API version: 4.10.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 66a871f..51cd40a 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.9.0 +API version: 4.10.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 fcbd621..7689700 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.9.0 +API version: 4.10.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 d4f42cd..8c4c0ed 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.9.0 +API version: 4.10.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 3a39d66..f772b9a 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.9.0 +API version: 4.10.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 b3cf7ef..d7790ff 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_dependency_graph_200_response.go b/model_get_dependency_graph_200_response.go index cd81259..fbbf733 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.9.0 +API version: 4.10.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 f47e771..e0e4391 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.9.0 +API version: 4.10.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 2d2b02d..05a7a97 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.9.0 +API version: 4.10.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 9a2f8c9..ceeff81 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.9.0 +API version: 4.10.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 7dddde9..8193569 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.9.0 +API version: 4.10.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 6df5f41..ba660d8 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.9.0 +API version: 4.10.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 1e32863..603de34 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.9.0 +API version: 4.10.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 d44b450..c3c65df 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.9.0 +API version: 4.10.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 93cf5ce..525906f 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.9.0 +API version: 4.10.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 69e48d7..fbc1cab 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.9.0 +API version: 4.10.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 57ef046..1d3639f 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.9.0 +API version: 4.10.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 e1e1ec2..c1fdabf 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.9.0 +API version: 4.10.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 296c453..756155c 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.9.0 +API version: 4.10.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 dfca345..eef7a5e 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.9.0 +API version: 4.10.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 5c6556f..3370a09 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.9.0 +API version: 4.10.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 07210c9..9049f1e 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.9.0 +API version: 4.10.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 d6a8c8b..befeb41 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.9.0 +API version: 4.10.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 d16c9eb..4405dfd 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.9.0 +API version: 4.10.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 d3af5e8..599d701 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.9.0 +API version: 4.10.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 9edf6eb..9a5ee2b 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.9.0 +API version: 4.10.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 aa9661e..dfa888c 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.9.0 +API version: 4.10.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 93d8cb6..f5e809a 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.9.0 +API version: 4.10.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 f7718ce..aea01c1 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.9.0 +API version: 4.10.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 a1edd2a..70b35af 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.9.0 +API version: 4.10.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 bac48e4..6c16920 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.9.0 +API version: 4.10.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 8cff083..4743456 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.9.0 +API version: 4.10.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 59d22b6..98f4c1d 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.9.0 +API version: 4.10.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 a1cc627..770ce2f 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.9.0 +API version: 4.10.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 9a81539..95f9a8b 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..18aa173 --- /dev/null +++ b/model_kv_link_to_project_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the KVLinkToProject200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KVLinkToProject200Response{} + +// KVLinkToProject200Response struct for KVLinkToProject200Response +type KVLinkToProject200Response struct { + Success *bool `json:"success,omitempty"` + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _KVLinkToProject200Response KVLinkToProject200Response + +// NewKVLinkToProject200Response instantiates a new KVLinkToProject200Response 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 NewKVLinkToProject200Response() *KVLinkToProject200Response { + this := KVLinkToProject200Response{} + return &this +} + +// NewKVLinkToProject200ResponseWithDefaults instantiates a new KVLinkToProject200Response 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 NewKVLinkToProject200ResponseWithDefaults() *KVLinkToProject200Response { + this := KVLinkToProject200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *KVLinkToProject200Response) GetSuccess() bool { + if o == nil || IsNil(o.Success) { + var ret bool + return ret + } + return *o.Success +} + +// GetSuccessOk returns a tuple with the Success field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KVLinkToProject200Response) GetSuccessOk() (*bool, bool) { + if o == nil || IsNil(o.Success) { + return nil, false + } + return o.Success, true +} + +// HasSuccess returns a boolean if a field has been set. +func (o *KVLinkToProject200Response) HasSuccess() bool { + if o != nil && !IsNil(o.Success) { + return true + } + + return false +} + +// SetSuccess gets a reference to the given bool and assigns it to the Success field. +func (o *KVLinkToProject200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *KVLinkToProject200Response) 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 *KVLinkToProject200Response) 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 *KVLinkToProject200Response) 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 *KVLinkToProject200Response) SetMessage(v string) { + o.Message = &v +} + +func (o KVLinkToProject200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KVLinkToProject200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Success) { + toSerialize["success"] = o.Success + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KVLinkToProject200Response) UnmarshalJSON(data []byte) (err error) { + varKVLinkToProject200Response := _KVLinkToProject200Response{} + + err = json.Unmarshal(data, &varKVLinkToProject200Response) + + if err != nil { + return err + } + + *o = KVLinkToProject200Response(varKVLinkToProject200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKVLinkToProject200Response struct { + value *KVLinkToProject200Response + isSet bool +} + +func (v NullableKVLinkToProject200Response) Get() *KVLinkToProject200Response { + return v.value +} + +func (v *NullableKVLinkToProject200Response) Set(val *KVLinkToProject200Response) { + v.value = val + v.isSet = true +} + +func (v NullableKVLinkToProject200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableKVLinkToProject200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKVLinkToProject200Response(val *KVLinkToProject200Response) *NullableKVLinkToProject200Response { + return &NullableKVLinkToProject200Response{value: val, isSet: true} +} + +func (v NullableKVLinkToProject200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKVLinkToProject200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_kv_link_to_project_request.go b/model_kv_link_to_project_request.go new file mode 100644 index 0000000..ac430b4 --- /dev/null +++ b/model_kv_link_to_project_request.go @@ -0,0 +1,169 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the KVLinkToProjectRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KVLinkToProjectRequest{} + +// KVLinkToProjectRequest struct for KVLinkToProjectRequest +type KVLinkToProjectRequest struct { + // Target project ID to link to + ProjectId int32 `json:"project_id"` + AdditionalProperties map[string]interface{} +} + +type _KVLinkToProjectRequest KVLinkToProjectRequest + +// NewKVLinkToProjectRequest instantiates a new KVLinkToProjectRequest 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 NewKVLinkToProjectRequest(projectId int32) *KVLinkToProjectRequest { + this := KVLinkToProjectRequest{} + this.ProjectId = projectId + return &this +} + +// NewKVLinkToProjectRequestWithDefaults instantiates a new KVLinkToProjectRequest 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 NewKVLinkToProjectRequestWithDefaults() *KVLinkToProjectRequest { + this := KVLinkToProjectRequest{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *KVLinkToProjectRequest) GetProjectId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *KVLinkToProjectRequest) GetProjectIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *KVLinkToProjectRequest) SetProjectId(v int32) { + o.ProjectId = v +} + +func (o KVLinkToProjectRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KVLinkToProjectRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["project_id"] = o.ProjectId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *KVLinkToProjectRequest) 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{ + "project_id", + } + + 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) + } + } + + varKVLinkToProjectRequest := _KVLinkToProjectRequest{} + + err = json.Unmarshal(data, &varKVLinkToProjectRequest) + + if err != nil { + return err + } + + *o = KVLinkToProjectRequest(varKVLinkToProjectRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "project_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableKVLinkToProjectRequest struct { + value *KVLinkToProjectRequest + isSet bool +} + +func (v NullableKVLinkToProjectRequest) Get() *KVLinkToProjectRequest { + return v.value +} + +func (v *NullableKVLinkToProjectRequest) Set(val *KVLinkToProjectRequest) { + v.value = val + v.isSet = true +} + +func (v NullableKVLinkToProjectRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableKVLinkToProjectRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableKVLinkToProjectRequest(val *KVLinkToProjectRequest) *NullableKVLinkToProjectRequest { + return &NullableKVLinkToProjectRequest{value: val, isSet: true} +} + +func (v NullableKVLinkToProjectRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableKVLinkToProjectRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_ai_agents_200_response.go b/model_list_ai_agents_200_response.go index 9603a17..c2dd835 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.9.0 +API version: 4.10.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 058100b..7f83b57 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.9.0 +API version: 4.10.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 d72220e..b53cc28 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.9.0 +API version: 4.10.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 14bec93..665c331 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.9.0 +API version: 4.10.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 761c5d4..c32d814 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.9.0 +API version: 4.10.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 0f48e8b..bdb6971 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.9.0 +API version: 4.10.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 364893a..ee8a2aa 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.9.0 +API version: 4.10.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 9427bca..d2e63ae 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.9.0 +API version: 4.10.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 6f4e367..c9ccb19 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.9.0 +API version: 4.10.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 0e53d2b..d891380 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.9.0 +API version: 4.10.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 b3deb06..efbbc39 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.9.0 +API version: 4.10.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 8d2916f..7faee16 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.9.0 +API version: 4.10.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 85d8a9f..2e20437 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.9.0 +API version: 4.10.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 35a0ef2..65d2723 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.9.0 +API version: 4.10.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 80ec864..5580a81 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.9.0 +API version: 4.10.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 1ba634d..e076405 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.9.0 +API version: 4.10.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 ead1baf..d84bbf5 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.9.0 +API version: 4.10.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 d92a468..f3670e2 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_files_200_response.go b/model_list_files_200_response.go index df61a48..6937295 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.9.0 +API version: 4.10.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 195da99..6255be3 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..bd6ae60 --- /dev/null +++ b/model_list_orchestration_batches_200_response.go @@ -0,0 +1,202 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListOrchestrationBatches200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrchestrationBatches200Response{} + +// ListOrchestrationBatches200Response struct for ListOrchestrationBatches200Response +type ListOrchestrationBatches200Response struct { + Batches []ListOrchestrationBatches200ResponseBatchesInner `json:"batches,omitempty"` + NextCursor NullableString `json:"nextCursor,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListOrchestrationBatches200Response ListOrchestrationBatches200Response + +// NewListOrchestrationBatches200Response instantiates a new ListOrchestrationBatches200Response 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 NewListOrchestrationBatches200Response() *ListOrchestrationBatches200Response { + this := ListOrchestrationBatches200Response{} + return &this +} + +// NewListOrchestrationBatches200ResponseWithDefaults instantiates a new ListOrchestrationBatches200Response 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 NewListOrchestrationBatches200ResponseWithDefaults() *ListOrchestrationBatches200Response { + this := ListOrchestrationBatches200Response{} + return &this +} + +// GetBatches returns the Batches field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200Response) GetBatches() []ListOrchestrationBatches200ResponseBatchesInner { + if o == nil || IsNil(o.Batches) { + var ret []ListOrchestrationBatches200ResponseBatchesInner + return ret + } + return o.Batches +} + +// GetBatchesOk returns a tuple with the Batches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200Response) GetBatchesOk() ([]ListOrchestrationBatches200ResponseBatchesInner, bool) { + if o == nil || IsNil(o.Batches) { + return nil, false + } + return o.Batches, true +} + +// HasBatches returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200Response) HasBatches() bool { + if o != nil && !IsNil(o.Batches) { + return true + } + + return false +} + +// SetBatches gets a reference to the given []ListOrchestrationBatches200ResponseBatchesInner and assigns it to the Batches field. +func (o *ListOrchestrationBatches200Response) SetBatches(v []ListOrchestrationBatches200ResponseBatchesInner) { + o.Batches = v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListOrchestrationBatches200Response) GetNextCursor() string { + if o == nil || IsNil(o.NextCursor.Get()) { + var ret string + return ret + } + return *o.NextCursor.Get() +} + +// GetNextCursorOk returns a tuple with the NextCursor 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 *ListOrchestrationBatches200Response) GetNextCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextCursor.Get(), o.NextCursor.IsSet() +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200Response) HasNextCursor() bool { + if o != nil && o.NextCursor.IsSet() { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given NullableString and assigns it to the NextCursor field. +func (o *ListOrchestrationBatches200Response) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} +// SetNextCursorNil sets the value for NextCursor to be an explicit nil +func (o *ListOrchestrationBatches200Response) SetNextCursorNil() { + o.NextCursor.Set(nil) +} + +// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +func (o *ListOrchestrationBatches200Response) UnsetNextCursor() { + o.NextCursor.Unset() +} + +func (o ListOrchestrationBatches200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrchestrationBatches200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Batches) { + toSerialize["batches"] = o.Batches + } + if o.NextCursor.IsSet() { + toSerialize["nextCursor"] = o.NextCursor.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListOrchestrationBatches200Response) UnmarshalJSON(data []byte) (err error) { + varListOrchestrationBatches200Response := _ListOrchestrationBatches200Response{} + + err = json.Unmarshal(data, &varListOrchestrationBatches200Response) + + if err != nil { + return err + } + + *o = ListOrchestrationBatches200Response(varListOrchestrationBatches200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "batches") + delete(additionalProperties, "nextCursor") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListOrchestrationBatches200Response struct { + value *ListOrchestrationBatches200Response + isSet bool +} + +func (v NullableListOrchestrationBatches200Response) Get() *ListOrchestrationBatches200Response { + return v.value +} + +func (v *NullableListOrchestrationBatches200Response) Set(val *ListOrchestrationBatches200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListOrchestrationBatches200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrchestrationBatches200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrchestrationBatches200Response(val *ListOrchestrationBatches200Response) *NullableListOrchestrationBatches200Response { + return &NullableListOrchestrationBatches200Response{value: val, isSet: true} +} + +func (v NullableListOrchestrationBatches200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrchestrationBatches200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_orchestration_batches_200_response_batches_inner.go b/model_list_orchestration_batches_200_response_batches_inner.go new file mode 100644 index 0000000..afb4d07 --- /dev/null +++ b/model_list_orchestration_batches_200_response_batches_inner.go @@ -0,0 +1,499 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the ListOrchestrationBatches200ResponseBatchesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrchestrationBatches200ResponseBatchesInner{} + +// ListOrchestrationBatches200ResponseBatchesInner struct for ListOrchestrationBatches200ResponseBatchesInner +type ListOrchestrationBatches200ResponseBatchesInner struct { + BatchId *string `json:"batchId,omitempty"` + OrchestrationId *string `json:"orchestrationId,omitempty"` + Iteration *int32 `json:"iteration,omitempty"` + ItemCount *int32 `json:"itemCount,omitempty"` + CompletedCount *int32 `json:"completedCount,omitempty"` + FailedCount *int32 `json:"failedCount,omitempty"` + Status *string `json:"status,omitempty"` + StartedAt *time.Time `json:"startedAt,omitempty"` + CompletedAt *time.Time `json:"completedAt,omitempty"` + Error NullableString `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListOrchestrationBatches200ResponseBatchesInner ListOrchestrationBatches200ResponseBatchesInner + +// NewListOrchestrationBatches200ResponseBatchesInner instantiates a new ListOrchestrationBatches200ResponseBatchesInner 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 NewListOrchestrationBatches200ResponseBatchesInner() *ListOrchestrationBatches200ResponseBatchesInner { + this := ListOrchestrationBatches200ResponseBatchesInner{} + return &this +} + +// NewListOrchestrationBatches200ResponseBatchesInnerWithDefaults instantiates a new ListOrchestrationBatches200ResponseBatchesInner 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 NewListOrchestrationBatches200ResponseBatchesInnerWithDefaults() *ListOrchestrationBatches200ResponseBatchesInner { + this := ListOrchestrationBatches200ResponseBatchesInner{} + return &this +} + +// GetBatchId returns the BatchId field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetBatchId() string { + if o == nil || IsNil(o.BatchId) { + var ret string + return ret + } + return *o.BatchId +} + +// GetBatchIdOk returns a tuple with the BatchId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetBatchIdOk() (*string, bool) { + if o == nil || IsNil(o.BatchId) { + return nil, false + } + return o.BatchId, true +} + +// HasBatchId returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasBatchId() bool { + if o != nil && !IsNil(o.BatchId) { + return true + } + + return false +} + +// SetBatchId gets a reference to the given string and assigns it to the BatchId field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetBatchId(v string) { + o.BatchId = &v +} + +// GetOrchestrationId returns the OrchestrationId field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetOrchestrationId() string { + if o == nil || IsNil(o.OrchestrationId) { + var ret string + return ret + } + return *o.OrchestrationId +} + +// GetOrchestrationIdOk returns a tuple with the OrchestrationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetOrchestrationIdOk() (*string, bool) { + if o == nil || IsNil(o.OrchestrationId) { + return nil, false + } + return o.OrchestrationId, true +} + +// HasOrchestrationId returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasOrchestrationId() bool { + if o != nil && !IsNil(o.OrchestrationId) { + return true + } + + return false +} + +// SetOrchestrationId gets a reference to the given string and assigns it to the OrchestrationId field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetOrchestrationId(v string) { + o.OrchestrationId = &v +} + +// GetIteration returns the Iteration field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetIteration() int32 { + if o == nil || IsNil(o.Iteration) { + var ret int32 + return ret + } + return *o.Iteration +} + +// GetIterationOk returns a tuple with the Iteration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetIterationOk() (*int32, bool) { + if o == nil || IsNil(o.Iteration) { + return nil, false + } + return o.Iteration, true +} + +// HasIteration returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasIteration() bool { + if o != nil && !IsNil(o.Iteration) { + return true + } + + return false +} + +// SetIteration gets a reference to the given int32 and assigns it to the Iteration field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetIteration(v int32) { + o.Iteration = &v +} + +// GetItemCount returns the ItemCount field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetItemCount() int32 { + if o == nil || IsNil(o.ItemCount) { + var ret int32 + return ret + } + return *o.ItemCount +} + +// GetItemCountOk returns a tuple with the ItemCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetItemCountOk() (*int32, bool) { + if o == nil || IsNil(o.ItemCount) { + return nil, false + } + return o.ItemCount, true +} + +// HasItemCount returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasItemCount() bool { + if o != nil && !IsNil(o.ItemCount) { + return true + } + + return false +} + +// SetItemCount gets a reference to the given int32 and assigns it to the ItemCount field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetItemCount(v int32) { + o.ItemCount = &v +} + +// GetCompletedCount returns the CompletedCount field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedCount() int32 { + if o == nil || IsNil(o.CompletedCount) { + var ret int32 + return ret + } + return *o.CompletedCount +} + +// GetCompletedCountOk returns a tuple with the CompletedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedCountOk() (*int32, bool) { + if o == nil || IsNil(o.CompletedCount) { + return nil, false + } + return o.CompletedCount, true +} + +// HasCompletedCount returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasCompletedCount() bool { + if o != nil && !IsNil(o.CompletedCount) { + return true + } + + return false +} + +// SetCompletedCount gets a reference to the given int32 and assigns it to the CompletedCount field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetCompletedCount(v int32) { + o.CompletedCount = &v +} + +// GetFailedCount returns the FailedCount field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetFailedCount() int32 { + if o == nil || IsNil(o.FailedCount) { + var ret int32 + return ret + } + return *o.FailedCount +} + +// GetFailedCountOk returns a tuple with the FailedCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetFailedCountOk() (*int32, bool) { + if o == nil || IsNil(o.FailedCount) { + return nil, false + } + return o.FailedCount, true +} + +// HasFailedCount returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasFailedCount() bool { + if o != nil && !IsNil(o.FailedCount) { + return true + } + + return false +} + +// SetFailedCount gets a reference to the given int32 and assigns it to the FailedCount field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetFailedCount(v int32) { + o.FailedCount = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) SetStatus(v string) { + o.Status = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) 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 *ListOrchestrationBatches200ResponseBatchesInner) SetStartedAt(v time.Time) { + o.StartedAt = &v +} + +// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedAt() time.Time { + if o == nil || IsNil(o.CompletedAt) { + var ret time.Time + return ret + } + return *o.CompletedAt +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetCompletedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CompletedAt) { + return nil, false + } + return o.CompletedAt, true +} + +// HasCompletedAt returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasCompletedAt() bool { + if o != nil && !IsNil(o.CompletedAt) { + return true + } + + return false +} + +// SetCompletedAt gets a reference to the given time.Time and assigns it to the CompletedAt field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetCompletedAt(v time.Time) { + o.CompletedAt = &v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListOrchestrationBatches200ResponseBatchesInner) GetError() string { + if o == nil || IsNil(o.Error.Get()) { + var ret string + return ret + } + return *o.Error.Get() +} + +// GetErrorOk returns a tuple with the Error 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 *ListOrchestrationBatches200ResponseBatchesInner) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Error.Get(), o.Error.IsSet() +} + +// HasError returns a boolean if a field has been set. +func (o *ListOrchestrationBatches200ResponseBatchesInner) HasError() bool { + if o != nil && o.Error.IsSet() { + return true + } + + return false +} + +// SetError gets a reference to the given NullableString and assigns it to the Error field. +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetError(v string) { + o.Error.Set(&v) +} +// SetErrorNil sets the value for Error to be an explicit nil +func (o *ListOrchestrationBatches200ResponseBatchesInner) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *ListOrchestrationBatches200ResponseBatchesInner) UnsetError() { + o.Error.Unset() +} + +func (o ListOrchestrationBatches200ResponseBatchesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrchestrationBatches200ResponseBatchesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BatchId) { + toSerialize["batchId"] = o.BatchId + } + if !IsNil(o.OrchestrationId) { + toSerialize["orchestrationId"] = o.OrchestrationId + } + if !IsNil(o.Iteration) { + toSerialize["iteration"] = o.Iteration + } + if !IsNil(o.ItemCount) { + toSerialize["itemCount"] = o.ItemCount + } + if !IsNil(o.CompletedCount) { + toSerialize["completedCount"] = o.CompletedCount + } + if !IsNil(o.FailedCount) { + toSerialize["failedCount"] = o.FailedCount + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StartedAt) { + toSerialize["startedAt"] = o.StartedAt + } + if !IsNil(o.CompletedAt) { + toSerialize["completedAt"] = o.CompletedAt + } + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListOrchestrationBatches200ResponseBatchesInner) UnmarshalJSON(data []byte) (err error) { + varListOrchestrationBatches200ResponseBatchesInner := _ListOrchestrationBatches200ResponseBatchesInner{} + + err = json.Unmarshal(data, &varListOrchestrationBatches200ResponseBatchesInner) + + if err != nil { + return err + } + + *o = ListOrchestrationBatches200ResponseBatchesInner(varListOrchestrationBatches200ResponseBatchesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "batchId") + delete(additionalProperties, "orchestrationId") + delete(additionalProperties, "iteration") + delete(additionalProperties, "itemCount") + delete(additionalProperties, "completedCount") + delete(additionalProperties, "failedCount") + delete(additionalProperties, "status") + delete(additionalProperties, "startedAt") + delete(additionalProperties, "completedAt") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListOrchestrationBatches200ResponseBatchesInner struct { + value *ListOrchestrationBatches200ResponseBatchesInner + isSet bool +} + +func (v NullableListOrchestrationBatches200ResponseBatchesInner) Get() *ListOrchestrationBatches200ResponseBatchesInner { + return v.value +} + +func (v *NullableListOrchestrationBatches200ResponseBatchesInner) Set(val *ListOrchestrationBatches200ResponseBatchesInner) { + v.value = val + v.isSet = true +} + +func (v NullableListOrchestrationBatches200ResponseBatchesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrchestrationBatches200ResponseBatchesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrchestrationBatches200ResponseBatchesInner(val *ListOrchestrationBatches200ResponseBatchesInner) *NullableListOrchestrationBatches200ResponseBatchesInner { + return &NullableListOrchestrationBatches200ResponseBatchesInner{value: val, isSet: true} +} + +func (v NullableListOrchestrationBatches200ResponseBatchesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrchestrationBatches200ResponseBatchesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_orchestrations_200_response.go b/model_list_orchestrations_200_response.go new file mode 100644 index 0000000..c6f2c88 --- /dev/null +++ b/model_list_orchestrations_200_response.go @@ -0,0 +1,202 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListOrchestrations200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOrchestrations200Response{} + +// ListOrchestrations200Response struct for ListOrchestrations200Response +type ListOrchestrations200Response struct { + Orchestrations []map[string]interface{} `json:"orchestrations,omitempty"` + NextCursor NullableString `json:"nextCursor,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListOrchestrations200Response ListOrchestrations200Response + +// NewListOrchestrations200Response instantiates a new ListOrchestrations200Response 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 NewListOrchestrations200Response() *ListOrchestrations200Response { + this := ListOrchestrations200Response{} + return &this +} + +// NewListOrchestrations200ResponseWithDefaults instantiates a new ListOrchestrations200Response 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 NewListOrchestrations200ResponseWithDefaults() *ListOrchestrations200Response { + this := ListOrchestrations200Response{} + return &this +} + +// GetOrchestrations returns the Orchestrations field value if set, zero value otherwise. +func (o *ListOrchestrations200Response) GetOrchestrations() []map[string]interface{} { + if o == nil || IsNil(o.Orchestrations) { + var ret []map[string]interface{} + return ret + } + return o.Orchestrations +} + +// GetOrchestrationsOk returns a tuple with the Orchestrations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListOrchestrations200Response) GetOrchestrationsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Orchestrations) { + return nil, false + } + return o.Orchestrations, true +} + +// HasOrchestrations returns a boolean if a field has been set. +func (o *ListOrchestrations200Response) HasOrchestrations() bool { + if o != nil && !IsNil(o.Orchestrations) { + return true + } + + return false +} + +// SetOrchestrations gets a reference to the given []map[string]interface{} and assigns it to the Orchestrations field. +func (o *ListOrchestrations200Response) SetOrchestrations(v []map[string]interface{}) { + o.Orchestrations = v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListOrchestrations200Response) GetNextCursor() string { + if o == nil || IsNil(o.NextCursor.Get()) { + var ret string + return ret + } + return *o.NextCursor.Get() +} + +// GetNextCursorOk returns a tuple with the NextCursor 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 *ListOrchestrations200Response) GetNextCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.NextCursor.Get(), o.NextCursor.IsSet() +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *ListOrchestrations200Response) HasNextCursor() bool { + if o != nil && o.NextCursor.IsSet() { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given NullableString and assigns it to the NextCursor field. +func (o *ListOrchestrations200Response) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} +// SetNextCursorNil sets the value for NextCursor to be an explicit nil +func (o *ListOrchestrations200Response) SetNextCursorNil() { + o.NextCursor.Set(nil) +} + +// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +func (o *ListOrchestrations200Response) UnsetNextCursor() { + o.NextCursor.Unset() +} + +func (o ListOrchestrations200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOrchestrations200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Orchestrations) { + toSerialize["orchestrations"] = o.Orchestrations + } + if o.NextCursor.IsSet() { + toSerialize["nextCursor"] = o.NextCursor.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListOrchestrations200Response) UnmarshalJSON(data []byte) (err error) { + varListOrchestrations200Response := _ListOrchestrations200Response{} + + err = json.Unmarshal(data, &varListOrchestrations200Response) + + if err != nil { + return err + } + + *o = ListOrchestrations200Response(varListOrchestrations200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "orchestrations") + delete(additionalProperties, "nextCursor") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListOrchestrations200Response struct { + value *ListOrchestrations200Response + isSet bool +} + +func (v NullableListOrchestrations200Response) Get() *ListOrchestrations200Response { + return v.value +} + +func (v *NullableListOrchestrations200Response) Set(val *ListOrchestrations200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListOrchestrations200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListOrchestrations200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOrchestrations200Response(val *ListOrchestrations200Response) *NullableListOrchestrations200Response { + return &NullableListOrchestrations200Response{value: val, isSet: true} +} + +func (v NullableListOrchestrations200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOrchestrations200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_tasks_200_response.go b/model_list_tasks_200_response.go index 1d6d2f7..87bbba9 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.9.0 +API version: 4.10.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 5a5dcd6..7c08856 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.9.0 +API version: 4.10.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 3799558..87549ad 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.9.0 +API version: 4.10.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 cbf83eb..ed6bfc6 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.9.0 +API version: 4.10.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 97055bc..0507ed7 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.9.0 +API version: 4.10.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 291629d..ec8d8cd 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.9.0 +API version: 4.10.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 753c16e..7eea540 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.9.0 +API version: 4.10.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 abf18d0..518c1c3 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.9.0 +API version: 4.10.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 668e8fe..373a6e8 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.9.0 +API version: 4.10.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 0956b6e..b57ddd3 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.9.0 +API version: 4.10.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 4fa6d09..1f3a0d4 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.9.0 +API version: 4.10.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 42f018a..d413450 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.9.0 +API version: 4.10.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 6c0426a..1c4e1fc 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.9.0 +API version: 4.10.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 7980b5a..55fd702 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.9.0 +API version: 4.10.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 c9fbdc6..034fc18 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.9.0 +API version: 4.10.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 8f1e09a..de33fdd 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_scaling_policy.go b/model_scaling_policy.go index 0647b26..2ea1ad4 100644 --- a/model_scaling_policy.go +++ b/model_scaling_policy.go @@ -3,7 +3,7 @@ QuantCDN API Unified API for QuantCDN Admin and QuantCloud Platform services -API version: 4.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_spot_configuration.go b/model_spot_configuration.go index ca84979..a856fa7 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.9.0 +API version: 4.10.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 49bde07..75ecbaa 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.9.0 +API version: 4.10.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 c90a046..b71ffa7 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.9.0 +API version: 4.10.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 3817d98..aed2675 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.9.0 +API version: 4.10.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 5f2a9b5..d37e207 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.9.0 +API version: 4.10.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 773ffb3..63ee1c3 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.9.0 +API version: 4.10.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 42f4c35..194713a 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.9.0 +API version: 4.10.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 37703b0..b87c5de 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_ai_session_200_response.go b/model_update_ai_session_200_response.go index f993641..d11e3b2 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.9.0 +API version: 4.10.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 3f9f0a9..975dca6 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.9.0 +API version: 4.10.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 f959659..f6684b9 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.9.0 +API version: 4.10.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 964530e..37d64f6 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.9.0 +API version: 4.10.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 34ae691..f16c0e3 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.9.0 +API version: 4.10.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 73976d5..6d9836d 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.9.0 +API version: 4.10.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 39bdfb7..51636d0 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.9.0 +API version: 4.10.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 5c03dd1..ee47345 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.9.0 +API version: 4.10.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 8f85158..ed77971 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.9.0 +API version: 4.10.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 ba733f5..e032a02 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.9.0 +API version: 4.10.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 1f071bb..76c2d23 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.9.0 +API version: 4.10.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 6133f87..9a09de1 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.9.0 +API version: 4.10.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 9443aad..20f7c26 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.9.0 +API version: 4.10.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 3b01f95..97d66d5 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.9.0 +API version: 4.10.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 fa1bdbb..65c294e 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_content_item.go b/model_v1_content_item.go index 8faf926..cbca7a2 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.9.0 +API version: 4.10.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 245eeff..25c63a4 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.9.0 +API version: 4.10.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 e5261fc..c66b849 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.9.0 +API version: 4.10.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 b1afa3b..7cebf0d 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.9.0 +API version: 4.10.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 36dac6a..3157772 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.9.0 +API version: 4.10.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 86c9443..2012364 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.9.0 +API version: 4.10.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 a237af0..3311a84 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.9.0 +API version: 4.10.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 1c12510..38a6679 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.9.0 +API version: 4.10.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 f6a6235..57694e8 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.9.0 +API version: 4.10.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 28b33de..f6a890a 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.9.0 +API version: 4.10.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 a965518..9b4b45e 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.9.0 +API version: 4.10.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 7e31417..660de59 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.9.0 +API version: 4.10.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 c107632..c69ed98 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.9.0 +API version: 4.10.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 6b25b40..9b5b5f7 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.9.0 +API version: 4.10.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 6609304..4e9a3c9 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.9.0 +API version: 4.10.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 2b1feac..a0bd6e6 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.9.0 +API version: 4.10.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 fa9ebc7..6e76e2a 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.9.0 +API version: 4.10.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 df3f272..3ce3a3e 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.9.0 +API version: 4.10.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 1f69594..249f044 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.9.0 +API version: 4.10.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 d0d5f1b..e132c5e 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.9.0 +API version: 4.10.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 5aafa82..6eb0f13 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.9.0 +API version: 4.10.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 77e3d06..7fe3d55 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.9.0 +API version: 4.10.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 2b93808..bcba335 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.9.0 +API version: 4.10.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 f5ccc66..4ca0253 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.9.0 +API version: 4.10.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 14b6662..59b9b22 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.9.0 +API version: 4.10.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 4034103..7c9439c 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.9.0 +API version: 4.10.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 a0fa6c6..0bc080d 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.9.0 +API version: 4.10.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 d72febe..bf12122 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.9.0 +API version: 4.10.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 11d895e..8a5bd05 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.9.0 +API version: 4.10.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 3adcbad..cd29e1d 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.9.0 +API version: 4.10.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 83aea7c..2eb2fcd 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.9.0 +API version: 4.10.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 4ae1bca..fcbbdd9 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.9.0 +API version: 4.10.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 eab9627..5cb5f00 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.9.0 +API version: 4.10.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 ac79973..2537ece 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.9.0 +API version: 4.10.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 aad1da9..8b2d5b6 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.9.0 +API version: 4.10.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 5b4e20c..98d7eb5 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.9.0 +API version: 4.10.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 152006c..b160ecc 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.9.0 +API version: 4.10.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 89a7cd2..8273e00 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.9.0 +API version: 4.10.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 c5945be..1195536 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.9.0 +API version: 4.10.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 8649de3..9e6d9af 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.9.0 +API version: 4.10.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 fb0d772..2b4b347 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.9.0 +API version: 4.10.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 660328b..7678e9a 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.9.0 +API version: 4.10.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 d51129c..723d7a2 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.9.0 +API version: 4.10.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 766f0d2..b282f06 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.9.0 +API version: 4.10.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 55c2315..8a67e84 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.9.0 +API version: 4.10.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 ec3e60f..29677d5 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.9.0 +API version: 4.10.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 9c666e0..90db9af 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -33,7 +33,7 @@ type V2CrawlerSchedule struct { ProjectId int32 `json:"project_id"` // Last run ID CrawlerLastRunId int32 `json:"crawler_last_run_id"` - // Cron schedule string + // Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * runs daily at 2 AM. ScheduleCronString string `json:"schedule_cron_string"` // Creation timestamp CreatedAt *time.Time `json:"created_at,omitempty"` diff --git a/model_v2_crawler_schedule_request.go b/model_v2_crawler_schedule_request.go index f0efb0c..57f1015 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &V2CrawlerScheduleRequest{} // V2CrawlerScheduleRequest struct for V2CrawlerScheduleRequest type V2CrawlerScheduleRequest struct { - // Schedule name - Name string `json:"name"` - // Cron schedule string + // Schedule name. If not provided, defaults to 'Schedule {crawler_name}'. + Name *string `json:"name,omitempty"` + // Standard Unix cron expression with 5 space-separated fields: minute, hour, day-of-month, month, day-of-week. Example: 0 2 * * * for daily at 2 AM. ScheduleCronString string `json:"schedule_cron_string"` AdditionalProperties map[string]interface{} } @@ -33,9 +33,8 @@ type _V2CrawlerScheduleRequest V2CrawlerScheduleRequest // 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 NewV2CrawlerScheduleRequest(name string, scheduleCronString string) *V2CrawlerScheduleRequest { +func NewV2CrawlerScheduleRequest(scheduleCronString string) *V2CrawlerScheduleRequest { this := V2CrawlerScheduleRequest{} - this.Name = name this.ScheduleCronString = scheduleCronString return &this } @@ -48,28 +47,36 @@ func NewV2CrawlerScheduleRequestWithDefaults() *V2CrawlerScheduleRequest { return &this } -// GetName returns the Name field value +// GetName returns the Name field value if set, zero value otherwise. func (o *V2CrawlerScheduleRequest) GetName() string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret string return ret } - - return o.Name + return *o.Name } -// GetNameOk returns a tuple with the Name field value +// GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *V2CrawlerScheduleRequest) GetNameOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Name) { return nil, false } - return &o.Name, true + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V2CrawlerScheduleRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false } -// SetName sets field value +// SetName gets a reference to the given string and assigns it to the Name field. func (o *V2CrawlerScheduleRequest) SetName(v string) { - o.Name = v + o.Name = &v } // GetScheduleCronString returns the ScheduleCronString field value @@ -106,7 +113,9 @@ func (o V2CrawlerScheduleRequest) MarshalJSON() ([]byte, error) { func (o V2CrawlerScheduleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["schedule_cron_string"] = o.ScheduleCronString for key, value := range o.AdditionalProperties { @@ -121,7 +130,6 @@ func (o *V2CrawlerScheduleRequest) UnmarshalJSON(data []byte) (err error) { // 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{ - "name", "schedule_cron_string", } diff --git a/model_v2_crawler_sitemap_inner.go b/model_v2_crawler_sitemap_inner.go index 9357948..8002b5b 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.9.0 +API version: 4.10.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 ab7061a..c1e08ec 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.9.0 +API version: 4.10.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 5c2547c..64a9161 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.9.0 +API version: 4.10.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 c9985d5..826fced 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.9.0 +API version: 4.10.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 b95733c..f6d912d 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.9.0 +API version: 4.10.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 5884b07..5f25c97 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.9.0 +API version: 4.10.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 e7b3a43..90aa765 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.9.0 +API version: 4.10.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 new file mode 100644 index 0000000..a8c90ba --- /dev/null +++ b/model_v2_metric_data.go @@ -0,0 +1,259 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the V2MetricData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V2MetricData{} + +// V2MetricData struct for V2MetricData +type V2MetricData struct { + // Time series data points + Series []V2MetricDataPoint `json:"series"` + // Total value for the period + PeriodTotal float32 `json:"period_total"` + // All-time total value + AllTimeTotal float32 `json:"all_time_total"` + // Average value per time unit in the period + PeriodAverage float32 `json:"period_average"` + AdditionalProperties map[string]interface{} +} + +type _V2MetricData V2MetricData + +// NewV2MetricData instantiates a new V2MetricData 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 NewV2MetricData(series []V2MetricDataPoint, periodTotal float32, allTimeTotal float32, periodAverage float32) *V2MetricData { + this := V2MetricData{} + this.Series = series + this.PeriodTotal = periodTotal + this.AllTimeTotal = allTimeTotal + this.PeriodAverage = periodAverage + return &this +} + +// NewV2MetricDataWithDefaults instantiates a new V2MetricData 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 NewV2MetricDataWithDefaults() *V2MetricData { + this := V2MetricData{} + return &this +} + +// GetSeries returns the Series field value +func (o *V2MetricData) GetSeries() []V2MetricDataPoint { + if o == nil { + var ret []V2MetricDataPoint + return ret + } + + return o.Series +} + +// GetSeriesOk returns a tuple with the Series field value +// and a boolean to check if the value has been set. +func (o *V2MetricData) GetSeriesOk() ([]V2MetricDataPoint, bool) { + if o == nil { + return nil, false + } + return o.Series, true +} + +// SetSeries sets field value +func (o *V2MetricData) SetSeries(v []V2MetricDataPoint) { + o.Series = v +} + +// GetPeriodTotal returns the PeriodTotal field value +func (o *V2MetricData) GetPeriodTotal() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.PeriodTotal +} + +// GetPeriodTotalOk returns a tuple with the PeriodTotal field value +// and a boolean to check if the value has been set. +func (o *V2MetricData) GetPeriodTotalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.PeriodTotal, true +} + +// SetPeriodTotal sets field value +func (o *V2MetricData) SetPeriodTotal(v float32) { + o.PeriodTotal = v +} + +// GetAllTimeTotal returns the AllTimeTotal field value +func (o *V2MetricData) GetAllTimeTotal() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.AllTimeTotal +} + +// GetAllTimeTotalOk returns a tuple with the AllTimeTotal field value +// and a boolean to check if the value has been set. +func (o *V2MetricData) GetAllTimeTotalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.AllTimeTotal, true +} + +// SetAllTimeTotal sets field value +func (o *V2MetricData) SetAllTimeTotal(v float32) { + o.AllTimeTotal = v +} + +// GetPeriodAverage returns the PeriodAverage field value +func (o *V2MetricData) GetPeriodAverage() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.PeriodAverage +} + +// GetPeriodAverageOk returns a tuple with the PeriodAverage field value +// and a boolean to check if the value has been set. +func (o *V2MetricData) GetPeriodAverageOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.PeriodAverage, true +} + +// SetPeriodAverage sets field value +func (o *V2MetricData) SetPeriodAverage(v float32) { + o.PeriodAverage = v +} + +func (o V2MetricData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V2MetricData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["series"] = o.Series + toSerialize["period_total"] = o.PeriodTotal + toSerialize["all_time_total"] = o.AllTimeTotal + toSerialize["period_average"] = o.PeriodAverage + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *V2MetricData) 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{ + "series", + "period_total", + "all_time_total", + "period_average", + } + + 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) + } + } + + varV2MetricData := _V2MetricData{} + + err = json.Unmarshal(data, &varV2MetricData) + + if err != nil { + return err + } + + *o = V2MetricData(varV2MetricData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "series") + delete(additionalProperties, "period_total") + delete(additionalProperties, "all_time_total") + delete(additionalProperties, "period_average") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableV2MetricData struct { + value *V2MetricData + isSet bool +} + +func (v NullableV2MetricData) Get() *V2MetricData { + return v.value +} + +func (v *NullableV2MetricData) Set(val *V2MetricData) { + v.value = val + v.isSet = true +} + +func (v NullableV2MetricData) IsSet() bool { + return v.isSet +} + +func (v *NullableV2MetricData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV2MetricData(val *V2MetricData) *NullableV2MetricData { + return &NullableV2MetricData{value: val, isSet: true} +} + +func (v NullableV2MetricData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV2MetricData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v2_metric_data_point.go b/model_v2_metric_data_point.go new file mode 100644 index 0000000..a4904ea --- /dev/null +++ b/model_v2_metric_data_point.go @@ -0,0 +1,198 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the V2MetricDataPoint type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V2MetricDataPoint{} + +// V2MetricDataPoint struct for V2MetricDataPoint +type V2MetricDataPoint struct { + Timestamp V2MetricDataPointTimestamp `json:"timestamp"` + // Metric value at this timestamp + Value float32 `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _V2MetricDataPoint V2MetricDataPoint + +// NewV2MetricDataPoint instantiates a new V2MetricDataPoint 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 NewV2MetricDataPoint(timestamp V2MetricDataPointTimestamp, value float32) *V2MetricDataPoint { + this := V2MetricDataPoint{} + this.Timestamp = timestamp + this.Value = value + return &this +} + +// NewV2MetricDataPointWithDefaults instantiates a new V2MetricDataPoint 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 NewV2MetricDataPointWithDefaults() *V2MetricDataPoint { + this := V2MetricDataPoint{} + return &this +} + +// GetTimestamp returns the Timestamp field value +func (o *V2MetricDataPoint) GetTimestamp() V2MetricDataPointTimestamp { + if o == nil { + var ret V2MetricDataPointTimestamp + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *V2MetricDataPoint) GetTimestampOk() (*V2MetricDataPointTimestamp, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *V2MetricDataPoint) SetTimestamp(v V2MetricDataPointTimestamp) { + o.Timestamp = v +} + +// GetValue returns the Value field value +func (o *V2MetricDataPoint) GetValue() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *V2MetricDataPoint) GetValueOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *V2MetricDataPoint) SetValue(v float32) { + o.Value = v +} + +func (o V2MetricDataPoint) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V2MetricDataPoint) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["timestamp"] = o.Timestamp + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *V2MetricDataPoint) 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{ + "timestamp", + "value", + } + + 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) + } + } + + varV2MetricDataPoint := _V2MetricDataPoint{} + + err = json.Unmarshal(data, &varV2MetricDataPoint) + + if err != nil { + return err + } + + *o = V2MetricDataPoint(varV2MetricDataPoint) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "timestamp") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableV2MetricDataPoint struct { + value *V2MetricDataPoint + isSet bool +} + +func (v NullableV2MetricDataPoint) Get() *V2MetricDataPoint { + return v.value +} + +func (v *NullableV2MetricDataPoint) Set(val *V2MetricDataPoint) { + v.value = val + v.isSet = true +} + +func (v NullableV2MetricDataPoint) IsSet() bool { + return v.isSet +} + +func (v *NullableV2MetricDataPoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV2MetricDataPoint(val *V2MetricDataPoint) *NullableV2MetricDataPoint { + return &NullableV2MetricDataPoint{value: val, isSet: true} +} + +func (v NullableV2MetricDataPoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV2MetricDataPoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v2_metric_data_point_timestamp.go b/model_v2_metric_data_point_timestamp.go new file mode 100644 index 0000000..622a917 --- /dev/null +++ b/model_v2_metric_data_point_timestamp.go @@ -0,0 +1,172 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" + "fmt" + "gopkg.in/validator.v2" +) + +// V2MetricDataPointTimestamp - Timestamp for this data point (format depends on timestamp_format parameter) +type V2MetricDataPointTimestamp struct { + Int32 *int32 + TimeTime *time.Time +} + +// int32AsV2MetricDataPointTimestamp is a convenience function that returns int32 wrapped in V2MetricDataPointTimestamp +func Int32AsV2MetricDataPointTimestamp(v *int32) V2MetricDataPointTimestamp { + return V2MetricDataPointTimestamp{ + Int32: v, + } +} + +// time.TimeAsV2MetricDataPointTimestamp is a convenience function that returns time.Time wrapped in V2MetricDataPointTimestamp +func TimeTimeAsV2MetricDataPointTimestamp(v *time.Time) V2MetricDataPointTimestamp { + return V2MetricDataPointTimestamp{ + TimeTime: v, + } +} + + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *V2MetricDataPointTimestamp) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into Int32 + err = newStrictDecoder(data).Decode(&dst.Int32) + if err == nil { + jsonInt32, _ := json.Marshal(dst.Int32) + if string(jsonInt32) == "{}" { // empty struct + dst.Int32 = nil + } else { + if err = validator.Validate(dst.Int32); err != nil { + dst.Int32 = nil + } else { + match++ + } + } + } else { + dst.Int32 = nil + } + + // try to unmarshal data into TimeTime + err = newStrictDecoder(data).Decode(&dst.TimeTime) + if err == nil { + jsonTimeTime, _ := json.Marshal(dst.TimeTime) + if string(jsonTimeTime) == "{}" { // empty struct + dst.TimeTime = nil + } else { + if err = validator.Validate(dst.TimeTime); err != nil { + dst.TimeTime = nil + } else { + match++ + } + } + } else { + dst.TimeTime = nil + } + + if match > 1 { // more than 1 match + // reset to nil + dst.Int32 = nil + dst.TimeTime = nil + + return fmt.Errorf("data matches more than one schema in oneOf(V2MetricDataPointTimestamp)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(V2MetricDataPointTimestamp)") + } +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src V2MetricDataPointTimestamp) MarshalJSON() ([]byte, error) { + if src.Int32 != nil { + return json.Marshal(&src.Int32) + } + + if src.TimeTime != nil { + return json.Marshal(&src.TimeTime) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *V2MetricDataPointTimestamp) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.Int32 != nil { + return obj.Int32 + } + + if obj.TimeTime != nil { + return obj.TimeTime + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj V2MetricDataPointTimestamp) GetActualInstanceValue() (interface{}) { + if obj.Int32 != nil { + return *obj.Int32 + } + + if obj.TimeTime != nil { + return *obj.TimeTime + } + + // all schemas are nil + return nil +} + +type NullableV2MetricDataPointTimestamp struct { + value *V2MetricDataPointTimestamp + isSet bool +} + +func (v NullableV2MetricDataPointTimestamp) Get() *V2MetricDataPointTimestamp { + return v.value +} + +func (v *NullableV2MetricDataPointTimestamp) Set(val *V2MetricDataPointTimestamp) { + v.value = val + v.isSet = true +} + +func (v NullableV2MetricDataPointTimestamp) IsSet() bool { + return v.isSet +} + +func (v *NullableV2MetricDataPointTimestamp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV2MetricDataPointTimestamp(val *V2MetricDataPointTimestamp) *NullableV2MetricDataPointTimestamp { + return &NullableV2MetricDataPointTimestamp{value: val, isSet: true} +} + +func (v NullableV2MetricDataPointTimestamp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV2MetricDataPointTimestamp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v2_metrics_meta.go b/model_v2_metrics_meta.go new file mode 100644 index 0000000..f4f6b9d --- /dev/null +++ b/model_v2_metrics_meta.go @@ -0,0 +1,337 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the V2MetricsMeta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V2MetricsMeta{} + +// V2MetricsMeta struct for V2MetricsMeta +type V2MetricsMeta struct { + // The period type for this data + Period string `json:"period"` + // The granularity of data points + Granularity string `json:"granularity"` + // Start time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) + StartTime string `json:"start_time"` + // End time of the data range (ISO8601 or Unix timestamp based on timestamp_format parameter) + EndTime string `json:"end_time"` + // List of metrics included in the response + Metrics []string `json:"metrics"` + // Domain filter applied (if any) + Domain NullableString `json:"domain,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _V2MetricsMeta V2MetricsMeta + +// NewV2MetricsMeta instantiates a new V2MetricsMeta 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 NewV2MetricsMeta(period string, granularity string, startTime string, endTime string, metrics []string) *V2MetricsMeta { + this := V2MetricsMeta{} + this.Period = period + this.Granularity = granularity + this.StartTime = startTime + this.EndTime = endTime + this.Metrics = metrics + return &this +} + +// NewV2MetricsMetaWithDefaults instantiates a new V2MetricsMeta 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 NewV2MetricsMetaWithDefaults() *V2MetricsMeta { + this := V2MetricsMeta{} + return &this +} + +// GetPeriod returns the Period field value +func (o *V2MetricsMeta) GetPeriod() string { + if o == nil { + var ret string + return ret + } + + return o.Period +} + +// GetPeriodOk returns a tuple with the Period field value +// and a boolean to check if the value has been set. +func (o *V2MetricsMeta) GetPeriodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Period, true +} + +// SetPeriod sets field value +func (o *V2MetricsMeta) SetPeriod(v string) { + o.Period = v +} + +// GetGranularity returns the Granularity field value +func (o *V2MetricsMeta) GetGranularity() string { + if o == nil { + var ret string + return ret + } + + return o.Granularity +} + +// GetGranularityOk returns a tuple with the Granularity field value +// and a boolean to check if the value has been set. +func (o *V2MetricsMeta) GetGranularityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Granularity, true +} + +// SetGranularity sets field value +func (o *V2MetricsMeta) SetGranularity(v string) { + o.Granularity = v +} + +// GetStartTime returns the StartTime field value +func (o *V2MetricsMeta) GetStartTime() string { + if o == nil { + var ret string + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *V2MetricsMeta) GetStartTimeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *V2MetricsMeta) SetStartTime(v string) { + o.StartTime = v +} + +// GetEndTime returns the EndTime field value +func (o *V2MetricsMeta) GetEndTime() string { + if o == nil { + var ret string + return ret + } + + return o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value +// and a boolean to check if the value has been set. +func (o *V2MetricsMeta) GetEndTimeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndTime, true +} + +// SetEndTime sets field value +func (o *V2MetricsMeta) SetEndTime(v string) { + o.EndTime = v +} + +// GetMetrics returns the Metrics field value +func (o *V2MetricsMeta) GetMetrics() []string { + if o == nil { + var ret []string + return ret + } + + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value +// and a boolean to check if the value has been set. +func (o *V2MetricsMeta) GetMetricsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Metrics, true +} + +// SetMetrics sets field value +func (o *V2MetricsMeta) SetMetrics(v []string) { + o.Metrics = v +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *V2MetricsMeta) GetDomain() string { + if o == nil || IsNil(o.Domain.Get()) { + var ret string + return ret + } + return *o.Domain.Get() +} + +// GetDomainOk returns a tuple with the Domain 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 *V2MetricsMeta) GetDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Domain.Get(), o.Domain.IsSet() +} + +// HasDomain returns a boolean if a field has been set. +func (o *V2MetricsMeta) HasDomain() bool { + if o != nil && o.Domain.IsSet() { + return true + } + + return false +} + +// SetDomain gets a reference to the given NullableString and assigns it to the Domain field. +func (o *V2MetricsMeta) SetDomain(v string) { + o.Domain.Set(&v) +} +// SetDomainNil sets the value for Domain to be an explicit nil +func (o *V2MetricsMeta) SetDomainNil() { + o.Domain.Set(nil) +} + +// UnsetDomain ensures that no value is present for Domain, not even an explicit nil +func (o *V2MetricsMeta) UnsetDomain() { + o.Domain.Unset() +} + +func (o V2MetricsMeta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V2MetricsMeta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["period"] = o.Period + toSerialize["granularity"] = o.Granularity + toSerialize["start_time"] = o.StartTime + toSerialize["end_time"] = o.EndTime + toSerialize["metrics"] = o.Metrics + if o.Domain.IsSet() { + toSerialize["domain"] = o.Domain.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *V2MetricsMeta) 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{ + "period", + "granularity", + "start_time", + "end_time", + "metrics", + } + + 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) + } + } + + varV2MetricsMeta := _V2MetricsMeta{} + + err = json.Unmarshal(data, &varV2MetricsMeta) + + if err != nil { + return err + } + + *o = V2MetricsMeta(varV2MetricsMeta) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "period") + delete(additionalProperties, "granularity") + delete(additionalProperties, "start_time") + delete(additionalProperties, "end_time") + delete(additionalProperties, "metrics") + delete(additionalProperties, "domain") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableV2MetricsMeta struct { + value *V2MetricsMeta + isSet bool +} + +func (v NullableV2MetricsMeta) Get() *V2MetricsMeta { + return v.value +} + +func (v *NullableV2MetricsMeta) Set(val *V2MetricsMeta) { + v.value = val + v.isSet = true +} + +func (v NullableV2MetricsMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableV2MetricsMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV2MetricsMeta(val *V2MetricsMeta) *NullableV2MetricsMeta { + return &NullableV2MetricsMeta{value: val, isSet: true} +} + +func (v NullableV2MetricsMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV2MetricsMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v2_metrics_response.go b/model_v2_metrics_response.go new file mode 100644 index 0000000..8529110 --- /dev/null +++ b/model_v2_metrics_response.go @@ -0,0 +1,198 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.10.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the V2MetricsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V2MetricsResponse{} + +// V2MetricsResponse struct for V2MetricsResponse +type V2MetricsResponse struct { + Meta V2MetricsMeta `json:"meta"` + // Metrics data keyed by metric name + Data map[string]V2MetricData `json:"data"` + AdditionalProperties map[string]interface{} +} + +type _V2MetricsResponse V2MetricsResponse + +// NewV2MetricsResponse instantiates a new V2MetricsResponse 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 NewV2MetricsResponse(meta V2MetricsMeta, data map[string]V2MetricData) *V2MetricsResponse { + this := V2MetricsResponse{} + this.Meta = meta + this.Data = data + return &this +} + +// NewV2MetricsResponseWithDefaults instantiates a new V2MetricsResponse 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 NewV2MetricsResponseWithDefaults() *V2MetricsResponse { + this := V2MetricsResponse{} + return &this +} + +// GetMeta returns the Meta field value +func (o *V2MetricsResponse) GetMeta() V2MetricsMeta { + if o == nil { + var ret V2MetricsMeta + return ret + } + + return o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value +// and a boolean to check if the value has been set. +func (o *V2MetricsResponse) GetMetaOk() (*V2MetricsMeta, bool) { + if o == nil { + return nil, false + } + return &o.Meta, true +} + +// SetMeta sets field value +func (o *V2MetricsResponse) SetMeta(v V2MetricsMeta) { + o.Meta = v +} + +// GetData returns the Data field value +func (o *V2MetricsResponse) GetData() map[string]V2MetricData { + if o == nil { + var ret map[string]V2MetricData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *V2MetricsResponse) GetDataOk() (*map[string]V2MetricData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *V2MetricsResponse) SetData(v map[string]V2MetricData) { + o.Data = v +} + +func (o V2MetricsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V2MetricsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["meta"] = o.Meta + toSerialize["data"] = o.Data + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *V2MetricsResponse) 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{ + "meta", + "data", + } + + 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) + } + } + + varV2MetricsResponse := _V2MetricsResponse{} + + err = json.Unmarshal(data, &varV2MetricsResponse) + + if err != nil { + return err + } + + *o = V2MetricsResponse(varV2MetricsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "meta") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableV2MetricsResponse struct { + value *V2MetricsResponse + isSet bool +} + +func (v NullableV2MetricsResponse) Get() *V2MetricsResponse { + return v.value +} + +func (v *NullableV2MetricsResponse) Set(val *V2MetricsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV2MetricsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV2MetricsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV2MetricsResponse(val *V2MetricsResponse) *NullableV2MetricsResponse { + return &NullableV2MetricsResponse{value: val, isSet: true} +} + +func (v NullableV2MetricsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV2MetricsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v2_organization.go b/model_v2_organization.go index 068d668..7c3b03f 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.9.0 +API version: 4.10.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 ec44cf1..1d89484 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.9.0 +API version: 4.10.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 d51e2bd..e62aa9f 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.9.0 +API version: 4.10.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 fc81ffe..1746b28 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.9.0 +API version: 4.10.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 2b076a9..597cead 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.9.0 +API version: 4.10.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 4cb5cc1..aee00a8 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.9.0 +API version: 4.10.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 8bbbe4d..259b205 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.9.0 +API version: 4.10.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 9deb93f..ece6e27 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.9.0 +API version: 4.10.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 6cdce35..05de724 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.9.0 +API version: 4.10.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 0f9953c..399606d 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.9.0 +API version: 4.10.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 877dcdd..43e48f6 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.9.0 +API version: 4.10.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 c8e4b94..66bebd2 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.9.0 +API version: 4.10.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 388d6f4..07ac56a 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.9.0 +API version: 4.10.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 3a99824..114e371 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.9.0 +API version: 4.10.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 4d42b22..12f108e 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.9.0 +API version: 4.10.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 131e352..d8f3c2d 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.9.0 +API version: 4.10.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 663ba0d..d603b9e 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.9.0 +API version: 4.10.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 b55f469..1958642 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.9.0 +API version: 4.10.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 0e34759..80bf4d7 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.9.0 +API version: 4.10.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 9ebd9ec..0e77046 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.9.0 +API version: 4.10.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 10da38f..6bb2dd4 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.9.0 +API version: 4.10.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 d68d4b1..6d6fc91 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.9.0 +API version: 4.10.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 494453a..e8ddc60 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.9.0 +API version: 4.10.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 27c7c89..5469153 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.9.0 +API version: 4.10.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 89fc296..57c923a 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.9.0 +API version: 4.10.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 da45307..1491892 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.9.0 +API version: 4.10.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 bc2a837..837626d 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.9.0 +API version: 4.10.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 3826829..cb42b2c 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.9.0 +API version: 4.10.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 ffb6823..832fd0d 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.9.0 +API version: 4.10.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 43f4a4c..6f45a10 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.9.0 +API version: 4.10.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 ef044a7..c7c2cd9 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.9.0 +API version: 4.10.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 a0c529b..efc2079 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.9.0 +API version: 4.10.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 85699fc..e49b43e 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.9.0 +API version: 4.10.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 df39e71..be87727 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.9.0 +API version: 4.10.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 4189ff9..9dcd4f4 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.9.0 +API version: 4.10.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 20ab47f..3768507 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.9.0 +API version: 4.10.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 8b1347c..7a15050 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.9.0 +API version: 4.10.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 cbe9b8e..77b83a9 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.9.0 +API version: 4.10.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 dab7f1c..76040f4 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.9.0 +API version: 4.10.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 c771030..ed2eafb 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.9.0 +API version: 4.10.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 91e11c9..2f02925 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.9.0 +API version: 4.10.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 1a6cba4..a3d6343 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.9.0 +API version: 4.10.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 56fee24..380d5b4 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.9.0 +API version: 4.10.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 6812b60..f047425 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.9.0 +API version: 4.10.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 387aeef..a0f32d0 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.9.0 +API version: 4.10.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 5580a14..d5dc4c1 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_variable.go b/model_variable.go index 0c948f5..f879aa1 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume.go b/model_volume.go index 6f37441..bf452e3 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.9.0 +API version: 4.10.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 261a436..a91e51b 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.9.0 +API version: 4.10.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 0653bbb..3311072 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.9.0 +API version: 4.10.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 4e404f7..2cd0b31 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.9.0 +API version: 4.10.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 df0cd34..204ef73 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 2809ae0..049ac58 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_ai_orchestrations_test.go b/test/api_ai_orchestrations_test.go new file mode 100644 index 0000000..203834d --- /dev/null +++ b/test/api_ai_orchestrations_test.go @@ -0,0 +1,157 @@ +/* +QuantCDN API + +Testing AIOrchestrationsAPIService + +*/ + +// 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" +) + +func Test_quantadmingo_AIOrchestrationsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AIOrchestrationsAPIService CancelOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.CancelOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService CreateOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.CreateOrchestration(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService DeleteOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + httpRes, err := apiClient.AIOrchestrationsAPI.DeleteOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService GetOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.GetOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService ListOrchestrationBatches", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.ListOrchestrationBatches(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService ListOrchestrations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.ListOrchestrations(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService PauseOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.PauseOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService ResumeOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.ResumeOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIOrchestrationsAPIService StartOrchestration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIOrchestrationsAPI.StartOrchestration(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_vector_database_test.go b/test/api_ai_vector_database_test.go index ffe21b2..1a067be 100644 --- a/test/api_ai_vector_database_test.go +++ b/test/api_ai_vector_database_test.go @@ -51,6 +51,21 @@ func Test_quantadmingo_AIVectorDatabaseAPIService(t *testing.T) { }) + t.Run("Test AIVectorDatabaseAPIService DeleteVectorDocuments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var collectionId string + + resp, httpRes, err := apiClient.AIVectorDatabaseAPI.DeleteVectorDocuments(context.Background(), organisation, collectionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AIVectorDatabaseAPIService GetVectorCollection", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_cdn_metrics_test.go b/test/api_cdn_metrics_test.go new file mode 100644 index 0000000..c4e58d4 --- /dev/null +++ b/test/api_cdn_metrics_test.go @@ -0,0 +1,70 @@ +/* +QuantCDN API + +Testing CDNMetricsAPIService + +*/ + +// 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" +) + +func Test_quantadmingo_CDNMetricsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CDNMetricsAPIService GetDailyMetrics", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var project string + + resp, httpRes, err := apiClient.CDNMetricsAPI.GetDailyMetrics(context.Background(), organization, project).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CDNMetricsAPIService GetHourlyMetrics", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var project string + + resp, httpRes, err := apiClient.CDNMetricsAPI.GetHourlyMetrics(context.Background(), organization, project).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CDNMetricsAPIService GetMonthlyMetrics", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var project string + + resp, httpRes, err := apiClient.CDNMetricsAPI.GetMonthlyMetrics(context.Background(), organization, project).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_kv_test.go b/test/api_kv_test.go index 763473d..abca86e 100644 --- a/test/api_kv_test.go +++ b/test/api_kv_test.go @@ -135,6 +135,22 @@ func Test_quantadmingo_KVAPIService(t *testing.T) { }) + t.Run("Test KVAPIService KVLinkToProject", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var project string + var storeId string + + resp, httpRes, err := apiClient.KVAPI.KVLinkToProject(context.Background(), organization, project, storeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test KVAPIService KVList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -166,4 +182,20 @@ func Test_quantadmingo_KVAPIService(t *testing.T) { }) + t.Run("Test KVAPIService KVUnlinkFromProject", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organization string + var project string + var storeId string + + resp, httpRes, err := apiClient.KVAPI.KVUnlinkFromProject(context.Background(), organization, project, storeId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/utils.go b/utils.go index 4209617..fc2d35c 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.9.0 +API version: 4.10.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 73c7965..8a44f0c 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package quantadmingo // Version of the SDK -const Version = "4.9.0" +const Version = "4.10.0"