From f57d1cf6aa5aaff7768338fa868ea13a17ceff31 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Wed, 28 Jan 2026 03:58:58 +0000 Subject: [PATCH] feat(sdk): v4.9.0 - Auto-generated from unified API spec Generated from unified API spec v4.9.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 75 +- README.md | 54 +- api/openapi.yaml | 2776 +++++++++++++++-- api_ai_agents.go | 34 +- api_ai_custom_tools.go | 2 +- api_ai_file_storage.go | 585 ++++ api_ai_inference.go | 398 ++- api_ai_models.go | 2 +- api_ai_monitoring.go | 2 +- api_ai_sessions.go | 2 +- api_ai_task_management.go | 1001 ++++++ api_ai_tools.go | 192 +- api_ai_vector_database.go | 58 +- api_applications.go | 2 +- api_backup_management.go | 2 +- api_commands.go | 2 +- api_compose.go | 2 +- api_containers.go | 2 +- api_crawler_schedules.go | 2 +- api_crawlers.go | 53 +- api_cron.go | 2 +- api_domains.go | 14 +- api_environments.go | 2 +- api_headers.go | 26 +- api_kv.go | 74 +- api_orchestration.go | 217 ++ api_organizations.go | 17 +- api_projects.go | 34 +- api_purge.go | 10 +- api_rules.go | 2 +- api_scaling_policy.go | 2 +- api_ssh_access.go | 14 +- api_variables.go | 2 +- api_volumes.go | 2 +- client.go | 13 +- configuration.go | 2 +- docs/AIFileStorageAPI.md | 306 ++ docs/AIInferenceAPI.md | 149 +- docs/AITaskManagementAPI.md | 464 +++ docs/AIToolsAPI.md | 74 + docs/AIVectorDatabaseAPI.md | 2 +- docs/BackupManagementAPI.md | 24 +- docs/ChatInference202Response.md | 145 + docs/ChatInferenceRequest.md | 54 +- docs/ChatInferenceStreamRequest.md | 54 +- docs/ChatWithAIAgent202Response.md | 192 ++ docs/ChatWithAIAgentRequest.md | 52 + docs/CommandsAPI.md | 14 +- docs/ComposeAPI.md | 14 +- docs/ContainersAPI.md | 14 +- docs/CrawlerSchedulesAPI.md | 6 +- docs/CrawlersAPI.md | 62 +- docs/CrawlersRunRequest.md | 2 +- docs/CreateTask201Response.md | 160 + docs/CreateTaskRequest.md | 311 ++ docs/CronAPI.md | 46 +- docs/DeleteFile200Response.md | 82 + docs/DeleteTask200Response.md | 108 + docs/DeleteTask409Response.md | 108 + docs/DomainsAPI.md | 32 +- docs/EnvironmentsAPI.md | 50 +- docs/GetAIOrchestrationStatus200Response.md | 244 ++ ...rchestrationStatus200ResponseToolsInner.md | 160 + docs/GetAIOrchestrationStatus404Response.md | 82 + docs/GetDependencyGraph200Response.md | 160 + docs/GetDurableExecutionStatus200Response.md | 238 ++ ...tDurableExecutionStatus200ResponseError.md | 82 + ...utionStatus200ResponsePendingToolsInner.md | 108 + ...DurableExecutionStatus200ResponseResult.md | 108 + ...xecutionStatus200ResponseResultResponse.md | 82 + ...leExecutionStatus200ResponseResultUsage.md | 108 + docs/GetFile200Response.md | 238 ++ docs/GetTask200Response.md | 764 +++++ docs/HeadersAPI.md | 24 +- docs/KVAPI.md | 86 +- docs/ListFiles200Response.md | 118 + docs/ListFiles200ResponseFilesInner.md | 186 ++ docs/ListTasks200Response.md | 134 + docs/ListTasks200ResponseTasksInner.md | 382 +++ docs/OrchestrationAPI.md | 82 + docs/OrganizationsAPI.md | 4 +- docs/ProjectsAPI.md | 32 +- docs/PurgeAPI.md | 8 +- docs/QueryVectorCollection200Response.md | 202 +- ...ryVectorCollection200ResponsePagination.md | 108 + ...VectorCollection200ResponseResultsInner.md | 88 +- ...llection200ResponseResultsInnerMetadata.md | 108 - docs/QueryVectorCollectionRequest.md | 243 +- docs/QueryVectorCollectionRequestFilter.md | 82 + docs/SSHAccessAPI.md | 12 +- docs/ScalingPolicyAPI.md | 18 +- docs/SubmitToolCallback200Response.md | 108 + docs/SubmitToolCallbackRequest.md | 72 + ...bmitToolCallbackRequestToolResultsInner.md | 72 + docs/UpdateTask200Response.md | 108 + docs/UpdateTaskRequest.md | 470 +++ docs/UploadFile201Response.md | 316 ++ docs/UploadFileRequest.md | 181 ++ docs/VariablesAPI.md | 18 +- docs/VolumesAPI.md | 24 +- go.mod | 2 +- 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 | 305 ++ model_chat_inference_request.go | 87 +- ...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 | 87 +- ...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 | 372 +++ model_chat_with_ai_agent_request.go | 82 +- 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 | 4 +- 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_task_201_response.go | 303 ++ model_create_task_request.go | 557 ++++ ...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 | 192 ++ model_delete_task_200_response.go | 230 ++ model_delete_task_409_response.go | 229 ++ ...l_delete_vector_collection_200_response.go | 2 +- 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 | 450 +++ ...tration_status_200_response_tools_inner.go | 305 ++ ...et_ai_orchestration_status_404_response.go | 192 ++ 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 | 306 ++ ...t_durable_execution_status_200_response.go | 417 +++ ...ble_execution_status_200_response_error.go | 192 ++ ...status_200_response_pending_tools_inner.go | 229 ++ ...le_execution_status_200_response_result.go | 229 ++ ...ion_status_200_response_result_response.go | 192 ++ ...cution_status_200_response_result_usage.go | 229 ++ ..._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 | 416 +++ ...get_ssh_access_credentials_200_response.go | 2 +- ...ss_credentials_200_response_credentials.go | 2 +- model_get_task_200_response.go | 1108 +++++++ 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_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 | 241 ++ model_list_files_200_response_files_inner.go | 341 ++ model_list_tasks_200_response.go | 268 ++ model_list_tasks_200_response_tasks_inner.go | 593 ++++ 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 | 284 +- ...ctor_collection_200_response_pagination.go | 229 ++ ...r_collection_200_response_results_inner.go | 133 +- ...ion_200_response_results_inner_metadata.go | 229 -- model_query_vector_collection_request.go | 430 ++- ..._query_vector_collection_request_filter.go | 194 ++ model_scaling_policy.go | 2 +- model_spot_configuration.go | 2 +- model_submit_tool_callback_200_response.go | 230 ++ model_submit_tool_callback_request.go | 199 ++ ...ool_callback_request_tool_results_inner.go | 199 ++ 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 | 229 ++ model_update_task_request.go | 727 +++++ model_upload_file_201_response.go | 531 ++++ model_upload_file_request.go | 363 +++ 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 | 2 +- model_v2_crawler_schedule_request.go | 2 +- 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_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_agents_test.go | 2 +- test/api_ai_custom_tools_test.go | 2 +- test/api_ai_file_storage_test.go | 83 + test/api_ai_inference_test.go | 31 +- test/api_ai_models_test.go | 2 +- test/api_ai_monitoring_test.go | 2 +- test/api_ai_sessions_test.go | 2 +- test/api_ai_task_management_test.go | 113 + test/api_ai_tools_test.go | 17 +- test/api_ai_vector_database_test.go | 2 +- test/api_applications_test.go | 2 +- test/api_backup_management_test.go | 2 +- test/api_commands_test.go | 2 +- test/api_compose_test.go | 2 +- test/api_containers_test.go | 2 +- test/api_crawler_schedules_test.go | 2 +- test/api_crawlers_test.go | 5 +- test/api_cron_test.go | 2 +- test/api_domains_test.go | 2 +- test/api_environments_test.go | 2 +- test/api_headers_test.go | 2 +- test/api_kv_test.go | 2 +- test/api_orchestration_test.go | 40 + test/api_organizations_test.go | 2 +- test/api_projects_test.go | 2 +- test/api_purge_test.go | 2 +- test/api_rules_test.go | 2 +- test/api_scaling_policy_test.go | 2 +- test/api_ssh_access_test.go | 2 +- test/api_variables_test.go | 2 +- test/api_volumes_test.go | 2 +- utils.go | 2 +- version.go | 2 +- 448 files changed, 25455 insertions(+), 1435 deletions(-) create mode 100644 api_ai_file_storage.go create mode 100644 api_ai_task_management.go create mode 100644 api_orchestration.go create mode 100644 docs/AIFileStorageAPI.md create mode 100644 docs/AITaskManagementAPI.md create mode 100644 docs/ChatInference202Response.md create mode 100644 docs/ChatWithAIAgent202Response.md create mode 100644 docs/CreateTask201Response.md create mode 100644 docs/CreateTaskRequest.md create mode 100644 docs/DeleteFile200Response.md create mode 100644 docs/DeleteTask200Response.md create mode 100644 docs/DeleteTask409Response.md create mode 100644 docs/GetAIOrchestrationStatus200Response.md create mode 100644 docs/GetAIOrchestrationStatus200ResponseToolsInner.md create mode 100644 docs/GetAIOrchestrationStatus404Response.md create mode 100644 docs/GetDependencyGraph200Response.md create mode 100644 docs/GetDurableExecutionStatus200Response.md create mode 100644 docs/GetDurableExecutionStatus200ResponseError.md create mode 100644 docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md create mode 100644 docs/GetDurableExecutionStatus200ResponseResult.md create mode 100644 docs/GetDurableExecutionStatus200ResponseResultResponse.md create mode 100644 docs/GetDurableExecutionStatus200ResponseResultUsage.md create mode 100644 docs/GetFile200Response.md create mode 100644 docs/GetTask200Response.md create mode 100644 docs/ListFiles200Response.md create mode 100644 docs/ListFiles200ResponseFilesInner.md create mode 100644 docs/ListTasks200Response.md create mode 100644 docs/ListTasks200ResponseTasksInner.md create mode 100644 docs/OrchestrationAPI.md create mode 100644 docs/QueryVectorCollection200ResponsePagination.md delete mode 100644 docs/QueryVectorCollection200ResponseResultsInnerMetadata.md create mode 100644 docs/QueryVectorCollectionRequestFilter.md create mode 100644 docs/SubmitToolCallback200Response.md create mode 100644 docs/SubmitToolCallbackRequest.md create mode 100644 docs/SubmitToolCallbackRequestToolResultsInner.md create mode 100644 docs/UpdateTask200Response.md create mode 100644 docs/UpdateTaskRequest.md create mode 100644 docs/UploadFile201Response.md create mode 100644 docs/UploadFileRequest.md create mode 100644 model_chat_inference_202_response.go create mode 100644 model_chat_with_ai_agent_202_response.go create mode 100644 model_create_task_201_response.go create mode 100644 model_create_task_request.go create mode 100644 model_delete_file_200_response.go create mode 100644 model_delete_task_200_response.go create mode 100644 model_delete_task_409_response.go create mode 100644 model_get_ai_orchestration_status_200_response.go create mode 100644 model_get_ai_orchestration_status_200_response_tools_inner.go create mode 100644 model_get_ai_orchestration_status_404_response.go create mode 100644 model_get_dependency_graph_200_response.go create mode 100644 model_get_durable_execution_status_200_response.go create mode 100644 model_get_durable_execution_status_200_response_error.go create mode 100644 model_get_durable_execution_status_200_response_pending_tools_inner.go create mode 100644 model_get_durable_execution_status_200_response_result.go create mode 100644 model_get_durable_execution_status_200_response_result_response.go create mode 100644 model_get_durable_execution_status_200_response_result_usage.go create mode 100644 model_get_file_200_response.go create mode 100644 model_get_task_200_response.go create mode 100644 model_list_files_200_response.go create mode 100644 model_list_files_200_response_files_inner.go create mode 100644 model_list_tasks_200_response.go create mode 100644 model_list_tasks_200_response_tasks_inner.go create mode 100644 model_query_vector_collection_200_response_pagination.go delete mode 100644 model_query_vector_collection_200_response_results_inner_metadata.go create mode 100644 model_query_vector_collection_request_filter.go create mode 100644 model_submit_tool_callback_200_response.go create mode 100644 model_submit_tool_callback_request.go create mode 100644 model_submit_tool_callback_request_tool_results_inner.go create mode 100644 model_update_task_200_response.go create mode 100644 model_update_task_request.go create mode 100644 model_upload_file_201_response.go create mode 100644 model_upload_file_request.go create mode 100644 test/api_ai_file_storage_test.go create mode 100644 test/api_ai_task_management_test.go create mode 100644 test/api_orchestration_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7bb0ee0..b186598 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,10 +4,12 @@ README.md api/openapi.yaml api_ai_agents.go api_ai_custom_tools.go +api_ai_file_storage.go api_ai_inference.go api_ai_models.go api_ai_monitoring.go api_ai_sessions.go +api_ai_task_management.go api_ai_tools.go api_ai_vector_database.go api_applications.go @@ -22,6 +24,7 @@ api_domains.go api_environments.go api_headers.go api_kv.go +api_orchestration.go api_organizations.go api_projects.go api_purge.go @@ -34,10 +37,12 @@ client.go configuration.go docs/AIAgentsAPI.md docs/AICustomToolsAPI.md +docs/AIFileStorageAPI.md docs/AIInferenceAPI.md docs/AIModelsAPI.md docs/AIMonitoringAPI.md docs/AISessionsAPI.md +docs/AITaskManagementAPI.md docs/AIToolsAPI.md docs/AIVectorDatabaseAPI.md docs/Application.md @@ -57,6 +62,7 @@ docs/ChatInference200ResponseResponseToolUseOneOf.md docs/ChatInference200ResponseResponseToolUseOneOf1Inner.md docs/ChatInference200ResponseResponseToolUseOneOfResult.md docs/ChatInference200ResponseUsage.md +docs/ChatInference202Response.md docs/ChatInferenceRequest.md docs/ChatInferenceRequestMessagesInner.md docs/ChatInferenceRequestMessagesInnerContent.md @@ -82,6 +88,7 @@ docs/ChatInferenceStreamRequestMessagesInnerContent.md docs/ChatWithAIAgent200Response.md docs/ChatWithAIAgent200ResponseResponse.md docs/ChatWithAIAgent200ResponseResponseUsage.md +docs/ChatWithAIAgent202Response.md docs/ChatWithAIAgentRequest.md docs/Command.md docs/CommandsAPI.md @@ -119,6 +126,8 @@ docs/CreateCustomToolRequest.md docs/CreateEnvironment403Response.md docs/CreateEnvironmentRequest.md docs/CreateEnvironmentRequestEnvironmentInner.md +docs/CreateTask201Response.md +docs/CreateTaskRequest.md docs/CreateVectorCollection201Response.md docs/CreateVectorCollection201ResponseCollection.md docs/CreateVectorCollectionRequest.md @@ -130,6 +139,9 @@ docs/DeleteAIAgent200Response.md docs/DeleteAISession200Response.md docs/DeleteBackup200Response.md docs/DeleteCustomTool200Response.md +docs/DeleteFile200Response.md +docs/DeleteTask200Response.md +docs/DeleteTask409Response.md docs/DeleteVectorCollection200Response.md docs/DomainsAPI.md docs/DownloadBackup200Response.md @@ -150,17 +162,29 @@ docs/GetAIModel200Response.md docs/GetAIModel200ResponseCapabilities.md docs/GetAIModel200ResponsePricing.md docs/GetAIModel404Response.md +docs/GetAIOrchestrationStatus200Response.md +docs/GetAIOrchestrationStatus200ResponseToolsInner.md +docs/GetAIOrchestrationStatus404Response.md docs/GetAISession200Response.md docs/GetAIToolExecutionStatus200Response.md docs/GetAIToolExecutionStatus200ResponseResult.md docs/GetAIToolExecutionStatus404Response.md docs/GetAIUsageStats200Response.md docs/GetAIUsageStats200ResponseByModelValue.md +docs/GetDependencyGraph200Response.md +docs/GetDurableExecutionStatus200Response.md +docs/GetDurableExecutionStatus200ResponseError.md +docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md +docs/GetDurableExecutionStatus200ResponseResult.md +docs/GetDurableExecutionStatus200ResponseResultResponse.md +docs/GetDurableExecutionStatus200ResponseResultUsage.md docs/GetEcrLoginCredentials200Response.md docs/GetEnvironmentLogs200Response.md docs/GetEnvironmentLogs200ResponseLogEventsInner.md +docs/GetFile200Response.md docs/GetSshAccessCredentials200Response.md docs/GetSshAccessCredentials200ResponseCredentials.md +docs/GetTask200Response.md docs/GetVectorCollection200Response.md docs/GetVectorCollection200ResponseCollection.md docs/HeadersAPI.md @@ -196,8 +220,13 @@ docs/ListBackups200ResponseBackupsInner.md docs/ListBackups422Response.md docs/ListCustomTools200Response.md docs/ListCustomTools200ResponseToolsInner.md +docs/ListFiles200Response.md +docs/ListFiles200ResponseFilesInner.md +docs/ListTasks200Response.md +docs/ListTasks200ResponseTasksInner.md docs/ListVectorCollections200Response.md docs/ListVectorCollections200ResponseCollectionsInner.md +docs/OrchestrationAPI.md docs/OrganizationsAPI.md docs/OrganizationsList200ResponseInner.md docs/PatchEnvironmentCompose202Response.md @@ -209,14 +238,18 @@ docs/ProjectsAPI.md docs/PurgeAPI.md docs/PurgeCreateRequest.md docs/QueryVectorCollection200Response.md +docs/QueryVectorCollection200ResponsePagination.md docs/QueryVectorCollection200ResponseResultsInner.md -docs/QueryVectorCollection200ResponseResultsInnerMetadata.md docs/QueryVectorCollectionRequest.md +docs/QueryVectorCollectionRequestFilter.md docs/RulesAPI.md docs/SSHAccessAPI.md docs/ScalingPolicy.md docs/ScalingPolicyAPI.md docs/SpotConfiguration.md +docs/SubmitToolCallback200Response.md +docs/SubmitToolCallbackRequest.md +docs/SubmitToolCallbackRequestToolResultsInner.md docs/SyncOperation.md docs/SyncToEnvironmentRequest.md docs/UpdateAIAgent200Response.md @@ -228,6 +261,10 @@ docs/UpdateCronJobRequest.md docs/UpdateEnvironmentRequest.md docs/UpdateEnvironmentStateRequest.md docs/UpdateEnvironmentVariableRequest.md +docs/UpdateTask200Response.md +docs/UpdateTaskRequest.md +docs/UploadFile201Response.md +docs/UploadFileRequest.md docs/UploadVectorDocuments200Response.md docs/UploadVectorDocumentsRequest.md docs/UploadVectorDocumentsRequestDocumentsInner.md @@ -359,6 +396,7 @@ model_chat_inference_200_response_response_tool_use_one_of.go model_chat_inference_200_response_response_tool_use_one_of_1_inner.go 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_messages_inner.go model_chat_inference_request_messages_inner_content.go @@ -384,6 +422,7 @@ model_chat_inference_stream_request_messages_inner_content.go model_chat_with_ai_agent_200_response.go model_chat_with_ai_agent_200_response_response.go model_chat_with_ai_agent_200_response_response_usage.go +model_chat_with_ai_agent_202_response.go model_chat_with_ai_agent_request.go model_command.go model_compose.go @@ -416,6 +455,8 @@ 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_task_201_response.go +model_create_task_request.go model_create_vector_collection_201_response.go model_create_vector_collection_201_response_collection.go model_create_vector_collection_request.go @@ -426,6 +467,9 @@ model_delete_ai_agent_200_response.go model_delete_ai_session_200_response.go model_delete_backup_200_response.go model_delete_custom_tool_200_response.go +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_download_backup_200_response.go model_embeddings_200_response.go @@ -444,17 +488,29 @@ model_get_ai_model_200_response.go model_get_ai_model_200_response_capabilities.go model_get_ai_model_200_response_pricing.go model_get_ai_model_404_response.go +model_get_ai_orchestration_status_200_response.go +model_get_ai_orchestration_status_200_response_tools_inner.go +model_get_ai_orchestration_status_404_response.go model_get_ai_session_200_response.go model_get_ai_tool_execution_status_200_response.go model_get_ai_tool_execution_status_200_response_result.go model_get_ai_tool_execution_status_404_response.go model_get_ai_usage_stats_200_response.go model_get_ai_usage_stats_200_response_by_model_value.go +model_get_dependency_graph_200_response.go +model_get_durable_execution_status_200_response.go +model_get_durable_execution_status_200_response_error.go +model_get_durable_execution_status_200_response_pending_tools_inner.go +model_get_durable_execution_status_200_response_result.go +model_get_durable_execution_status_200_response_result_response.go +model_get_durable_execution_status_200_response_result_usage.go model_get_ecr_login_credentials_200_response.go model_get_environment_logs_200_response.go model_get_environment_logs_200_response_log_events_inner.go +model_get_file_200_response.go model_get_ssh_access_credentials_200_response.go model_get_ssh_access_credentials_200_response_credentials.go +model_get_task_200_response.go model_get_vector_collection_200_response.go model_get_vector_collection_200_response_collection.go model_image_generation_200_response.go @@ -488,6 +544,10 @@ model_list_backups_200_response_backups_inner.go model_list_backups_422_response.go 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_tasks_200_response.go +model_list_tasks_200_response_tasks_inner.go model_list_vector_collections_200_response.go model_list_vector_collections_200_response_collections_inner.go model_organizations_list_200_response_inner.go @@ -498,11 +558,15 @@ model_patch_environment_compose_request.go model_patch_environment_compose_request_spot_configuration.go model_purge_create_request.go model_query_vector_collection_200_response.go +model_query_vector_collection_200_response_pagination.go model_query_vector_collection_200_response_results_inner.go -model_query_vector_collection_200_response_results_inner_metadata.go model_query_vector_collection_request.go +model_query_vector_collection_request_filter.go model_scaling_policy.go model_spot_configuration.go +model_submit_tool_callback_200_response.go +model_submit_tool_callback_request.go +model_submit_tool_callback_request_tool_results_inner.go model_sync_operation.go model_sync_to_environment_request.go model_update_ai_agent_200_response.go @@ -514,6 +578,10 @@ model_update_cron_job_request.go model_update_environment_request.go model_update_environment_state_request.go model_update_environment_variable_request.go +model_update_task_200_response.go +model_update_task_request.go +model_upload_file_201_response.go +model_upload_file_request.go model_upload_vector_documents_200_response.go model_upload_vector_documents_request.go model_upload_vector_documents_request_documents_inner.go @@ -628,10 +696,12 @@ model_waf_config_thresholds_inner.go response.go test/api_ai_agents_test.go test/api_ai_custom_tools_test.go +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_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 @@ -646,6 +716,7 @@ test/api_domains_test.go test/api_environments_test.go test/api_headers_test.go test/api_kv_test.go +test/api_orchestration_test.go test/api_organizations_test.go test/api_projects_test.go test/api_purge_test.go diff --git a/README.md b/README.md index 551a41a..7db0547 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,10 @@ Unified API for QuantCDN Admin and QuantCloud Platform services -[![Go Reference](https://pkg.go.dev/badge/github.com/quantcdn/quant-admin-go/v4.svg)](https://pkg.go.dev/github.com/quantcdn/quant-admin-go/v4) -[![Go Report Card](https://goreportcard.com/badge/github.com/quantcdn/quant-admin-go)](https://goreportcard.com/report/github.com/quantcdn/quant-admin-go) -![Build Status](https://github.com/quantcdn/quant-admin-go/actions/workflows/test.yml/badge.svg) -![License](https://img.shields.io/github/license/quantcdn/quant-admin-go) - ## 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.8.0 +- API version: 4.9.0 - Package version: 1.0.0 - Generator version: 7.13.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -92,10 +87,16 @@ Class | Method | HTTP request | Description *AICustomToolsAPI* | [**CreateCustomTool**](docs/AICustomToolsAPI.md#createcustomtool) | **Post** /api/v3/organizations/{organisation}/ai/custom-tools | Register Custom Edge Function Tool *AICustomToolsAPI* | [**DeleteCustomTool**](docs/AICustomToolsAPI.md#deletecustomtool) | **Delete** /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Delete Custom Tool *AICustomToolsAPI* | [**ListCustomTools**](docs/AICustomToolsAPI.md#listcustomtools) | **Get** /api/v3/organizations/{organisation}/ai/custom-tools | List Custom Tools +*AIFileStorageAPI* | [**DeleteFile**](docs/AIFileStorageAPI.md#deletefile) | **Delete** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File +*AIFileStorageAPI* | [**GetFile**](docs/AIFileStorageAPI.md#getfile) | **Get** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File +*AIFileStorageAPI* | [**ListFiles**](docs/AIFileStorageAPI.md#listfiles) | **Get** /api/v3/organizations/{organisation}/ai/files | List Files +*AIFileStorageAPI* | [**UploadFile**](docs/AIFileStorageAPI.md#uploadfile) | **Post** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 *AIInferenceAPI* | [**ChatInference**](docs/AIInferenceAPI.md#chatinference) | **Post** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support *AIInferenceAPI* | [**ChatInferenceStream**](docs/AIInferenceAPI.md#chatinferencestream) | **Post** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support *AIInferenceAPI* | [**Embeddings**](docs/AIInferenceAPI.md#embeddings) | **Post** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications +*AIInferenceAPI* | [**GetDurableExecutionStatus**](docs/AIInferenceAPI.md#getdurableexecutionstatus) | **Get** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status *AIInferenceAPI* | [**ImageGeneration**](docs/AIInferenceAPI.md#imagegeneration) | **Post** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas +*AIInferenceAPI* | [**SubmitToolCallback**](docs/AIInferenceAPI.md#submittoolcallback) | **Post** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) *AIModelsAPI* | [**GetAIModel**](docs/AIModelsAPI.md#getaimodel) | **Get** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsAPI* | [**ListAIModels**](docs/AIModelsAPI.md#listaimodels) | **Get** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringAPI* | [**GetAIUsageStats**](docs/AIMonitoringAPI.md#getaiusagestats) | **Get** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics @@ -105,6 +106,13 @@ Class | Method | HTTP request | Description *AISessionsAPI* | [**GetAISession**](docs/AISessionsAPI.md#getaisession) | **Get** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Get a specific chat session *AISessionsAPI* | [**ListAISessions**](docs/AISessionsAPI.md#listaisessions) | **Get** /api/v3/organizations/{organisation}/ai/sessions | List chat sessions with multi-tenant filtering *AISessionsAPI* | [**UpdateAISession**](docs/AISessionsAPI.md#updateaisession) | **Put** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Update Session +*AITaskManagementAPI* | [**CreateTask**](docs/AITaskManagementAPI.md#createtask) | **Post** /api/v3/organizations/{organisation}/ai/tasks | Create a new task +*AITaskManagementAPI* | [**DeleteTask**](docs/AITaskManagementAPI.md#deletetask) | **Delete** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task +*AITaskManagementAPI* | [**GetDependencyGraph**](docs/AITaskManagementAPI.md#getdependencygraph) | **Get** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list +*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* | [**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) @@ -179,6 +187,7 @@ Class | Method | HTTP request | Description *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* | [**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 *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 @@ -263,6 +272,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseResponseToolUseOneOf1Inner](docs/ChatInference200ResponseResponseToolUseOneOf1Inner.md) - [ChatInference200ResponseResponseToolUseOneOfResult](docs/ChatInference200ResponseResponseToolUseOneOfResult.md) - [ChatInference200ResponseUsage](docs/ChatInference200ResponseUsage.md) + - [ChatInference202Response](docs/ChatInference202Response.md) - [ChatInferenceRequest](docs/ChatInferenceRequest.md) - [ChatInferenceRequestMessagesInner](docs/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/ChatInferenceRequestMessagesInnerContent.md) @@ -288,6 +298,7 @@ Class | Method | HTTP request | Description - [ChatWithAIAgent200Response](docs/ChatWithAIAgent200Response.md) - [ChatWithAIAgent200ResponseResponse](docs/ChatWithAIAgent200ResponseResponse.md) - [ChatWithAIAgent200ResponseResponseUsage](docs/ChatWithAIAgent200ResponseResponseUsage.md) + - [ChatWithAIAgent202Response](docs/ChatWithAIAgent202Response.md) - [ChatWithAIAgentRequest](docs/ChatWithAIAgentRequest.md) - [Command](docs/Command.md) - [Compose](docs/Compose.md) @@ -320,6 +331,8 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/CreateEnvironmentRequestEnvironmentInner.md) + - [CreateTask201Response](docs/CreateTask201Response.md) + - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/CreateVectorCollection201Response.md) - [CreateVectorCollection201ResponseCollection](docs/CreateVectorCollection201ResponseCollection.md) - [CreateVectorCollectionRequest](docs/CreateVectorCollectionRequest.md) @@ -330,6 +343,9 @@ Class | Method | HTTP request | Description - [DeleteAISession200Response](docs/DeleteAISession200Response.md) - [DeleteBackup200Response](docs/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/DeleteCustomTool200Response.md) + - [DeleteFile200Response](docs/DeleteFile200Response.md) + - [DeleteTask200Response](docs/DeleteTask200Response.md) + - [DeleteTask409Response](docs/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/DeleteVectorCollection200Response.md) - [DownloadBackup200Response](docs/DownloadBackup200Response.md) - [Embeddings200Response](docs/Embeddings200Response.md) @@ -348,17 +364,29 @@ Class | Method | HTTP request | Description - [GetAIModel200ResponseCapabilities](docs/GetAIModel200ResponseCapabilities.md) - [GetAIModel200ResponsePricing](docs/GetAIModel200ResponsePricing.md) - [GetAIModel404Response](docs/GetAIModel404Response.md) + - [GetAIOrchestrationStatus200Response](docs/GetAIOrchestrationStatus200Response.md) + - [GetAIOrchestrationStatus200ResponseToolsInner](docs/GetAIOrchestrationStatus200ResponseToolsInner.md) + - [GetAIOrchestrationStatus404Response](docs/GetAIOrchestrationStatus404Response.md) - [GetAISession200Response](docs/GetAISession200Response.md) - [GetAIToolExecutionStatus200Response](docs/GetAIToolExecutionStatus200Response.md) - [GetAIToolExecutionStatus200ResponseResult](docs/GetAIToolExecutionStatus200ResponseResult.md) - [GetAIToolExecutionStatus404Response](docs/GetAIToolExecutionStatus404Response.md) - [GetAIUsageStats200Response](docs/GetAIUsageStats200Response.md) - [GetAIUsageStats200ResponseByModelValue](docs/GetAIUsageStats200ResponseByModelValue.md) + - [GetDependencyGraph200Response](docs/GetDependencyGraph200Response.md) + - [GetDurableExecutionStatus200Response](docs/GetDurableExecutionStatus200Response.md) + - [GetDurableExecutionStatus200ResponseError](docs/GetDurableExecutionStatus200ResponseError.md) + - [GetDurableExecutionStatus200ResponsePendingToolsInner](docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md) + - [GetDurableExecutionStatus200ResponseResult](docs/GetDurableExecutionStatus200ResponseResult.md) + - [GetDurableExecutionStatus200ResponseResultResponse](docs/GetDurableExecutionStatus200ResponseResultResponse.md) + - [GetDurableExecutionStatus200ResponseResultUsage](docs/GetDurableExecutionStatus200ResponseResultUsage.md) - [GetEcrLoginCredentials200Response](docs/GetEcrLoginCredentials200Response.md) - [GetEnvironmentLogs200Response](docs/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/GetEnvironmentLogs200ResponseLogEventsInner.md) + - [GetFile200Response](docs/GetFile200Response.md) - [GetSshAccessCredentials200Response](docs/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/GetSshAccessCredentials200ResponseCredentials.md) + - [GetTask200Response](docs/GetTask200Response.md) - [GetVectorCollection200Response](docs/GetVectorCollection200Response.md) - [GetVectorCollection200ResponseCollection](docs/GetVectorCollection200ResponseCollection.md) - [ImageGeneration200Response](docs/ImageGeneration200Response.md) @@ -392,6 +420,10 @@ Class | Method | HTTP request | Description - [ListBackups422Response](docs/ListBackups422Response.md) - [ListCustomTools200Response](docs/ListCustomTools200Response.md) - [ListCustomTools200ResponseToolsInner](docs/ListCustomTools200ResponseToolsInner.md) + - [ListFiles200Response](docs/ListFiles200Response.md) + - [ListFiles200ResponseFilesInner](docs/ListFiles200ResponseFilesInner.md) + - [ListTasks200Response](docs/ListTasks200Response.md) + - [ListTasks200ResponseTasksInner](docs/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/ListVectorCollections200Response.md) - [ListVectorCollections200ResponseCollectionsInner](docs/ListVectorCollections200ResponseCollectionsInner.md) - [OrganizationsList200ResponseInner](docs/OrganizationsList200ResponseInner.md) @@ -402,11 +434,15 @@ Class | Method | HTTP request | Description - [PatchEnvironmentComposeRequestSpotConfiguration](docs/PatchEnvironmentComposeRequestSpotConfiguration.md) - [PurgeCreateRequest](docs/PurgeCreateRequest.md) - [QueryVectorCollection200Response](docs/QueryVectorCollection200Response.md) + - [QueryVectorCollection200ResponsePagination](docs/QueryVectorCollection200ResponsePagination.md) - [QueryVectorCollection200ResponseResultsInner](docs/QueryVectorCollection200ResponseResultsInner.md) - - [QueryVectorCollection200ResponseResultsInnerMetadata](docs/QueryVectorCollection200ResponseResultsInnerMetadata.md) - [QueryVectorCollectionRequest](docs/QueryVectorCollectionRequest.md) + - [QueryVectorCollectionRequestFilter](docs/QueryVectorCollectionRequestFilter.md) - [ScalingPolicy](docs/ScalingPolicy.md) - [SpotConfiguration](docs/SpotConfiguration.md) + - [SubmitToolCallback200Response](docs/SubmitToolCallback200Response.md) + - [SubmitToolCallbackRequest](docs/SubmitToolCallbackRequest.md) + - [SubmitToolCallbackRequestToolResultsInner](docs/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/SyncOperation.md) - [SyncToEnvironmentRequest](docs/SyncToEnvironmentRequest.md) - [UpdateAIAgent200Response](docs/UpdateAIAgent200Response.md) @@ -418,6 +454,10 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/UpdateEnvironmentVariableRequest.md) + - [UpdateTask200Response](docs/UpdateTask200Response.md) + - [UpdateTaskRequest](docs/UpdateTaskRequest.md) + - [UploadFile201Response](docs/UploadFile201Response.md) + - [UploadFileRequest](docs/UploadFileRequest.md) - [UploadVectorDocuments200Response](docs/UploadVectorDocuments200Response.md) - [UploadVectorDocumentsRequest](docs/UploadVectorDocumentsRequest.md) - [UploadVectorDocumentsRequestDocumentsInner](docs/UploadVectorDocumentsRequestDocumentsInner.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 3950157..0a6f1d3 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.8.0 + version: 4.9.0 servers: - description: QuantCDN Public Cloud url: https://dashboard.quantcdn.io @@ -55,38 +55,47 @@ tags: name: AI Models - description: AI Sessions name: AI Sessions +- description: AI Task Management + name: AI Task Management - description: AI Monitoring name: AI Monitoring - description: AI Inference name: AI Inference - description: AI Tools name: AI Tools +- description: Orchestration + name: Orchestration - description: AI Agents name: AI Agents - description: AI Custom Tools name: AI Custom Tools - description: AI Vector Database name: AI Vector Database +- description: AI File Storage + name: AI File Storage paths: /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules: get: operationId: CrawlerSchedules_list parameters: - - explode: false + - example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: 00000000-0000-0000-0000-000000000000 + explode: false in: path name: crawler required: true @@ -356,6 +365,7 @@ paths: operationId: Crawlers_list parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -364,6 +374,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -372,14 +383,6 @@ paths: type: string style: simple responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/V2Crawler' - type: array - description: The request has succeeded. "400": content: application/json: @@ -400,6 +403,7 @@ paths: operationId: Crawlers_create parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -408,6 +412,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -449,6 +454,7 @@ paths: operationId: Crawlers_delete parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -457,6 +463,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -464,7 +471,9 @@ paths: schema: type: string style: simple - - explode: false + - description: The UUID of the crawler + example: 00000000-0000-0000-0000-000000000000 + explode: false in: path name: crawler required: true @@ -494,6 +503,7 @@ paths: operationId: Crawlers_read parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -502,6 +512,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -509,7 +520,9 @@ paths: schema: type: string style: simple - - explode: false + - description: The UUID of the crawler + example: 00000000-0000-0000-0000-000000000000 + explode: false in: path name: crawler required: true @@ -543,6 +556,7 @@ paths: operationId: Crawlers_update parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -551,6 +565,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -558,7 +573,9 @@ paths: schema: type: string style: simple - - explode: false + - description: The UUID of the crawler + example: 00000000-0000-0000-0000-000000000000 + explode: false in: path name: crawler required: true @@ -599,6 +616,7 @@ paths: operationId: Crawlers_run parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -607,6 +625,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -615,6 +634,7 @@ paths: type: string style: simple - description: Crawler identifier + example: 00000000-0000-0000-0000-000000000000 explode: false in: path name: crawler @@ -627,7 +647,7 @@ paths: application/json: schema: $ref: '#/components/schemas/Crawlers_run_request' - required: true + required: false responses: "200": content: @@ -668,6 +688,7 @@ paths: operationId: Crawlers_getRuns parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -676,6 +697,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -684,6 +706,7 @@ paths: type: string style: simple - description: Crawler identifier + example: 00000000-0000-0000-0000-000000000000 explode: false in: path name: crawler @@ -733,6 +756,7 @@ paths: operationId: Crawlers_getRunById parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -741,6 +765,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -749,6 +774,7 @@ paths: type: string style: simple - description: Crawler identifier + example: 00000000-0000-0000-0000-000000000000 explode: false in: path name: crawler @@ -757,6 +783,7 @@ paths: type: string style: simple - description: Run identifier + example: 1 explode: false in: path name: run_id @@ -803,14 +830,18 @@ paths: delete: operationId: Headers_delete parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -845,14 +876,18 @@ paths: get: operationId: Headers_list parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -891,14 +926,18 @@ paths: post: operationId: Headers_create parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -939,6 +978,7 @@ paths: operationId: Domains_list parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -947,6 +987,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -983,6 +1024,7 @@ paths: operationId: Domains_create parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -991,6 +1033,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -1032,6 +1075,7 @@ paths: operationId: Domains_delete parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -1040,6 +1084,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -1047,7 +1092,8 @@ paths: schema: type: string style: simple - - description: Domain identifier + - description: Domain id + example: "0000" explode: false in: path name: domain @@ -1078,6 +1124,7 @@ paths: operationId: Domains_read parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -1086,6 +1133,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -1093,7 +1141,8 @@ paths: schema: type: string style: simple - - description: Domain identifier + - description: Domain id + example: "0000" explode: false in: path name: domain @@ -1129,6 +1178,7 @@ paths: operationId: Domains_renew parameters: - description: Organization identifier + example: test-org explode: false in: path name: organization @@ -1137,6 +1187,7 @@ paths: type: string style: simple - description: Project identifier + example: test-project explode: false in: path name: project @@ -1144,7 +1195,8 @@ paths: schema: type: string style: simple - - description: Domain identifier + - description: Domain id + example: "0000" explode: false in: path name: domain @@ -1175,14 +1227,18 @@ paths: get: operationId: KV_list parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -1217,14 +1273,18 @@ paths: post: operationId: KV_create parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -1264,21 +1324,26 @@ paths: delete: operationId: KV_delete parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1307,21 +1372,26 @@ paths: get: operationId: KV_show parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1354,21 +1424,26 @@ paths: get: operationId: KV_items_list parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1436,21 +1511,26 @@ paths: post: operationId: KV_items_create parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1496,21 +1576,26 @@ paths: delete: operationId: KV_items_delete parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1554,21 +1639,26 @@ paths: \ via the Quant Cloud platform KVStore abstraction." operationId: KV_items_show parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1607,21 +1697,26 @@ paths: put: operationId: KV_items_update parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true schema: type: string style: simple - - explode: false + - example: "0000" + explode: false in: path name: store_id required: true @@ -1702,7 +1797,9 @@ paths: get: operationId: Organizations_read parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true @@ -1716,6 +1813,12 @@ paths: schema: $ref: '#/components/schemas/V2Organization' description: The request has succeeded. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/V2Error' + description: Organization not found. "400": content: application/json: @@ -1736,7 +1839,9 @@ paths: get: operationId: Projects_list parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true @@ -1771,7 +1876,9 @@ paths: post: operationId: Projects_create parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true @@ -1812,14 +1919,18 @@ paths: delete: operationId: Projects_delete parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -1848,14 +1959,18 @@ paths: get: operationId: Projects_read parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -1896,14 +2011,18 @@ paths: patch: operationId: Projects_update parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -1943,14 +2062,18 @@ paths: post: operationId: Purge_create parameters: - - explode: false + - description: Organization identifier + example: test-org + explode: false in: path name: organization required: true schema: type: string style: simple - - explode: false + - description: Project identifier + example: test-project + explode: false in: path name: project required: true @@ -4550,9 +4673,26 @@ paths: summary: Extend Session Expiration tags: - AI Sessions - /api/v3/organizations/{organisation}/ai/usage: + /api/v3/organizations/{organisation}/ai/tasks: get: - operationId: getAIUsageStats + description: |- + Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. + * + * **Filter Examples:** + * - All tasks in a list: ?taskListId=world-1 + * - Pending tasks in a list: ?taskListId=world-1&status=pending + * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer + * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 + * + * **Reverse Dependency Lookup:** + * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): + * - ?dependsOn=task-123 - Returns task IDs only (lightweight) + * - ?dependsOn=task-123&includeDetails=true - Returns full task objects + * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 + * + * **Ordering:** + * Tasks are returned in reverse chronological order (most recent first). + operationId: listTasks parameters: - description: The organisation ID explode: false @@ -4562,55 +4702,105 @@ paths: schema: type: string style: simple - - description: Month to retrieve statistics for (YYYY-MM format) + - description: Filter tasks by task list ID. Task lists are implicit groupings + - any string can be used. + example: world-1 explode: true in: query - name: month + name: taskListId required: false schema: - example: 2025-10 type: string style: form + - description: Filter tasks by status + example: pending + explode: true + in: query + name: status + required: false + schema: + enum: + - pending + - in_progress + - completed + - failed + - cancelled + - blocked + type: string + style: form + - description: Filter tasks by assigned agent ID + example: agent-code-reviewer + explode: true + in: query + name: assignedAgentId + required: false + schema: + type: string + style: form + - description: "Maximum number of tasks to return (default 50, max 100)" + explode: true + in: query + name: limit + required: false + schema: + default: 50 + maximum: 100 + minimum: 1 + type: integer + style: form + - description: "Reverse lookup: find tasks that depend on this task ID. Returns\ + \ tasks waiting for the specified task to complete." + example: 550e8400-e29b-41d4-a716-446655440000 + explode: true + in: query + name: dependsOn + required: false + schema: + format: uuid + type: string + style: form + - description: "When using dependsOn, return full task objects in addition to\ + \ IDs. Default false (IDs only for lightweight responses)." + explode: true + in: query + name: includeDetails + required: false + schema: + default: false + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/getAIUsageStats_200_response' - description: Usage statistics + $ref: '#/components/schemas/listTasks_200_response' + description: "Tasks retrieved successfully. Response format varies: standard\ + \ returns {tasks, count}, with dependsOn returns {taskIds, count, dependsOn},\ + \ with dependsOn+includeDetails returns {taskIds, tasks, count, dependsOn}" "500": - description: Failed to fetch usage statistics - summary: Get AI usage statistics + description: Failed to list tasks + summary: List tasks with optional filtering tags: - - AI Monitoring - /api/v3/organizations/{organisation}/ai/chat: + - AI Task Management post: description: |- - Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. - * - * **Multimodal Support:** - * - **Text**: Simple string content - * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) - * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) - * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) + Creates a new task for multi-agent coordination and workflow orchestration. * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) - * - * **Usage Tips:** - * - Use base64 encoding for images/videos < 5-10MB - * - Place media before text prompts for best results - * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') - * - Maximum 25MB total payload size + * **Key Features:** + * - **Persistent State**: Tasks survive across conversations and sessions + * - **Agent Assignment**: Pre-assign tasks to specific agents + * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) + * - **Dependencies**: Define task dependencies for workflow orchestration + * - **Metadata**: Store flexible JSON metadata for task-specific data + * - **Progress Tracking**: Track progress from 0.0 to 1.0 * - * **Response Patterns:** - * - **Text-only**: Returns simple text response when no tools requested - * - **Single tool**: Returns `toolUse` object when AI requests one tool - * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools - * - **Auto-execute sync**: Automatically executes tool and returns final text response - * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling - operationId: chatInference + * **Use Cases:** + * - Break down complex requests into manageable steps + * - Assign work to specialized agents + * - Track long-running operations + * - Coordinate multi-agent workflows + operationId: createTask parameters: - description: The organisation ID explode: false @@ -4624,51 +4814,378 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/chatInference_request' - description: Chat request with optional multimodal content blocks + $ref: '#/components/schemas/createTask_request' required: true responses: - "200": + "201": content: application/json: - example: - response: - role: assistant - content: The capital of Australia is Canberra. - model: amazon.nova-lite-v1:0 - requestId: req-abc123 - finishReason: stop - usage: - inputTokens: 12 - outputTokens: 8 - totalTokens: 20 schema: - $ref: '#/components/schemas/chatInference_200_response' - description: Chat inference completed (buffered response) + $ref: '#/components/schemas/createTask_201_response' + description: Task created successfully + "400": + description: Invalid request "500": - description: Failed to perform chat inference - summary: Chat inference via API Gateway (buffered responses) with multimodal - support + description: Failed to create task + summary: Create a new task tags: - - AI Inference - /api/v3/organizations/{organisation}/ai/chat/stream: - post: + - AI Task Management + /api/v3/organizations/{organisation}/ai/tasks/{taskId}: + delete: description: |- - Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. + Permanently deletes a task. This action cannot be undone. * - * **Multimodal Support:** - * - **Text**: Simple string content - * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) - * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) - * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) + * **Dependency Protection:** + * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). + * This prevents breaking workflows. * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Cascade Delete:** + * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. + * Useful for cleaning up entire dependency chains. * - * **Usage Tips:** - * - Use base64 encoding for images/videos < 5-10MB - * - Place media before text prompts for best results + * **Examples:** + * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error + * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + operationId: deleteTask + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The task UUID + explode: false + in: path + name: taskId + required: true + schema: + format: uuid + type: string + style: simple + - description: "If true, delete task and all dependent tasks recursively" + explode: true + in: query + name: cascade + required: false + schema: + default: false + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteTask_200_response' + description: Task deleted successfully + "409": + content: + application/json: + schema: + $ref: '#/components/schemas/deleteTask_409_response' + description: Task has dependents - cannot delete without cascade + "404": + description: Task not found + "500": + description: Failed to delete task + summary: Delete a task + tags: + - AI Task Management + get: + description: "Retrieves detailed information about a specific task including\ + \ status, progress, dependencies, and results." + operationId: getTask + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The task UUID + explode: false + in: path + name: taskId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getTask_200_response' + description: Task details retrieved successfully + "404": + description: Task not found + "500": + description: Failed to get task + summary: Get task details + tags: + - AI Task Management + put: + description: |- + Updates an existing task. All fields are optional - only provided fields will be updated. + * + * **Status Transitions:** + * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp + * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp + * - Changing to **blocked** automatically sets blockedAt timestamp + * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields + * - Completed tasks get a 30-day TTL for automatic cleanup + * + * **Progress Updates:** + * - Update progress (0.0 to 1.0) to track completion percentage + * - Update progressMessage for human-readable status updates + * - Set result object when task completes successfully + * - Set error string when task fails + * - Set blockedReason and blockedByTaskIds when blocking a task + operationId: updateTask + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The task UUID + example: 550e8400-e29b-41d4-a716-446655440000 + explode: false + in: path + name: taskId + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/updateTask_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/updateTask_200_response' + description: Task updated successfully + "400": + description: Invalid request + "404": + description: Task not found + "500": + description: Failed to update task + summary: Update a task + tags: + - AI Task Management + /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph: + get: + description: |- + Returns the full dependency graph for all tasks in a task list. + * + * **Use Cases:** + * - Visualize task dependencies in a UI (DAG diagram) + * - Analyze workflow structure and critical paths + * - Find starting tasks (roots) and terminal tasks (leaves) + * - Plan parallel execution by identifying independent task groups + * + * **Response Structure:** + * - `taskCount`: Total number of tasks in the list + * - `roots`: Task IDs with no dependencies (starting points) + * - `leaves`: Task IDs with no dependents (terminal tasks) + * - `graph`: Adjacency list with each task's dependencies and dependents + operationId: getDependencyGraph + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: The task list ID to get the dependency graph for + example: world-1 + explode: false + in: path + name: taskListId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getDependencyGraph_200_response' + description: Dependency graph retrieved successfully + "500": + description: Failed to get dependency graph + summary: Get dependency graph for a task list + tags: + - AI Task Management + /api/v3/organizations/{organisation}/ai/usage: + get: + operationId: getAIUsageStats + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Month to retrieve statistics for (YYYY-MM format) + explode: true + in: query + name: month + required: false + schema: + example: 2025-10 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getAIUsageStats_200_response' + description: Usage statistics + "500": + description: Failed to fetch usage statistics + summary: Get AI usage statistics + tags: + - AI Monitoring + /api/v3/organizations/{organisation}/ai/chat: + post: + description: |- + Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * - Ideal for complex prompts, large contexts, or client-side tools + * + * **Multimodal Support:** + * - **Text**: Simple string content + * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) + * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) + * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) + * + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) + * + * **Usage Tips:** + * - Use base64 encoding for images/videos < 5-10MB + * - Place media before text prompts for best results + * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') + * - Maximum 25MB total payload size + * + * **Response Patterns:** + * - **Text-only**: Returns simple text response when no tools requested + * - **Single tool**: Returns `toolUse` object when AI requests one tool + * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools + * - **Auto-execute sync**: Automatically executes tool and returns final text response + * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling + operationId: chatInference + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/chatInference_request' + description: Chat request with optional multimodal content blocks + required: true + responses: + "200": + content: + application/json: + example: + response: + role: assistant + content: The capital of Australia is Canberra. + model: amazon.nova-lite-v1:0 + requestId: req-abc123 + finishReason: stop + usage: + inputTokens: 12 + outputTokens: 8 + totalTokens: 20 + schema: + $ref: '#/components/schemas/chatInference_200_response' + description: "Chat inference completed (buffered response, sync mode)" + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/chatInference_202_response' + description: "Async execution started (when `async: true` in request)" + "500": + description: Failed to perform chat inference + summary: Chat inference via API Gateway (buffered responses) with multimodal + support + tags: + - AI Inference + /api/v3/organizations/{organisation}/ai/chat/stream: + post: + description: |- + Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. + * + * **Execution Modes:** + * - **Streaming Mode** (default): Real-time SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * + * **Multimodal Support:** + * - **Text**: Simple string content + * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) + * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) + * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) + * + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) + * + * **Usage Tips:** + * - Use base64 encoding for images/videos < 5-10MB + * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) @@ -4713,7 +5230,13 @@ paths: description: "Server-Sent Events stream with chunks of generated text.\ \ Format: id, event, data lines separated by newlines." type: string - description: Streaming response (text/event-stream) + description: "Streaming response (text/event-stream, sync mode)" + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/chatInference_202_response' + description: "Async execution started (when `async: true` in request)" "500": description: Failed to perform streaming inference summary: Chat inference via streaming endpoint (true HTTP streaming) with multimodal @@ -5013,6 +5536,191 @@ paths: summary: Get async tool execution status and result tags: - AI Tools + /api/v3/organizations/{organisation}/ai/chat/executions/{identifier}: + get: + description: |- + Poll the status of an async/durable chat execution. + * + * **When to use:** After starting chat inference with `async: true`, poll this endpoint + * to check execution status and retrieve results when complete. + * + * **Identifier:** Accepts either: + * - `requestId` (recommended): The short ID returned from the async request + * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) + * + * **Statuses:** + * - `pending`: Execution is starting (retry shortly) + * - `running`: Execution is in progress + * - `waiting_callback`: Execution paused, waiting for client tool results + * - `complete`: Execution finished successfully + * - `failed`: Execution failed with error + * + * **Client Tool Callback:** + * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. + * + * **Polling Recommendations:** + * - Start with 1 second delay, exponential backoff up to 30 seconds + * - Stop polling after 15 minutes (consider failed) + operationId: getDurableExecutionStatus + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: "Either the requestId from async response, or full executionArn\ + \ (URL-encoded)" + example: XkdVWiEfSwMEPrw= + explode: false + in: path + name: identifier + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response' + description: Execution status retrieved + "404": + description: Execution not found + "403": + description: Access denied + "500": + description: Failed to retrieve execution status + summary: Get Durable Execution Status + tags: + - AI Inference + /api/v3/organizations/{organisation}/ai/chat/callback: + post: + description: |- + Submit tool execution results to resume a suspended durable execution. + * + * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint + * to submit the results of client-executed tools. The execution will then resume. + * + * **Flow:** + * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) + * 2. Poll status until `waiting_callback` + * 3. Execute tools locally using `pendingTools` from status response + * 4. Submit results here with the `callbackId` + * 5. Poll status until `complete` + * + * **Important:** Each `callbackId` can only be used once. After submission, poll the execution + * status to see the updated state. + operationId: submitToolCallback + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/submitToolCallback_request' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/submitToolCallback_200_response' + description: "Callback submitted successfully, execution will resume" + "400": + description: Invalid request (missing callbackId or toolResults) + "404": + description: Callback not found or already processed + "403": + description: Access denied + "500": + description: Failed to submit callback + summary: Submit Client Tool Results (Callback) + tags: + - AI Inference + /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}: + get: + description: |- + Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + operationId: getAIOrchestrationStatus + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: Orchestration identifier for aggregated async tool executions + explode: false + in: path + name: orchestrationId + required: true + schema: + example: orch_abc123def456789012345678901234 + pattern: "^orch_[a-f0-9]{32}$" + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/getAIOrchestrationStatus_200_response' + description: Orchestration status retrieved successfully + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/getAIOrchestrationStatus_404_response' + description: Orchestration not found (may have expired after 24h) + "403": + description: Access denied + "500": + description: Failed to retrieve orchestration status + summary: Get Orchestration Status + tags: + - AI Tools + - Orchestration /api/v3/organizations/{organisation}/ai/tools/executions: get: description: |- @@ -5302,13 +6010,27 @@ paths: * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available - * - All tools are auto-executed (no client confirmation) + * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config + * - Supports sync, streaming, and async modes + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion + * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running agent tasks + * - All tools are auto-executed on cloud (no `waiting_callback` state) + * - Poll `/ai/chat/executions/{requestId}` for status + * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity + * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history operationId: chatWithAIAgent parameters: @@ -5341,7 +6063,13 @@ paths: application/json: schema: $ref: '#/components/schemas/chatWithAIAgent_200_response' - description: Agent response generated successfully + description: Agent response generated successfully (sync mode) + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/chatWithAIAgent_202_response' + description: "Async execution started (when `async: true` in request)" "400": description: Invalid request parameters "403": @@ -5669,11 +6397,39 @@ paths: post: description: |- Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. + * + * **Three Search Modes:** + * + * 1. **Text Query** - Provide `query` string, server generates embedding + * - Query text is embedded using the collection's embedding model + * - Embeddings are cached for repeated queries + * + * 2. **Vector Query** - Provide pre-computed `vector` array + * - Skip embedding generation (faster) + * - Useful when you've already embedded the query elsewhere + * - Vector dimension must match collection (e.g., 1024 for Titan v2) + * + * 3. **Metadata List** - Set `listByMetadata: true` with `filter` + * - Skip semantic search entirely + * - Return all documents matching the filter + * - Supports cursor-based pagination for large datasets + * - Results ordered by sortBy/sortOrder (default: created_at DESC) + * + * **Filtering:** + * - `filter.exact`: Exact match on metadata fields (AND logic) + * - `filter.contains`: Array contains filter for tags (ANY match) + * - Filters can be combined with semantic search or used alone with listByMetadata + * + * **Pagination (listByMetadata mode only):** + * - Use `cursor` from previous response's `nextCursor` to get next page + * - Uses keyset pagination for efficient traversal of large datasets + * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + * - List all artifacts by building/worker/tag operationId: queryVectorCollection parameters: - description: The organisation ID @@ -5717,6 +6473,193 @@ paths: summary: Semantic Search Query tags: - AI Vector Database + /api/v3/organizations/{organisation}/ai/files: + get: + description: Lists files stored in S3 for this organization with optional metadata + filtering and pagination. + operationId: listFiles + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + - description: JSON-encoded metadata filter. Supports exact match and array + contains filters. + explode: true + in: query + name: filter + required: false + schema: + example: "{}" + type: string + style: form + - description: Maximum files to return + explode: true + in: query + name: limit + required: false + schema: + default: 50 + maximum: 200 + 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/listFiles_200_response' + description: List of files + "400": + description: Invalid filter parameter + "403": + description: Access denied + "500": + description: Failed to list files + summary: List Files + tags: + - AI File Storage + post: + description: |- + Uploads a file to S3 storage for later retrieval. + * + * **Two Upload Modes:** + * + * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. + * + * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. + * + * **Supported Content Types:** + * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml + * - Documents: application/pdf, text/plain, text/markdown, text/html + * - Code: text/javascript, application/json, text/css, text/yaml + * - Archives: application/zip, application/gzip + * - Video: video/mp4, video/webm (use presigned URL for large files) + * + * **Metadata:** + * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + operationId: uploadFile + parameters: + - description: The organisation ID + explode: false + in: path + name: organisation + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/uploadFile_request' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/uploadFile_201_response' + description: File uploaded or presigned URL generated + "400": + description: Invalid request parameters + "403": + description: Access denied + "413": + description: File too large (use requestUploadUrl for large files) + "500": + description: Failed to upload file + summary: Upload File to S3 + tags: + - AI File Storage + /api/v3/organizations/{organisation}/ai/files/{fileId}: + delete: + description: Deletes a file from S3 storage. + operationId: deleteFile + 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/deleteFile_200_response' + description: File deleted successfully + "403": + description: Access denied + "404": + 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}/applications: get: operationId: listApplications @@ -5863,6 +6806,7 @@ paths: operationId: listCommands parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -5871,6 +6815,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -5892,6 +6837,7 @@ paths: operationId: createCommand parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -5900,6 +6846,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -5928,6 +6875,7 @@ paths: operationId: getCommand parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -5936,6 +6884,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -5944,6 +6893,7 @@ paths: type: string style: simple - description: The command ID + example: test-cmd explode: false in: path name: command @@ -5966,6 +6916,7 @@ paths: operationId: getEnvironmentCompose parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -5974,6 +6925,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -5982,6 +6934,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6012,6 +6965,7 @@ paths: operationId: patchEnvironmentCompose parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6020,6 +6974,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6028,6 +6983,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6075,6 +7031,7 @@ paths: operationId: validateCompose parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6127,6 +7084,7 @@ paths: operationId: listContainers parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6135,6 +7093,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6143,6 +7102,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6163,6 +7123,7 @@ paths: operationId: updateContainer parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6171,6 +7132,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6179,6 +7141,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6187,6 +7150,7 @@ paths: type: string style: simple - description: The container ID + example: test-container explode: false in: path name: container @@ -6213,6 +7177,7 @@ paths: operationId: listCronJobs parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6221,6 +7186,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6229,6 +7195,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6252,6 +7219,7 @@ paths: operationId: createCronJob parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6260,6 +7228,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6268,6 +7237,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6304,6 +7274,7 @@ paths: operationId: deleteCronJob parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6312,6 +7283,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6320,6 +7292,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6345,6 +7318,7 @@ paths: operationId: getCronJob parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6353,6 +7327,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6361,6 +7336,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6392,6 +7368,7 @@ paths: operationId: updateCronJob parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6400,6 +7377,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6408,6 +7386,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6446,6 +7425,7 @@ paths: operationId: listCronJobRuns parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6454,6 +7434,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6462,6 +7443,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6470,6 +7452,7 @@ paths: type: string style: simple - description: The cron job ID + example: test-cron explode: false in: path name: cron @@ -6494,6 +7477,7 @@ paths: operationId: getCronRun parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6502,6 +7486,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6510,6 +7495,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6518,6 +7504,7 @@ paths: type: string style: simple - description: The cron job ID + example: test-cron explode: false in: path name: cron @@ -6548,6 +7535,7 @@ paths: operationId: listEnvironments parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6556,6 +7544,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6582,6 +7571,7 @@ paths: operationId: createEnvironment parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6590,6 +7580,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6627,6 +7618,7 @@ paths: operationId: deleteEnvironment parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6635,6 +7627,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6643,6 +7636,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6662,6 +7656,7 @@ paths: operationId: getEnvironment parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6670,6 +7665,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6678,6 +7674,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6753,6 +7750,7 @@ paths: operationId: updateEnvironmentState parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6761,6 +7759,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6769,6 +7768,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6798,6 +7798,7 @@ paths: operationId: getEnvironmentLogs parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6806,6 +7807,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6814,6 +7816,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6893,6 +7896,7 @@ paths: operationId: getEnvironmentMetrics parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6901,6 +7905,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6909,6 +7914,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -6978,6 +7984,7 @@ paths: operationId: listSyncOperations parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -6986,6 +7993,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -6994,6 +8002,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7028,6 +8037,7 @@ paths: operationId: syncToEnvironment parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7036,6 +8046,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7044,6 +8055,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7086,6 +8098,7 @@ paths: operationId: listBackups parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7094,6 +8107,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7102,6 +8116,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7204,6 +8219,7 @@ paths: operationId: createBackup parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7212,6 +8228,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7220,6 +8237,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7259,6 +8277,7 @@ paths: operationId: deleteBackup parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7267,6 +8286,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7275,6 +8295,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7316,6 +8337,7 @@ paths: operationId: downloadBackup parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7324,6 +8346,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7332,6 +8355,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7373,6 +8397,7 @@ paths: operationId: getScalingPolicies parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7381,6 +8406,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7389,6 +8415,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7406,6 +8433,7 @@ paths: operationId: updateScalingPolicy parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7414,6 +8442,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7422,6 +8451,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7446,6 +8476,7 @@ paths: operationId: deleteScalingPolicy parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7454,6 +8485,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7462,6 +8494,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7487,7 +8520,8 @@ paths: get: operationId: getSshAccessCredentials parameters: - - description: The organisation machine name + - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7495,7 +8529,8 @@ paths: schema: type: string style: simple - - description: The application name + - description: The application ID + example: test-app explode: false in: path name: application @@ -7503,7 +8538,8 @@ paths: schema: type: string style: simple - - description: The environment name + - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7532,6 +8568,7 @@ paths: operationId: listEnvironmentVariables parameters: - description: The organisation ID + example: test-org explode: false in: path name: api_organisation @@ -7540,6 +8577,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: api_application @@ -7548,6 +8586,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: api_environment @@ -7565,6 +8604,7 @@ paths: operationId: bulkSetEnvironmentVariables parameters: - description: The organisation ID + example: test-org explode: false in: path name: api_organisation @@ -7573,6 +8613,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: api_application @@ -7581,6 +8622,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: api_environment @@ -7648,6 +8690,7 @@ paths: operationId: updateEnvironmentVariable parameters: - description: The organisation ID + example: test-org explode: false in: path name: api_organisation @@ -7656,6 +8699,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: api_application @@ -7664,6 +8708,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: api_environment @@ -7698,6 +8743,7 @@ paths: operationId: listVolumes parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7706,6 +8752,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7714,6 +8761,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7737,6 +8785,7 @@ paths: operationId: createVolume parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7745,6 +8794,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7753,6 +8803,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7783,6 +8834,7 @@ paths: operationId: deleteVolume parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7791,6 +8843,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7799,6 +8852,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -7826,6 +8880,7 @@ paths: operationId: getVolume parameters: - description: The organisation ID + example: test-org explode: false in: path name: organisation @@ -7834,6 +8889,7 @@ paths: type: string style: simple - description: The application ID + example: test-app explode: false in: path name: application @@ -7842,6 +8898,7 @@ paths: type: string style: simple - description: The environment ID + example: test-env explode: false in: path name: environment @@ -9752,13 +10809,13 @@ components: type: object V2Organization: example: - updated_at: 2024-10-10T14:20:00Z name: Test Organization - created_at: 2024-01-15T10:30:00Z - subscription: professional machine_name: test-org type: business region: au + subscription: professional + created_at: 2024-01-15T10:30:00Z + updated_at: 2024-10-10T14:20:00Z properties: name: description: Organization name @@ -12973,7 +14030,9 @@ components: Crawlers_run_request: properties: urls: - description: URLs to crawl + description: "Optional URLs to crawl (overrides crawler's default URL configuration).\ + \ If not provided, the crawler will use its configured URLs or perform\ + \ a full crawl." example: - / - /about @@ -13432,31 +14491,565 @@ components: message: type: string type: object - extendAISession_request: + extendAISession_request: + properties: + additionalMinutes: + default: 60 + description: "Minutes to add to expiration time (default 60, max 1440)" + example: 60 + maximum: 1440 + minimum: 1 + type: integer + type: object + extendAISession_200_response: + example: + sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + message: Session extended by 60 minutes + expiresAt: 2000-01-23T04:56:07.000+00:00 + properties: + sessionId: + format: uuid + type: string + expiresAt: + format: date-time + type: string + message: + example: Session extended by 60 minutes + type: string + type: object + listTasks_200_response_tasks_inner: + example: + createdAt: 1735689600000 + assignedAgentId: agent-123 + blockedByTaskIds: + - blockedByTaskIds + - blockedByTaskIds + blockedReason: blockedReason + description: "Extract text from PDF, analyze content" + progress: 0.5 + taskListId: world-1 + title: Process document and create summary + taskId: 550e8400-e29b-41d4-a716-446655440000 + orgId: quant + status: in_progress + updatedAt: 1735689700000 + properties: + taskId: + example: 550e8400-e29b-41d4-a716-446655440000 + format: uuid + type: string + orgId: + example: quant + type: string + taskListId: + example: world-1 + nullable: true + type: string + title: + example: Process document and create summary + type: string + description: + example: "Extract text from PDF, analyze content" + type: string + status: + enum: + - pending + - in_progress + - completed + - failed + - cancelled + - blocked + example: in_progress + type: string + assignedAgentId: + example: agent-123 + nullable: true + type: string + progress: + example: 0.5 + maximum: 1 + minimum: 0 + type: number + blockedReason: + nullable: true + type: string + blockedByTaskIds: + items: + type: string + nullable: true + type: array + createdAt: + example: 1735689600000 + type: integer + updatedAt: + example: 1735689700000 + type: integer + type: object + listTasks_200_response: + example: + dependsOn: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + count: 2 + taskIds: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + tasks: + - createdAt: 1735689600000 + assignedAgentId: agent-123 + blockedByTaskIds: + - blockedByTaskIds + - blockedByTaskIds + blockedReason: blockedReason + description: "Extract text from PDF, analyze content" + progress: 0.5 + taskListId: world-1 + title: Process document and create summary + taskId: 550e8400-e29b-41d4-a716-446655440000 + orgId: quant + status: in_progress + updatedAt: 1735689700000 + - createdAt: 1735689600000 + assignedAgentId: agent-123 + blockedByTaskIds: + - blockedByTaskIds + - blockedByTaskIds + blockedReason: blockedReason + description: "Extract text from PDF, analyze content" + progress: 0.5 + taskListId: world-1 + title: Process document and create summary + taskId: 550e8400-e29b-41d4-a716-446655440000 + orgId: quant + status: in_progress + updatedAt: 1735689700000 + properties: + tasks: + items: + $ref: '#/components/schemas/listTasks_200_response_tasks_inner' + type: array + taskIds: + description: Task IDs (only with dependsOn filter) + items: + format: uuid + type: string + type: array + count: + example: 2 + type: integer + dependsOn: + description: The queried task ID (only with dependsOn filter) + format: uuid + type: string + type: object + createTask_request: + properties: + title: + description: Task title + example: Process document and create summary + type: string + description: + description: Detailed task description + example: "Extract text from PDF, analyze content, and generate executive\ + \ summary" + type: string + taskListId: + description: Task list ID for grouping related tasks (implicit - lists are + created automatically) + example: world-1 + type: string + status: + default: pending + description: Initial task status + enum: + - pending + - in_progress + - completed + - failed + - cancelled + - blocked + type: string + assignedAgentId: + description: Pre-assign task to specific agent + example: agent-code-reviewer + type: string + createdByAgentId: + description: Agent ID that created this task + example: agent-coordinator + type: string + dependsOn: + description: Task IDs that must complete before this task can start + example: + - 550e8400-e29b-41d4-a716-446655440000 + items: + format: uuid + type: string + type: array + metadata: + description: Flexible JSON metadata for task-specific data + example: + priority: high + tags: + - document-processing + workflow: document-pipeline + type: object + maxRetries: + default: 3 + description: Maximum retry attempts on failure + maximum: 10 + minimum: 0 + type: integer + blockedReason: + description: Reason task is blocked (when status is blocked) + example: Waiting for approval + type: string + blockedByTaskIds: + description: Task IDs that are blocking this task + items: + format: uuid + type: string + type: array + required: + - title + type: object + createTask_201_response: + example: + createdAt: 0 + title: title + taskId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + orgId: orgId + status: status + properties: + taskId: + format: uuid + type: string + orgId: + type: string + title: + type: string + status: + type: string + createdAt: + type: integer + type: object + getTask_200_response: + example: + metadata: + priority: high + completedAt: 6 + blockedByTaskIds: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + dependsOn: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + blockedReason: blockedReason + retryCount: 0 + description: "Extract text from PDF, analyze content" + startedAt: 0 + title: Process document and create summary + error: error + orgId: quant + expiresAt: 1 + result: "{}" + createdAt: 1735689600000 + assignedAgentId: agent-123 + maxRetries: 3 + blockedAt: 5 + progress: 0.5 + createdByAgentId: agent-coordinator + taskListId: world-1 + taskId: 550e8400-e29b-41d4-a716-446655440000 + status: in_progress + progressMessage: "Extracted text, analyzing content..." + updatedAt: 1735689700000 + properties: + taskId: + example: 550e8400-e29b-41d4-a716-446655440000 + format: uuid + type: string + orgId: + example: quant + type: string + taskListId: + example: world-1 + nullable: true + type: string + title: + example: Process document and create summary + type: string + description: + example: "Extract text from PDF, analyze content" + type: string + status: + enum: + - pending + - in_progress + - completed + - failed + - cancelled + - blocked + example: in_progress + type: string + assignedAgentId: + example: agent-123 + nullable: true + type: string + createdByAgentId: + example: agent-coordinator + nullable: true + type: string + dependsOn: + items: + format: uuid + type: string + type: array + metadata: + example: + priority: high + type: object + progress: + example: 0.5 + format: float + maximum: 1 + minimum: 0 + type: number + progressMessage: + example: "Extracted text, analyzing content..." + type: string + result: + description: Task result data when completed + nullable: true + type: object + error: + description: Error message if status is failed + nullable: true + type: string + retryCount: + example: 0 + type: integer + maxRetries: + example: 3 + type: integer + createdAt: + description: Unix timestamp in milliseconds + example: 1735689600000 + format: int64 + type: integer + updatedAt: + description: Unix timestamp in milliseconds + example: 1735689700000 + format: int64 + type: integer + startedAt: + description: When status changed to in_progress + format: int64 + nullable: true + type: integer + completedAt: + description: When task completed/failed/cancelled + format: int64 + nullable: true + type: integer + expiresAt: + description: TTL timestamp for completed tasks + format: int64 + nullable: true + type: integer + blockedReason: + description: Reason task is blocked + nullable: true + type: string + blockedByTaskIds: + description: Task IDs that are blocking this task + items: + format: uuid + type: string + nullable: true + type: array + blockedAt: + description: When status changed to blocked + format: int64 + nullable: true + type: integer + type: object + updateTask_request: + properties: + title: + example: Updated task title + type: string + description: + example: Updated description with more details + type: string + taskListId: + description: Move task to different list or remove from list (set null) + example: world-2 + nullable: true + type: string + status: + description: Task status (triggers automatic timestamp updates) + enum: + - pending + - in_progress + - completed + - failed + - cancelled + - blocked + example: in_progress + type: string + assignedAgentId: + description: Reassign task to different agent + example: agent-specialist + nullable: true + type: string + dependsOn: + description: Update task dependencies + example: + - 550e8400-e29b-41d4-a716-446655440000 + items: + format: uuid + type: string + type: array + metadata: + description: Update task metadata (replaces entire metadata object) + example: + priority: urgent + type: object + progress: + description: Progress from 0.0 to 1.0 + example: 0.75 + format: float + maximum: 1 + minimum: 0 + type: number + progressMessage: + description: Human-readable progress message + example: Processing document 3 of 4... + type: string + result: + description: Task result data (set when completing task) + example: + summary: Document processed successfully + wordCount: 1500 + type: object + error: + description: Error message (set when task fails) + example: Failed to connect to external API + nullable: true + type: string + retryCount: + description: Update retry count + example: 1 + minimum: 0 + type: integer + maxRetries: + description: Update maximum retry attempts + example: 5 + maximum: 10 + minimum: 0 + type: integer + blockedReason: + description: Reason task is blocked (set when status is blocked) + example: Waiting for external approval + nullable: true + type: string + blockedByTaskIds: + description: Task IDs that are blocking this task + items: + format: uuid + type: string + nullable: true + type: array + type: object + updateTask_200_response: + example: + taskId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + status: status + updatedAt: 0 + properties: + taskId: + format: uuid + type: string + status: + type: string + updatedAt: + type: integer + type: object + deleteTask_200_response: + example: + deleted: true + deletedCount: 1 + deletedTaskIds: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: - additionalMinutes: - default: 60 - description: "Minutes to add to expiration time (default 60, max 1440)" - example: 60 - maximum: 1440 - minimum: 1 + deleted: + example: true + type: boolean + deletedCount: + description: Number of tasks deleted (more than 1 for cascade) + example: 1 type: integer + deletedTaskIds: + items: + format: uuid + type: string + type: array type: object - extendAISession_200_response: + deleteTask_409_response: example: - sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - message: Session extended by 60 minutes - expiresAt: 2000-01-23T04:56:07.000+00:00 + dependentTaskIds: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + error: TASK_HAS_DEPENDENTS + message: Cannot delete task with 3 dependent task(s). Use cascade=true to + delete all. properties: - sessionId: - format: uuid - type: string - expiresAt: - format: date-time + error: + example: TASK_HAS_DEPENDENTS type: string message: - example: Session extended by 60 minutes + example: Cannot delete task with 3 dependent task(s). Use cascade=true to + delete all. type: string + dependentTaskIds: + items: + format: uuid + type: string + type: array + type: object + getDependencyGraph_200_response: + example: + taskCount: 4 + leaves: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + taskListId: world-1 + roots: + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + graph: "{}" + properties: + taskListId: + example: world-1 + type: string + taskCount: + example: 4 + type: integer + roots: + description: Task IDs with no dependencies + items: + format: uuid + type: string + type: array + leaves: + description: Task IDs with no dependents + items: + format: uuid + type: string + type: array + graph: + description: "Adjacency list with task summaries, dependsOn, and dependents\ + \ arrays" + type: object type: object getAIUsageStats_200_response_by_model_value: properties: @@ -13705,8 +15298,9 @@ components: minimum: 0 type: number maxTokens: - default: 1024 - maximum: 8192 + default: 4096 + description: Max tokens. Claude 4.5 supports up to 64k. + maximum: 65536 minimum: 1 type: integer topP: @@ -13730,6 +15324,17 @@ components: $ref: '#/components/schemas/chatInference_request_responseFormat' toolConfig: $ref: '#/components/schemas/chatInference_request_toolConfig' + sessionId: + description: "Optional session ID for conversation continuity. Omit to use\ + \ stateless mode, include to continue an existing session." + format: uuid + type: string + async: + default: false + description: "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." + type: boolean required: - messages - modelId @@ -13923,6 +15528,41 @@ components: usage: $ref: '#/components/schemas/chatInference_200_response_usage' type: object + chatInference_202_response: + example: + requestId: XkdVWiEfSwMEPrw= + pollUrl: /ai/chat/executions/XkdVWiEfSwMEPrw%3D + sessionId: session-1769056496430 + message: Execution started. Poll the status endpoint for updates. + status: queued + properties: + requestId: + description: Unique request identifier for polling + example: XkdVWiEfSwMEPrw= + type: string + sessionId: + description: Session ID for conversation continuity + example: session-1769056496430 + type: string + status: + description: Initial execution status + enum: + - queued + example: queued + type: string + message: + description: Human-readable status message + example: Execution started. Poll the status endpoint for updates. + type: string + pollUrl: + description: URL to poll for execution status + example: /ai/chat/executions/XkdVWiEfSwMEPrw%3D + type: string + required: + - pollUrl + - requestId + - status + type: object chatInferenceStream_request_messages_inner_content: example: What is the capital of Australia? oneOf: @@ -13966,8 +15606,9 @@ components: minimum: 0 type: number maxTokens: - default: 1024 - maximum: 8192 + default: 4096 + description: Max tokens. Claude 4.5 supports up to 64k. + maximum: 65536 minimum: 1 type: integer topP: @@ -13988,6 +15629,17 @@ components: $ref: '#/components/schemas/chatInference_request_responseFormat' toolConfig: $ref: '#/components/schemas/chatInference_request_toolConfig' + sessionId: + description: "Optional session ID for conversation continuity. Omit to use\ + \ stateless mode, include to continue an existing session." + format: uuid + type: string + async: + default: false + description: "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." + type: boolean required: - messages - modelId @@ -14534,55 +16186,356 @@ components: toolName: generate_image status: complete properties: - executionId: - example: exec_abc123def456 - type: string - toolName: - example: generate_image + executionId: + example: exec_abc123def456 + type: string + toolName: + example: generate_image + type: string + status: + description: "Execution status: pending, running, complete, or failed" + example: complete + type: string + result: + $ref: '#/components/schemas/getAIToolExecutionStatus_200_response_result' + error: + description: Error message (only present when status='failed') + example: "Image generation failed: Invalid prompt" + type: string + createdAt: + description: Unix timestamp when execution was created + example: 1730271600 + type: integer + startedAt: + description: Unix timestamp when execution started (if status >= 'running') + example: 1730271601 + type: integer + completedAt: + description: "Unix timestamp when execution completed (if status in ['complete',\ + \ 'failed'])" + example: 1730271612 + type: integer + duration: + description: Execution duration in seconds (if completed) + example: 11 + type: number + required: + - createdAt + - executionId + - status + - toolName + type: object + getAIToolExecutionStatus_404_response: + example: + executionId: exec_abc123def456 + error: Execution not found + properties: + error: + example: Execution not found + type: string + executionId: + example: exec_abc123def456 + type: string + type: object + getDurableExecutionStatus_200_response_pendingTools_inner: + example: + input: + location: Sydney + name: get_weather + toolUseId: toolu_bdrk_012KTC8NCG... + properties: + name: + example: get_weather + type: string + toolUseId: + example: toolu_bdrk_012KTC8NCG... + type: string + input: + example: + location: Sydney + type: object + type: object + getDurableExecutionStatus_200_response_result_response: + example: + role: assistant + content: The weather in Sydney is sunny. + properties: + role: + example: assistant + type: string + content: + example: The weather in Sydney is sunny. + type: string + type: object + getDurableExecutionStatus_200_response_result_usage: + example: + inputTokens: 0 + outputTokens: 6 + totalTokens: 1 + properties: + inputTokens: + type: integer + outputTokens: + type: integer + totalTokens: + type: integer + type: object + getDurableExecutionStatus_200_response_result: + description: Present when status is complete + example: + response: + role: assistant + content: The weather in Sydney is sunny. + usage: + inputTokens: 0 + outputTokens: 6 + totalTokens: 1 + toolExecutions: + - "{}" + - "{}" + properties: + response: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result_response' + usage: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result_usage' + toolExecutions: + items: + type: object + type: array + type: object + getDurableExecutionStatus_200_response_error: + description: Present when status is failed + example: + ErrorType: ErrorType + ErrorMessage: ErrorMessage + properties: + ErrorMessage: + type: string + ErrorType: + type: string + type: object + getDurableExecutionStatus_200_response: + example: + result: + response: + role: assistant + content: The weather in Sydney is sunny. + usage: + inputTokens: 0 + outputTokens: 6 + totalTokens: 1 + toolExecutions: + - "{}" + - "{}" + callbackId: Ab9hZXi/YXJuOmF3czpsYW1iZGE... + requestId: XkdVWiEfSwMEPrw= + executionArn: arn:aws:lambda:ap-southeast-2:... + awsStatus: SUCCEEDED + pendingTools: + - input: + location: Sydney + name: get_weather + toolUseId: toolu_bdrk_012KTC8NCG... + - input: + location: Sydney + name: get_weather + toolUseId: toolu_bdrk_012KTC8NCG... + error: + ErrorType: ErrorType + ErrorMessage: ErrorMessage + status: complete + properties: + requestId: + example: XkdVWiEfSwMEPrw= + type: string + executionArn: + example: arn:aws:lambda:ap-southeast-2:... + type: string + status: + enum: + - pending + - running + - waiting_callback + - complete + - failed + example: complete + type: string + awsStatus: + description: Raw AWS Step Functions status + example: SUCCEEDED + type: string + callbackId: + description: Present when status is waiting_callback - use with /chat/callback + example: Ab9hZXi/YXJuOmF3czpsYW1iZGE... + type: string + pendingTools: + description: Present when status is waiting_callback - tools waiting for + results + items: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_pendingTools_inner' + type: array + result: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_result' + error: + $ref: '#/components/schemas/getDurableExecutionStatus_200_response_error' + type: object + submitToolCallback_request_toolResults_inner: + properties: + toolUseId: + description: The toolUseId from pendingTools + example: toolu_bdrk_012KTC8NCG... + type: string + result: + description: The result of executing the tool + example: + temperature: 24C + conditions: Sunny + type: object + required: + - result + - toolUseId + type: object + submitToolCallback_request: + properties: + callbackId: + description: The callbackId from the waiting_callback status response + example: Ab9hZXi/YXJuOmF3czpsYW1iZGE... + type: string + toolResults: + description: Results of client-executed tools + items: + $ref: '#/components/schemas/submitToolCallback_request_toolResults_inner' + type: array + required: + - callbackId + - toolResults + type: object + submitToolCallback_200_response: + example: + callbackId: callbackId + success: true + message: Callback submitted successfully + properties: + success: + example: true + type: boolean + message: + example: Callback submitted successfully + type: string + callbackId: + description: Echo of the callbackId for confirmation + type: string + type: object + getAIOrchestrationStatus_200_response_tools_inner: + example: + result: "{}" + executionId: exec_abc123def456 + error: error + toolName: generate_image + status: complete + properties: + executionId: + example: exec_abc123def456 + type: string + toolName: + example: generate_image + type: string + status: + enum: + - pending + - running + - complete + - failed + example: complete + type: string + result: + description: Tool result (if complete) + type: object + error: + description: Error message (if failed) + type: string + type: object + getAIOrchestrationStatus_200_response: + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + completedAt: 2000-01-23T04:56:07.000+00:00 + orchestrationId: orch_abc123def456789012345678901234 + completedTools: 2 + synthesizedResponse: Based on the image I generated and the web research... + error: error + tools: + - result: "{}" + executionId: exec_abc123def456 + error: error + toolName: generate_image + status: complete + - result: "{}" + executionId: exec_abc123def456 + error: error + toolName: generate_image + status: complete + status: complete + toolCount: 2 + properties: + orchestrationId: + description: Unique orchestration identifier + example: orch_abc123def456789012345678901234 type: string status: - description: "Execution status: pending, running, complete, or failed" + description: Current orchestration status + enum: + - pending + - polling + - synthesizing + - complete + - failed example: complete type: string - result: - $ref: '#/components/schemas/getAIToolExecutionStatus_200_response_result' + toolCount: + description: Total number of async tools in this orchestration + example: 2 + type: integer + completedTools: + description: Number of tools that have completed + example: 2 + type: integer + synthesizedResponse: + description: AI-synthesized response combining all tool results (only present + when status=complete) + example: Based on the image I generated and the web research... + type: string + tools: + description: Status of individual tool executions + items: + $ref: '#/components/schemas/getAIOrchestrationStatus_200_response_tools_inner' + type: array error: - description: Error message (only present when status='failed') - example: "Image generation failed: Invalid prompt" + description: Error message (only present when status=failed) type: string createdAt: - description: Unix timestamp when execution was created - example: 1730271600 - type: integer - startedAt: - description: Unix timestamp when execution started (if status >= 'running') - example: 1730271601 - type: integer + description: When orchestration was created + format: date-time + type: string completedAt: - description: "Unix timestamp when execution completed (if status in ['complete',\ - \ 'failed'])" - example: 1730271612 - type: integer - duration: - description: Execution duration in seconds (if completed) - example: 11 - type: number + description: When orchestration completed (if status in complete or failed) + format: date-time + type: string required: - createdAt - - executionId + - orchestrationId - status - - toolName + - toolCount type: object - getAIToolExecutionStatus_404_response: + getAIOrchestrationStatus_404_response: example: - executionId: exec_abc123def456 - error: Execution not found + orchestrationId: orch_abc123def456789012345678901234 + error: Orchestration not found properties: error: - example: Execution not found + example: Orchestration not found type: string - executionId: - example: exec_abc123def456 + orchestrationId: + example: orch_abc123def456789012345678901234 type: string type: object listAIToolExecutions_200_response_executions_inner: @@ -14932,6 +16885,15 @@ components: default: false description: Whether to stream the response (SSE) type: boolean + async: + default: false + description: "Enable async/durable execution mode. When true, returns 202\ + \ with pollUrl. Use for long-running agent tasks." + type: boolean + system: + description: Optional additional system prompt (appended to agent's configured + prompt) + type: string required: - message type: object @@ -14986,6 +16948,50 @@ components: response: $ref: '#/components/schemas/chatWithAIAgent_200_response_response' type: object + chatWithAIAgent_202_response: + example: + agentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + requestId: 90fe0c53-a41b-4b28-b19e-5e900b3df959 + pollUrl: /ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959 + agentName: Weather Assistant + sessionId: sessionId + message: Agent execution started. Poll the status endpoint for updates. + status: queued + properties: + requestId: + description: Unique request identifier for polling + example: 90fe0c53-a41b-4b28-b19e-5e900b3df959 + type: string + agentId: + description: The agent processing the request + format: uuid + type: string + agentName: + description: Human-readable agent name + example: Weather Assistant + type: string + sessionId: + description: Session ID (if provided) + type: string + status: + description: Initial status + enum: + - queued + example: queued + type: string + message: + example: Agent execution started. Poll the status endpoint for updates. + type: string + pollUrl: + description: URL to poll for execution status + example: /ai/chat/executions/90fe0c53-a41b-4b28-b19e-5e900b3df959 + type: string + required: + - agentId + - pollUrl + - requestId + - status + type: object listCustomTools_200_response_tools_inner: example: createdAt: 2000-01-23T04:56:07.000+00:00 @@ -15318,80 +17324,398 @@ components: message: type: string 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. + properties: + exact: + additionalProperties: true + description: "Exact match on metadata fields. Keys are metadata field names,\ + \ values are expected values." + example: + buildingId: building-123 + type: research-report + type: object + contains: + additionalProperties: + items: + type: string + type: array + description: Array contains filter for array metadata fields (like tags). + Returns documents where the metadata array contains ANY of the specified + values. + example: + tags: + - important + - reviewed + type: object + type: object queryVectorCollection_request: properties: query: - description: Natural language search query + description: Natural language search query (mutually exclusive with vector) example: How do I authenticate with the API? + maxLength: 1000 + minLength: 3 type: string - count: + vector: + description: Pre-computed embedding vector (mutually exclusive with query). + Array length must match collection dimension. + example: + - 0.0234 + - -0.0891 + - 0.0456 + items: + format: float + type: number + type: array + limit: default: 5 - description: Number of results to return + description: Maximum number of results to return maximum: 20 minimum: 1 type: integer - required: - - query - type: object - queryVectorCollection_200_response_results_inner_metadata: - example: - section: section - title: title - source_url: source_url - properties: - title: + threshold: + default: 0.7 + description: "Minimum similarity score (0-1, higher = more relevant)" + format: float + maximum: 1 + minimum: 0 + type: number + includeEmbeddings: + default: false + description: Include embedding vectors in response (for debugging) + type: boolean + filter: + $ref: '#/components/schemas/queryVectorCollection_request_filter' + listByMetadata: + default: false + description: "If true, skip semantic search and return all documents matching\ + \ the filter. Requires filter. Supports cursor pagination." + type: boolean + cursor: + description: Pagination cursor for listByMetadata mode. Use nextCursor from + previous response. Opaque format - do not construct manually. type: string - source_url: + sortBy: + default: created_at + description: Field to sort by in listByMetadata mode + enum: + - created_at + - document_id type: string - section: + sortOrder: + default: desc + description: Sort direction in listByMetadata mode + enum: + - asc + - desc type: string type: object queryVectorCollection_200_response_results_inner: example: - score: 0.8008282 metadata: - section: section - title: title - source_url: source_url + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 content: content properties: + documentId: + format: uuid + type: string content: + description: Document text content type: string - score: + similarity: + description: Cosine similarity score (1.0 for metadata-only queries) format: float + maximum: 1 + minimum: 0 type: number metadata: - $ref: '#/components/schemas/queryVectorCollection_200_response_results_inner_metadata' + additionalProperties: true + type: object + embedding: + description: Vector embedding (only if includeEmbeddings=true) + items: + type: number + type: array + type: object + queryVectorCollection_200_response_pagination: + description: Pagination info (listByMetadata mode only) + example: + sortOrder: asc + limit: 5 + sortBy: created_at + nullable: true + properties: + sortBy: + enum: + - created_at + - document_id + type: string + sortOrder: + enum: + - asc + - desc + type: string + limit: + type: integer type: object queryVectorCollection_200_response: example: + filter: "{}" + nextCursor: nextCursor + pagination: + sortOrder: asc + limit: 5 + sortBy: created_at query: query - executionTimeMs: 1 - count: 6 + executionTimeMs: 5 + searchMode: text + count: 1 + hasMore: true results: - - score: 0.8008282 - metadata: - section: section - title: title - source_url: source_url + - metadata: + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 content: content - - score: 0.8008282 - metadata: - section: section - title: title - source_url: source_url + - metadata: + key: "" + similarity: 0.08008282 + documentId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + embedding: + - 6.027456183070403 + - 6.027456183070403 content: content + collectionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: results: items: $ref: '#/components/schemas/queryVectorCollection_200_response_results_inner' type: array query: + description: Original query text (null if vector or metadata search was + used) + nullable: true + type: string + searchMode: + description: "Search mode used: text (query provided), vector (pre-computed),\ + \ metadata (listByMetadata)" + enum: + - text + - vector + - metadata type: string + filter: + description: Filter that was applied (if any) + nullable: true + type: object count: + description: Number of results returned type: integer executionTimeMs: + description: Query execution time in milliseconds + type: integer + collectionId: + format: uuid + type: string + hasMore: + description: True if more results available (listByMetadata mode only) + type: boolean + nextCursor: + description: Cursor for next page. Pass as cursor param to continue. Null + when no more results. Only in listByMetadata mode. + nullable: true + type: string + pagination: + $ref: '#/components/schemas/queryVectorCollection_200_response_pagination' + type: object + listFiles_200_response_files_inner: + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + fileId: + format: uuid + type: string + filename: + type: string + contentType: + type: string + size: + type: integer + metadata: + type: object + createdAt: + format: date-time + type: string + type: object + listFiles_200_response: + example: + nextCursor: nextCursor + hasMore: true + files: + - createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + files: + items: + $ref: '#/components/schemas/listFiles_200_response_files_inner' + type: array + nextCursor: + description: Cursor for next page + nullable: true + type: string + hasMore: + description: True if more results available + type: boolean + type: object + uploadFile_request: + properties: + content: + description: Base64-encoded file content (for direct upload). Required unless + using requestUploadUrl. + type: string + requestUploadUrl: + default: false + description: Set to true to get a presigned S3 upload URL instead of uploading + directly. + type: boolean + size: + description: File size in bytes. Optional but recommended for presigned + uploads. + type: integer + filename: + description: Original filename + example: diagram.png + type: string + contentType: + description: MIME type of the file + example: image/png + type: string + metadata: + additionalProperties: true + description: Custom metadata for filtering. Any fields allowed. + example: + collectionId: col-123 + tags: + - architecture + - generated + type: object + required: + - contentType + type: object + uploadFile_201_response: + example: + expiresIn: 0 + s3Uri: s3Uri + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + s3Key: s3Key + filename: filename + uploadUrl: https://openapi-generator.tech + size: 6 + contentType: contentType + url: https://openapi-generator.tech + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + fileId: + format: uuid + type: string + s3Uri: + description: S3 URI (direct upload only) + type: string + url: + description: Presigned download URL (direct upload only) + format: uri + type: string + uploadUrl: + description: Presigned PUT URL (presigned upload only) + format: uri + type: string + s3Key: + description: S3 object key (presigned upload only) + type: string + expiresIn: + description: URL expiry in seconds (presigned upload only) + type: integer + filename: + type: string + contentType: + type: string + size: type: integer + metadata: + type: object + createdAt: + format: date-time + type: string + type: object + getFile_200_response: + example: + s3Uri: s3Uri + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + filename: filename + size: 0 + contentType: contentType + url: https://openapi-generator.tech + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + fileId: + format: uuid + type: string + s3Uri: + type: string + url: + description: Presigned download URL (1 hour) + format: uri + type: string + filename: + type: string + contentType: + type: string + size: + type: integer + metadata: + type: object + createdAt: + format: date-time + type: string + type: object + deleteFile_200_response: + example: + message: File deleted + fileId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + message: + example: File deleted + type: string + fileId: + format: uuid + type: string type: object createApplication_403_response: example: diff --git a/api_ai_agents.go b/api_ai_agents.go index 00d4956..a71c53f 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -32,13 +32,27 @@ type AIAgentsAPI interface { * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available - * - All tools are auto-executed (no client confirmation) + * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config + * - Supports sync, streaming, and async modes + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion + * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running agent tasks + * - All tools are auto-executed on cloud (no `waiting_callback` state) + * - Poll `/ai/chat/executions/{requestId}` for status + * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity + * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -177,13 +191,27 @@ Initiates a chat session with a specific AI agent. The agent's configuration (sy * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available - * - All tools are auto-executed (no client confirmation) + * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config + * - Supports sync, streaming, and async modes + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion + * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running agent tasks + * - All tools are auto-executed on cloud (no `waiting_callback` state) + * - Poll `/ai/chat/executions/{requestId}` for status + * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity + * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). diff --git a/api_ai_custom_tools.go b/api_ai_custom_tools.go index 90b8f94..7aab12d 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..7da4c91 --- /dev/null +++ b/api_ai_file_storage.go @@ -0,0 +1,585 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.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 AIFileStorageAPI interface { + + /* + DeleteFile Delete File + + Deletes a file from S3 storage. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param fileId The file ID + @return AIFileStorageAPIDeleteFileRequest + */ + DeleteFile(ctx context.Context, organisation string, fileId string) AIFileStorageAPIDeleteFileRequest + + // DeleteFileExecute executes the request + // @return DeleteFile200Response + DeleteFileExecute(r AIFileStorageAPIDeleteFileRequest) (*DeleteFile200Response, *http.Response, error) + + /* + GetFile Get File + + Retrieves file metadata and a presigned download URL (valid for 1 hour). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param fileId The file ID + @return AIFileStorageAPIGetFileRequest + */ + GetFile(ctx context.Context, organisation string, fileId string) AIFileStorageAPIGetFileRequest + + // GetFileExecute executes the request + // @return GetFile200Response + GetFileExecute(r AIFileStorageAPIGetFileRequest) (*GetFile200Response, *http.Response, error) + + /* + ListFiles List Files + + Lists files stored in S3 for this organization with optional metadata filtering and pagination. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFileStorageAPIListFilesRequest + */ + ListFiles(ctx context.Context, organisation string) AIFileStorageAPIListFilesRequest + + // ListFilesExecute executes the request + // @return ListFiles200Response + ListFilesExecute(r AIFileStorageAPIListFilesRequest) (*ListFiles200Response, *http.Response, error) + + /* + UploadFile Upload File to S3 + + Uploads a file to S3 storage for later retrieval. + * + * **Two Upload Modes:** + * + * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. + * + * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. + * + * **Supported Content Types:** + * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml + * - Documents: application/pdf, text/plain, text/markdown, text/html + * - Code: text/javascript, application/json, text/css, text/yaml + * - Archives: application/zip, application/gzip + * - Video: video/mp4, video/webm (use presigned URL for large files) + * + * **Metadata:** + * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFileStorageAPIUploadFileRequest + */ + UploadFile(ctx context.Context, organisation string) AIFileStorageAPIUploadFileRequest + + // UploadFileExecute executes the request + // @return UploadFile201Response + UploadFileExecute(r AIFileStorageAPIUploadFileRequest) (*UploadFile201Response, *http.Response, error) +} + +// AIFileStorageAPIService AIFileStorageAPI service +type AIFileStorageAPIService service + +type AIFileStorageAPIDeleteFileRequest struct { + ctx context.Context + ApiService AIFileStorageAPI + organisation string + fileId string +} + +func (r AIFileStorageAPIDeleteFileRequest) Execute() (*DeleteFile200Response, *http.Response, error) { + return r.ApiService.DeleteFileExecute(r) +} + +/* +DeleteFile Delete File + +Deletes a file from S3 storage. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param fileId The file ID + @return AIFileStorageAPIDeleteFileRequest +*/ +func (a *AIFileStorageAPIService) DeleteFile(ctx context.Context, organisation string, fileId string) AIFileStorageAPIDeleteFileRequest { + return AIFileStorageAPIDeleteFileRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + fileId: fileId, + } +} + +// Execute executes the request +// @return DeleteFile200Response +func (a *AIFileStorageAPIService) DeleteFileExecute(r AIFileStorageAPIDeleteFileRequest) (*DeleteFile200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteFile200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFileStorageAPIService.DeleteFile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/files/{fileId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"fileId"+"}", url.PathEscape(parameterValueToString(r.fileId, "fileId")), -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 AIFileStorageAPIGetFileRequest struct { + ctx context.Context + ApiService AIFileStorageAPI + organisation string + fileId string +} + +func (r AIFileStorageAPIGetFileRequest) Execute() (*GetFile200Response, *http.Response, error) { + return r.ApiService.GetFileExecute(r) +} + +/* +GetFile Get File + +Retrieves file metadata and a presigned download URL (valid for 1 hour). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param fileId The file ID + @return AIFileStorageAPIGetFileRequest +*/ +func (a *AIFileStorageAPIService) GetFile(ctx context.Context, organisation string, fileId string) AIFileStorageAPIGetFileRequest { + return AIFileStorageAPIGetFileRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + fileId: fileId, + } +} + +// Execute executes the request +// @return GetFile200Response +func (a *AIFileStorageAPIService) GetFileExecute(r AIFileStorageAPIGetFileRequest) (*GetFile200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetFile200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFileStorageAPIService.GetFile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/files/{fileId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"fileId"+"}", url.PathEscape(parameterValueToString(r.fileId, "fileId")), -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 AIFileStorageAPIListFilesRequest struct { + ctx context.Context + ApiService AIFileStorageAPI + organisation string + filter *string + limit *int32 + cursor *string +} + +// JSON-encoded metadata filter. Supports exact match and array contains filters. +func (r AIFileStorageAPIListFilesRequest) Filter(filter string) AIFileStorageAPIListFilesRequest { + r.filter = &filter + return r +} + +// Maximum files to return +func (r AIFileStorageAPIListFilesRequest) Limit(limit int32) AIFileStorageAPIListFilesRequest { + r.limit = &limit + return r +} + +// Pagination cursor from previous response +func (r AIFileStorageAPIListFilesRequest) Cursor(cursor string) AIFileStorageAPIListFilesRequest { + r.cursor = &cursor + return r +} + +func (r AIFileStorageAPIListFilesRequest) Execute() (*ListFiles200Response, *http.Response, error) { + return r.ApiService.ListFilesExecute(r) +} + +/* +ListFiles List Files + +Lists files stored in S3 for this organization with optional metadata filtering and pagination. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFileStorageAPIListFilesRequest +*/ +func (a *AIFileStorageAPIService) ListFiles(ctx context.Context, organisation string) AIFileStorageAPIListFilesRequest { + return AIFileStorageAPIListFilesRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListFiles200Response +func (a *AIFileStorageAPIService) ListFilesExecute(r AIFileStorageAPIListFilesRequest) (*ListFiles200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListFiles200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFileStorageAPIService.ListFiles") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/files" + 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.filter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + 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 AIFileStorageAPIUploadFileRequest struct { + ctx context.Context + ApiService AIFileStorageAPI + organisation string + uploadFileRequest *UploadFileRequest +} + +func (r AIFileStorageAPIUploadFileRequest) UploadFileRequest(uploadFileRequest UploadFileRequest) AIFileStorageAPIUploadFileRequest { + r.uploadFileRequest = &uploadFileRequest + return r +} + +func (r AIFileStorageAPIUploadFileRequest) Execute() (*UploadFile201Response, *http.Response, error) { + return r.ApiService.UploadFileExecute(r) +} + +/* +UploadFile Upload File to S3 + +Uploads a file to S3 storage for later retrieval. + * + * **Two Upload Modes:** + * + * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. + * + * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. + * + * **Supported Content Types:** + * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml + * - Documents: application/pdf, text/plain, text/markdown, text/html + * - Code: text/javascript, application/json, text/css, text/yaml + * - Archives: application/zip, application/gzip + * - Video: video/mp4, video/webm (use presigned URL for large files) + * + * **Metadata:** + * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIFileStorageAPIUploadFileRequest +*/ +func (a *AIFileStorageAPIService) UploadFile(ctx context.Context, organisation string) AIFileStorageAPIUploadFileRequest { + return AIFileStorageAPIUploadFileRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return UploadFile201Response +func (a *AIFileStorageAPIService) UploadFileExecute(r AIFileStorageAPIUploadFileRequest) (*UploadFile201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UploadFile201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIFileStorageAPIService.UploadFile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/files" + 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.uploadFileRequest == nil { + return localVarReturnValue, nil, reportError("uploadFileRequest 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.uploadFileRequest + 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_inference.go b/api_ai_inference.go index 6a1dc6d..c8b11b4 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,15 +27,28 @@ type AIInferenceAPI interface { Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * - Ideal for complex prompts, large contexts, or client-side tools + * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -65,15 +78,27 @@ type AIInferenceAPI interface { Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * + * **Execution Modes:** + * - **Streaming Mode** (default): Real-time SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -123,6 +148,43 @@ type AIInferenceAPI interface { // @return Embeddings200Response EmbeddingsExecute(r AIInferenceAPIEmbeddingsRequest) (*Embeddings200Response, *http.Response, error) + /* + GetDurableExecutionStatus Get Durable Execution Status + + Poll the status of an async/durable chat execution. + * + * **When to use:** After starting chat inference with `async: true`, poll this endpoint + * to check execution status and retrieve results when complete. + * + * **Identifier:** Accepts either: + * - `requestId` (recommended): The short ID returned from the async request + * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) + * + * **Statuses:** + * - `pending`: Execution is starting (retry shortly) + * - `running`: Execution is in progress + * - `waiting_callback`: Execution paused, waiting for client tool results + * - `complete`: Execution finished successfully + * - `failed`: Execution failed with error + * + * **Client Tool Callback:** + * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. + * + * **Polling Recommendations:** + * - Start with 1 second delay, exponential backoff up to 30 seconds + * - Stop polling after 15 minutes (consider failed) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param identifier Either the requestId from async response, or full executionArn (URL-encoded) + @return AIInferenceAPIGetDurableExecutionStatusRequest + */ + GetDurableExecutionStatus(ctx context.Context, organisation string, identifier string) AIInferenceAPIGetDurableExecutionStatusRequest + + // GetDurableExecutionStatusExecute executes the request + // @return GetDurableExecutionStatus200Response + GetDurableExecutionStatusExecute(r AIInferenceAPIGetDurableExecutionStatusRequest) (*GetDurableExecutionStatus200Response, *http.Response, error) + /* ImageGeneration Generate images with Amazon Nova Canvas @@ -159,6 +221,34 @@ type AIInferenceAPI interface { // ImageGenerationExecute executes the request // @return ImageGeneration200Response ImageGenerationExecute(r AIInferenceAPIImageGenerationRequest) (*ImageGeneration200Response, *http.Response, error) + + /* + SubmitToolCallback Submit Client Tool Results (Callback) + + Submit tool execution results to resume a suspended durable execution. + * + * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint + * to submit the results of client-executed tools. The execution will then resume. + * + * **Flow:** + * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) + * 2. Poll status until `waiting_callback` + * 3. Execute tools locally using `pendingTools` from status response + * 4. Submit results here with the `callbackId` + * 5. Poll status until `complete` + * + * **Important:** Each `callbackId` can only be used once. After submission, poll the execution + * status to see the updated state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIInferenceAPISubmitToolCallbackRequest + */ + SubmitToolCallback(ctx context.Context, organisation string) AIInferenceAPISubmitToolCallbackRequest + + // SubmitToolCallbackExecute executes the request + // @return SubmitToolCallback200Response + SubmitToolCallbackExecute(r AIInferenceAPISubmitToolCallbackRequest) (*SubmitToolCallback200Response, *http.Response, error) } // AIInferenceAPIService AIInferenceAPI service @@ -185,6 +275,18 @@ func (r AIInferenceAPIChatInferenceRequest) Execute() (*ChatInference200Response ChatInference Chat inference via API Gateway (buffered responses) with multimodal support Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. + * + * **Execution Modes:** + * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` + * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content @@ -192,9 +294,10 @@ Sends requests to the AI API Gateway endpoint which buffers responses. Supports * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -323,6 +426,17 @@ func (r AIInferenceAPIChatInferenceStreamRequest) Execute() (string, *http.Respo ChatInferenceStream Chat inference via streaming endpoint (true HTTP streaming) with multimodal support Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. + * + * **Execution Modes:** + * - **Streaming Mode** (default): Real-time SSE token-by-token responses + * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) + * + * **Async/Durable Mode (`async: true`):** + * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) + * - Uses AWS Lambda Durable Functions for long-running inference + * - Supports client-executed tools via `waiting_callback` state + * - Poll `/ai/chat/executions/{requestId}` for status + * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content @@ -330,9 +444,10 @@ Streams responses from the AI streaming subdomain using Server-Sent Events (SSE) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * - * **Supported Models:** - * - Amazon Nova Lite, Micro, Pro (all support multimodal) - * - Claude models (text only) + * **Supported Models (Multimodal):** + * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) + * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) + * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB @@ -388,7 +503,7 @@ func (a *AIInferenceAPIService) ChatInferenceStreamExecute(r AIInferenceAPIChatI } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"text/event-stream"} + localVarHTTPHeaderAccepts := []string{"text/event-stream", "application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -565,6 +680,134 @@ func (a *AIInferenceAPIService) EmbeddingsExecute(r AIInferenceAPIEmbeddingsRequ return localVarReturnValue, localVarHTTPResponse, nil } +type AIInferenceAPIGetDurableExecutionStatusRequest struct { + ctx context.Context + ApiService AIInferenceAPI + organisation string + identifier string +} + +func (r AIInferenceAPIGetDurableExecutionStatusRequest) Execute() (*GetDurableExecutionStatus200Response, *http.Response, error) { + return r.ApiService.GetDurableExecutionStatusExecute(r) +} + +/* +GetDurableExecutionStatus Get Durable Execution Status + +Poll the status of an async/durable chat execution. + * + * **When to use:** After starting chat inference with `async: true`, poll this endpoint + * to check execution status and retrieve results when complete. + * + * **Identifier:** Accepts either: + * - `requestId` (recommended): The short ID returned from the async request + * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) + * + * **Statuses:** + * - `pending`: Execution is starting (retry shortly) + * - `running`: Execution is in progress + * - `waiting_callback`: Execution paused, waiting for client tool results + * - `complete`: Execution finished successfully + * - `failed`: Execution failed with error + * + * **Client Tool Callback:** + * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. + * + * **Polling Recommendations:** + * - Start with 1 second delay, exponential backoff up to 30 seconds + * - Stop polling after 15 minutes (consider failed) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param identifier Either the requestId from async response, or full executionArn (URL-encoded) + @return AIInferenceAPIGetDurableExecutionStatusRequest +*/ +func (a *AIInferenceAPIService) GetDurableExecutionStatus(ctx context.Context, organisation string, identifier string) AIInferenceAPIGetDurableExecutionStatusRequest { + return AIInferenceAPIGetDurableExecutionStatusRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + identifier: identifier, + } +} + +// Execute executes the request +// @return GetDurableExecutionStatus200Response +func (a *AIInferenceAPIService) GetDurableExecutionStatusExecute(r AIInferenceAPIGetDurableExecutionStatusRequest) (*GetDurableExecutionStatus200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetDurableExecutionStatus200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIInferenceAPIService.GetDurableExecutionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/chat/executions/{identifier}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterValueToString(r.identifier, "identifier")), -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 AIInferenceAPIImageGenerationRequest struct { ctx context.Context ApiService AIInferenceAPI @@ -701,3 +944,130 @@ func (a *AIInferenceAPIService) ImageGenerationExecute(r AIInferenceAPIImageGene return localVarReturnValue, localVarHTTPResponse, nil } + +type AIInferenceAPISubmitToolCallbackRequest struct { + ctx context.Context + ApiService AIInferenceAPI + organisation string + submitToolCallbackRequest *SubmitToolCallbackRequest +} + +func (r AIInferenceAPISubmitToolCallbackRequest) SubmitToolCallbackRequest(submitToolCallbackRequest SubmitToolCallbackRequest) AIInferenceAPISubmitToolCallbackRequest { + r.submitToolCallbackRequest = &submitToolCallbackRequest + return r +} + +func (r AIInferenceAPISubmitToolCallbackRequest) Execute() (*SubmitToolCallback200Response, *http.Response, error) { + return r.ApiService.SubmitToolCallbackExecute(r) +} + +/* +SubmitToolCallback Submit Client Tool Results (Callback) + +Submit tool execution results to resume a suspended durable execution. + * + * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint + * to submit the results of client-executed tools. The execution will then resume. + * + * **Flow:** + * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) + * 2. Poll status until `waiting_callback` + * 3. Execute tools locally using `pendingTools` from status response + * 4. Submit results here with the `callbackId` + * 5. Poll status until `complete` + * + * **Important:** Each `callbackId` can only be used once. After submission, poll the execution + * status to see the updated state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AIInferenceAPISubmitToolCallbackRequest +*/ +func (a *AIInferenceAPIService) SubmitToolCallback(ctx context.Context, organisation string) AIInferenceAPISubmitToolCallbackRequest { + return AIInferenceAPISubmitToolCallbackRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return SubmitToolCallback200Response +func (a *AIInferenceAPIService) SubmitToolCallbackExecute(r AIInferenceAPISubmitToolCallbackRequest) (*SubmitToolCallback200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SubmitToolCallback200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIInferenceAPIService.SubmitToolCallback") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/chat/callback" + 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.submitToolCallbackRequest == nil { + return localVarReturnValue, nil, reportError("submitToolCallbackRequest 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.submitToolCallbackRequest + 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_models.go b/api_ai_models.go index f044a5f..27adc01 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.8.0 +API version: 4.9.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 8453832..7c999af 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_ai_sessions.go b/api_ai_sessions.go index 736e76c..1d985b8 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..7f2b2fc --- /dev/null +++ b/api_ai_task_management.go @@ -0,0 +1,1001 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.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 AITaskManagementAPI interface { + + /* + CreateTask Create a new task + + Creates a new task for multi-agent coordination and workflow orchestration. + * + * **Key Features:** + * - **Persistent State**: Tasks survive across conversations and sessions + * - **Agent Assignment**: Pre-assign tasks to specific agents + * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) + * - **Dependencies**: Define task dependencies for workflow orchestration + * - **Metadata**: Store flexible JSON metadata for task-specific data + * - **Progress Tracking**: Track progress from 0.0 to 1.0 + * + * **Use Cases:** + * - Break down complex requests into manageable steps + * - Assign work to specialized agents + * - Track long-running operations + * - Coordinate multi-agent workflows + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AITaskManagementAPICreateTaskRequest + */ + CreateTask(ctx context.Context, organisation string) AITaskManagementAPICreateTaskRequest + + // CreateTaskExecute executes the request + // @return CreateTask201Response + CreateTaskExecute(r AITaskManagementAPICreateTaskRequest) (*CreateTask201Response, *http.Response, error) + + /* + DeleteTask Delete a task + + Permanently deletes a task. This action cannot be undone. + * + * **Dependency Protection:** + * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). + * This prevents breaking workflows. + * + * **Cascade Delete:** + * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. + * Useful for cleaning up entire dependency chains. + * + * **Examples:** + * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error + * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIDeleteTaskRequest + */ + DeleteTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIDeleteTaskRequest + + // DeleteTaskExecute executes the request + // @return DeleteTask200Response + DeleteTaskExecute(r AITaskManagementAPIDeleteTaskRequest) (*DeleteTask200Response, *http.Response, error) + + /* + GetDependencyGraph Get dependency graph for a task list + + Returns the full dependency graph for all tasks in a task list. + * + * **Use Cases:** + * - Visualize task dependencies in a UI (DAG diagram) + * - Analyze workflow structure and critical paths + * - Find starting tasks (roots) and terminal tasks (leaves) + * - Plan parallel execution by identifying independent task groups + * + * **Response Structure:** + * - `taskCount`: Total number of tasks in the list + * - `roots`: Task IDs with no dependencies (starting points) + * - `leaves`: Task IDs with no dependents (terminal tasks) + * - `graph`: Adjacency list with each task's dependencies and dependents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskListId The task list ID to get the dependency graph for + @return AITaskManagementAPIGetDependencyGraphRequest + */ + GetDependencyGraph(ctx context.Context, organisation string, taskListId string) AITaskManagementAPIGetDependencyGraphRequest + + // GetDependencyGraphExecute executes the request + // @return GetDependencyGraph200Response + GetDependencyGraphExecute(r AITaskManagementAPIGetDependencyGraphRequest) (*GetDependencyGraph200Response, *http.Response, error) + + /* + GetTask Get task details + + Retrieves detailed information about a specific task including status, progress, dependencies, and results. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIGetTaskRequest + */ + GetTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIGetTaskRequest + + // GetTaskExecute executes the request + // @return GetTask200Response + GetTaskExecute(r AITaskManagementAPIGetTaskRequest) (*GetTask200Response, *http.Response, error) + + /* + ListTasks List tasks with optional filtering + + Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. + * + * **Filter Examples:** + * - All tasks in a list: ?taskListId=world-1 + * - Pending tasks in a list: ?taskListId=world-1&status=pending + * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer + * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 + * + * **Reverse Dependency Lookup:** + * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): + * - ?dependsOn=task-123 - Returns task IDs only (lightweight) + * - ?dependsOn=task-123&includeDetails=true - Returns full task objects + * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 + * + * **Ordering:** + * Tasks are returned in reverse chronological order (most recent first). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AITaskManagementAPIListTasksRequest + */ + ListTasks(ctx context.Context, organisation string) AITaskManagementAPIListTasksRequest + + // ListTasksExecute executes the request + // @return ListTasks200Response + ListTasksExecute(r AITaskManagementAPIListTasksRequest) (*ListTasks200Response, *http.Response, error) + + /* + UpdateTask Update a task + + Updates an existing task. All fields are optional - only provided fields will be updated. + * + * **Status Transitions:** + * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp + * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp + * - Changing to **blocked** automatically sets blockedAt timestamp + * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields + * - Completed tasks get a 30-day TTL for automatic cleanup + * + * **Progress Updates:** + * - Update progress (0.0 to 1.0) to track completion percentage + * - Update progressMessage for human-readable status updates + * - Set result object when task completes successfully + * - Set error string when task fails + * - Set blockedReason and blockedByTaskIds when blocking a task + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIUpdateTaskRequest + */ + UpdateTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIUpdateTaskRequest + + // UpdateTaskExecute executes the request + // @return UpdateTask200Response + UpdateTaskExecute(r AITaskManagementAPIUpdateTaskRequest) (*UpdateTask200Response, *http.Response, error) +} + +// AITaskManagementAPIService AITaskManagementAPI service +type AITaskManagementAPIService service + +type AITaskManagementAPICreateTaskRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + createTaskRequest *CreateTaskRequest +} + +func (r AITaskManagementAPICreateTaskRequest) CreateTaskRequest(createTaskRequest CreateTaskRequest) AITaskManagementAPICreateTaskRequest { + r.createTaskRequest = &createTaskRequest + return r +} + +func (r AITaskManagementAPICreateTaskRequest) Execute() (*CreateTask201Response, *http.Response, error) { + return r.ApiService.CreateTaskExecute(r) +} + +/* +CreateTask Create a new task + +Creates a new task for multi-agent coordination and workflow orchestration. + * + * **Key Features:** + * - **Persistent State**: Tasks survive across conversations and sessions + * - **Agent Assignment**: Pre-assign tasks to specific agents + * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) + * - **Dependencies**: Define task dependencies for workflow orchestration + * - **Metadata**: Store flexible JSON metadata for task-specific data + * - **Progress Tracking**: Track progress from 0.0 to 1.0 + * + * **Use Cases:** + * - Break down complex requests into manageable steps + * - Assign work to specialized agents + * - Track long-running operations + * - Coordinate multi-agent workflows + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AITaskManagementAPICreateTaskRequest +*/ +func (a *AITaskManagementAPIService) CreateTask(ctx context.Context, organisation string) AITaskManagementAPICreateTaskRequest { + return AITaskManagementAPICreateTaskRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return CreateTask201Response +func (a *AITaskManagementAPIService) CreateTaskExecute(r AITaskManagementAPICreateTaskRequest) (*CreateTask201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateTask201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.CreateTask") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks" + 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.createTaskRequest == nil { + return localVarReturnValue, nil, reportError("createTaskRequest 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.createTaskRequest + 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 AITaskManagementAPIDeleteTaskRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + taskId string + cascade *bool +} + +// If true, delete task and all dependent tasks recursively +func (r AITaskManagementAPIDeleteTaskRequest) Cascade(cascade bool) AITaskManagementAPIDeleteTaskRequest { + r.cascade = &cascade + return r +} + +func (r AITaskManagementAPIDeleteTaskRequest) Execute() (*DeleteTask200Response, *http.Response, error) { + return r.ApiService.DeleteTaskExecute(r) +} + +/* +DeleteTask Delete a task + +Permanently deletes a task. This action cannot be undone. + * + * **Dependency Protection:** + * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). + * This prevents breaking workflows. + * + * **Cascade Delete:** + * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. + * Useful for cleaning up entire dependency chains. + * + * **Examples:** + * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error + * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIDeleteTaskRequest +*/ +func (a *AITaskManagementAPIService) DeleteTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIDeleteTaskRequest { + return AITaskManagementAPIDeleteTaskRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + taskId: taskId, + } +} + +// Execute executes the request +// @return DeleteTask200Response +func (a *AITaskManagementAPIService) DeleteTaskExecute(r AITaskManagementAPIDeleteTaskRequest) (*DeleteTask200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteTask200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.DeleteTask") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks/{taskId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cascade != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cascade", r.cascade, "form", "") + } else { + var defaultValue bool = false + r.cascade = &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, + } + if localVarHTTPResponse.StatusCode == 409 { + var v DeleteTask409Response + 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 + } + 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 AITaskManagementAPIGetDependencyGraphRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + taskListId string +} + +func (r AITaskManagementAPIGetDependencyGraphRequest) Execute() (*GetDependencyGraph200Response, *http.Response, error) { + return r.ApiService.GetDependencyGraphExecute(r) +} + +/* +GetDependencyGraph Get dependency graph for a task list + +Returns the full dependency graph for all tasks in a task list. + * + * **Use Cases:** + * - Visualize task dependencies in a UI (DAG diagram) + * - Analyze workflow structure and critical paths + * - Find starting tasks (roots) and terminal tasks (leaves) + * - Plan parallel execution by identifying independent task groups + * + * **Response Structure:** + * - `taskCount`: Total number of tasks in the list + * - `roots`: Task IDs with no dependencies (starting points) + * - `leaves`: Task IDs with no dependents (terminal tasks) + * - `graph`: Adjacency list with each task's dependencies and dependents + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskListId The task list ID to get the dependency graph for + @return AITaskManagementAPIGetDependencyGraphRequest +*/ +func (a *AITaskManagementAPIService) GetDependencyGraph(ctx context.Context, organisation string, taskListId string) AITaskManagementAPIGetDependencyGraphRequest { + return AITaskManagementAPIGetDependencyGraphRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + taskListId: taskListId, + } +} + +// Execute executes the request +// @return GetDependencyGraph200Response +func (a *AITaskManagementAPIService) GetDependencyGraphExecute(r AITaskManagementAPIGetDependencyGraphRequest) (*GetDependencyGraph200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetDependencyGraph200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.GetDependencyGraph") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskListId"+"}", url.PathEscape(parameterValueToString(r.taskListId, "taskListId")), -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 AITaskManagementAPIGetTaskRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + taskId string +} + +func (r AITaskManagementAPIGetTaskRequest) Execute() (*GetTask200Response, *http.Response, error) { + return r.ApiService.GetTaskExecute(r) +} + +/* +GetTask Get task details + +Retrieves detailed information about a specific task including status, progress, dependencies, and results. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIGetTaskRequest +*/ +func (a *AITaskManagementAPIService) GetTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIGetTaskRequest { + return AITaskManagementAPIGetTaskRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + taskId: taskId, + } +} + +// Execute executes the request +// @return GetTask200Response +func (a *AITaskManagementAPIService) GetTaskExecute(r AITaskManagementAPIGetTaskRequest) (*GetTask200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTask200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.GetTask") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks/{taskId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -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 AITaskManagementAPIListTasksRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + taskListId *string + status *string + assignedAgentId *string + limit *int32 + dependsOn *string + includeDetails *bool +} + +// Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. +func (r AITaskManagementAPIListTasksRequest) TaskListId(taskListId string) AITaskManagementAPIListTasksRequest { + r.taskListId = &taskListId + return r +} + +// Filter tasks by status +func (r AITaskManagementAPIListTasksRequest) Status(status string) AITaskManagementAPIListTasksRequest { + r.status = &status + return r +} + +// Filter tasks by assigned agent ID +func (r AITaskManagementAPIListTasksRequest) AssignedAgentId(assignedAgentId string) AITaskManagementAPIListTasksRequest { + r.assignedAgentId = &assignedAgentId + return r +} + +// Maximum number of tasks to return (default 50, max 100) +func (r AITaskManagementAPIListTasksRequest) Limit(limit int32) AITaskManagementAPIListTasksRequest { + r.limit = &limit + return r +} + +// Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. +func (r AITaskManagementAPIListTasksRequest) DependsOn(dependsOn string) AITaskManagementAPIListTasksRequest { + r.dependsOn = &dependsOn + return r +} + +// When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). +func (r AITaskManagementAPIListTasksRequest) IncludeDetails(includeDetails bool) AITaskManagementAPIListTasksRequest { + r.includeDetails = &includeDetails + return r +} + +func (r AITaskManagementAPIListTasksRequest) Execute() (*ListTasks200Response, *http.Response, error) { + return r.ApiService.ListTasksExecute(r) +} + +/* +ListTasks List tasks with optional filtering + +Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. + * + * **Filter Examples:** + * - All tasks in a list: ?taskListId=world-1 + * - Pending tasks in a list: ?taskListId=world-1&status=pending + * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer + * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 + * + * **Reverse Dependency Lookup:** + * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): + * - ?dependsOn=task-123 - Returns task IDs only (lightweight) + * - ?dependsOn=task-123&includeDetails=true - Returns full task objects + * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 + * + * **Ordering:** + * Tasks are returned in reverse chronological order (most recent first). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @return AITaskManagementAPIListTasksRequest +*/ +func (a *AITaskManagementAPIService) ListTasks(ctx context.Context, organisation string) AITaskManagementAPIListTasksRequest { + return AITaskManagementAPIListTasksRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + } +} + +// Execute executes the request +// @return ListTasks200Response +func (a *AITaskManagementAPIService) ListTasksExecute(r AITaskManagementAPIListTasksRequest) (*ListTasks200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListTasks200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.ListTasks") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks" + 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.taskListId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "taskListId", r.taskListId, "form", "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "form", "") + } + if r.assignedAgentId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assignedAgentId", r.assignedAgentId, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + r.limit = &defaultValue + } + if r.dependsOn != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "dependsOn", r.dependsOn, "form", "") + } + if r.includeDetails != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeDetails", r.includeDetails, "form", "") + } else { + var defaultValue bool = false + r.includeDetails = &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 AITaskManagementAPIUpdateTaskRequest struct { + ctx context.Context + ApiService AITaskManagementAPI + organisation string + taskId string + updateTaskRequest *UpdateTaskRequest +} + +func (r AITaskManagementAPIUpdateTaskRequest) UpdateTaskRequest(updateTaskRequest UpdateTaskRequest) AITaskManagementAPIUpdateTaskRequest { + r.updateTaskRequest = &updateTaskRequest + return r +} + +func (r AITaskManagementAPIUpdateTaskRequest) Execute() (*UpdateTask200Response, *http.Response, error) { + return r.ApiService.UpdateTaskExecute(r) +} + +/* +UpdateTask Update a task + +Updates an existing task. All fields are optional - only provided fields will be updated. + * + * **Status Transitions:** + * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp + * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp + * - Changing to **blocked** automatically sets blockedAt timestamp + * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields + * - Completed tasks get a 30-day TTL for automatic cleanup + * + * **Progress Updates:** + * - Update progress (0.0 to 1.0) to track completion percentage + * - Update progressMessage for human-readable status updates + * - Set result object when task completes successfully + * - Set error string when task fails + * - Set blockedReason and blockedByTaskIds when blocking a task + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param taskId The task UUID + @return AITaskManagementAPIUpdateTaskRequest +*/ +func (a *AITaskManagementAPIService) UpdateTask(ctx context.Context, organisation string, taskId string) AITaskManagementAPIUpdateTaskRequest { + return AITaskManagementAPIUpdateTaskRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + taskId: taskId, + } +} + +// Execute executes the request +// @return UpdateTask200Response +func (a *AITaskManagementAPIService) UpdateTaskExecute(r AITaskManagementAPIUpdateTaskRequest) (*UpdateTask200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateTask200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AITaskManagementAPIService.UpdateTask") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tasks/{taskId}" + localVarPath = strings.Replace(localVarPath, "{"+"organisation"+"}", url.PathEscape(parameterValueToString(r.organisation, "organisation")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskId"+"}", url.PathEscape(parameterValueToString(r.taskId, "taskId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateTaskRequest == nil { + return localVarReturnValue, nil, reportError("updateTaskRequest 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.updateTaskRequest + 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_tools.go b/api_ai_tools.go index 38bdded..b9f1f75 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,50 @@ import ( type AIToolsAPI interface { + /* + GetAIOrchestrationStatus Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param orchestrationId Orchestration identifier for aggregated async tool executions + @return AIToolsAPIGetAIOrchestrationStatusRequest + */ + GetAIOrchestrationStatus(ctx context.Context, organisation string, orchestrationId string) AIToolsAPIGetAIOrchestrationStatusRequest + + // GetAIOrchestrationStatusExecute executes the request + // @return GetAIOrchestrationStatus200Response + GetAIOrchestrationStatusExecute(r AIToolsAPIGetAIOrchestrationStatusRequest) (*GetAIOrchestrationStatus200Response, *http.Response, error) + /* GetAIToolExecutionStatus Get async tool execution status and result @@ -155,6 +199,152 @@ type AIToolsAPI interface { // AIToolsAPIService AIToolsAPI service type AIToolsAPIService service +type AIToolsAPIGetAIOrchestrationStatusRequest struct { + ctx context.Context + ApiService AIToolsAPI + organisation string + orchestrationId string +} + +func (r AIToolsAPIGetAIOrchestrationStatusRequest) Execute() (*GetAIOrchestrationStatus200Response, *http.Response, error) { + return r.ApiService.GetAIOrchestrationStatusExecute(r) +} + +/* +GetAIOrchestrationStatus Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param orchestrationId Orchestration identifier for aggregated async tool executions + @return AIToolsAPIGetAIOrchestrationStatusRequest +*/ +func (a *AIToolsAPIService) GetAIOrchestrationStatus(ctx context.Context, organisation string, orchestrationId string) AIToolsAPIGetAIOrchestrationStatusRequest { + return AIToolsAPIGetAIOrchestrationStatusRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return GetAIOrchestrationStatus200Response +func (a *AIToolsAPIService) GetAIOrchestrationStatusExecute(r AIToolsAPIGetAIOrchestrationStatusRequest) (*GetAIOrchestrationStatus200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAIOrchestrationStatus200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AIToolsAPIService.GetAIOrchestrationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tools/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, + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetAIOrchestrationStatus404Response + 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 + } + 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 AIToolsAPIGetAIToolExecutionStatusRequest struct { ctx context.Context ApiService AIToolsAPI diff --git a/api_ai_vector_database.go b/api_ai_vector_database.go index deb5138..7023c26 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -95,10 +95,38 @@ type AIVectorDatabaseAPI interface { Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * + * **Three Search Modes:** + * + * 1. **Text Query** - Provide `query` string, server generates embedding + * - Query text is embedded using the collection's embedding model + * - Embeddings are cached for repeated queries + * + * 2. **Vector Query** - Provide pre-computed `vector` array + * - Skip embedding generation (faster) + * - Useful when you've already embedded the query elsewhere + * - Vector dimension must match collection (e.g., 1024 for Titan v2) + * + * 3. **Metadata List** - Set `listByMetadata: true` with `filter` + * - Skip semantic search entirely + * - Return all documents matching the filter + * - Supports cursor-based pagination for large datasets + * - Results ordered by sortBy/sortOrder (default: created_at DESC) + * + * **Filtering:** + * - `filter.exact`: Exact match on metadata fields (AND logic) + * - `filter.contains`: Array contains filter for tags (ANY match) + * - Filters can be combined with semantic search or used alone with listByMetadata + * + * **Pagination (listByMetadata mode only):** + * - Use `cursor` from previous response's `nextCursor` to get next page + * - Uses keyset pagination for efficient traversal of large datasets + * - Control sort with `sortBy` and `sortOrder` + * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + * - List all artifacts by building/worker/tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param organisation The organisation ID @@ -597,11 +625,39 @@ func (r AIVectorDatabaseAPIQueryVectorCollectionRequest) Execute() (*QueryVector QueryVectorCollection Semantic Search Query Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. + * + * **Three Search Modes:** + * + * 1. **Text Query** - Provide `query` string, server generates embedding + * - Query text is embedded using the collection's embedding model + * - Embeddings are cached for repeated queries + * + * 2. **Vector Query** - Provide pre-computed `vector` array + * - Skip embedding generation (faster) + * - Useful when you've already embedded the query elsewhere + * - Vector dimension must match collection (e.g., 1024 for Titan v2) + * + * 3. **Metadata List** - Set `listByMetadata: true` with `filter` + * - Skip semantic search entirely + * - Return all documents matching the filter + * - Supports cursor-based pagination for large datasets + * - Results ordered by sortBy/sortOrder (default: created_at DESC) + * + * **Filtering:** + * - `filter.exact`: Exact match on metadata fields (AND logic) + * - `filter.contains`: Array contains filter for tags (ANY match) + * - Filters can be combined with semantic search or used alone with listByMetadata + * + * **Pagination (listByMetadata mode only):** + * - Use `cursor` from previous response's `nextCursor` to get next page + * - Uses keyset pagination for efficient traversal of large datasets + * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases + * - List all artifacts by building/worker/tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param organisation The organisation ID diff --git a/api_applications.go b/api_applications.go index b8cfe42..f406138 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.8.0 +API version: 4.9.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 1d30dd2..cc5845f 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_commands.go b/api_commands.go index 404c751..8629f6d 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_compose.go b/api_compose.go index a443682..a5671d2 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_containers.go b/api_containers.go index a88314e..d5fdfc7 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.8.0 +API version: 4.9.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 06a1cf6..8b30511 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_crawlers.go b/api_crawlers.go index eb972c7..13102c5 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ type CrawlersAPI interface { @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersDeleteRequest */ CrawlersDelete(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersDeleteRequest @@ -92,8 +92,7 @@ type CrawlersAPI interface { CrawlersList(ctx context.Context, organization string, project string) CrawlersAPICrawlersListRequest // CrawlersListExecute executes the request - // @return []V2Crawler - CrawlersListExecute(r CrawlersAPICrawlersListRequest) ([]V2Crawler, *http.Response, error) + CrawlersListExecute(r CrawlersAPICrawlersListRequest) (*http.Response, error) /* CrawlersRead Get details of a single crawler @@ -101,7 +100,7 @@ type CrawlersAPI interface { @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersReadRequest */ CrawlersRead(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersReadRequest @@ -131,7 +130,7 @@ type CrawlersAPI interface { @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersUpdateRequest */ CrawlersUpdate(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersUpdateRequest @@ -299,7 +298,7 @@ CrawlersDelete Delete a crawler @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersDeleteRequest */ func (a *CrawlersAPIService) CrawlersDelete(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersDeleteRequest { @@ -715,7 +714,7 @@ type CrawlersAPICrawlersListRequest struct { project string } -func (r CrawlersAPICrawlersListRequest) Execute() ([]V2Crawler, *http.Response, error) { +func (r CrawlersAPICrawlersListRequest) Execute() (*http.Response, error) { return r.ApiService.CrawlersListExecute(r) } @@ -737,18 +736,16 @@ func (a *CrawlersAPIService) CrawlersList(ctx context.Context, organization stri } // Execute executes the request -// @return []V2Crawler -func (a *CrawlersAPIService) CrawlersListExecute(r CrawlersAPICrawlersListRequest) ([]V2Crawler, *http.Response, error) { +func (a *CrawlersAPIService) CrawlersListExecute(r CrawlersAPICrawlersListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []V2Crawler ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CrawlersAPIService.CrawlersList") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/v2/organizations/{organization}/projects/{project}/crawlers" @@ -778,19 +775,19 @@ func (a *CrawlersAPIService) CrawlersListExecute(r CrawlersAPICrawlersListReques } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -803,35 +800,26 @@ func (a *CrawlersAPIService) CrawlersListExecute(r CrawlersAPICrawlersListReques err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr + return 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 + return 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 localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } type CrawlersAPICrawlersReadRequest struct { @@ -852,7 +840,7 @@ CrawlersRead Get details of a single crawler @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersReadRequest */ func (a *CrawlersAPIService) CrawlersRead(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersReadRequest { @@ -1024,9 +1012,6 @@ func (a *CrawlersAPIService) CrawlersRunExecute(r CrawlersAPICrawlersRunRequest) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.crawlersRunRequest == nil { - return localVarReturnValue, nil, reportError("crawlersRunRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -1151,7 +1136,7 @@ CrawlersUpdate Update a crawler @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 crawler + @param crawler The UUID of the crawler @return CrawlersAPICrawlersUpdateRequest */ func (a *CrawlersAPIService) CrawlersUpdate(ctx context.Context, organization string, project string, crawler string) CrawlersAPICrawlersUpdateRequest { diff --git a/api_cron.go b/api_cron.go index f91083d..f537ce2 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domains.go b/api_domains.go index 66bfba5..edf0f99 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ type DomainsAPI interface { @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsDeleteRequest */ DomainsDelete(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsDeleteRequest @@ -70,7 +70,7 @@ type DomainsAPI interface { @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsReadRequest */ DomainsRead(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsReadRequest @@ -85,7 +85,7 @@ type DomainsAPI interface { @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsRenewRequest */ DomainsRenew(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsRenewRequest @@ -252,7 +252,7 @@ DomainsDelete Delete a domain @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsDeleteRequest */ func (a *DomainsAPIService) DomainsDelete(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsDeleteRequest { @@ -497,7 +497,7 @@ DomainsRead Get details of a single domain @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsReadRequest */ func (a *DomainsAPIService) DomainsRead(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsReadRequest { @@ -627,7 +627,7 @@ DomainsRenew Renew the SSL certificate for a domain @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 domain Domain identifier + @param domain Domain id @return DomainsAPIDomainsRenewRequest */ func (a *DomainsAPIService) DomainsRenew(ctx context.Context, organization string, project string, domain string) DomainsAPIDomainsRenewRequest { diff --git a/api_environments.go b/api_environments.go index 1a9eac1..020e73e 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_headers.go b/api_headers.go index 1319bf8..f2a2788 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ type HeadersAPI interface { HeadersCreate Create or update custom headers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersCreateRequest */ HeadersCreate(ctx context.Context, organization string, project string) HeadersAPIHeadersCreateRequest @@ -40,8 +40,8 @@ type HeadersAPI interface { HeadersDelete Delete custom headers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersDeleteRequest */ HeadersDelete(ctx context.Context, organization string, project string) HeadersAPIHeadersDeleteRequest @@ -53,8 +53,8 @@ type HeadersAPI interface { HeadersList List custom headers for a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersListRequest */ HeadersList(ctx context.Context, organization string, project string) HeadersAPIHeadersListRequest @@ -88,8 +88,8 @@ func (r HeadersAPIHeadersCreateRequest) Execute() (map[string]string, *http.Resp HeadersCreate Create or update custom headers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersCreateRequest */ func (a *HeadersAPIService) HeadersCreate(ctx context.Context, organization string, project string) HeadersAPIHeadersCreateRequest { @@ -225,8 +225,8 @@ func (r HeadersAPIHeadersDeleteRequest) Execute() (*http.Response, error) { HeadersDelete Delete custom headers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersDeleteRequest */ func (a *HeadersAPIService) HeadersDelete(ctx context.Context, organization string, project string) HeadersAPIHeadersDeleteRequest { @@ -345,8 +345,8 @@ func (r HeadersAPIHeadersListRequest) Execute() (map[string]string, *http.Respon HeadersList List custom headers for a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return HeadersAPIHeadersListRequest */ func (a *HeadersAPIService) HeadersList(ctx context.Context, organization string, project string) HeadersAPIHeadersListRequest { diff --git a/api_kv.go b/api_kv.go index 58fbab8..a52968f 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ type KVAPI interface { KVCreate Add a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return KVAPIKVCreateRequest */ KVCreate(ctx context.Context, organization string, project string) KVAPIKVCreateRequest @@ -40,8 +40,8 @@ type KVAPI interface { KVDelete Delete a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVDeleteRequest */ @@ -54,8 +54,8 @@ type KVAPI interface { KVItemsCreate Add an item to a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVItemsCreateRequest */ @@ -69,8 +69,8 @@ type KVAPI interface { KVItemsDelete Delete an item from a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsDeleteRequest @@ -85,8 +85,8 @@ type KVAPI interface { KVItemsList List items in a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVItemsListRequest */ @@ -102,8 +102,8 @@ type KVAPI interface { Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as '[ENCRYPTED]' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsShowRequest @@ -118,8 +118,8 @@ type KVAPI interface { KVItemsUpdate Update an item in a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsUpdateRequest @@ -134,8 +134,8 @@ type KVAPI interface { KVList List key-value stores @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return KVAPIKVListRequest */ KVList(ctx context.Context, organization string, project string) KVAPIKVListRequest @@ -148,8 +148,8 @@ type KVAPI interface { KVShow Get a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVShowRequest */ @@ -184,8 +184,8 @@ func (r KVAPIKVCreateRequest) Execute() (*V2Store, *http.Response, error) { KVCreate Add a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return KVAPIKVCreateRequest */ func (a *KVAPIService) KVCreate(ctx context.Context, organization string, project string) KVAPIKVCreateRequest { @@ -316,8 +316,8 @@ func (r KVAPIKVDeleteRequest) Execute() (*http.Response, error) { KVDelete Delete a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVDeleteRequest */ @@ -441,8 +441,8 @@ func (r KVAPIKVItemsCreateRequest) Execute() (*KVItemsCreate200Response, *http.R KVItemsCreate Add an item to a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVItemsCreateRequest */ @@ -588,8 +588,8 @@ func (r KVAPIKVItemsDeleteRequest) Execute() (*KVItemsDelete200Response, *http.R KVItemsDelete Delete an item from a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsDeleteRequest @@ -749,8 +749,8 @@ func (r KVAPIKVItemsListRequest) Execute() (*V2StoreItemsListResponse, *http.Res KVItemsList List items in a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVItemsListRequest */ @@ -900,8 +900,8 @@ KVItemsShow Get an item from a kv store Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as '[ENCRYPTED]' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsShowRequest @@ -1040,8 +1040,8 @@ func (r KVAPIKVItemsUpdateRequest) Execute() (*KVItemsCreate200Response, *http.R KVItemsUpdate Update an item in a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @param key @return KVAPIKVItemsUpdateRequest @@ -1188,8 +1188,8 @@ func (r KVAPIKVListRequest) Execute() ([]V2Store, *http.Response, error) { KVList List key-value stores @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return KVAPIKVListRequest */ func (a *KVAPIService) KVList(ctx context.Context, organization string, project string) KVAPIKVListRequest { @@ -1315,8 +1315,8 @@ func (r KVAPIKVShowRequest) Execute() (*V2Store, *http.Response, error) { KVShow Get a kv store @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @param storeId @return KVAPIKVShowRequest */ diff --git a/api_orchestration.go b/api_orchestration.go new file mode 100644 index 0000000..eda5905 --- /dev/null +++ b/api_orchestration.go @@ -0,0 +1,217 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.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 OrchestrationAPI interface { + + /* + GetAIOrchestrationStatus Get Orchestration Status + + Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param orchestrationId Orchestration identifier for aggregated async tool executions + @return OrchestrationAPIGetAIOrchestrationStatusRequest + */ + GetAIOrchestrationStatus(ctx context.Context, organisation string, orchestrationId string) OrchestrationAPIGetAIOrchestrationStatusRequest + + // GetAIOrchestrationStatusExecute executes the request + // @return GetAIOrchestrationStatus200Response + GetAIOrchestrationStatusExecute(r OrchestrationAPIGetAIOrchestrationStatusRequest) (*GetAIOrchestrationStatus200Response, *http.Response, error) +} + +// OrchestrationAPIService OrchestrationAPI service +type OrchestrationAPIService service + +type OrchestrationAPIGetAIOrchestrationStatusRequest struct { + ctx context.Context + ApiService OrchestrationAPI + organisation string + orchestrationId string +} + +func (r OrchestrationAPIGetAIOrchestrationStatusRequest) Execute() (*GetAIOrchestrationStatus200Response, *http.Response, error) { + return r.ApiService.GetAIOrchestrationStatusExecute(r) +} + +/* +GetAIOrchestrationStatus Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. + * + * **Orchestration Pattern:** + * When the AI requests multiple async tools simultaneously, an orchestration is created + * to track all tool executions and synthesize their results into a single coherent response. + * + * **Flow:** + * 1. AI requests multiple async tools (e.g., image generation + web search) + * 2. Chat API creates orchestration and returns orchestrationId + * 3. Tool Orchestrator Lambda polls all async tools + * 4. When all tools complete, Orchestrator synthesizes results using AI + * 5. Client polls this endpoint and receives final synthesized response + * + * **Status Values:** + * - pending: Orchestration created, tools not yet started + * - polling: Orchestrator is actively polling async tools + * - synthesizing: All tools complete, AI is synthesizing response + * - complete: Orchestration finished, synthesizedResponse available + * - failed: Orchestration failed, error available + * + * **Polling Recommendations:** + * - Poll every 2 seconds + * - Maximum poll time: 10 minutes + * - Orchestrator handles tool polling internally + * + * **Benefits over individual polling:** + * - Single poll endpoint for multiple async tools + * - AI synthesizes all results into coherent response + * - Answers the original user question, not just tool summaries + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organisation The organisation ID + @param orchestrationId Orchestration identifier for aggregated async tool executions + @return OrchestrationAPIGetAIOrchestrationStatusRequest +*/ +func (a *OrchestrationAPIService) GetAIOrchestrationStatus(ctx context.Context, organisation string, orchestrationId string) OrchestrationAPIGetAIOrchestrationStatusRequest { + return OrchestrationAPIGetAIOrchestrationStatusRequest{ + ApiService: a, + ctx: ctx, + organisation: organisation, + orchestrationId: orchestrationId, + } +} + +// Execute executes the request +// @return GetAIOrchestrationStatus200Response +func (a *OrchestrationAPIService) GetAIOrchestrationStatusExecute(r OrchestrationAPIGetAIOrchestrationStatusRequest) (*GetAIOrchestrationStatus200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetAIOrchestrationStatus200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrchestrationAPIService.GetAIOrchestrationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v3/organizations/{organisation}/ai/tools/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, + } + if localVarHTTPResponse.StatusCode == 404 { + var v GetAIOrchestrationStatus404Response + 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 + } + 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_organizations.go b/api_organizations.go index 7ebb88d..14a1511 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -38,7 +38,7 @@ type OrganizationsAPI interface { OrganizationsRead Get details of a single organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return OrganizationsAPIOrganizationsReadRequest */ OrganizationsRead(ctx context.Context, organization string) OrganizationsAPIOrganizationsReadRequest @@ -183,7 +183,7 @@ func (r OrganizationsAPIOrganizationsReadRequest) Execute() (*V2Organization, *h OrganizationsRead Get details of a single organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return OrganizationsAPIOrganizationsReadRequest */ func (a *OrganizationsAPIService) OrganizationsRead(ctx context.Context, organization string) OrganizationsAPIOrganizationsReadRequest { @@ -255,6 +255,17 @@ func (a *OrganizationsAPIService) OrganizationsReadExecute(r OrganizationsAPIOrg body: localVarBody, error: localVarHTTPResponse.Status, } + 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 == 400 { var v V2Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/api_projects.go b/api_projects.go index 0cecd32..8f3670c 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,7 +26,7 @@ type ProjectsAPI interface { ProjectsCreate Create a new project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return ProjectsAPIProjectsCreateRequest */ ProjectsCreate(ctx context.Context, organization string) ProjectsAPIProjectsCreateRequest @@ -39,8 +39,8 @@ type ProjectsAPI interface { ProjectsDelete Delete a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsDeleteRequest */ ProjectsDelete(ctx context.Context, organization string, project string) ProjectsAPIProjectsDeleteRequest @@ -52,7 +52,7 @@ type ProjectsAPI interface { ProjectsList Retrieve all projects for an organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return ProjectsAPIProjectsListRequest */ ProjectsList(ctx context.Context, organization string) ProjectsAPIProjectsListRequest @@ -65,8 +65,8 @@ type ProjectsAPI interface { ProjectsRead Get details of a single project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsReadRequest */ ProjectsRead(ctx context.Context, organization string, project string) ProjectsAPIProjectsReadRequest @@ -79,8 +79,8 @@ type ProjectsAPI interface { ProjectsUpdate Update a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsUpdateRequest */ ProjectsUpdate(ctx context.Context, organization string, project string) ProjectsAPIProjectsUpdateRequest @@ -113,7 +113,7 @@ func (r ProjectsAPIProjectsCreateRequest) Execute() (*V2Project, *http.Response, ProjectsCreate Create a new project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return ProjectsAPIProjectsCreateRequest */ func (a *ProjectsAPIService) ProjectsCreate(ctx context.Context, organization string) ProjectsAPIProjectsCreateRequest { @@ -241,8 +241,8 @@ func (r ProjectsAPIProjectsDeleteRequest) Execute() (*http.Response, error) { ProjectsDelete Delete a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsDeleteRequest */ func (a *ProjectsAPIService) ProjectsDelete(ctx context.Context, organization string, project string) ProjectsAPIProjectsDeleteRequest { @@ -355,7 +355,7 @@ func (r ProjectsAPIProjectsListRequest) Execute() ([]V2Project, *http.Response, ProjectsList Retrieve all projects for an organization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization + @param organization Organization identifier @return ProjectsAPIProjectsListRequest */ func (a *ProjectsAPIService) ProjectsList(ctx context.Context, organization string) ProjectsAPIProjectsListRequest { @@ -484,8 +484,8 @@ func (r ProjectsAPIProjectsReadRequest) Execute() (*V2Project, *http.Response, e ProjectsRead Get details of a single project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsReadRequest */ func (a *ProjectsAPIService) ProjectsRead(ctx context.Context, organization string, project string) ProjectsAPIProjectsReadRequest { @@ -620,8 +620,8 @@ func (r ProjectsAPIProjectsUpdateRequest) Execute() (*V2Project, *http.Response, ProjectsUpdate Update a project @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return ProjectsAPIProjectsUpdateRequest */ func (a *ProjectsAPIService) ProjectsUpdate(ctx context.Context, organization string, project string) ProjectsAPIProjectsUpdateRequest { diff --git a/api_purge.go b/api_purge.go index a969244..c7c5ed9 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,8 +26,8 @@ type PurgeAPI interface { PurgeCreate Purge cache via URL or cache keys @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return PurgeAPIPurgeCreateRequest */ PurgeCreate(ctx context.Context, organization string, project string) PurgeAPIPurgeCreateRequest @@ -61,8 +61,8 @@ func (r PurgeAPIPurgeCreateRequest) Execute() (string, *http.Response, error) { PurgeCreate Purge cache via URL or cache keys @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param organization - @param project + @param organization Organization identifier + @param project Project identifier @return PurgeAPIPurgeCreateRequest */ func (a *PurgeAPIService) PurgeCreate(ctx context.Context, organization string, project string) PurgeAPIPurgeCreateRequest { diff --git a/api_rules.go b/api_rules.go index 2512fe8..abb6091 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.8.0 +API version: 4.9.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 0c2cba1..9f39b63 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.8.0 +API version: 4.9.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 4b781e7..75a39a4 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,9 +26,9 @@ type SSHAccessAPI interface { GetSshAccessCredentials Get SSH access credentials for an environment @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 application The application name - @param environment The environment name + @param organisation The organisation ID + @param application The application ID + @param environment The environment ID @return SSHAccessAPIGetSshAccessCredentialsRequest */ GetSshAccessCredentials(ctx context.Context, organisation string, application string, environment string) SSHAccessAPIGetSshAccessCredentialsRequest @@ -57,9 +57,9 @@ func (r SSHAccessAPIGetSshAccessCredentialsRequest) Execute() (*GetSshAccessCred GetSshAccessCredentials Get SSH access credentials for an environment @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 application The application name - @param environment The environment name + @param organisation The organisation ID + @param application The application ID + @param environment The environment ID @return SSHAccessAPIGetSshAccessCredentialsRequest */ func (a *SSHAccessAPIService) GetSshAccessCredentials(ctx context.Context, organisation string, application string, environment string) SSHAccessAPIGetSshAccessCredentialsRequest { diff --git a/api_variables.go b/api_variables.go index ffe5af2..4b89e7c 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_volumes.go b/api_volumes.go index 273d4b7..5bde869 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index d69b8ef..b732f22 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.8.0 +API version: 4.9.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.8.0 +// APIClient manages communication with the QuantCDN API API v4.9.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -53,6 +53,8 @@ type APIClient struct { AICustomToolsAPI AICustomToolsAPI + AIFileStorageAPI AIFileStorageAPI + AIInferenceAPI AIInferenceAPI AIModelsAPI AIModelsAPI @@ -61,6 +63,8 @@ type APIClient struct { AISessionsAPI AISessionsAPI + AITaskManagementAPI AITaskManagementAPI + AIToolsAPI AIToolsAPI AIVectorDatabaseAPI AIVectorDatabaseAPI @@ -89,6 +93,8 @@ type APIClient struct { KVAPI KVAPI + OrchestrationAPI OrchestrationAPI + OrganizationsAPI OrganizationsAPI ProjectsAPI ProjectsAPI @@ -124,10 +130,12 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AIAgentsAPI = (*AIAgentsAPIService)(&c.common) c.AICustomToolsAPI = (*AICustomToolsAPIService)(&c.common) + c.AIFileStorageAPI = (*AIFileStorageAPIService)(&c.common) c.AIInferenceAPI = (*AIInferenceAPIService)(&c.common) c.AIModelsAPI = (*AIModelsAPIService)(&c.common) c.AIMonitoringAPI = (*AIMonitoringAPIService)(&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) @@ -142,6 +150,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.EnvironmentsAPI = (*EnvironmentsAPIService)(&c.common) c.HeadersAPI = (*HeadersAPIService)(&c.common) c.KVAPI = (*KVAPIService)(&c.common) + c.OrchestrationAPI = (*OrchestrationAPIService)(&c.common) c.OrganizationsAPI = (*OrganizationsAPIService)(&c.common) c.ProjectsAPI = (*ProjectsAPIService)(&c.common) c.PurgeAPI = (*PurgeAPIService)(&c.common) diff --git a/configuration.go b/configuration.go index c4aa1dc..4e2c659 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/AIFileStorageAPI.md b/docs/AIFileStorageAPI.md new file mode 100644 index 0000000..f817e92 --- /dev/null +++ b/docs/AIFileStorageAPI.md @@ -0,0 +1,306 @@ +# \AIFileStorageAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteFile**](AIFileStorageAPI.md#DeleteFile) | **Delete** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File +[**GetFile**](AIFileStorageAPI.md#GetFile) | **Get** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File +[**ListFiles**](AIFileStorageAPI.md#ListFiles) | **Get** /api/v3/organizations/{organisation}/ai/files | List Files +[**UploadFile**](AIFileStorageAPI.md#UploadFile) | **Post** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 + + + +## DeleteFile + +> DeleteFile200Response DeleteFile(ctx, organisation, fileId).Execute() + +Delete File + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + fileId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The file ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFileStorageAPI.DeleteFile(context.Background(), organisation, fileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFileStorageAPI.DeleteFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteFile`: DeleteFile200Response + fmt.Fprintf(os.Stdout, "Response from `AIFileStorageAPI.DeleteFile`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**fileId** | **string** | The file ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteFileRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**DeleteFile200Response**](DeleteFile200Response.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) + + +## GetFile + +> GetFile200Response GetFile(ctx, organisation, fileId).Execute() + +Get File + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + fileId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The file ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFileStorageAPI.GetFile(context.Background(), organisation, fileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFileStorageAPI.GetFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFile`: GetFile200Response + fmt.Fprintf(os.Stdout, "Response from `AIFileStorageAPI.GetFile`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**fileId** | **string** | The file ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetFileRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetFile200Response**](GetFile200Response.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) + + +## ListFiles + +> ListFiles200Response ListFiles(ctx, organisation).Filter(filter).Limit(limit).Cursor(cursor).Execute() + +List Files + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + filter := "{}" // string | JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + limit := int32(56) // int32 | Maximum files to return (optional) (default to 50) + cursor := "cursor_example" // string | Pagination cursor from previous response (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFileStorageAPI.ListFiles(context.Background(), organisation).Filter(filter).Limit(limit).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFileStorageAPI.ListFiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFiles`: ListFiles200Response + fmt.Fprintf(os.Stdout, "Response from `AIFileStorageAPI.ListFiles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListFilesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filter** | **string** | JSON-encoded metadata filter. Supports exact match and array contains filters. | + **limit** | **int32** | Maximum files to return | [default to 50] + **cursor** | **string** | Pagination cursor from previous response | + +### Return type + +[**ListFiles200Response**](ListFiles200Response.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) + + +## UploadFile + +> UploadFile201Response UploadFile(ctx, organisation).UploadFileRequest(uploadFileRequest).Execute() + +Upload File to S3 + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + uploadFileRequest := *openapiclient.NewUploadFileRequest("image/png") // UploadFileRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIFileStorageAPI.UploadFile(context.Background(), organisation).UploadFileRequest(uploadFileRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIFileStorageAPI.UploadFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UploadFile`: UploadFile201Response + fmt.Fprintf(os.Stdout, "Response from `AIFileStorageAPI.UploadFile`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUploadFileRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **uploadFileRequest** | [**UploadFileRequest**](UploadFileRequest.md) | | + +### Return type + +[**UploadFile201Response**](UploadFile201Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AIInferenceAPI.md b/docs/AIInferenceAPI.md index d812293..cdc7a1a 100644 --- a/docs/AIInferenceAPI.md +++ b/docs/AIInferenceAPI.md @@ -7,7 +7,9 @@ Method | HTTP request | Description [**ChatInference**](AIInferenceAPI.md#ChatInference) | **Post** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support [**ChatInferenceStream**](AIInferenceAPI.md#ChatInferenceStream) | **Post** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support [**Embeddings**](AIInferenceAPI.md#Embeddings) | **Post** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications +[**GetDurableExecutionStatus**](AIInferenceAPI.md#GetDurableExecutionStatus) | **Get** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status [**ImageGeneration**](AIInferenceAPI.md#ImageGeneration) | **Post** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas +[**SubmitToolCallback**](AIInferenceAPI.md#SubmitToolCallback) | **Post** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) @@ -148,7 +150,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: text/event-stream +- **Accept**: text/event-stream, application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) @@ -227,6 +229,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetDurableExecutionStatus + +> GetDurableExecutionStatus200Response GetDurableExecutionStatus(ctx, organisation, identifier).Execute() + +Get Durable Execution Status + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + identifier := "XkdVWiEfSwMEPrw=" // string | Either the requestId from async response, or full executionArn (URL-encoded) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIInferenceAPI.GetDurableExecutionStatus(context.Background(), organisation, identifier).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIInferenceAPI.GetDurableExecutionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDurableExecutionStatus`: GetDurableExecutionStatus200Response + fmt.Fprintf(os.Stdout, "Response from `AIInferenceAPI.GetDurableExecutionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**identifier** | **string** | Either the requestId from async response, or full executionArn (URL-encoded) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDurableExecutionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetDurableExecutionStatus200Response**](GetDurableExecutionStatus200Response.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) + + ## ImageGeneration > ImageGeneration200Response ImageGeneration(ctx, organisation).ImageGenerationRequest(imageGenerationRequest).Execute() @@ -298,3 +373,75 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## SubmitToolCallback + +> SubmitToolCallback200Response SubmitToolCallback(ctx, organisation).SubmitToolCallbackRequest(submitToolCallbackRequest).Execute() + +Submit Client Tool Results (Callback) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + submitToolCallbackRequest := *openapiclient.NewSubmitToolCallbackRequest("Ab9hZXi/YXJuOmF3czpsYW1iZGE...", []openapiclient.SubmitToolCallbackRequestToolResultsInner{*openapiclient.NewSubmitToolCallbackRequestToolResultsInner("toolu_bdrk_012KTC8NCG...", map[string]interface{}({"temperature":"24C","conditions":"Sunny"}))}) // SubmitToolCallbackRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIInferenceAPI.SubmitToolCallback(context.Background(), organisation).SubmitToolCallbackRequest(submitToolCallbackRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIInferenceAPI.SubmitToolCallback``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitToolCallback`: SubmitToolCallback200Response + fmt.Fprintf(os.Stdout, "Response from `AIInferenceAPI.SubmitToolCallback`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSubmitToolCallbackRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **submitToolCallbackRequest** | [**SubmitToolCallbackRequest**](SubmitToolCallbackRequest.md) | | + +### Return type + +[**SubmitToolCallback200Response**](SubmitToolCallback200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AITaskManagementAPI.md b/docs/AITaskManagementAPI.md new file mode 100644 index 0000000..e315019 --- /dev/null +++ b/docs/AITaskManagementAPI.md @@ -0,0 +1,464 @@ +# \AITaskManagementAPI + +All URIs are relative to *https://dashboard.quantcdn.io* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateTask**](AITaskManagementAPI.md#CreateTask) | **Post** /api/v3/organizations/{organisation}/ai/tasks | Create a new task +[**DeleteTask**](AITaskManagementAPI.md#DeleteTask) | **Delete** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task +[**GetDependencyGraph**](AITaskManagementAPI.md#GetDependencyGraph) | **Get** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list +[**GetTask**](AITaskManagementAPI.md#GetTask) | **Get** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details +[**ListTasks**](AITaskManagementAPI.md#ListTasks) | **Get** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering +[**UpdateTask**](AITaskManagementAPI.md#UpdateTask) | **Put** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task + + + +## CreateTask + +> CreateTask201Response CreateTask(ctx, organisation).CreateTaskRequest(createTaskRequest).Execute() + +Create a new task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + createTaskRequest := *openapiclient.NewCreateTaskRequest("Process document and create summary") // CreateTaskRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.CreateTask(context.Background(), organisation).CreateTaskRequest(createTaskRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.CreateTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTask`: CreateTask201Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.CreateTask`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateTaskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createTaskRequest** | [**CreateTaskRequest**](CreateTaskRequest.md) | | + +### Return type + +[**CreateTask201Response**](CreateTask201Response.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) + + +## DeleteTask + +> DeleteTask200Response DeleteTask(ctx, organisation, taskId).Cascade(cascade).Execute() + +Delete a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + taskId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The task UUID + cascade := true // bool | If true, delete task and all dependent tasks recursively (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.DeleteTask(context.Background(), organisation, taskId).Cascade(cascade).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.DeleteTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteTask`: DeleteTask200Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.DeleteTask`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**taskId** | **string** | The task UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteTaskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **cascade** | **bool** | If true, delete task and all dependent tasks recursively | [default to false] + +### Return type + +[**DeleteTask200Response**](DeleteTask200Response.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) + + +## GetDependencyGraph + +> GetDependencyGraph200Response GetDependencyGraph(ctx, organisation, taskListId).Execute() + +Get dependency graph for a task list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + taskListId := "world-1" // string | The task list ID to get the dependency graph for + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.GetDependencyGraph(context.Background(), organisation, taskListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.GetDependencyGraph``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDependencyGraph`: GetDependencyGraph200Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.GetDependencyGraph`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**taskListId** | **string** | The task list ID to get the dependency graph for | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDependencyGraphRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetDependencyGraph200Response**](GetDependencyGraph200Response.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) + + +## GetTask + +> GetTask200Response GetTask(ctx, organisation, taskId).Execute() + +Get task details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + taskId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The task UUID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.GetTask(context.Background(), organisation, taskId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.GetTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTask`: GetTask200Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.GetTask`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**taskId** | **string** | The task UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTaskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetTask200Response**](GetTask200Response.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) + + +## ListTasks + +> ListTasks200Response ListTasks(ctx, organisation).TaskListId(taskListId).Status(status).AssignedAgentId(assignedAgentId).Limit(limit).DependsOn(dependsOn).IncludeDetails(includeDetails).Execute() + +List tasks with optional filtering + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + taskListId := "world-1" // string | Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + status := "pending" // string | Filter tasks by status (optional) + assignedAgentId := "agent-code-reviewer" // string | Filter tasks by assigned agent ID (optional) + limit := int32(56) // int32 | Maximum number of tasks to return (default 50, max 100) (optional) (default to 50) + dependsOn := "550e8400-e29b-41d4-a716-446655440000" // string | Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + includeDetails := true // bool | When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional) (default to false) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.ListTasks(context.Background(), organisation).TaskListId(taskListId).Status(status).AssignedAgentId(assignedAgentId).Limit(limit).DependsOn(dependsOn).IncludeDetails(includeDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.ListTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTasks`: ListTasks200Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.ListTasks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListTasksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **taskListId** | **string** | Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. | + **status** | **string** | Filter tasks by status | + **assignedAgentId** | **string** | Filter tasks by assigned agent ID | + **limit** | **int32** | Maximum number of tasks to return (default 50, max 100) | [default to 50] + **dependsOn** | **string** | Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. | + **includeDetails** | **bool** | When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). | [default to false] + +### Return type + +[**ListTasks200Response**](ListTasks200Response.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) + + +## UpdateTask + +> UpdateTask200Response UpdateTask(ctx, organisation, taskId).UpdateTaskRequest(updateTaskRequest).Execute() + +Update a task + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + taskId := "550e8400-e29b-41d4-a716-446655440000" // string | The task UUID + updateTaskRequest := *openapiclient.NewUpdateTaskRequest() // UpdateTaskRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AITaskManagementAPI.UpdateTask(context.Background(), organisation, taskId).UpdateTaskRequest(updateTaskRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AITaskManagementAPI.UpdateTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTask`: UpdateTask200Response + fmt.Fprintf(os.Stdout, "Response from `AITaskManagementAPI.UpdateTask`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**taskId** | **string** | The task UUID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateTaskRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateTaskRequest** | [**UpdateTaskRequest**](UpdateTaskRequest.md) | | + +### Return type + +[**UpdateTask200Response**](UpdateTask200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AIToolsAPI.md b/docs/AIToolsAPI.md index 4b771d8..378f95f 100644 --- a/docs/AIToolsAPI.md +++ b/docs/AIToolsAPI.md @@ -4,6 +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 [**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) @@ -11,6 +12,79 @@ Method | HTTP request | Description +## GetAIOrchestrationStatus + +> GetAIOrchestrationStatus200Response GetAIOrchestrationStatus(ctx, organisation, orchestrationId).Execute() + +Get Orchestration Status + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + orchestrationId := "orch_abc123def456789012345678901234" // string | Orchestration identifier for aggregated async tool executions + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AIToolsAPI.GetAIOrchestrationStatus(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AIToolsAPI.GetAIOrchestrationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAIOrchestrationStatus`: GetAIOrchestrationStatus200Response + fmt.Fprintf(os.Stdout, "Response from `AIToolsAPI.GetAIOrchestrationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**orchestrationId** | **string** | Orchestration identifier for aggregated async tool executions | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAIOrchestrationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetAIOrchestrationStatus200Response**](GetAIOrchestrationStatus200Response.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) + + ## GetAIToolExecutionStatus > GetAIToolExecutionStatus200Response GetAIToolExecutionStatus(ctx, organisation, executionId).Execute() diff --git a/docs/AIVectorDatabaseAPI.md b/docs/AIVectorDatabaseAPI.md index 29be5f4..cae60e9 100644 --- a/docs/AIVectorDatabaseAPI.md +++ b/docs/AIVectorDatabaseAPI.md @@ -324,7 +324,7 @@ import ( func main() { organisation := "organisation_example" // string | The organisation ID collectionId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The collection ID - queryVectorCollectionRequest := *openapiclient.NewQueryVectorCollectionRequest("How do I authenticate with the API?") // QueryVectorCollectionRequest | + queryVectorCollectionRequest := *openapiclient.NewQueryVectorCollectionRequest() // QueryVectorCollectionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/BackupManagementAPI.md b/docs/BackupManagementAPI.md index 2d48af2..de5adc2 100644 --- a/docs/BackupManagementAPI.md +++ b/docs/BackupManagementAPI.md @@ -30,9 +30,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The backup type createBackupRequest := *openapiclient.NewCreateBackupRequest() // CreateBackupRequest | (optional) @@ -109,9 +109,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The backup type backupId := "backupId_example" // string | The backup ID @@ -189,9 +189,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The backup type backupId := "backupId_example" // string | The backup ID @@ -272,9 +272,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The backup type order := "order_example" // string | Sort order for backups by creation date (asc = oldest first, desc = newest first) (optional) (default to "desc") limit := int32(56) // int32 | Maximum number of backups to return (max 100) (optional) (default to 50) diff --git a/docs/ChatInference202Response.md b/docs/ChatInference202Response.md new file mode 100644 index 0000000..66f7598 --- /dev/null +++ b/docs/ChatInference202Response.md @@ -0,0 +1,145 @@ +# ChatInference202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | Unique request identifier for polling | +**SessionId** | Pointer to **string** | Session ID for conversation continuity | [optional] +**Status** | **string** | Initial execution status | +**Message** | Pointer to **string** | Human-readable status message | [optional] +**PollUrl** | **string** | URL to poll for execution status | + +## Methods + +### NewChatInference202Response + +`func NewChatInference202Response(requestId string, status string, pollUrl string, ) *ChatInference202Response` + +NewChatInference202Response instantiates a new ChatInference202Response 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 + +### NewChatInference202ResponseWithDefaults + +`func NewChatInference202ResponseWithDefaults() *ChatInference202Response` + +NewChatInference202ResponseWithDefaults instantiates a new ChatInference202Response 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 + +### GetRequestId + +`func (o *ChatInference202Response) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ChatInference202Response) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ChatInference202Response) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetSessionId + +`func (o *ChatInference202Response) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *ChatInference202Response) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *ChatInference202Response) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *ChatInference202Response) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetStatus + +`func (o *ChatInference202Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ChatInference202Response) 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 *ChatInference202Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetMessage + +`func (o *ChatInference202Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ChatInference202Response) 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 *ChatInference202Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ChatInference202Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetPollUrl + +`func (o *ChatInference202Response) GetPollUrl() string` + +GetPollUrl returns the PollUrl field if non-nil, zero value otherwise. + +### GetPollUrlOk + +`func (o *ChatInference202Response) GetPollUrlOk() (*string, bool)` + +GetPollUrlOk returns a tuple with the PollUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPollUrl + +`func (o *ChatInference202Response) SetPollUrl(v string)` + +SetPollUrl sets PollUrl 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/ChatInferenceRequest.md b/docs/ChatInferenceRequest.md index 13c0a25..2e866b2 100644 --- a/docs/ChatInferenceRequest.md +++ b/docs/ChatInferenceRequest.md @@ -7,13 +7,15 @@ Name | Type | Description | Notes **Messages** | [**[]ChatInferenceRequestMessagesInner**](ChatInferenceRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **ModelId** | **string** | Model ID. Use Nova models for multimodal support. | **Temperature** | Pointer to **float32** | | [optional] [default to 0.7] -**MaxTokens** | Pointer to **int32** | | [optional] [default to 1024] +**MaxTokens** | Pointer to **int32** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **TopP** | Pointer to **float32** | | [optional] **Stream** | Pointer to **bool** | Ignored in buffered mode, always returns complete response | [optional] **SystemPrompt** | Pointer to **string** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **StopSequences** | Pointer to **[]string** | Custom stop sequences | [optional] **ResponseFormat** | Pointer to [**ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **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] ## Methods @@ -274,6 +276,56 @@ SetToolConfig sets ToolConfig field to given value. HasToolConfig returns a boolean if a field has been set. +### GetSessionId + +`func (o *ChatInferenceRequest) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *ChatInferenceRequest) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *ChatInferenceRequest) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *ChatInferenceRequest) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetAsync + +`func (o *ChatInferenceRequest) GetAsync() bool` + +GetAsync returns the Async field if non-nil, zero value otherwise. + +### GetAsyncOk + +`func (o *ChatInferenceRequest) GetAsyncOk() (*bool, bool)` + +GetAsyncOk returns a tuple with the Async field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsync + +`func (o *ChatInferenceRequest) SetAsync(v bool)` + +SetAsync sets Async field to given value. + +### HasAsync + +`func (o *ChatInferenceRequest) HasAsync() bool` + +HasAsync 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 7ed8590..4acb6e8 100644 --- a/docs/ChatInferenceStreamRequest.md +++ b/docs/ChatInferenceStreamRequest.md @@ -7,12 +7,14 @@ Name | Type | Description | Notes **Messages** | [**[]ChatInferenceStreamRequestMessagesInner**](ChatInferenceStreamRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **ModelId** | **string** | Model ID. Use Nova models for multimodal support. | **Temperature** | Pointer to **float32** | | [optional] [default to 0.7] -**MaxTokens** | Pointer to **int32** | | [optional] [default to 1024] +**MaxTokens** | Pointer to **int32** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **TopP** | Pointer to **float32** | | [optional] **SystemPrompt** | Pointer to **string** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **StopSequences** | Pointer to **[]string** | Custom stop sequences | [optional] **ResponseFormat** | Pointer to [**ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **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] ## Methods @@ -248,6 +250,56 @@ SetToolConfig sets ToolConfig field to given value. HasToolConfig returns a boolean if a field has been set. +### GetSessionId + +`func (o *ChatInferenceStreamRequest) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *ChatInferenceStreamRequest) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *ChatInferenceStreamRequest) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *ChatInferenceStreamRequest) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetAsync + +`func (o *ChatInferenceStreamRequest) GetAsync() bool` + +GetAsync returns the Async field if non-nil, zero value otherwise. + +### GetAsyncOk + +`func (o *ChatInferenceStreamRequest) GetAsyncOk() (*bool, bool)` + +GetAsyncOk returns a tuple with the Async field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsync + +`func (o *ChatInferenceStreamRequest) SetAsync(v bool)` + +SetAsync sets Async field to given value. + +### HasAsync + +`func (o *ChatInferenceStreamRequest) HasAsync() bool` + +HasAsync 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/ChatWithAIAgent202Response.md b/docs/ChatWithAIAgent202Response.md new file mode 100644 index 0000000..94df275 --- /dev/null +++ b/docs/ChatWithAIAgent202Response.md @@ -0,0 +1,192 @@ +# ChatWithAIAgent202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | **string** | Unique request identifier for polling | +**AgentId** | **string** | The agent processing the request | +**AgentName** | Pointer to **string** | Human-readable agent name | [optional] +**SessionId** | Pointer to **string** | Session ID (if provided) | [optional] +**Status** | **string** | Initial status | +**Message** | Pointer to **string** | | [optional] +**PollUrl** | **string** | URL to poll for execution status | + +## Methods + +### NewChatWithAIAgent202Response + +`func NewChatWithAIAgent202Response(requestId string, agentId string, status string, pollUrl string, ) *ChatWithAIAgent202Response` + +NewChatWithAIAgent202Response instantiates a new ChatWithAIAgent202Response 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 + +### NewChatWithAIAgent202ResponseWithDefaults + +`func NewChatWithAIAgent202ResponseWithDefaults() *ChatWithAIAgent202Response` + +NewChatWithAIAgent202ResponseWithDefaults instantiates a new ChatWithAIAgent202Response 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 + +### GetRequestId + +`func (o *ChatWithAIAgent202Response) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *ChatWithAIAgent202Response) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *ChatWithAIAgent202Response) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetAgentId + +`func (o *ChatWithAIAgent202Response) GetAgentId() string` + +GetAgentId returns the AgentId field if non-nil, zero value otherwise. + +### GetAgentIdOk + +`func (o *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) SetAgentId(v string)` + +SetAgentId sets AgentId field to given value. + + +### GetAgentName + +`func (o *ChatWithAIAgent202Response) GetAgentName() string` + +GetAgentName returns the AgentName field if non-nil, zero value otherwise. + +### GetAgentNameOk + +`func (o *ChatWithAIAgent202Response) GetAgentNameOk() (*string, bool)` + +GetAgentNameOk returns a tuple with the AgentName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAgentName + +`func (o *ChatWithAIAgent202Response) SetAgentName(v string)` + +SetAgentName sets AgentName field to given value. + +### HasAgentName + +`func (o *ChatWithAIAgent202Response) HasAgentName() bool` + +HasAgentName returns a boolean if a field has been set. + +### GetSessionId + +`func (o *ChatWithAIAgent202Response) GetSessionId() string` + +GetSessionId returns the SessionId field if non-nil, zero value otherwise. + +### GetSessionIdOk + +`func (o *ChatWithAIAgent202Response) GetSessionIdOk() (*string, bool)` + +GetSessionIdOk returns a tuple with the SessionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionId + +`func (o *ChatWithAIAgent202Response) SetSessionId(v string)` + +SetSessionId sets SessionId field to given value. + +### HasSessionId + +`func (o *ChatWithAIAgent202Response) HasSessionId() bool` + +HasSessionId returns a boolean if a field has been set. + +### GetStatus + +`func (o *ChatWithAIAgent202Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetMessage + +`func (o *ChatWithAIAgent202Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ChatWithAIAgent202Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetPollUrl + +`func (o *ChatWithAIAgent202Response) GetPollUrl() string` + +GetPollUrl returns the PollUrl field if non-nil, zero value otherwise. + +### GetPollUrlOk + +`func (o *ChatWithAIAgent202Response) GetPollUrlOk() (*string, bool)` + +GetPollUrlOk returns a tuple with the PollUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPollUrl + +`func (o *ChatWithAIAgent202Response) SetPollUrl(v string)` + +SetPollUrl sets PollUrl 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/ChatWithAIAgentRequest.md b/docs/ChatWithAIAgentRequest.md index bd4eb48..934f264 100644 --- a/docs/ChatWithAIAgentRequest.md +++ b/docs/ChatWithAIAgentRequest.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **SessionId** | Pointer to **string** | Optional session ID to continue a conversation | [optional] **UserId** | Pointer to **string** | Optional user identifier for session isolation | [optional] **Stream** | Pointer to **bool** | Whether to stream the response (SSE) | [optional] [default to false] +**Async** | Pointer to **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. | [optional] [default to false] +**System** | Pointer to **string** | Optional additional system prompt (appended to agent's configured prompt) | [optional] ## Methods @@ -123,6 +125,56 @@ SetStream sets Stream field to given value. HasStream returns a boolean if a field has been set. +### GetAsync + +`func (o *ChatWithAIAgentRequest) GetAsync() bool` + +GetAsync returns the Async field if non-nil, zero value otherwise. + +### GetAsyncOk + +`func (o *ChatWithAIAgentRequest) GetAsyncOk() (*bool, bool)` + +GetAsyncOk returns a tuple with the Async field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsync + +`func (o *ChatWithAIAgentRequest) SetAsync(v bool)` + +SetAsync sets Async field to given value. + +### HasAsync + +`func (o *ChatWithAIAgentRequest) HasAsync() bool` + +HasAsync returns a boolean if a field has been set. + +### GetSystem + +`func (o *ChatWithAIAgentRequest) GetSystem() string` + +GetSystem returns the System field if non-nil, zero value otherwise. + +### GetSystemOk + +`func (o *ChatWithAIAgentRequest) GetSystemOk() (*string, bool)` + +GetSystemOk returns a tuple with the System field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystem + +`func (o *ChatWithAIAgentRequest) SetSystem(v string)` + +SetSystem sets System field to given value. + +### HasSystem + +`func (o *ChatWithAIAgentRequest) HasSystem() bool` + +HasSystem 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/CommandsAPI.md b/docs/CommandsAPI.md index 36c39cf..6ddb5f0 100644 --- a/docs/CommandsAPI.md +++ b/docs/CommandsAPI.md @@ -29,8 +29,8 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + environment := "test-env" // string | The environment ID createCommandRequest := *openapiclient.NewCreateCommandRequest() // CreateCommandRequest | configuration := openapiclient.NewConfiguration() @@ -102,9 +102,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - environment := "environment_example" // string | The environment ID - command := "command_example" // string | The command ID + organisation := "test-org" // string | The organisation ID + environment := "test-env" // string | The environment ID + command := "test-cmd" // string | The command ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -176,8 +176,8 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/ComposeAPI.md b/docs/ComposeAPI.md index b66b387..fa734c3 100644 --- a/docs/ComposeAPI.md +++ b/docs/ComposeAPI.md @@ -29,9 +29,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -105,9 +105,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID patchEnvironmentComposeRequest := *openapiclient.NewPatchEnvironmentComposeRequest() // PatchEnvironmentComposeRequest | Partial compose definition updates. All fields are optional. configuration := openapiclient.NewConfiguration() @@ -183,7 +183,7 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID + organisation := "test-org" // string | The organisation ID validateComposeRequest := *openapiclient.NewValidateComposeRequest("Compose_example") // ValidateComposeRequest | The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided. imageSuffix := "pr-456" // string | Optional. Image tag suffix to apply during translation. Transforms internal image tags to consistent '{containerName}-{suffix}' format (e.g., 'nginx-pr-456'). External images are left unchanged. Useful for feature branch deployments. (optional) diff --git a/docs/ContainersAPI.md b/docs/ContainersAPI.md index f47b227..fe42b82 100644 --- a/docs/ContainersAPI.md +++ b/docs/ContainersAPI.md @@ -28,9 +28,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -100,10 +100,10 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID - container := "container_example" // string | The container ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID + container := "test-container" // string | The container ID container2 := *openapiclient.NewContainer("Name_example", *openapiclient.NewContainerImageReference("Type_example", "Identifier_example")) // Container | configuration := openapiclient.NewConfiguration() diff --git a/docs/CrawlerSchedulesAPI.md b/docs/CrawlerSchedulesAPI.md index 0bc4161..b02fde3 100644 --- a/docs/CrawlerSchedulesAPI.md +++ b/docs/CrawlerSchedulesAPI.md @@ -261,9 +261,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - crawler := "crawler_example" // string | + organization := "test-org" // string | + project := "test-project" // string | + crawler := "00000000-0000-0000-0000-000000000000" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/CrawlersAPI.md b/docs/CrawlersAPI.md index eb15bcd..ac8cc7a 100644 --- a/docs/CrawlersAPI.md +++ b/docs/CrawlersAPI.md @@ -34,8 +34,8 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2CrawlerRequest := *openapiclient.NewV2CrawlerRequest("test-domain.com") // V2CrawlerRequest | configuration := openapiclient.NewConfiguration() @@ -107,9 +107,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | The UUID of the crawler configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -129,7 +129,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**crawler** | **string** | | +**crawler** | **string** | The UUID of the crawler | ### Other Parameters @@ -179,10 +179,10 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | Crawler identifier - runId := int32(56) // int32 | Run identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | Crawler identifier + runId := int32(1) // int32 | Run identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -256,9 +256,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | Crawler identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | Crawler identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -313,7 +313,7 @@ Name | Type | Description | Notes ## CrawlersList -> []V2Crawler CrawlersList(ctx, organization, project).Execute() +> CrawlersList(ctx, organization, project).Execute() List crawlers for the project @@ -330,18 +330,16 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CrawlersAPI.CrawlersList(context.Background(), organization, project).Execute() + r, err := apiClient.CrawlersAPI.CrawlersList(context.Background(), organization, project).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CrawlersAPI.CrawlersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CrawlersList`: []V2Crawler - fmt.Fprintf(os.Stdout, "Response from `CrawlersAPI.CrawlersList`: %v\n", resp) } ``` @@ -366,7 +364,7 @@ Name | Type | Description | Notes ### Return type -[**[]V2Crawler**](V2Crawler.md) + (empty response body) ### Authorization @@ -401,9 +399,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | The UUID of the crawler configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -425,7 +423,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**crawler** | **string** | | +**crawler** | **string** | The UUID of the crawler | ### Other Parameters @@ -475,10 +473,10 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | Crawler identifier - crawlersRunRequest := *openapiclient.NewCrawlersRunRequest() // CrawlersRunRequest | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | Crawler identifier + crawlersRunRequest := *openapiclient.NewCrawlersRunRequest() // CrawlersRunRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -551,9 +549,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - crawler := "crawler_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + crawler := "00000000-0000-0000-0000-000000000000" // string | The UUID of the crawler v2CrawlerRequest := *openapiclient.NewV2CrawlerRequest("test-domain.com") // V2CrawlerRequest | configuration := openapiclient.NewConfiguration() @@ -576,7 +574,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**crawler** | **string** | | +**crawler** | **string** | The UUID of the crawler | ### Other Parameters diff --git a/docs/CrawlersRunRequest.md b/docs/CrawlersRunRequest.md index 02abb05..60804e9 100644 --- a/docs/CrawlersRunRequest.md +++ b/docs/CrawlersRunRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Urls** | Pointer to **[]string** | URLs to crawl | [optional] +**Urls** | Pointer to **[]string** | Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl. | [optional] ## Methods diff --git a/docs/CreateTask201Response.md b/docs/CreateTask201Response.md new file mode 100644 index 0000000..e1231f9 --- /dev/null +++ b/docs/CreateTask201Response.md @@ -0,0 +1,160 @@ +# CreateTask201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskId** | Pointer to **string** | | [optional] +**OrgId** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **int32** | | [optional] + +## Methods + +### NewCreateTask201Response + +`func NewCreateTask201Response() *CreateTask201Response` + +NewCreateTask201Response instantiates a new CreateTask201Response 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 + +### NewCreateTask201ResponseWithDefaults + +`func NewCreateTask201ResponseWithDefaults() *CreateTask201Response` + +NewCreateTask201ResponseWithDefaults instantiates a new CreateTask201Response 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 + +### GetTaskId + +`func (o *CreateTask201Response) GetTaskId() string` + +GetTaskId returns the TaskId field if non-nil, zero value otherwise. + +### GetTaskIdOk + +`func (o *CreateTask201Response) GetTaskIdOk() (*string, bool)` + +GetTaskIdOk returns a tuple with the TaskId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskId + +`func (o *CreateTask201Response) SetTaskId(v string)` + +SetTaskId sets TaskId field to given value. + +### HasTaskId + +`func (o *CreateTask201Response) HasTaskId() bool` + +HasTaskId returns a boolean if a field has been set. + +### GetOrgId + +`func (o *CreateTask201Response) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *CreateTask201Response) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *CreateTask201Response) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *CreateTask201Response) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetTitle + +`func (o *CreateTask201Response) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *CreateTask201Response) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *CreateTask201Response) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *CreateTask201Response) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetStatus + +`func (o *CreateTask201Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CreateTask201Response) 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 *CreateTask201Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CreateTask201Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *CreateTask201Response) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *CreateTask201Response) GetCreatedAtOk() (*int32, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *CreateTask201Response) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *CreateTask201Response) HasCreatedAt() bool` + +HasCreatedAt 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/CreateTaskRequest.md b/docs/CreateTaskRequest.md new file mode 100644 index 0000000..1d8532a --- /dev/null +++ b/docs/CreateTaskRequest.md @@ -0,0 +1,311 @@ +# CreateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | Task title | +**Description** | Pointer to **string** | Detailed task description | [optional] +**TaskListId** | Pointer to **string** | Task list ID for grouping related tasks (implicit - lists are created automatically) | [optional] +**Status** | Pointer to **string** | Initial task status | [optional] [default to "pending"] +**AssignedAgentId** | Pointer to **string** | Pre-assign task to specific agent | [optional] +**CreatedByAgentId** | Pointer to **string** | Agent ID that created this task | [optional] +**DependsOn** | Pointer to **[]string** | Task IDs that must complete before this task can start | [optional] +**Metadata** | Pointer to **map[string]interface{}** | Flexible JSON metadata for task-specific data | [optional] +**MaxRetries** | Pointer to **int32** | Maximum retry attempts on failure | [optional] [default to 3] +**BlockedReason** | Pointer to **string** | Reason task is blocked (when status is blocked) | [optional] +**BlockedByTaskIds** | Pointer to **[]string** | Task IDs that are blocking this task | [optional] + +## Methods + +### NewCreateTaskRequest + +`func NewCreateTaskRequest(title string, ) *CreateTaskRequest` + +NewCreateTaskRequest instantiates a new CreateTaskRequest 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 + +### NewCreateTaskRequestWithDefaults + +`func NewCreateTaskRequestWithDefaults() *CreateTaskRequest` + +NewCreateTaskRequestWithDefaults instantiates a new CreateTaskRequest 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 + +### GetTitle + +`func (o *CreateTaskRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *CreateTaskRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *CreateTaskRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *CreateTaskRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CreateTaskRequest) 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 *CreateTaskRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CreateTaskRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTaskListId + +`func (o *CreateTaskRequest) GetTaskListId() string` + +GetTaskListId returns the TaskListId field if non-nil, zero value otherwise. + +### GetTaskListIdOk + +`func (o *CreateTaskRequest) GetTaskListIdOk() (*string, bool)` + +GetTaskListIdOk returns a tuple with the TaskListId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskListId + +`func (o *CreateTaskRequest) SetTaskListId(v string)` + +SetTaskListId sets TaskListId field to given value. + +### HasTaskListId + +`func (o *CreateTaskRequest) HasTaskListId() bool` + +HasTaskListId returns a boolean if a field has been set. + +### GetStatus + +`func (o *CreateTaskRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CreateTaskRequest) 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 *CreateTaskRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CreateTaskRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAssignedAgentId + +`func (o *CreateTaskRequest) GetAssignedAgentId() string` + +GetAssignedAgentId returns the AssignedAgentId field if non-nil, zero value otherwise. + +### GetAssignedAgentIdOk + +`func (o *CreateTaskRequest) GetAssignedAgentIdOk() (*string, bool)` + +GetAssignedAgentIdOk returns a tuple with the AssignedAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedAgentId + +`func (o *CreateTaskRequest) SetAssignedAgentId(v string)` + +SetAssignedAgentId sets AssignedAgentId field to given value. + +### HasAssignedAgentId + +`func (o *CreateTaskRequest) HasAssignedAgentId() bool` + +HasAssignedAgentId returns a boolean if a field has been set. + +### GetCreatedByAgentId + +`func (o *CreateTaskRequest) GetCreatedByAgentId() string` + +GetCreatedByAgentId returns the CreatedByAgentId field if non-nil, zero value otherwise. + +### GetCreatedByAgentIdOk + +`func (o *CreateTaskRequest) GetCreatedByAgentIdOk() (*string, bool)` + +GetCreatedByAgentIdOk returns a tuple with the CreatedByAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByAgentId + +`func (o *CreateTaskRequest) SetCreatedByAgentId(v string)` + +SetCreatedByAgentId sets CreatedByAgentId field to given value. + +### HasCreatedByAgentId + +`func (o *CreateTaskRequest) HasCreatedByAgentId() bool` + +HasCreatedByAgentId returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *CreateTaskRequest) GetDependsOn() []string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *CreateTaskRequest) GetDependsOnOk() (*[]string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *CreateTaskRequest) SetDependsOn(v []string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *CreateTaskRequest) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### GetMetadata + +`func (o *CreateTaskRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *CreateTaskRequest) GetMetadataOk() (*map[string]interface{}, 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 *CreateTaskRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *CreateTaskRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetMaxRetries + +`func (o *CreateTaskRequest) GetMaxRetries() int32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *CreateTaskRequest) GetMaxRetriesOk() (*int32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *CreateTaskRequest) SetMaxRetries(v int32)` + +SetMaxRetries sets MaxRetries field to given value. + +### HasMaxRetries + +`func (o *CreateTaskRequest) HasMaxRetries() bool` + +HasMaxRetries returns a boolean if a field has been set. + +### GetBlockedReason + +`func (o *CreateTaskRequest) GetBlockedReason() string` + +GetBlockedReason returns the BlockedReason field if non-nil, zero value otherwise. + +### GetBlockedReasonOk + +`func (o *CreateTaskRequest) GetBlockedReasonOk() (*string, bool)` + +GetBlockedReasonOk returns a tuple with the BlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedReason + +`func (o *CreateTaskRequest) SetBlockedReason(v string)` + +SetBlockedReason sets BlockedReason field to given value. + +### HasBlockedReason + +`func (o *CreateTaskRequest) HasBlockedReason() bool` + +HasBlockedReason returns a boolean if a field has been set. + +### GetBlockedByTaskIds + +`func (o *CreateTaskRequest) GetBlockedByTaskIds() []string` + +GetBlockedByTaskIds returns the BlockedByTaskIds field if non-nil, zero value otherwise. + +### GetBlockedByTaskIdsOk + +`func (o *CreateTaskRequest) GetBlockedByTaskIdsOk() (*[]string, bool)` + +GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedByTaskIds + +`func (o *CreateTaskRequest) SetBlockedByTaskIds(v []string)` + +SetBlockedByTaskIds sets BlockedByTaskIds field to given value. + +### HasBlockedByTaskIds + +`func (o *CreateTaskRequest) HasBlockedByTaskIds() bool` + +HasBlockedByTaskIds 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/CronAPI.md b/docs/CronAPI.md index 11a7518..6edcee5 100644 --- a/docs/CronAPI.md +++ b/docs/CronAPI.md @@ -33,9 +33,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID createCronJobRequest := *openapiclient.NewCreateCronJobRequest("Name_example", "ScheduleExpression_example", []string{"Command_example"}) // CreateCronJobRequest | configuration := openapiclient.NewConfiguration() @@ -109,9 +109,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID cron := "cron_example" // string | The cron job ID configuration := openapiclient.NewConfiguration() @@ -184,9 +184,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID cron := "cron_example" // string | The cron job ID configuration := openapiclient.NewConfiguration() @@ -261,10 +261,10 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID - cron := "cron_example" // string | The cron job ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID + cron := "test-cron" // string | The cron job ID run := "run_example" // string | The cron run ID configuration := openapiclient.NewConfiguration() @@ -341,10 +341,10 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID - cron := "cron_example" // string | The cron job ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID + cron := "test-cron" // string | The cron job ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -418,9 +418,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -492,9 +492,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID cron := "cron_example" // string | The cron job ID updateCronJobRequest := *openapiclient.NewUpdateCronJobRequest() // UpdateCronJobRequest | diff --git a/docs/DeleteFile200Response.md b/docs/DeleteFile200Response.md new file mode 100644 index 0000000..c8b0e50 --- /dev/null +++ b/docs/DeleteFile200Response.md @@ -0,0 +1,82 @@ +# DeleteFile200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] +**FileId** | Pointer to **string** | | [optional] + +## Methods + +### NewDeleteFile200Response + +`func NewDeleteFile200Response() *DeleteFile200Response` + +NewDeleteFile200Response instantiates a new DeleteFile200Response 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 + +### NewDeleteFile200ResponseWithDefaults + +`func NewDeleteFile200ResponseWithDefaults() *DeleteFile200Response` + +NewDeleteFile200ResponseWithDefaults instantiates a new DeleteFile200Response 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 *DeleteFile200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteFile200Response) 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 *DeleteFile200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteFile200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetFileId + +`func (o *DeleteFile200Response) GetFileId() string` + +GetFileId returns the FileId field if non-nil, zero value otherwise. + +### GetFileIdOk + +`func (o *DeleteFile200Response) GetFileIdOk() (*string, bool)` + +GetFileIdOk returns a tuple with the FileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileId + +`func (o *DeleteFile200Response) SetFileId(v string)` + +SetFileId sets FileId field to given value. + +### HasFileId + +`func (o *DeleteFile200Response) HasFileId() bool` + +HasFileId 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/DeleteTask200Response.md b/docs/DeleteTask200Response.md new file mode 100644 index 0000000..578660f --- /dev/null +++ b/docs/DeleteTask200Response.md @@ -0,0 +1,108 @@ +# DeleteTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deleted** | Pointer to **bool** | | [optional] +**DeletedCount** | Pointer to **int32** | Number of tasks deleted (more than 1 for cascade) | [optional] +**DeletedTaskIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewDeleteTask200Response + +`func NewDeleteTask200Response() *DeleteTask200Response` + +NewDeleteTask200Response instantiates a new DeleteTask200Response 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 + +### NewDeleteTask200ResponseWithDefaults + +`func NewDeleteTask200ResponseWithDefaults() *DeleteTask200Response` + +NewDeleteTask200ResponseWithDefaults instantiates a new DeleteTask200Response 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 + +### GetDeleted + +`func (o *DeleteTask200Response) GetDeleted() bool` + +GetDeleted returns the Deleted field if non-nil, zero value otherwise. + +### GetDeletedOk + +`func (o *DeleteTask200Response) GetDeletedOk() (*bool, bool)` + +GetDeletedOk returns a tuple with the Deleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeleted + +`func (o *DeleteTask200Response) SetDeleted(v bool)` + +SetDeleted sets Deleted field to given value. + +### HasDeleted + +`func (o *DeleteTask200Response) HasDeleted() bool` + +HasDeleted returns a boolean if a field has been set. + +### GetDeletedCount + +`func (o *DeleteTask200Response) GetDeletedCount() int32` + +GetDeletedCount returns the DeletedCount field if non-nil, zero value otherwise. + +### GetDeletedCountOk + +`func (o *DeleteTask200Response) 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 *DeleteTask200Response) SetDeletedCount(v int32)` + +SetDeletedCount sets DeletedCount field to given value. + +### HasDeletedCount + +`func (o *DeleteTask200Response) HasDeletedCount() bool` + +HasDeletedCount returns a boolean if a field has been set. + +### GetDeletedTaskIds + +`func (o *DeleteTask200Response) GetDeletedTaskIds() []string` + +GetDeletedTaskIds returns the DeletedTaskIds field if non-nil, zero value otherwise. + +### GetDeletedTaskIdsOk + +`func (o *DeleteTask200Response) GetDeletedTaskIdsOk() (*[]string, bool)` + +GetDeletedTaskIdsOk returns a tuple with the DeletedTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedTaskIds + +`func (o *DeleteTask200Response) SetDeletedTaskIds(v []string)` + +SetDeletedTaskIds sets DeletedTaskIds field to given value. + +### HasDeletedTaskIds + +`func (o *DeleteTask200Response) HasDeletedTaskIds() bool` + +HasDeletedTaskIds 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/DeleteTask409Response.md b/docs/DeleteTask409Response.md new file mode 100644 index 0000000..61e8896 --- /dev/null +++ b/docs/DeleteTask409Response.md @@ -0,0 +1,108 @@ +# DeleteTask409Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**DependentTaskIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewDeleteTask409Response + +`func NewDeleteTask409Response() *DeleteTask409Response` + +NewDeleteTask409Response instantiates a new DeleteTask409Response 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 + +### NewDeleteTask409ResponseWithDefaults + +`func NewDeleteTask409ResponseWithDefaults() *DeleteTask409Response` + +NewDeleteTask409ResponseWithDefaults instantiates a new DeleteTask409Response 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 + +### GetError + +`func (o *DeleteTask409Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *DeleteTask409Response) 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 *DeleteTask409Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *DeleteTask409Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetMessage + +`func (o *DeleteTask409Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *DeleteTask409Response) 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 *DeleteTask409Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *DeleteTask409Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetDependentTaskIds + +`func (o *DeleteTask409Response) GetDependentTaskIds() []string` + +GetDependentTaskIds returns the DependentTaskIds field if non-nil, zero value otherwise. + +### GetDependentTaskIdsOk + +`func (o *DeleteTask409Response) GetDependentTaskIdsOk() (*[]string, bool)` + +GetDependentTaskIdsOk returns a tuple with the DependentTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependentTaskIds + +`func (o *DeleteTask409Response) SetDependentTaskIds(v []string)` + +SetDependentTaskIds sets DependentTaskIds field to given value. + +### HasDependentTaskIds + +`func (o *DeleteTask409Response) HasDependentTaskIds() bool` + +HasDependentTaskIds 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/DomainsAPI.md b/docs/DomainsAPI.md index 130b42a..700549b 100644 --- a/docs/DomainsAPI.md +++ b/docs/DomainsAPI.md @@ -31,8 +31,8 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2DomainRequest := *openapiclient.NewV2DomainRequest("test-domain.com") // V2DomainRequest | configuration := openapiclient.NewConfiguration() @@ -104,9 +104,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - domain := "domain_example" // string | Domain identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + domain := "0000" // string | Domain id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -126,7 +126,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**domain** | **string** | Domain identifier | +**domain** | **string** | Domain id | ### Other Parameters @@ -176,8 +176,8 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -247,9 +247,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - domain := "domain_example" // string | Domain identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + domain := "0000" // string | Domain id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -271,7 +271,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**domain** | **string** | Domain identifier | +**domain** | **string** | Domain id | ### Other Parameters @@ -321,9 +321,9 @@ import ( ) func main() { - organization := "organization_example" // string | Organization identifier - project := "project_example" // string | Project identifier - domain := "domain_example" // string | Domain identifier + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + domain := "0000" // string | Domain id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -343,7 +343,7 @@ Name | Type | Description | Notes **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **organization** | **string** | Organization identifier | **project** | **string** | Project identifier | -**domain** | **string** | Domain identifier | +**domain** | **string** | Domain id | ### Other Parameters diff --git a/docs/EnvironmentsAPI.md b/docs/EnvironmentsAPI.md index 047dc35..f90d553 100644 --- a/docs/EnvironmentsAPI.md +++ b/docs/EnvironmentsAPI.md @@ -36,8 +36,8 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID createEnvironmentRequest := *openapiclient.NewCreateEnvironmentRequest("EnvName_example") // CreateEnvironmentRequest | configuration := openapiclient.NewConfiguration() @@ -109,9 +109,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -181,9 +181,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -257,9 +257,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID startTime := "startTime_example" // string | Start time for log retrieval (ISO 8601 format or Unix timestamp) (optional) endTime := "endTime_example" // string | End time for log retrieval (ISO 8601 format or Unix timestamp) (optional) containerName := "containerName_example" // string | Filter logs by specific container name (optional) @@ -345,9 +345,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID startTime := int32(56) // int32 | Start time for metrics retrieval (Unix timestamp in milliseconds) (optional) endTime := int32(56) // int32 | End time for metrics retrieval (Unix timestamp in milliseconds) (optional) period := int32(56) // int32 | Period in seconds for metric aggregation (e.g., 60 for 1 minute, 300 for 5 minutes) (optional) @@ -429,8 +429,8 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -500,9 +500,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The sync type configuration := openapiclient.NewConfiguration() @@ -577,9 +577,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID type_ := "type__example" // string | The sync type syncToEnvironmentRequest := *openapiclient.NewSyncToEnvironmentRequest() // SyncToEnvironmentRequest | @@ -732,9 +732,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID updateEnvironmentStateRequest := *openapiclient.NewUpdateEnvironmentStateRequest() // UpdateEnvironmentStateRequest | configuration := openapiclient.NewConfiguration() diff --git a/docs/GetAIOrchestrationStatus200Response.md b/docs/GetAIOrchestrationStatus200Response.md new file mode 100644 index 0000000..65911dd --- /dev/null +++ b/docs/GetAIOrchestrationStatus200Response.md @@ -0,0 +1,244 @@ +# GetAIOrchestrationStatus200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrchestrationId** | **string** | Unique orchestration identifier | +**Status** | **string** | Current orchestration status | +**ToolCount** | **int32** | Total number of async tools in this orchestration | +**CompletedTools** | Pointer to **int32** | Number of tools that have completed | [optional] +**SynthesizedResponse** | Pointer to **string** | AI-synthesized response combining all tool results (only present when status=complete) | [optional] +**Tools** | Pointer to [**[]GetAIOrchestrationStatus200ResponseToolsInner**](GetAIOrchestrationStatus200ResponseToolsInner.md) | Status of individual tool executions | [optional] +**Error** | Pointer to **string** | Error message (only present when status=failed) | [optional] +**CreatedAt** | **time.Time** | When orchestration was created | +**CompletedAt** | Pointer to **time.Time** | When orchestration completed (if status in complete or failed) | [optional] + +## Methods + +### NewGetAIOrchestrationStatus200Response + +`func NewGetAIOrchestrationStatus200Response(orchestrationId string, status string, toolCount int32, createdAt time.Time, ) *GetAIOrchestrationStatus200Response` + +NewGetAIOrchestrationStatus200Response instantiates a new GetAIOrchestrationStatus200Response 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 + +### NewGetAIOrchestrationStatus200ResponseWithDefaults + +`func NewGetAIOrchestrationStatus200ResponseWithDefaults() *GetAIOrchestrationStatus200Response` + +NewGetAIOrchestrationStatus200ResponseWithDefaults instantiates a new GetAIOrchestrationStatus200Response 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 + +### GetOrchestrationId + +`func (o *GetAIOrchestrationStatus200Response) GetOrchestrationId() string` + +GetOrchestrationId returns the OrchestrationId field if non-nil, zero value otherwise. + +### GetOrchestrationIdOk + +`func (o *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) SetOrchestrationId(v string)` + +SetOrchestrationId sets OrchestrationId field to given value. + + +### GetStatus + +`func (o *GetAIOrchestrationStatus200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetToolCount + +`func (o *GetAIOrchestrationStatus200Response) GetToolCount() int32` + +GetToolCount returns the ToolCount field if non-nil, zero value otherwise. + +### GetToolCountOk + +`func (o *GetAIOrchestrationStatus200Response) GetToolCountOk() (*int32, bool)` + +GetToolCountOk returns a tuple with the ToolCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolCount + +`func (o *GetAIOrchestrationStatus200Response) SetToolCount(v int32)` + +SetToolCount sets ToolCount field to given value. + + +### GetCompletedTools + +`func (o *GetAIOrchestrationStatus200Response) GetCompletedTools() int32` + +GetCompletedTools returns the CompletedTools field if non-nil, zero value otherwise. + +### GetCompletedToolsOk + +`func (o *GetAIOrchestrationStatus200Response) GetCompletedToolsOk() (*int32, bool)` + +GetCompletedToolsOk returns a tuple with the CompletedTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedTools + +`func (o *GetAIOrchestrationStatus200Response) SetCompletedTools(v int32)` + +SetCompletedTools sets CompletedTools field to given value. + +### HasCompletedTools + +`func (o *GetAIOrchestrationStatus200Response) HasCompletedTools() bool` + +HasCompletedTools returns a boolean if a field has been set. + +### GetSynthesizedResponse + +`func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponse() string` + +GetSynthesizedResponse returns the SynthesizedResponse field if non-nil, zero value otherwise. + +### GetSynthesizedResponseOk + +`func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponseOk() (*string, bool)` + +GetSynthesizedResponseOk returns a tuple with the SynthesizedResponse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynthesizedResponse + +`func (o *GetAIOrchestrationStatus200Response) SetSynthesizedResponse(v string)` + +SetSynthesizedResponse sets SynthesizedResponse field to given value. + +### HasSynthesizedResponse + +`func (o *GetAIOrchestrationStatus200Response) HasSynthesizedResponse() bool` + +HasSynthesizedResponse returns a boolean if a field has been set. + +### GetTools + +`func (o *GetAIOrchestrationStatus200Response) GetTools() []GetAIOrchestrationStatus200ResponseToolsInner` + +GetTools returns the Tools field if non-nil, zero value otherwise. + +### GetToolsOk + +`func (o *GetAIOrchestrationStatus200Response) GetToolsOk() (*[]GetAIOrchestrationStatus200ResponseToolsInner, bool)` + +GetToolsOk returns a tuple with the Tools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTools + +`func (o *GetAIOrchestrationStatus200Response) SetTools(v []GetAIOrchestrationStatus200ResponseToolsInner)` + +SetTools sets Tools field to given value. + +### HasTools + +`func (o *GetAIOrchestrationStatus200Response) HasTools() bool` + +HasTools returns a boolean if a field has been set. + +### GetError + +`func (o *GetAIOrchestrationStatus200Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetAIOrchestrationStatus200Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *GetAIOrchestrationStatus200Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GetAIOrchestrationStatus200Response) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GetAIOrchestrationStatus200Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetCompletedAt + +`func (o *GetAIOrchestrationStatus200Response) GetCompletedAt() time.Time` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) SetCompletedAt(v time.Time)` + +SetCompletedAt sets CompletedAt field to given value. + +### HasCompletedAt + +`func (o *GetAIOrchestrationStatus200Response) HasCompletedAt() bool` + +HasCompletedAt 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/GetAIOrchestrationStatus200ResponseToolsInner.md b/docs/GetAIOrchestrationStatus200ResponseToolsInner.md new file mode 100644 index 0000000..8470d5e --- /dev/null +++ b/docs/GetAIOrchestrationStatus200ResponseToolsInner.md @@ -0,0 +1,160 @@ +# GetAIOrchestrationStatus200ResponseToolsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExecutionId** | Pointer to **string** | | [optional] +**ToolName** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Result** | Pointer to **map[string]interface{}** | Tool result (if complete) | [optional] +**Error** | Pointer to **string** | Error message (if failed) | [optional] + +## Methods + +### NewGetAIOrchestrationStatus200ResponseToolsInner + +`func NewGetAIOrchestrationStatus200ResponseToolsInner() *GetAIOrchestrationStatus200ResponseToolsInner` + +NewGetAIOrchestrationStatus200ResponseToolsInner instantiates a new GetAIOrchestrationStatus200ResponseToolsInner 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 + +### NewGetAIOrchestrationStatus200ResponseToolsInnerWithDefaults + +`func NewGetAIOrchestrationStatus200ResponseToolsInnerWithDefaults() *GetAIOrchestrationStatus200ResponseToolsInner` + +NewGetAIOrchestrationStatus200ResponseToolsInnerWithDefaults instantiates a new GetAIOrchestrationStatus200ResponseToolsInner 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 + +### GetExecutionId + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetExecutionId() string` + +GetExecutionId returns the ExecutionId field if non-nil, zero value otherwise. + +### GetExecutionIdOk + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetExecutionIdOk() (*string, bool)` + +GetExecutionIdOk returns a tuple with the ExecutionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionId + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetExecutionId(v string)` + +SetExecutionId sets ExecutionId field to given value. + +### HasExecutionId + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasExecutionId() bool` + +HasExecutionId returns a boolean if a field has been set. + +### GetToolName + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetToolName() string` + +GetToolName returns the ToolName field if non-nil, zero value otherwise. + +### GetToolNameOk + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetToolNameOk() (*string, bool)` + +GetToolNameOk returns a tuple with the ToolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolName + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetToolName(v string)` + +SetToolName sets ToolName field to given value. + +### HasToolName + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasToolName() bool` + +HasToolName returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) 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 *GetAIOrchestrationStatus200ResponseToolsInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetResult + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetResult() map[string]interface{}` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetResultOk() (*map[string]interface{}, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetResult(v map[string]interface{})` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetError + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) 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 *GetAIOrchestrationStatus200ResponseToolsInner) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasError() bool` + +HasError 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/GetAIOrchestrationStatus404Response.md b/docs/GetAIOrchestrationStatus404Response.md new file mode 100644 index 0000000..37b798c --- /dev/null +++ b/docs/GetAIOrchestrationStatus404Response.md @@ -0,0 +1,82 @@ +# GetAIOrchestrationStatus404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] +**OrchestrationId** | Pointer to **string** | | [optional] + +## Methods + +### NewGetAIOrchestrationStatus404Response + +`func NewGetAIOrchestrationStatus404Response() *GetAIOrchestrationStatus404Response` + +NewGetAIOrchestrationStatus404Response instantiates a new GetAIOrchestrationStatus404Response 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 + +### NewGetAIOrchestrationStatus404ResponseWithDefaults + +`func NewGetAIOrchestrationStatus404ResponseWithDefaults() *GetAIOrchestrationStatus404Response` + +NewGetAIOrchestrationStatus404ResponseWithDefaults instantiates a new GetAIOrchestrationStatus404Response 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 + +### GetError + +`func (o *GetAIOrchestrationStatus404Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetAIOrchestrationStatus404Response) 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 *GetAIOrchestrationStatus404Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetAIOrchestrationStatus404Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### GetOrchestrationId + +`func (o *GetAIOrchestrationStatus404Response) GetOrchestrationId() string` + +GetOrchestrationId returns the OrchestrationId field if non-nil, zero value otherwise. + +### GetOrchestrationIdOk + +`func (o *GetAIOrchestrationStatus404Response) 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 *GetAIOrchestrationStatus404Response) SetOrchestrationId(v string)` + +SetOrchestrationId sets OrchestrationId field to given value. + +### HasOrchestrationId + +`func (o *GetAIOrchestrationStatus404Response) HasOrchestrationId() bool` + +HasOrchestrationId 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/GetDependencyGraph200Response.md b/docs/GetDependencyGraph200Response.md new file mode 100644 index 0000000..32dd12f --- /dev/null +++ b/docs/GetDependencyGraph200Response.md @@ -0,0 +1,160 @@ +# GetDependencyGraph200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskListId** | Pointer to **string** | | [optional] +**TaskCount** | Pointer to **int32** | | [optional] +**Roots** | Pointer to **[]string** | Task IDs with no dependencies | [optional] +**Leaves** | Pointer to **[]string** | Task IDs with no dependents | [optional] +**Graph** | Pointer to **map[string]interface{}** | Adjacency list with task summaries, dependsOn, and dependents arrays | [optional] + +## Methods + +### NewGetDependencyGraph200Response + +`func NewGetDependencyGraph200Response() *GetDependencyGraph200Response` + +NewGetDependencyGraph200Response instantiates a new GetDependencyGraph200Response 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 + +### NewGetDependencyGraph200ResponseWithDefaults + +`func NewGetDependencyGraph200ResponseWithDefaults() *GetDependencyGraph200Response` + +NewGetDependencyGraph200ResponseWithDefaults instantiates a new GetDependencyGraph200Response 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 + +### GetTaskListId + +`func (o *GetDependencyGraph200Response) GetTaskListId() string` + +GetTaskListId returns the TaskListId field if non-nil, zero value otherwise. + +### GetTaskListIdOk + +`func (o *GetDependencyGraph200Response) GetTaskListIdOk() (*string, bool)` + +GetTaskListIdOk returns a tuple with the TaskListId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskListId + +`func (o *GetDependencyGraph200Response) SetTaskListId(v string)` + +SetTaskListId sets TaskListId field to given value. + +### HasTaskListId + +`func (o *GetDependencyGraph200Response) HasTaskListId() bool` + +HasTaskListId returns a boolean if a field has been set. + +### GetTaskCount + +`func (o *GetDependencyGraph200Response) GetTaskCount() int32` + +GetTaskCount returns the TaskCount field if non-nil, zero value otherwise. + +### GetTaskCountOk + +`func (o *GetDependencyGraph200Response) GetTaskCountOk() (*int32, bool)` + +GetTaskCountOk returns a tuple with the TaskCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskCount + +`func (o *GetDependencyGraph200Response) SetTaskCount(v int32)` + +SetTaskCount sets TaskCount field to given value. + +### HasTaskCount + +`func (o *GetDependencyGraph200Response) HasTaskCount() bool` + +HasTaskCount returns a boolean if a field has been set. + +### GetRoots + +`func (o *GetDependencyGraph200Response) GetRoots() []string` + +GetRoots returns the Roots field if non-nil, zero value otherwise. + +### GetRootsOk + +`func (o *GetDependencyGraph200Response) GetRootsOk() (*[]string, bool)` + +GetRootsOk returns a tuple with the Roots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoots + +`func (o *GetDependencyGraph200Response) SetRoots(v []string)` + +SetRoots sets Roots field to given value. + +### HasRoots + +`func (o *GetDependencyGraph200Response) HasRoots() bool` + +HasRoots returns a boolean if a field has been set. + +### GetLeaves + +`func (o *GetDependencyGraph200Response) GetLeaves() []string` + +GetLeaves returns the Leaves field if non-nil, zero value otherwise. + +### GetLeavesOk + +`func (o *GetDependencyGraph200Response) GetLeavesOk() (*[]string, bool)` + +GetLeavesOk returns a tuple with the Leaves field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLeaves + +`func (o *GetDependencyGraph200Response) SetLeaves(v []string)` + +SetLeaves sets Leaves field to given value. + +### HasLeaves + +`func (o *GetDependencyGraph200Response) HasLeaves() bool` + +HasLeaves returns a boolean if a field has been set. + +### GetGraph + +`func (o *GetDependencyGraph200Response) GetGraph() map[string]interface{}` + +GetGraph returns the Graph field if non-nil, zero value otherwise. + +### GetGraphOk + +`func (o *GetDependencyGraph200Response) GetGraphOk() (*map[string]interface{}, bool)` + +GetGraphOk returns a tuple with the Graph field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGraph + +`func (o *GetDependencyGraph200Response) SetGraph(v map[string]interface{})` + +SetGraph sets Graph field to given value. + +### HasGraph + +`func (o *GetDependencyGraph200Response) HasGraph() bool` + +HasGraph 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/GetDurableExecutionStatus200Response.md b/docs/GetDurableExecutionStatus200Response.md new file mode 100644 index 0000000..c44710f --- /dev/null +++ b/docs/GetDurableExecutionStatus200Response.md @@ -0,0 +1,238 @@ +# GetDurableExecutionStatus200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestId** | Pointer to **string** | | [optional] +**ExecutionArn** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**AwsStatus** | Pointer to **string** | Raw AWS Step Functions status | [optional] +**CallbackId** | Pointer to **string** | Present when status is waiting_callback - use with /chat/callback | [optional] +**PendingTools** | Pointer to [**[]GetDurableExecutionStatus200ResponsePendingToolsInner**](GetDurableExecutionStatus200ResponsePendingToolsInner.md) | Present when status is waiting_callback - tools waiting for results | [optional] +**Result** | Pointer to [**GetDurableExecutionStatus200ResponseResult**](GetDurableExecutionStatus200ResponseResult.md) | | [optional] +**Error** | Pointer to [**GetDurableExecutionStatus200ResponseError**](GetDurableExecutionStatus200ResponseError.md) | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200Response + +`func NewGetDurableExecutionStatus200Response() *GetDurableExecutionStatus200Response` + +NewGetDurableExecutionStatus200Response instantiates a new GetDurableExecutionStatus200Response 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 + +### NewGetDurableExecutionStatus200ResponseWithDefaults + +`func NewGetDurableExecutionStatus200ResponseWithDefaults() *GetDurableExecutionStatus200Response` + +NewGetDurableExecutionStatus200ResponseWithDefaults instantiates a new GetDurableExecutionStatus200Response 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 + +### GetRequestId + +`func (o *GetDurableExecutionStatus200Response) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *GetDurableExecutionStatus200Response) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *GetDurableExecutionStatus200Response) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + +### HasRequestId + +`func (o *GetDurableExecutionStatus200Response) HasRequestId() bool` + +HasRequestId returns a boolean if a field has been set. + +### GetExecutionArn + +`func (o *GetDurableExecutionStatus200Response) GetExecutionArn() string` + +GetExecutionArn returns the ExecutionArn field if non-nil, zero value otherwise. + +### GetExecutionArnOk + +`func (o *GetDurableExecutionStatus200Response) GetExecutionArnOk() (*string, bool)` + +GetExecutionArnOk returns a tuple with the ExecutionArn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExecutionArn + +`func (o *GetDurableExecutionStatus200Response) SetExecutionArn(v string)` + +SetExecutionArn sets ExecutionArn field to given value. + +### HasExecutionArn + +`func (o *GetDurableExecutionStatus200Response) HasExecutionArn() bool` + +HasExecutionArn returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetDurableExecutionStatus200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetDurableExecutionStatus200Response) 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 *GetDurableExecutionStatus200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetDurableExecutionStatus200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAwsStatus + +`func (o *GetDurableExecutionStatus200Response) GetAwsStatus() string` + +GetAwsStatus returns the AwsStatus field if non-nil, zero value otherwise. + +### GetAwsStatusOk + +`func (o *GetDurableExecutionStatus200Response) GetAwsStatusOk() (*string, bool)` + +GetAwsStatusOk returns a tuple with the AwsStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsStatus + +`func (o *GetDurableExecutionStatus200Response) SetAwsStatus(v string)` + +SetAwsStatus sets AwsStatus field to given value. + +### HasAwsStatus + +`func (o *GetDurableExecutionStatus200Response) HasAwsStatus() bool` + +HasAwsStatus returns a boolean if a field has been set. + +### GetCallbackId + +`func (o *GetDurableExecutionStatus200Response) GetCallbackId() string` + +GetCallbackId returns the CallbackId field if non-nil, zero value otherwise. + +### GetCallbackIdOk + +`func (o *GetDurableExecutionStatus200Response) GetCallbackIdOk() (*string, bool)` + +GetCallbackIdOk returns a tuple with the CallbackId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackId + +`func (o *GetDurableExecutionStatus200Response) SetCallbackId(v string)` + +SetCallbackId sets CallbackId field to given value. + +### HasCallbackId + +`func (o *GetDurableExecutionStatus200Response) HasCallbackId() bool` + +HasCallbackId returns a boolean if a field has been set. + +### GetPendingTools + +`func (o *GetDurableExecutionStatus200Response) GetPendingTools() []GetDurableExecutionStatus200ResponsePendingToolsInner` + +GetPendingTools returns the PendingTools field if non-nil, zero value otherwise. + +### GetPendingToolsOk + +`func (o *GetDurableExecutionStatus200Response) GetPendingToolsOk() (*[]GetDurableExecutionStatus200ResponsePendingToolsInner, bool)` + +GetPendingToolsOk returns a tuple with the PendingTools field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingTools + +`func (o *GetDurableExecutionStatus200Response) SetPendingTools(v []GetDurableExecutionStatus200ResponsePendingToolsInner)` + +SetPendingTools sets PendingTools field to given value. + +### HasPendingTools + +`func (o *GetDurableExecutionStatus200Response) HasPendingTools() bool` + +HasPendingTools returns a boolean if a field has been set. + +### GetResult + +`func (o *GetDurableExecutionStatus200Response) GetResult() GetDurableExecutionStatus200ResponseResult` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *GetDurableExecutionStatus200Response) GetResultOk() (*GetDurableExecutionStatus200ResponseResult, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *GetDurableExecutionStatus200Response) SetResult(v GetDurableExecutionStatus200ResponseResult)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *GetDurableExecutionStatus200Response) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetError + +`func (o *GetDurableExecutionStatus200Response) GetError() GetDurableExecutionStatus200ResponseError` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetDurableExecutionStatus200Response) GetErrorOk() (*GetDurableExecutionStatus200ResponseError, 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 *GetDurableExecutionStatus200Response) SetError(v GetDurableExecutionStatus200ResponseError)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetDurableExecutionStatus200Response) HasError() bool` + +HasError 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/GetDurableExecutionStatus200ResponseError.md b/docs/GetDurableExecutionStatus200ResponseError.md new file mode 100644 index 0000000..464ed59 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseError.md @@ -0,0 +1,82 @@ +# GetDurableExecutionStatus200ResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMessage** | Pointer to **string** | | [optional] +**ErrorType** | Pointer to **string** | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200ResponseError + +`func NewGetDurableExecutionStatus200ResponseError() *GetDurableExecutionStatus200ResponseError` + +NewGetDurableExecutionStatus200ResponseError instantiates a new GetDurableExecutionStatus200ResponseError 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 + +### NewGetDurableExecutionStatus200ResponseErrorWithDefaults + +`func NewGetDurableExecutionStatus200ResponseErrorWithDefaults() *GetDurableExecutionStatus200ResponseError` + +NewGetDurableExecutionStatus200ResponseErrorWithDefaults instantiates a new GetDurableExecutionStatus200ResponseError 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 + +### GetErrorMessage + +`func (o *GetDurableExecutionStatus200ResponseError) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *GetDurableExecutionStatus200ResponseError) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *GetDurableExecutionStatus200ResponseError) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *GetDurableExecutionStatus200ResponseError) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetErrorType + +`func (o *GetDurableExecutionStatus200ResponseError) GetErrorType() string` + +GetErrorType returns the ErrorType field if non-nil, zero value otherwise. + +### GetErrorTypeOk + +`func (o *GetDurableExecutionStatus200ResponseError) GetErrorTypeOk() (*string, bool)` + +GetErrorTypeOk returns a tuple with the ErrorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorType + +`func (o *GetDurableExecutionStatus200ResponseError) SetErrorType(v string)` + +SetErrorType sets ErrorType field to given value. + +### HasErrorType + +`func (o *GetDurableExecutionStatus200ResponseError) HasErrorType() bool` + +HasErrorType 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/GetDurableExecutionStatus200ResponsePendingToolsInner.md b/docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md new file mode 100644 index 0000000..90bea43 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponsePendingToolsInner.md @@ -0,0 +1,108 @@ +# GetDurableExecutionStatus200ResponsePendingToolsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**ToolUseId** | Pointer to **string** | | [optional] +**Input** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200ResponsePendingToolsInner + +`func NewGetDurableExecutionStatus200ResponsePendingToolsInner() *GetDurableExecutionStatus200ResponsePendingToolsInner` + +NewGetDurableExecutionStatus200ResponsePendingToolsInner instantiates a new GetDurableExecutionStatus200ResponsePendingToolsInner 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 + +### NewGetDurableExecutionStatus200ResponsePendingToolsInnerWithDefaults + +`func NewGetDurableExecutionStatus200ResponsePendingToolsInnerWithDefaults() *GetDurableExecutionStatus200ResponsePendingToolsInner` + +NewGetDurableExecutionStatus200ResponsePendingToolsInnerWithDefaults instantiates a new GetDurableExecutionStatus200ResponsePendingToolsInner 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 *GetDurableExecutionStatus200ResponsePendingToolsInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) 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 *GetDurableExecutionStatus200ResponsePendingToolsInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetToolUseId + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetToolUseId() string` + +GetToolUseId returns the ToolUseId field if non-nil, zero value otherwise. + +### GetToolUseIdOk + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetToolUseIdOk() (*string, bool)` + +GetToolUseIdOk returns a tuple with the ToolUseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolUseId + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) SetToolUseId(v string)` + +SetToolUseId sets ToolUseId field to given value. + +### HasToolUseId + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasToolUseId() bool` + +HasToolUseId returns a boolean if a field has been set. + +### GetInput + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetInput() map[string]interface{}` + +GetInput returns the Input field if non-nil, zero value otherwise. + +### GetInputOk + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetInputOk() (*map[string]interface{}, bool)` + +GetInputOk returns a tuple with the Input field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInput + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) SetInput(v map[string]interface{})` + +SetInput sets Input field to given value. + +### HasInput + +`func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasInput() bool` + +HasInput 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/GetDurableExecutionStatus200ResponseResult.md b/docs/GetDurableExecutionStatus200ResponseResult.md new file mode 100644 index 0000000..ef0c8a5 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResult.md @@ -0,0 +1,108 @@ +# GetDurableExecutionStatus200ResponseResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Response** | Pointer to [**GetDurableExecutionStatus200ResponseResultResponse**](GetDurableExecutionStatus200ResponseResultResponse.md) | | [optional] +**Usage** | Pointer to [**GetDurableExecutionStatus200ResponseResultUsage**](GetDurableExecutionStatus200ResponseResultUsage.md) | | [optional] +**ToolExecutions** | Pointer to **[]map[string]interface{}** | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200ResponseResult + +`func NewGetDurableExecutionStatus200ResponseResult() *GetDurableExecutionStatus200ResponseResult` + +NewGetDurableExecutionStatus200ResponseResult instantiates a new GetDurableExecutionStatus200ResponseResult 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 + +### NewGetDurableExecutionStatus200ResponseResultWithDefaults + +`func NewGetDurableExecutionStatus200ResponseResultWithDefaults() *GetDurableExecutionStatus200ResponseResult` + +NewGetDurableExecutionStatus200ResponseResultWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResult 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 + +### GetResponse + +`func (o *GetDurableExecutionStatus200ResponseResult) GetResponse() GetDurableExecutionStatus200ResponseResultResponse` + +GetResponse returns the Response field if non-nil, zero value otherwise. + +### GetResponseOk + +`func (o *GetDurableExecutionStatus200ResponseResult) GetResponseOk() (*GetDurableExecutionStatus200ResponseResultResponse, bool)` + +GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponse + +`func (o *GetDurableExecutionStatus200ResponseResult) SetResponse(v GetDurableExecutionStatus200ResponseResultResponse)` + +SetResponse sets Response field to given value. + +### HasResponse + +`func (o *GetDurableExecutionStatus200ResponseResult) HasResponse() bool` + +HasResponse returns a boolean if a field has been set. + +### GetUsage + +`func (o *GetDurableExecutionStatus200ResponseResult) GetUsage() GetDurableExecutionStatus200ResponseResultUsage` + +GetUsage returns the Usage field if non-nil, zero value otherwise. + +### GetUsageOk + +`func (o *GetDurableExecutionStatus200ResponseResult) GetUsageOk() (*GetDurableExecutionStatus200ResponseResultUsage, bool)` + +GetUsageOk returns a tuple with the Usage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsage + +`func (o *GetDurableExecutionStatus200ResponseResult) SetUsage(v GetDurableExecutionStatus200ResponseResultUsage)` + +SetUsage sets Usage field to given value. + +### HasUsage + +`func (o *GetDurableExecutionStatus200ResponseResult) HasUsage() bool` + +HasUsage returns a boolean if a field has been set. + +### GetToolExecutions + +`func (o *GetDurableExecutionStatus200ResponseResult) GetToolExecutions() []map[string]interface{}` + +GetToolExecutions returns the ToolExecutions field if non-nil, zero value otherwise. + +### GetToolExecutionsOk + +`func (o *GetDurableExecutionStatus200ResponseResult) GetToolExecutionsOk() (*[]map[string]interface{}, bool)` + +GetToolExecutionsOk returns a tuple with the ToolExecutions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolExecutions + +`func (o *GetDurableExecutionStatus200ResponseResult) SetToolExecutions(v []map[string]interface{})` + +SetToolExecutions sets ToolExecutions field to given value. + +### HasToolExecutions + +`func (o *GetDurableExecutionStatus200ResponseResult) HasToolExecutions() bool` + +HasToolExecutions 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/GetDurableExecutionStatus200ResponseResultResponse.md b/docs/GetDurableExecutionStatus200ResponseResultResponse.md new file mode 100644 index 0000000..0fc4557 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResultResponse.md @@ -0,0 +1,82 @@ +# GetDurableExecutionStatus200ResponseResultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | | [optional] +**Content** | Pointer to **string** | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200ResponseResultResponse + +`func NewGetDurableExecutionStatus200ResponseResultResponse() *GetDurableExecutionStatus200ResponseResultResponse` + +NewGetDurableExecutionStatus200ResponseResultResponse instantiates a new GetDurableExecutionStatus200ResponseResultResponse 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 + +### NewGetDurableExecutionStatus200ResponseResultResponseWithDefaults + +`func NewGetDurableExecutionStatus200ResponseResultResponseWithDefaults() *GetDurableExecutionStatus200ResponseResultResponse` + +NewGetDurableExecutionStatus200ResponseResultResponseWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResultResponse 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 + +### GetRole + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetContent + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *GetDurableExecutionStatus200ResponseResultResponse) HasContent() bool` + +HasContent 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/GetDurableExecutionStatus200ResponseResultUsage.md b/docs/GetDurableExecutionStatus200ResponseResultUsage.md new file mode 100644 index 0000000..2160a27 --- /dev/null +++ b/docs/GetDurableExecutionStatus200ResponseResultUsage.md @@ -0,0 +1,108 @@ +# GetDurableExecutionStatus200ResponseResultUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputTokens** | Pointer to **int32** | | [optional] +**OutputTokens** | Pointer to **int32** | | [optional] +**TotalTokens** | Pointer to **int32** | | [optional] + +## Methods + +### NewGetDurableExecutionStatus200ResponseResultUsage + +`func NewGetDurableExecutionStatus200ResponseResultUsage() *GetDurableExecutionStatus200ResponseResultUsage` + +NewGetDurableExecutionStatus200ResponseResultUsage instantiates a new GetDurableExecutionStatus200ResponseResultUsage 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 + +### NewGetDurableExecutionStatus200ResponseResultUsageWithDefaults + +`func NewGetDurableExecutionStatus200ResponseResultUsageWithDefaults() *GetDurableExecutionStatus200ResponseResultUsage` + +NewGetDurableExecutionStatus200ResponseResultUsageWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResultUsage 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 + +### GetInputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetInputTokens() int32` + +GetInputTokens returns the InputTokens field if non-nil, zero value otherwise. + +### GetInputTokensOk + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetInputTokensOk() (*int32, bool)` + +GetInputTokensOk returns a tuple with the InputTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) SetInputTokens(v int32)` + +SetInputTokens sets InputTokens field to given value. + +### HasInputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) HasInputTokens() bool` + +HasInputTokens returns a boolean if a field has been set. + +### GetOutputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetOutputTokens() int32` + +GetOutputTokens returns the OutputTokens field if non-nil, zero value otherwise. + +### GetOutputTokensOk + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetOutputTokensOk() (*int32, bool)` + +GetOutputTokensOk returns a tuple with the OutputTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOutputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) SetOutputTokens(v int32)` + +SetOutputTokens sets OutputTokens field to given value. + +### HasOutputTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) HasOutputTokens() bool` + +HasOutputTokens returns a boolean if a field has been set. + +### GetTotalTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetTotalTokens() int32` + +GetTotalTokens returns the TotalTokens field if non-nil, zero value otherwise. + +### GetTotalTokensOk + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) GetTotalTokensOk() (*int32, bool)` + +GetTotalTokensOk returns a tuple with the TotalTokens field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) SetTotalTokens(v int32)` + +SetTotalTokens sets TotalTokens field to given value. + +### HasTotalTokens + +`func (o *GetDurableExecutionStatus200ResponseResultUsage) HasTotalTokens() bool` + +HasTotalTokens 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/GetFile200Response.md b/docs/GetFile200Response.md new file mode 100644 index 0000000..e1b74f4 --- /dev/null +++ b/docs/GetFile200Response.md @@ -0,0 +1,238 @@ +# GetFile200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileId** | Pointer to **string** | | [optional] +**S3Uri** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | Presigned download URL (1 hour) | [optional] +**Filename** | Pointer to **string** | | [optional] +**ContentType** | Pointer to **string** | | [optional] +**Size** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewGetFile200Response + +`func NewGetFile200Response() *GetFile200Response` + +NewGetFile200Response instantiates a new GetFile200Response 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 + +### NewGetFile200ResponseWithDefaults + +`func NewGetFile200ResponseWithDefaults() *GetFile200Response` + +NewGetFile200ResponseWithDefaults instantiates a new GetFile200Response 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 + +### GetFileId + +`func (o *GetFile200Response) GetFileId() string` + +GetFileId returns the FileId field if non-nil, zero value otherwise. + +### GetFileIdOk + +`func (o *GetFile200Response) GetFileIdOk() (*string, bool)` + +GetFileIdOk returns a tuple with the FileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileId + +`func (o *GetFile200Response) SetFileId(v string)` + +SetFileId sets FileId field to given value. + +### HasFileId + +`func (o *GetFile200Response) HasFileId() bool` + +HasFileId returns a boolean if a field has been set. + +### GetS3Uri + +`func (o *GetFile200Response) GetS3Uri() string` + +GetS3Uri returns the S3Uri field if non-nil, zero value otherwise. + +### GetS3UriOk + +`func (o *GetFile200Response) GetS3UriOk() (*string, bool)` + +GetS3UriOk returns a tuple with the S3Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3Uri + +`func (o *GetFile200Response) SetS3Uri(v string)` + +SetS3Uri sets S3Uri field to given value. + +### HasS3Uri + +`func (o *GetFile200Response) HasS3Uri() bool` + +HasS3Uri returns a boolean if a field has been set. + +### GetUrl + +`func (o *GetFile200Response) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GetFile200Response) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GetFile200Response) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *GetFile200Response) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetFilename + +`func (o *GetFile200Response) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *GetFile200Response) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *GetFile200Response) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *GetFile200Response) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetContentType + +`func (o *GetFile200Response) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *GetFile200Response) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *GetFile200Response) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + +### HasContentType + +`func (o *GetFile200Response) HasContentType() bool` + +HasContentType returns a boolean if a field has been set. + +### GetSize + +`func (o *GetFile200Response) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *GetFile200Response) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *GetFile200Response) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *GetFile200Response) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetMetadata + +`func (o *GetFile200Response) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GetFile200Response) GetMetadataOk() (*map[string]interface{}, 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 *GetFile200Response) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GetFile200Response) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *GetFile200Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GetFile200Response) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GetFile200Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GetFile200Response) HasCreatedAt() bool` + +HasCreatedAt 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/GetTask200Response.md b/docs/GetTask200Response.md new file mode 100644 index 0000000..fb1cb25 --- /dev/null +++ b/docs/GetTask200Response.md @@ -0,0 +1,764 @@ +# GetTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskId** | Pointer to **string** | | [optional] +**OrgId** | Pointer to **string** | | [optional] +**TaskListId** | Pointer to **NullableString** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**AssignedAgentId** | Pointer to **NullableString** | | [optional] +**CreatedByAgentId** | Pointer to **NullableString** | | [optional] +**DependsOn** | Pointer to **[]string** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**Progress** | Pointer to **float32** | | [optional] +**ProgressMessage** | Pointer to **string** | | [optional] +**Result** | Pointer to **map[string]interface{}** | Task result data when completed | [optional] +**Error** | Pointer to **NullableString** | Error message if status is failed | [optional] +**RetryCount** | Pointer to **int32** | | [optional] +**MaxRetries** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **int64** | Unix timestamp in milliseconds | [optional] +**UpdatedAt** | Pointer to **int64** | Unix timestamp in milliseconds | [optional] +**StartedAt** | Pointer to **NullableInt64** | When status changed to in_progress | [optional] +**CompletedAt** | Pointer to **NullableInt64** | When task completed/failed/cancelled | [optional] +**ExpiresAt** | Pointer to **NullableInt64** | TTL timestamp for completed tasks | [optional] +**BlockedReason** | Pointer to **NullableString** | Reason task is blocked | [optional] +**BlockedByTaskIds** | Pointer to **[]string** | Task IDs that are blocking this task | [optional] +**BlockedAt** | Pointer to **NullableInt64** | When status changed to blocked | [optional] + +## Methods + +### NewGetTask200Response + +`func NewGetTask200Response() *GetTask200Response` + +NewGetTask200Response instantiates a new GetTask200Response 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 + +### NewGetTask200ResponseWithDefaults + +`func NewGetTask200ResponseWithDefaults() *GetTask200Response` + +NewGetTask200ResponseWithDefaults instantiates a new GetTask200Response 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 + +### GetTaskId + +`func (o *GetTask200Response) GetTaskId() string` + +GetTaskId returns the TaskId field if non-nil, zero value otherwise. + +### GetTaskIdOk + +`func (o *GetTask200Response) GetTaskIdOk() (*string, bool)` + +GetTaskIdOk returns a tuple with the TaskId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskId + +`func (o *GetTask200Response) SetTaskId(v string)` + +SetTaskId sets TaskId field to given value. + +### HasTaskId + +`func (o *GetTask200Response) HasTaskId() bool` + +HasTaskId returns a boolean if a field has been set. + +### GetOrgId + +`func (o *GetTask200Response) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *GetTask200Response) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *GetTask200Response) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *GetTask200Response) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetTaskListId + +`func (o *GetTask200Response) GetTaskListId() string` + +GetTaskListId returns the TaskListId field if non-nil, zero value otherwise. + +### GetTaskListIdOk + +`func (o *GetTask200Response) GetTaskListIdOk() (*string, bool)` + +GetTaskListIdOk returns a tuple with the TaskListId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskListId + +`func (o *GetTask200Response) SetTaskListId(v string)` + +SetTaskListId sets TaskListId field to given value. + +### HasTaskListId + +`func (o *GetTask200Response) HasTaskListId() bool` + +HasTaskListId returns a boolean if a field has been set. + +### SetTaskListIdNil + +`func (o *GetTask200Response) SetTaskListIdNil(b bool)` + + SetTaskListIdNil sets the value for TaskListId to be an explicit nil + +### UnsetTaskListId +`func (o *GetTask200Response) UnsetTaskListId()` + +UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +### GetTitle + +`func (o *GetTask200Response) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *GetTask200Response) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *GetTask200Response) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *GetTask200Response) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetDescription + +`func (o *GetTask200Response) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GetTask200Response) 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 *GetTask200Response) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *GetTask200Response) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetStatus + +`func (o *GetTask200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GetTask200Response) 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 *GetTask200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GetTask200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAssignedAgentId + +`func (o *GetTask200Response) GetAssignedAgentId() string` + +GetAssignedAgentId returns the AssignedAgentId field if non-nil, zero value otherwise. + +### GetAssignedAgentIdOk + +`func (o *GetTask200Response) GetAssignedAgentIdOk() (*string, bool)` + +GetAssignedAgentIdOk returns a tuple with the AssignedAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedAgentId + +`func (o *GetTask200Response) SetAssignedAgentId(v string)` + +SetAssignedAgentId sets AssignedAgentId field to given value. + +### HasAssignedAgentId + +`func (o *GetTask200Response) HasAssignedAgentId() bool` + +HasAssignedAgentId returns a boolean if a field has been set. + +### SetAssignedAgentIdNil + +`func (o *GetTask200Response) SetAssignedAgentIdNil(b bool)` + + SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil + +### UnsetAssignedAgentId +`func (o *GetTask200Response) UnsetAssignedAgentId()` + +UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +### GetCreatedByAgentId + +`func (o *GetTask200Response) GetCreatedByAgentId() string` + +GetCreatedByAgentId returns the CreatedByAgentId field if non-nil, zero value otherwise. + +### GetCreatedByAgentIdOk + +`func (o *GetTask200Response) GetCreatedByAgentIdOk() (*string, bool)` + +GetCreatedByAgentIdOk returns a tuple with the CreatedByAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedByAgentId + +`func (o *GetTask200Response) SetCreatedByAgentId(v string)` + +SetCreatedByAgentId sets CreatedByAgentId field to given value. + +### HasCreatedByAgentId + +`func (o *GetTask200Response) HasCreatedByAgentId() bool` + +HasCreatedByAgentId returns a boolean if a field has been set. + +### SetCreatedByAgentIdNil + +`func (o *GetTask200Response) SetCreatedByAgentIdNil(b bool)` + + SetCreatedByAgentIdNil sets the value for CreatedByAgentId to be an explicit nil + +### UnsetCreatedByAgentId +`func (o *GetTask200Response) UnsetCreatedByAgentId()` + +UnsetCreatedByAgentId ensures that no value is present for CreatedByAgentId, not even an explicit nil +### GetDependsOn + +`func (o *GetTask200Response) GetDependsOn() []string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *GetTask200Response) GetDependsOnOk() (*[]string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *GetTask200Response) SetDependsOn(v []string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *GetTask200Response) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### GetMetadata + +`func (o *GetTask200Response) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GetTask200Response) GetMetadataOk() (*map[string]interface{}, 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 *GetTask200Response) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GetTask200Response) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProgress + +`func (o *GetTask200Response) GetProgress() float32` + +GetProgress returns the Progress field if non-nil, zero value otherwise. + +### GetProgressOk + +`func (o *GetTask200Response) GetProgressOk() (*float32, bool)` + +GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgress + +`func (o *GetTask200Response) SetProgress(v float32)` + +SetProgress sets Progress field to given value. + +### HasProgress + +`func (o *GetTask200Response) HasProgress() bool` + +HasProgress returns a boolean if a field has been set. + +### GetProgressMessage + +`func (o *GetTask200Response) GetProgressMessage() string` + +GetProgressMessage returns the ProgressMessage field if non-nil, zero value otherwise. + +### GetProgressMessageOk + +`func (o *GetTask200Response) GetProgressMessageOk() (*string, bool)` + +GetProgressMessageOk returns a tuple with the ProgressMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgressMessage + +`func (o *GetTask200Response) SetProgressMessage(v string)` + +SetProgressMessage sets ProgressMessage field to given value. + +### HasProgressMessage + +`func (o *GetTask200Response) HasProgressMessage() bool` + +HasProgressMessage returns a boolean if a field has been set. + +### GetResult + +`func (o *GetTask200Response) GetResult() map[string]interface{}` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *GetTask200Response) GetResultOk() (*map[string]interface{}, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *GetTask200Response) SetResult(v map[string]interface{})` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *GetTask200Response) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### SetResultNil + +`func (o *GetTask200Response) SetResultNil(b bool)` + + SetResultNil sets the value for Result to be an explicit nil + +### UnsetResult +`func (o *GetTask200Response) UnsetResult()` + +UnsetResult ensures that no value is present for Result, not even an explicit nil +### GetError + +`func (o *GetTask200Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetTask200Response) 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 *GetTask200Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetTask200Response) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *GetTask200Response) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *GetTask200Response) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetRetryCount + +`func (o *GetTask200Response) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *GetTask200Response) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *GetTask200Response) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + +### HasRetryCount + +`func (o *GetTask200Response) HasRetryCount() bool` + +HasRetryCount returns a boolean if a field has been set. + +### GetMaxRetries + +`func (o *GetTask200Response) GetMaxRetries() int32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *GetTask200Response) GetMaxRetriesOk() (*int32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *GetTask200Response) SetMaxRetries(v int32)` + +SetMaxRetries sets MaxRetries field to given value. + +### HasMaxRetries + +`func (o *GetTask200Response) HasMaxRetries() bool` + +HasMaxRetries returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *GetTask200Response) GetCreatedAt() int64` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GetTask200Response) GetCreatedAtOk() (*int64, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GetTask200Response) SetCreatedAt(v int64)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GetTask200Response) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *GetTask200Response) GetUpdatedAt() int64` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GetTask200Response) GetUpdatedAtOk() (*int64, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GetTask200Response) SetUpdatedAt(v int64)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GetTask200Response) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *GetTask200Response) GetStartedAt() int64` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *GetTask200Response) GetStartedAtOk() (*int64, 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 *GetTask200Response) SetStartedAt(v int64)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *GetTask200Response) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### SetStartedAtNil + +`func (o *GetTask200Response) SetStartedAtNil(b bool)` + + SetStartedAtNil sets the value for StartedAt to be an explicit nil + +### UnsetStartedAt +`func (o *GetTask200Response) UnsetStartedAt()` + +UnsetStartedAt ensures that no value is present for StartedAt, not even an explicit nil +### GetCompletedAt + +`func (o *GetTask200Response) GetCompletedAt() int64` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *GetTask200Response) GetCompletedAtOk() (*int64, 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 *GetTask200Response) SetCompletedAt(v int64)` + +SetCompletedAt sets CompletedAt field to given value. + +### HasCompletedAt + +`func (o *GetTask200Response) HasCompletedAt() bool` + +HasCompletedAt returns a boolean if a field has been set. + +### SetCompletedAtNil + +`func (o *GetTask200Response) SetCompletedAtNil(b bool)` + + SetCompletedAtNil sets the value for CompletedAt to be an explicit nil + +### UnsetCompletedAt +`func (o *GetTask200Response) UnsetCompletedAt()` + +UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +### GetExpiresAt + +`func (o *GetTask200Response) GetExpiresAt() int64` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GetTask200Response) GetExpiresAtOk() (*int64, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GetTask200Response) SetExpiresAt(v int64)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GetTask200Response) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GetTask200Response) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GetTask200Response) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetBlockedReason + +`func (o *GetTask200Response) GetBlockedReason() string` + +GetBlockedReason returns the BlockedReason field if non-nil, zero value otherwise. + +### GetBlockedReasonOk + +`func (o *GetTask200Response) GetBlockedReasonOk() (*string, bool)` + +GetBlockedReasonOk returns a tuple with the BlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedReason + +`func (o *GetTask200Response) SetBlockedReason(v string)` + +SetBlockedReason sets BlockedReason field to given value. + +### HasBlockedReason + +`func (o *GetTask200Response) HasBlockedReason() bool` + +HasBlockedReason returns a boolean if a field has been set. + +### SetBlockedReasonNil + +`func (o *GetTask200Response) SetBlockedReasonNil(b bool)` + + SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil + +### UnsetBlockedReason +`func (o *GetTask200Response) UnsetBlockedReason()` + +UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +### GetBlockedByTaskIds + +`func (o *GetTask200Response) GetBlockedByTaskIds() []string` + +GetBlockedByTaskIds returns the BlockedByTaskIds field if non-nil, zero value otherwise. + +### GetBlockedByTaskIdsOk + +`func (o *GetTask200Response) GetBlockedByTaskIdsOk() (*[]string, bool)` + +GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedByTaskIds + +`func (o *GetTask200Response) SetBlockedByTaskIds(v []string)` + +SetBlockedByTaskIds sets BlockedByTaskIds field to given value. + +### HasBlockedByTaskIds + +`func (o *GetTask200Response) HasBlockedByTaskIds() bool` + +HasBlockedByTaskIds returns a boolean if a field has been set. + +### SetBlockedByTaskIdsNil + +`func (o *GetTask200Response) SetBlockedByTaskIdsNil(b bool)` + + SetBlockedByTaskIdsNil sets the value for BlockedByTaskIds to be an explicit nil + +### UnsetBlockedByTaskIds +`func (o *GetTask200Response) UnsetBlockedByTaskIds()` + +UnsetBlockedByTaskIds ensures that no value is present for BlockedByTaskIds, not even an explicit nil +### GetBlockedAt + +`func (o *GetTask200Response) GetBlockedAt() int64` + +GetBlockedAt returns the BlockedAt field if non-nil, zero value otherwise. + +### GetBlockedAtOk + +`func (o *GetTask200Response) GetBlockedAtOk() (*int64, bool)` + +GetBlockedAtOk returns a tuple with the BlockedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedAt + +`func (o *GetTask200Response) SetBlockedAt(v int64)` + +SetBlockedAt sets BlockedAt field to given value. + +### HasBlockedAt + +`func (o *GetTask200Response) HasBlockedAt() bool` + +HasBlockedAt returns a boolean if a field has been set. + +### SetBlockedAtNil + +`func (o *GetTask200Response) SetBlockedAtNil(b bool)` + + SetBlockedAtNil sets the value for BlockedAt to be an explicit nil + +### UnsetBlockedAt +`func (o *GetTask200Response) UnsetBlockedAt()` + +UnsetBlockedAt ensures that no value is present for BlockedAt, 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/HeadersAPI.md b/docs/HeadersAPI.md index 83f21fd..d5b3e31 100644 --- a/docs/HeadersAPI.md +++ b/docs/HeadersAPI.md @@ -29,8 +29,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2CustomHeaderRequest := *openapiclient.NewV2CustomHeaderRequest(map[string]string{"key": "Inner_example"}) // V2CustomHeaderRequest | configuration := openapiclient.NewConfiguration() @@ -51,8 +51,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -102,8 +102,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2CustomHeaderRequest := *openapiclient.NewV2CustomHeaderRequest(map[string]string{"key": "Inner_example"}) // V2CustomHeaderRequest | configuration := openapiclient.NewConfiguration() @@ -122,8 +122,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -173,8 +173,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -194,8 +194,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters diff --git a/docs/KVAPI.md b/docs/KVAPI.md index d5f96d2..a33939e 100644 --- a/docs/KVAPI.md +++ b/docs/KVAPI.md @@ -35,8 +35,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2StoreRequest := *openapiclient.NewV2StoreRequest("session-data") // V2StoreRequest | configuration := openapiclient.NewConfiguration() @@ -57,8 +57,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -108,9 +108,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -128,8 +128,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | ### Other Parameters @@ -180,9 +180,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | v2StoreItemRequest := *openapiclient.NewV2StoreItemRequest("user-session-123", "Value_example") // V2StoreItemRequest | configuration := openapiclient.NewConfiguration() @@ -203,8 +203,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | ### Other Parameters @@ -256,9 +256,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | key := "key_example" // string | configuration := openapiclient.NewConfiguration() @@ -279,8 +279,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | **key** | **string** | | @@ -333,9 +333,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | cursor := "cursor_example" // string | Cursor for pagination (optional) limit := int32(56) // int32 | Number of items to return (optional) (default to 10) search := "search_example" // string | Search filter for keys (optional) @@ -359,8 +359,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | ### Other Parameters @@ -417,9 +417,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | key := "key_example" // string | configuration := openapiclient.NewConfiguration() @@ -440,8 +440,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | **key** | **string** | | @@ -494,9 +494,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | key := "key_example" // string | v2StoreItemUpdateRequest := *openapiclient.NewV2StoreItemUpdateRequest("Value_example") // V2StoreItemUpdateRequest | @@ -518,8 +518,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | **key** | **string** | | @@ -573,8 +573,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -594,8 +594,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -644,9 +644,9 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | - storeId := "storeId_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier + storeId := "0000" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -666,8 +666,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | **storeId** | **string** | | ### Other Parameters diff --git a/docs/ListFiles200Response.md b/docs/ListFiles200Response.md new file mode 100644 index 0000000..79ee4b4 --- /dev/null +++ b/docs/ListFiles200Response.md @@ -0,0 +1,118 @@ +# ListFiles200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Files** | Pointer to [**[]ListFiles200ResponseFilesInner**](ListFiles200ResponseFilesInner.md) | | [optional] +**NextCursor** | Pointer to **NullableString** | Cursor for next page | [optional] +**HasMore** | Pointer to **bool** | True if more results available | [optional] + +## Methods + +### NewListFiles200Response + +`func NewListFiles200Response() *ListFiles200Response` + +NewListFiles200Response instantiates a new ListFiles200Response 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 + +### NewListFiles200ResponseWithDefaults + +`func NewListFiles200ResponseWithDefaults() *ListFiles200Response` + +NewListFiles200ResponseWithDefaults instantiates a new ListFiles200Response 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 + +### GetFiles + +`func (o *ListFiles200Response) GetFiles() []ListFiles200ResponseFilesInner` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *ListFiles200Response) GetFilesOk() (*[]ListFiles200ResponseFilesInner, bool)` + +GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFiles + +`func (o *ListFiles200Response) SetFiles(v []ListFiles200ResponseFilesInner)` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *ListFiles200Response) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *ListFiles200Response) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *ListFiles200Response) 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 *ListFiles200Response) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *ListFiles200Response) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### SetNextCursorNil + +`func (o *ListFiles200Response) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *ListFiles200Response) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +### GetHasMore + +`func (o *ListFiles200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *ListFiles200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *ListFiles200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + +### HasHasMore + +`func (o *ListFiles200Response) HasHasMore() bool` + +HasHasMore 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/ListFiles200ResponseFilesInner.md b/docs/ListFiles200ResponseFilesInner.md new file mode 100644 index 0000000..50d13ea --- /dev/null +++ b/docs/ListFiles200ResponseFilesInner.md @@ -0,0 +1,186 @@ +# ListFiles200ResponseFilesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileId** | Pointer to **string** | | [optional] +**Filename** | Pointer to **string** | | [optional] +**ContentType** | Pointer to **string** | | [optional] +**Size** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewListFiles200ResponseFilesInner + +`func NewListFiles200ResponseFilesInner() *ListFiles200ResponseFilesInner` + +NewListFiles200ResponseFilesInner instantiates a new ListFiles200ResponseFilesInner 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 + +### NewListFiles200ResponseFilesInnerWithDefaults + +`func NewListFiles200ResponseFilesInnerWithDefaults() *ListFiles200ResponseFilesInner` + +NewListFiles200ResponseFilesInnerWithDefaults instantiates a new ListFiles200ResponseFilesInner 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 + +### GetFileId + +`func (o *ListFiles200ResponseFilesInner) GetFileId() string` + +GetFileId returns the FileId field if non-nil, zero value otherwise. + +### GetFileIdOk + +`func (o *ListFiles200ResponseFilesInner) GetFileIdOk() (*string, bool)` + +GetFileIdOk returns a tuple with the FileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileId + +`func (o *ListFiles200ResponseFilesInner) SetFileId(v string)` + +SetFileId sets FileId field to given value. + +### HasFileId + +`func (o *ListFiles200ResponseFilesInner) HasFileId() bool` + +HasFileId returns a boolean if a field has been set. + +### GetFilename + +`func (o *ListFiles200ResponseFilesInner) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *ListFiles200ResponseFilesInner) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *ListFiles200ResponseFilesInner) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *ListFiles200ResponseFilesInner) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetContentType + +`func (o *ListFiles200ResponseFilesInner) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *ListFiles200ResponseFilesInner) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *ListFiles200ResponseFilesInner) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + +### HasContentType + +`func (o *ListFiles200ResponseFilesInner) HasContentType() bool` + +HasContentType returns a boolean if a field has been set. + +### GetSize + +`func (o *ListFiles200ResponseFilesInner) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ListFiles200ResponseFilesInner) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ListFiles200ResponseFilesInner) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ListFiles200ResponseFilesInner) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ListFiles200ResponseFilesInner) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ListFiles200ResponseFilesInner) GetMetadataOk() (*map[string]interface{}, 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 *ListFiles200ResponseFilesInner) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ListFiles200ResponseFilesInner) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ListFiles200ResponseFilesInner) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ListFiles200ResponseFilesInner) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ListFiles200ResponseFilesInner) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ListFiles200ResponseFilesInner) HasCreatedAt() bool` + +HasCreatedAt 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/ListTasks200Response.md b/docs/ListTasks200Response.md new file mode 100644 index 0000000..d239731 --- /dev/null +++ b/docs/ListTasks200Response.md @@ -0,0 +1,134 @@ +# ListTasks200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Tasks** | Pointer to [**[]ListTasks200ResponseTasksInner**](ListTasks200ResponseTasksInner.md) | | [optional] +**TaskIds** | Pointer to **[]string** | Task IDs (only with dependsOn filter) | [optional] +**Count** | Pointer to **int32** | | [optional] +**DependsOn** | Pointer to **string** | The queried task ID (only with dependsOn filter) | [optional] + +## Methods + +### NewListTasks200Response + +`func NewListTasks200Response() *ListTasks200Response` + +NewListTasks200Response instantiates a new ListTasks200Response 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 + +### NewListTasks200ResponseWithDefaults + +`func NewListTasks200ResponseWithDefaults() *ListTasks200Response` + +NewListTasks200ResponseWithDefaults instantiates a new ListTasks200Response 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 + +### GetTasks + +`func (o *ListTasks200Response) GetTasks() []ListTasks200ResponseTasksInner` + +GetTasks returns the Tasks field if non-nil, zero value otherwise. + +### GetTasksOk + +`func (o *ListTasks200Response) GetTasksOk() (*[]ListTasks200ResponseTasksInner, bool)` + +GetTasksOk returns a tuple with the Tasks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTasks + +`func (o *ListTasks200Response) SetTasks(v []ListTasks200ResponseTasksInner)` + +SetTasks sets Tasks field to given value. + +### HasTasks + +`func (o *ListTasks200Response) HasTasks() bool` + +HasTasks returns a boolean if a field has been set. + +### GetTaskIds + +`func (o *ListTasks200Response) GetTaskIds() []string` + +GetTaskIds returns the TaskIds field if non-nil, zero value otherwise. + +### GetTaskIdsOk + +`func (o *ListTasks200Response) GetTaskIdsOk() (*[]string, bool)` + +GetTaskIdsOk returns a tuple with the TaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskIds + +`func (o *ListTasks200Response) SetTaskIds(v []string)` + +SetTaskIds sets TaskIds field to given value. + +### HasTaskIds + +`func (o *ListTasks200Response) HasTaskIds() bool` + +HasTaskIds returns a boolean if a field has been set. + +### GetCount + +`func (o *ListTasks200Response) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ListTasks200Response) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ListTasks200Response) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *ListTasks200Response) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetDependsOn + +`func (o *ListTasks200Response) GetDependsOn() string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *ListTasks200Response) GetDependsOnOk() (*string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *ListTasks200Response) SetDependsOn(v string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *ListTasks200Response) HasDependsOn() bool` + +HasDependsOn 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/ListTasks200ResponseTasksInner.md b/docs/ListTasks200ResponseTasksInner.md new file mode 100644 index 0000000..7d29803 --- /dev/null +++ b/docs/ListTasks200ResponseTasksInner.md @@ -0,0 +1,382 @@ +# ListTasks200ResponseTasksInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskId** | Pointer to **string** | | [optional] +**OrgId** | Pointer to **string** | | [optional] +**TaskListId** | Pointer to **NullableString** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**AssignedAgentId** | Pointer to **NullableString** | | [optional] +**Progress** | Pointer to **float32** | | [optional] +**BlockedReason** | Pointer to **NullableString** | | [optional] +**BlockedByTaskIds** | Pointer to **[]string** | | [optional] +**CreatedAt** | Pointer to **int32** | | [optional] +**UpdatedAt** | Pointer to **int32** | | [optional] + +## Methods + +### NewListTasks200ResponseTasksInner + +`func NewListTasks200ResponseTasksInner() *ListTasks200ResponseTasksInner` + +NewListTasks200ResponseTasksInner instantiates a new ListTasks200ResponseTasksInner 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 + +### NewListTasks200ResponseTasksInnerWithDefaults + +`func NewListTasks200ResponseTasksInnerWithDefaults() *ListTasks200ResponseTasksInner` + +NewListTasks200ResponseTasksInnerWithDefaults instantiates a new ListTasks200ResponseTasksInner 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 + +### GetTaskId + +`func (o *ListTasks200ResponseTasksInner) GetTaskId() string` + +GetTaskId returns the TaskId field if non-nil, zero value otherwise. + +### GetTaskIdOk + +`func (o *ListTasks200ResponseTasksInner) GetTaskIdOk() (*string, bool)` + +GetTaskIdOk returns a tuple with the TaskId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskId + +`func (o *ListTasks200ResponseTasksInner) SetTaskId(v string)` + +SetTaskId sets TaskId field to given value. + +### HasTaskId + +`func (o *ListTasks200ResponseTasksInner) HasTaskId() bool` + +HasTaskId returns a boolean if a field has been set. + +### GetOrgId + +`func (o *ListTasks200ResponseTasksInner) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ListTasks200ResponseTasksInner) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ListTasks200ResponseTasksInner) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *ListTasks200ResponseTasksInner) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetTaskListId + +`func (o *ListTasks200ResponseTasksInner) GetTaskListId() string` + +GetTaskListId returns the TaskListId field if non-nil, zero value otherwise. + +### GetTaskListIdOk + +`func (o *ListTasks200ResponseTasksInner) GetTaskListIdOk() (*string, bool)` + +GetTaskListIdOk returns a tuple with the TaskListId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskListId + +`func (o *ListTasks200ResponseTasksInner) SetTaskListId(v string)` + +SetTaskListId sets TaskListId field to given value. + +### HasTaskListId + +`func (o *ListTasks200ResponseTasksInner) HasTaskListId() bool` + +HasTaskListId returns a boolean if a field has been set. + +### SetTaskListIdNil + +`func (o *ListTasks200ResponseTasksInner) SetTaskListIdNil(b bool)` + + SetTaskListIdNil sets the value for TaskListId to be an explicit nil + +### UnsetTaskListId +`func (o *ListTasks200ResponseTasksInner) UnsetTaskListId()` + +UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +### GetTitle + +`func (o *ListTasks200ResponseTasksInner) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ListTasks200ResponseTasksInner) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ListTasks200ResponseTasksInner) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ListTasks200ResponseTasksInner) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetDescription + +`func (o *ListTasks200ResponseTasksInner) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ListTasks200ResponseTasksInner) 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 *ListTasks200ResponseTasksInner) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ListTasks200ResponseTasksInner) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetStatus + +`func (o *ListTasks200ResponseTasksInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ListTasks200ResponseTasksInner) 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 *ListTasks200ResponseTasksInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ListTasks200ResponseTasksInner) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAssignedAgentId + +`func (o *ListTasks200ResponseTasksInner) GetAssignedAgentId() string` + +GetAssignedAgentId returns the AssignedAgentId field if non-nil, zero value otherwise. + +### GetAssignedAgentIdOk + +`func (o *ListTasks200ResponseTasksInner) GetAssignedAgentIdOk() (*string, bool)` + +GetAssignedAgentIdOk returns a tuple with the AssignedAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedAgentId + +`func (o *ListTasks200ResponseTasksInner) SetAssignedAgentId(v string)` + +SetAssignedAgentId sets AssignedAgentId field to given value. + +### HasAssignedAgentId + +`func (o *ListTasks200ResponseTasksInner) HasAssignedAgentId() bool` + +HasAssignedAgentId returns a boolean if a field has been set. + +### SetAssignedAgentIdNil + +`func (o *ListTasks200ResponseTasksInner) SetAssignedAgentIdNil(b bool)` + + SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil + +### UnsetAssignedAgentId +`func (o *ListTasks200ResponseTasksInner) UnsetAssignedAgentId()` + +UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +### GetProgress + +`func (o *ListTasks200ResponseTasksInner) GetProgress() float32` + +GetProgress returns the Progress field if non-nil, zero value otherwise. + +### GetProgressOk + +`func (o *ListTasks200ResponseTasksInner) GetProgressOk() (*float32, bool)` + +GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgress + +`func (o *ListTasks200ResponseTasksInner) SetProgress(v float32)` + +SetProgress sets Progress field to given value. + +### HasProgress + +`func (o *ListTasks200ResponseTasksInner) HasProgress() bool` + +HasProgress returns a boolean if a field has been set. + +### GetBlockedReason + +`func (o *ListTasks200ResponseTasksInner) GetBlockedReason() string` + +GetBlockedReason returns the BlockedReason field if non-nil, zero value otherwise. + +### GetBlockedReasonOk + +`func (o *ListTasks200ResponseTasksInner) GetBlockedReasonOk() (*string, bool)` + +GetBlockedReasonOk returns a tuple with the BlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedReason + +`func (o *ListTasks200ResponseTasksInner) SetBlockedReason(v string)` + +SetBlockedReason sets BlockedReason field to given value. + +### HasBlockedReason + +`func (o *ListTasks200ResponseTasksInner) HasBlockedReason() bool` + +HasBlockedReason returns a boolean if a field has been set. + +### SetBlockedReasonNil + +`func (o *ListTasks200ResponseTasksInner) SetBlockedReasonNil(b bool)` + + SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil + +### UnsetBlockedReason +`func (o *ListTasks200ResponseTasksInner) UnsetBlockedReason()` + +UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +### GetBlockedByTaskIds + +`func (o *ListTasks200ResponseTasksInner) GetBlockedByTaskIds() []string` + +GetBlockedByTaskIds returns the BlockedByTaskIds field if non-nil, zero value otherwise. + +### GetBlockedByTaskIdsOk + +`func (o *ListTasks200ResponseTasksInner) GetBlockedByTaskIdsOk() (*[]string, bool)` + +GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedByTaskIds + +`func (o *ListTasks200ResponseTasksInner) SetBlockedByTaskIds(v []string)` + +SetBlockedByTaskIds sets BlockedByTaskIds field to given value. + +### HasBlockedByTaskIds + +`func (o *ListTasks200ResponseTasksInner) HasBlockedByTaskIds() bool` + +HasBlockedByTaskIds returns a boolean if a field has been set. + +### SetBlockedByTaskIdsNil + +`func (o *ListTasks200ResponseTasksInner) SetBlockedByTaskIdsNil(b bool)` + + SetBlockedByTaskIdsNil sets the value for BlockedByTaskIds to be an explicit nil + +### UnsetBlockedByTaskIds +`func (o *ListTasks200ResponseTasksInner) UnsetBlockedByTaskIds()` + +UnsetBlockedByTaskIds ensures that no value is present for BlockedByTaskIds, not even an explicit nil +### GetCreatedAt + +`func (o *ListTasks200ResponseTasksInner) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ListTasks200ResponseTasksInner) GetCreatedAtOk() (*int32, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ListTasks200ResponseTasksInner) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ListTasks200ResponseTasksInner) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *ListTasks200ResponseTasksInner) GetUpdatedAt() int32` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *ListTasks200ResponseTasksInner) GetUpdatedAtOk() (*int32, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *ListTasks200ResponseTasksInner) SetUpdatedAt(v int32)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *ListTasks200ResponseTasksInner) HasUpdatedAt() bool` + +HasUpdatedAt 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/OrchestrationAPI.md b/docs/OrchestrationAPI.md new file mode 100644 index 0000000..1d8e3c5 --- /dev/null +++ b/docs/OrchestrationAPI.md @@ -0,0 +1,82 @@ +# \OrchestrationAPI + +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 + +> GetAIOrchestrationStatus200Response GetAIOrchestrationStatus(ctx, organisation, orchestrationId).Execute() + +Get Orchestration Status + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/quantcdn/quant-admin-go" +) + +func main() { + organisation := "organisation_example" // string | The organisation ID + orchestrationId := "orch_abc123def456789012345678901234" // string | Orchestration identifier for aggregated async tool executions + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrchestrationAPI.GetAIOrchestrationStatus(context.Background(), organisation, orchestrationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrchestrationAPI.GetAIOrchestrationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAIOrchestrationStatus`: GetAIOrchestrationStatus200Response + fmt.Fprintf(os.Stdout, "Response from `OrchestrationAPI.GetAIOrchestrationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organisation** | **string** | The organisation ID | +**orchestrationId** | **string** | Orchestration identifier for aggregated async tool executions | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAIOrchestrationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**GetAIOrchestrationStatus200Response**](GetAIOrchestrationStatus200Response.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/OrganizationsAPI.md b/docs/OrganizationsAPI.md index aea5733..6e8b740 100644 --- a/docs/OrganizationsAPI.md +++ b/docs/OrganizationsAPI.md @@ -87,7 +87,7 @@ import ( ) func main() { - organization := "organization_example" // string | + organization := "test-org" // string | Organization identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -107,7 +107,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | +**organization** | **string** | Organization identifier | ### Other Parameters diff --git a/docs/ProjectsAPI.md b/docs/ProjectsAPI.md index 5a72b56..b444b89 100644 --- a/docs/ProjectsAPI.md +++ b/docs/ProjectsAPI.md @@ -31,7 +31,7 @@ import ( ) func main() { - organization := "organization_example" // string | + organization := "test-org" // string | Organization identifier v2ProjectRequest := *openapiclient.NewV2ProjectRequest() // V2ProjectRequest | configuration := openapiclient.NewConfiguration() @@ -52,7 +52,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | +**organization** | **string** | Organization identifier | ### Other Parameters @@ -101,8 +101,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -120,8 +120,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -170,7 +170,7 @@ import ( ) func main() { - organization := "organization_example" // string | + organization := "test-org" // string | Organization identifier configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -190,7 +190,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | +**organization** | **string** | Organization identifier | ### Other Parameters @@ -238,8 +238,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier withToken := true // bool | (default to false) configuration := openapiclient.NewConfiguration() @@ -260,8 +260,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters @@ -311,8 +311,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier v2ProjectRequest := *openapiclient.NewV2ProjectRequest() // V2ProjectRequest | configuration := openapiclient.NewConfiguration() @@ -333,8 +333,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters diff --git a/docs/PurgeAPI.md b/docs/PurgeAPI.md index 523685c..f1bec1f 100644 --- a/docs/PurgeAPI.md +++ b/docs/PurgeAPI.md @@ -27,8 +27,8 @@ import ( ) func main() { - organization := "organization_example" // string | - project := "project_example" // string | + organization := "test-org" // string | Organization identifier + project := "test-project" // string | Project identifier purgeCreateRequest := *openapiclient.NewPurgeCreateRequest([]string{"CacheKeys_example"}, "Scope_example") // PurgeCreateRequest | configuration := openapiclient.NewConfiguration() @@ -49,8 +49,8 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organization** | **string** | | -**project** | **string** | | +**organization** | **string** | Organization identifier | +**project** | **string** | Project identifier | ### Other Parameters diff --git a/docs/QueryVectorCollection200Response.md b/docs/QueryVectorCollection200Response.md index 34e94ce..c740c54 100644 --- a/docs/QueryVectorCollection200Response.md +++ b/docs/QueryVectorCollection200Response.md @@ -5,9 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Results** | Pointer to [**[]QueryVectorCollection200ResponseResultsInner**](QueryVectorCollection200ResponseResultsInner.md) | | [optional] -**Query** | Pointer to **string** | | [optional] -**Count** | Pointer to **int32** | | [optional] -**ExecutionTimeMs** | Pointer to **int32** | | [optional] +**Query** | Pointer to **NullableString** | Original query text (null if vector or metadata search was used) | [optional] +**SearchMode** | Pointer to **string** | Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata) | [optional] +**Filter** | Pointer to **map[string]interface{}** | Filter that was applied (if any) | [optional] +**Count** | Pointer to **int32** | Number of results returned | [optional] +**ExecutionTimeMs** | Pointer to **int32** | Query execution time in milliseconds | [optional] +**CollectionId** | Pointer to **string** | | [optional] +**HasMore** | Pointer to **bool** | True if more results available (listByMetadata mode only) | [optional] +**NextCursor** | Pointer to **NullableString** | Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode. | [optional] +**Pagination** | Pointer to [**NullableQueryVectorCollection200ResponsePagination**](QueryVectorCollection200ResponsePagination.md) | | [optional] ## Methods @@ -78,6 +84,76 @@ SetQuery sets Query field to given value. HasQuery returns a boolean if a field has been set. +### SetQueryNil + +`func (o *QueryVectorCollection200Response) SetQueryNil(b bool)` + + SetQueryNil sets the value for Query to be an explicit nil + +### UnsetQuery +`func (o *QueryVectorCollection200Response) UnsetQuery()` + +UnsetQuery ensures that no value is present for Query, not even an explicit nil +### GetSearchMode + +`func (o *QueryVectorCollection200Response) GetSearchMode() string` + +GetSearchMode returns the SearchMode field if non-nil, zero value otherwise. + +### GetSearchModeOk + +`func (o *QueryVectorCollection200Response) GetSearchModeOk() (*string, bool)` + +GetSearchModeOk returns a tuple with the SearchMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchMode + +`func (o *QueryVectorCollection200Response) SetSearchMode(v string)` + +SetSearchMode sets SearchMode field to given value. + +### HasSearchMode + +`func (o *QueryVectorCollection200Response) HasSearchMode() bool` + +HasSearchMode returns a boolean if a field has been set. + +### GetFilter + +`func (o *QueryVectorCollection200Response) GetFilter() map[string]interface{}` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *QueryVectorCollection200Response) GetFilterOk() (*map[string]interface{}, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *QueryVectorCollection200Response) SetFilter(v map[string]interface{})` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *QueryVectorCollection200Response) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### SetFilterNil + +`func (o *QueryVectorCollection200Response) SetFilterNil(b bool)` + + SetFilterNil sets the value for Filter to be an explicit nil + +### UnsetFilter +`func (o *QueryVectorCollection200Response) UnsetFilter()` + +UnsetFilter ensures that no value is present for Filter, not even an explicit nil ### GetCount `func (o *QueryVectorCollection200Response) GetCount() int32` @@ -128,6 +204,126 @@ SetExecutionTimeMs sets ExecutionTimeMs field to given value. HasExecutionTimeMs returns a boolean if a field has been set. +### GetCollectionId + +`func (o *QueryVectorCollection200Response) GetCollectionId() string` + +GetCollectionId returns the CollectionId field if non-nil, zero value otherwise. + +### GetCollectionIdOk + +`func (o *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) SetCollectionId(v string)` + +SetCollectionId sets CollectionId field to given value. + +### HasCollectionId + +`func (o *QueryVectorCollection200Response) HasCollectionId() bool` + +HasCollectionId returns a boolean if a field has been set. + +### GetHasMore + +`func (o *QueryVectorCollection200Response) GetHasMore() bool` + +GetHasMore returns the HasMore field if non-nil, zero value otherwise. + +### GetHasMoreOk + +`func (o *QueryVectorCollection200Response) GetHasMoreOk() (*bool, bool)` + +GetHasMoreOk returns a tuple with the HasMore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasMore + +`func (o *QueryVectorCollection200Response) SetHasMore(v bool)` + +SetHasMore sets HasMore field to given value. + +### HasHasMore + +`func (o *QueryVectorCollection200Response) HasHasMore() bool` + +HasHasMore returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *QueryVectorCollection200Response) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *QueryVectorCollection200Response) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### SetNextCursorNil + +`func (o *QueryVectorCollection200Response) SetNextCursorNil(b bool)` + + SetNextCursorNil sets the value for NextCursor to be an explicit nil + +### UnsetNextCursor +`func (o *QueryVectorCollection200Response) UnsetNextCursor()` + +UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +### GetPagination + +`func (o *QueryVectorCollection200Response) GetPagination() QueryVectorCollection200ResponsePagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *QueryVectorCollection200Response) GetPaginationOk() (*QueryVectorCollection200ResponsePagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *QueryVectorCollection200Response) SetPagination(v QueryVectorCollection200ResponsePagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *QueryVectorCollection200Response) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### SetPaginationNil + +`func (o *QueryVectorCollection200Response) SetPaginationNil(b bool)` + + SetPaginationNil sets the value for Pagination to be an explicit nil + +### UnsetPagination +`func (o *QueryVectorCollection200Response) UnsetPagination()` + +UnsetPagination ensures that no value is present for Pagination, 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/QueryVectorCollection200ResponsePagination.md b/docs/QueryVectorCollection200ResponsePagination.md new file mode 100644 index 0000000..1b959d5 --- /dev/null +++ b/docs/QueryVectorCollection200ResponsePagination.md @@ -0,0 +1,108 @@ +# QueryVectorCollection200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SortBy** | Pointer to **string** | | [optional] +**SortOrder** | Pointer to **string** | | [optional] +**Limit** | Pointer to **int32** | | [optional] + +## Methods + +### NewQueryVectorCollection200ResponsePagination + +`func NewQueryVectorCollection200ResponsePagination() *QueryVectorCollection200ResponsePagination` + +NewQueryVectorCollection200ResponsePagination instantiates a new QueryVectorCollection200ResponsePagination 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 + +### NewQueryVectorCollection200ResponsePaginationWithDefaults + +`func NewQueryVectorCollection200ResponsePaginationWithDefaults() *QueryVectorCollection200ResponsePagination` + +NewQueryVectorCollection200ResponsePaginationWithDefaults instantiates a new QueryVectorCollection200ResponsePagination 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 + +### GetSortBy + +`func (o *QueryVectorCollection200ResponsePagination) GetSortBy() string` + +GetSortBy returns the SortBy field if non-nil, zero value otherwise. + +### GetSortByOk + +`func (o *QueryVectorCollection200ResponsePagination) GetSortByOk() (*string, bool)` + +GetSortByOk returns a tuple with the SortBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortBy + +`func (o *QueryVectorCollection200ResponsePagination) SetSortBy(v string)` + +SetSortBy sets SortBy field to given value. + +### HasSortBy + +`func (o *QueryVectorCollection200ResponsePagination) HasSortBy() bool` + +HasSortBy returns a boolean if a field has been set. + +### GetSortOrder + +`func (o *QueryVectorCollection200ResponsePagination) GetSortOrder() string` + +GetSortOrder returns the SortOrder field if non-nil, zero value otherwise. + +### GetSortOrderOk + +`func (o *QueryVectorCollection200ResponsePagination) GetSortOrderOk() (*string, bool)` + +GetSortOrderOk returns a tuple with the SortOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortOrder + +`func (o *QueryVectorCollection200ResponsePagination) SetSortOrder(v string)` + +SetSortOrder sets SortOrder field to given value. + +### HasSortOrder + +`func (o *QueryVectorCollection200ResponsePagination) HasSortOrder() bool` + +HasSortOrder returns a boolean if a field has been set. + +### GetLimit + +`func (o *QueryVectorCollection200ResponsePagination) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *QueryVectorCollection200ResponsePagination) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *QueryVectorCollection200ResponsePagination) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *QueryVectorCollection200ResponsePagination) HasLimit() bool` + +HasLimit 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/QueryVectorCollection200ResponseResultsInner.md b/docs/QueryVectorCollection200ResponseResultsInner.md index 4f121d2..b8894ed 100644 --- a/docs/QueryVectorCollection200ResponseResultsInner.md +++ b/docs/QueryVectorCollection200ResponseResultsInner.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | Pointer to **string** | | [optional] -**Score** | Pointer to **float32** | | [optional] -**Metadata** | Pointer to [**QueryVectorCollection200ResponseResultsInnerMetadata**](QueryVectorCollection200ResponseResultsInnerMetadata.md) | | [optional] +**DocumentId** | Pointer to **string** | | [optional] +**Content** | Pointer to **string** | Document text content | [optional] +**Similarity** | Pointer to **float32** | Cosine similarity score (1.0 for metadata-only queries) | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**Embedding** | Pointer to **[]float32** | Vector embedding (only if includeEmbeddings=true) | [optional] ## Methods @@ -27,6 +29,31 @@ NewQueryVectorCollection200ResponseResultsInnerWithDefaults instantiates a new Q 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 +### GetDocumentId + +`func (o *QueryVectorCollection200ResponseResultsInner) GetDocumentId() string` + +GetDocumentId returns the DocumentId field if non-nil, zero value otherwise. + +### GetDocumentIdOk + +`func (o *QueryVectorCollection200ResponseResultsInner) GetDocumentIdOk() (*string, bool)` + +GetDocumentIdOk returns a tuple with the DocumentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocumentId + +`func (o *QueryVectorCollection200ResponseResultsInner) SetDocumentId(v string)` + +SetDocumentId sets DocumentId field to given value. + +### HasDocumentId + +`func (o *QueryVectorCollection200ResponseResultsInner) HasDocumentId() bool` + +HasDocumentId returns a boolean if a field has been set. + ### GetContent `func (o *QueryVectorCollection200ResponseResultsInner) GetContent() string` @@ -52,47 +79,47 @@ SetContent sets Content field to given value. HasContent returns a boolean if a field has been set. -### GetScore +### GetSimilarity -`func (o *QueryVectorCollection200ResponseResultsInner) GetScore() float32` +`func (o *QueryVectorCollection200ResponseResultsInner) GetSimilarity() float32` -GetScore returns the Score field if non-nil, zero value otherwise. +GetSimilarity returns the Similarity field if non-nil, zero value otherwise. -### GetScoreOk +### GetSimilarityOk -`func (o *QueryVectorCollection200ResponseResultsInner) GetScoreOk() (*float32, bool)` +`func (o *QueryVectorCollection200ResponseResultsInner) GetSimilarityOk() (*float32, bool)` -GetScoreOk returns a tuple with the Score field if it's non-nil, zero value otherwise +GetSimilarityOk returns a tuple with the Similarity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetScore +### SetSimilarity -`func (o *QueryVectorCollection200ResponseResultsInner) SetScore(v float32)` +`func (o *QueryVectorCollection200ResponseResultsInner) SetSimilarity(v float32)` -SetScore sets Score field to given value. +SetSimilarity sets Similarity field to given value. -### HasScore +### HasSimilarity -`func (o *QueryVectorCollection200ResponseResultsInner) HasScore() bool` +`func (o *QueryVectorCollection200ResponseResultsInner) HasSimilarity() bool` -HasScore returns a boolean if a field has been set. +HasSimilarity returns a boolean if a field has been set. ### GetMetadata -`func (o *QueryVectorCollection200ResponseResultsInner) GetMetadata() QueryVectorCollection200ResponseResultsInnerMetadata` +`func (o *QueryVectorCollection200ResponseResultsInner) GetMetadata() map[string]interface{}` GetMetadata returns the Metadata field if non-nil, zero value otherwise. ### GetMetadataOk -`func (o *QueryVectorCollection200ResponseResultsInner) GetMetadataOk() (*QueryVectorCollection200ResponseResultsInnerMetadata, bool)` +`func (o *QueryVectorCollection200ResponseResultsInner) GetMetadataOk() (*map[string]interface{}, 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 *QueryVectorCollection200ResponseResultsInner) SetMetadata(v QueryVectorCollection200ResponseResultsInnerMetadata)` +`func (o *QueryVectorCollection200ResponseResultsInner) SetMetadata(v map[string]interface{})` SetMetadata sets Metadata field to given value. @@ -102,6 +129,31 @@ SetMetadata sets Metadata field to given value. HasMetadata returns a boolean if a field has been set. +### GetEmbedding + +`func (o *QueryVectorCollection200ResponseResultsInner) GetEmbedding() []float32` + +GetEmbedding returns the Embedding field if non-nil, zero value otherwise. + +### GetEmbeddingOk + +`func (o *QueryVectorCollection200ResponseResultsInner) GetEmbeddingOk() (*[]float32, bool)` + +GetEmbeddingOk returns a tuple with the Embedding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmbedding + +`func (o *QueryVectorCollection200ResponseResultsInner) SetEmbedding(v []float32)` + +SetEmbedding sets Embedding field to given value. + +### HasEmbedding + +`func (o *QueryVectorCollection200ResponseResultsInner) HasEmbedding() bool` + +HasEmbedding 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/QueryVectorCollection200ResponseResultsInnerMetadata.md b/docs/QueryVectorCollection200ResponseResultsInnerMetadata.md deleted file mode 100644 index c133aa3..0000000 --- a/docs/QueryVectorCollection200ResponseResultsInnerMetadata.md +++ /dev/null @@ -1,108 +0,0 @@ -# QueryVectorCollection200ResponseResultsInnerMetadata - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Title** | Pointer to **string** | | [optional] -**SourceUrl** | Pointer to **string** | | [optional] -**Section** | Pointer to **string** | | [optional] - -## Methods - -### NewQueryVectorCollection200ResponseResultsInnerMetadata - -`func NewQueryVectorCollection200ResponseResultsInnerMetadata() *QueryVectorCollection200ResponseResultsInnerMetadata` - -NewQueryVectorCollection200ResponseResultsInnerMetadata instantiates a new QueryVectorCollection200ResponseResultsInnerMetadata 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 - -### NewQueryVectorCollection200ResponseResultsInnerMetadataWithDefaults - -`func NewQueryVectorCollection200ResponseResultsInnerMetadataWithDefaults() *QueryVectorCollection200ResponseResultsInnerMetadata` - -NewQueryVectorCollection200ResponseResultsInnerMetadataWithDefaults instantiates a new QueryVectorCollection200ResponseResultsInnerMetadata 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 - -### GetTitle - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetSourceUrl - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSourceUrl() string` - -GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. - -### GetSourceUrlOk - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSourceUrlOk() (*string, bool)` - -GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSourceUrl - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetSourceUrl(v string)` - -SetSourceUrl sets SourceUrl field to given value. - -### HasSourceUrl - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasSourceUrl() bool` - -HasSourceUrl returns a boolean if a field has been set. - -### GetSection - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSection() string` - -GetSection returns the Section field if non-nil, zero value otherwise. - -### GetSectionOk - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSectionOk() (*string, bool)` - -GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSection - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetSection(v string)` - -SetSection sets Section field to given value. - -### HasSection - -`func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasSection() bool` - -HasSection 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/QueryVectorCollectionRequest.md b/docs/QueryVectorCollectionRequest.md index a8ee2a1..013774e 100644 --- a/docs/QueryVectorCollectionRequest.md +++ b/docs/QueryVectorCollectionRequest.md @@ -4,14 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Query** | **string** | Natural language search query | -**Count** | Pointer to **int32** | Number of results to return | [optional] [default to 5] +**Query** | Pointer to **string** | Natural language search query (mutually exclusive with vector) | [optional] +**Vector** | Pointer to **[]float32** | Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension. | [optional] +**Limit** | Pointer to **int32** | Maximum number of results to return | [optional] [default to 5] +**Threshold** | Pointer to **float32** | Minimum similarity score (0-1, higher = more relevant) | [optional] [default to 0.7] +**IncludeEmbeddings** | Pointer to **bool** | Include embedding vectors in response (for debugging) | [optional] [default to false] +**Filter** | Pointer to [**QueryVectorCollectionRequestFilter**](QueryVectorCollectionRequestFilter.md) | | [optional] +**ListByMetadata** | Pointer to **bool** | If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination. | [optional] [default to false] +**Cursor** | Pointer to **string** | Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually. | [optional] +**SortBy** | Pointer to **string** | Field to sort by in listByMetadata mode | [optional] [default to "created_at"] +**SortOrder** | Pointer to **string** | Sort direction in listByMetadata mode | [optional] [default to "desc"] ## Methods ### NewQueryVectorCollectionRequest -`func NewQueryVectorCollectionRequest(query string, ) *QueryVectorCollectionRequest` +`func NewQueryVectorCollectionRequest() *QueryVectorCollectionRequest` NewQueryVectorCollectionRequest instantiates a new QueryVectorCollectionRequest object This constructor will assign default values to properties that have it defined, @@ -45,31 +53,236 @@ and a boolean to check if the value has been set. SetQuery sets Query field to given value. +### HasQuery -### GetCount +`func (o *QueryVectorCollectionRequest) HasQuery() bool` -`func (o *QueryVectorCollectionRequest) GetCount() int32` +HasQuery returns a boolean if a field has been set. -GetCount returns the Count field if non-nil, zero value otherwise. +### GetVector -### GetCountOk +`func (o *QueryVectorCollectionRequest) GetVector() []float32` -`func (o *QueryVectorCollectionRequest) GetCountOk() (*int32, bool)` +GetVector returns the Vector field if non-nil, zero value otherwise. -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +### GetVectorOk + +`func (o *QueryVectorCollectionRequest) GetVectorOk() (*[]float32, bool)` + +GetVectorOk returns a tuple with the Vector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVector + +`func (o *QueryVectorCollectionRequest) SetVector(v []float32)` + +SetVector sets Vector field to given value. + +### HasVector + +`func (o *QueryVectorCollectionRequest) HasVector() bool` + +HasVector returns a boolean if a field has been set. + +### GetLimit + +`func (o *QueryVectorCollectionRequest) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *QueryVectorCollectionRequest) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *QueryVectorCollectionRequest) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *QueryVectorCollectionRequest) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetThreshold + +`func (o *QueryVectorCollectionRequest) GetThreshold() float32` + +GetThreshold returns the Threshold field if non-nil, zero value otherwise. + +### GetThresholdOk + +`func (o *QueryVectorCollectionRequest) GetThresholdOk() (*float32, bool)` + +GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThreshold + +`func (o *QueryVectorCollectionRequest) SetThreshold(v float32)` + +SetThreshold sets Threshold field to given value. + +### HasThreshold + +`func (o *QueryVectorCollectionRequest) HasThreshold() bool` + +HasThreshold returns a boolean if a field has been set. + +### GetIncludeEmbeddings + +`func (o *QueryVectorCollectionRequest) GetIncludeEmbeddings() bool` + +GetIncludeEmbeddings returns the IncludeEmbeddings field if non-nil, zero value otherwise. + +### GetIncludeEmbeddingsOk + +`func (o *QueryVectorCollectionRequest) GetIncludeEmbeddingsOk() (*bool, bool)` + +GetIncludeEmbeddingsOk returns a tuple with the IncludeEmbeddings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncludeEmbeddings + +`func (o *QueryVectorCollectionRequest) SetIncludeEmbeddings(v bool)` + +SetIncludeEmbeddings sets IncludeEmbeddings field to given value. + +### HasIncludeEmbeddings + +`func (o *QueryVectorCollectionRequest) HasIncludeEmbeddings() bool` + +HasIncludeEmbeddings returns a boolean if a field has been set. + +### GetFilter + +`func (o *QueryVectorCollectionRequest) GetFilter() QueryVectorCollectionRequestFilter` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *QueryVectorCollectionRequest) GetFilterOk() (*QueryVectorCollectionRequestFilter, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *QueryVectorCollectionRequest) SetFilter(v QueryVectorCollectionRequestFilter)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *QueryVectorCollectionRequest) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + +### GetListByMetadata + +`func (o *QueryVectorCollectionRequest) GetListByMetadata() bool` + +GetListByMetadata returns the ListByMetadata field if non-nil, zero value otherwise. + +### GetListByMetadataOk + +`func (o *QueryVectorCollectionRequest) GetListByMetadataOk() (*bool, bool)` + +GetListByMetadataOk returns a tuple with the ListByMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetListByMetadata + +`func (o *QueryVectorCollectionRequest) SetListByMetadata(v bool)` + +SetListByMetadata sets ListByMetadata field to given value. + +### HasListByMetadata + +`func (o *QueryVectorCollectionRequest) HasListByMetadata() bool` + +HasListByMetadata returns a boolean if a field has been set. + +### GetCursor + +`func (o *QueryVectorCollectionRequest) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *QueryVectorCollectionRequest) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *QueryVectorCollectionRequest) SetCursor(v string)` + +SetCursor sets Cursor field to given value. + +### HasCursor + +`func (o *QueryVectorCollectionRequest) HasCursor() bool` + +HasCursor returns a boolean if a field has been set. + +### GetSortBy + +`func (o *QueryVectorCollectionRequest) GetSortBy() string` + +GetSortBy returns the SortBy field if non-nil, zero value otherwise. + +### GetSortByOk + +`func (o *QueryVectorCollectionRequest) GetSortByOk() (*string, bool)` + +GetSortByOk returns a tuple with the SortBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortBy + +`func (o *QueryVectorCollectionRequest) SetSortBy(v string)` + +SetSortBy sets SortBy field to given value. + +### HasSortBy + +`func (o *QueryVectorCollectionRequest) HasSortBy() bool` + +HasSortBy returns a boolean if a field has been set. + +### GetSortOrder + +`func (o *QueryVectorCollectionRequest) GetSortOrder() string` + +GetSortOrder returns the SortOrder field if non-nil, zero value otherwise. + +### GetSortOrderOk + +`func (o *QueryVectorCollectionRequest) GetSortOrderOk() (*string, bool)` + +GetSortOrderOk returns a tuple with the SortOrder field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCount +### SetSortOrder -`func (o *QueryVectorCollectionRequest) SetCount(v int32)` +`func (o *QueryVectorCollectionRequest) SetSortOrder(v string)` -SetCount sets Count field to given value. +SetSortOrder sets SortOrder field to given value. -### HasCount +### HasSortOrder -`func (o *QueryVectorCollectionRequest) HasCount() bool` +`func (o *QueryVectorCollectionRequest) HasSortOrder() bool` -HasCount returns a boolean if a field has been set. +HasSortOrder 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/QueryVectorCollectionRequestFilter.md b/docs/QueryVectorCollectionRequestFilter.md new file mode 100644 index 0000000..d4a3a4b --- /dev/null +++ b/docs/QueryVectorCollectionRequestFilter.md @@ -0,0 +1,82 @@ +# QueryVectorCollectionRequestFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Exact** | Pointer to **map[string]interface{}** | Exact match on metadata fields. Keys are metadata field names, values are expected values. | [optional] +**Contains** | Pointer to **map[string][]string** | Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values. | [optional] + +## Methods + +### NewQueryVectorCollectionRequestFilter + +`func NewQueryVectorCollectionRequestFilter() *QueryVectorCollectionRequestFilter` + +NewQueryVectorCollectionRequestFilter instantiates a new QueryVectorCollectionRequestFilter 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 + +### NewQueryVectorCollectionRequestFilterWithDefaults + +`func NewQueryVectorCollectionRequestFilterWithDefaults() *QueryVectorCollectionRequestFilter` + +NewQueryVectorCollectionRequestFilterWithDefaults instantiates a new QueryVectorCollectionRequestFilter 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 + +### GetExact + +`func (o *QueryVectorCollectionRequestFilter) GetExact() map[string]interface{}` + +GetExact returns the Exact field if non-nil, zero value otherwise. + +### GetExactOk + +`func (o *QueryVectorCollectionRequestFilter) GetExactOk() (*map[string]interface{}, bool)` + +GetExactOk returns a tuple with the Exact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExact + +`func (o *QueryVectorCollectionRequestFilter) SetExact(v map[string]interface{})` + +SetExact sets Exact field to given value. + +### HasExact + +`func (o *QueryVectorCollectionRequestFilter) HasExact() bool` + +HasExact returns a boolean if a field has been set. + +### GetContains + +`func (o *QueryVectorCollectionRequestFilter) GetContains() map[string][]string` + +GetContains returns the Contains field if non-nil, zero value otherwise. + +### GetContainsOk + +`func (o *QueryVectorCollectionRequestFilter) GetContainsOk() (*map[string][]string, bool)` + +GetContainsOk returns a tuple with the Contains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContains + +`func (o *QueryVectorCollectionRequestFilter) SetContains(v map[string][]string)` + +SetContains sets Contains field to given value. + +### HasContains + +`func (o *QueryVectorCollectionRequestFilter) HasContains() bool` + +HasContains 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/SSHAccessAPI.md b/docs/SSHAccessAPI.md index 4ac65cf..68c2b9c 100644 --- a/docs/SSHAccessAPI.md +++ b/docs/SSHAccessAPI.md @@ -27,9 +27,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation machine name - application := "application_example" // string | The application name - environment := "environment_example" // string | The environment name + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -49,9 +49,9 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**organisation** | **string** | The organisation machine name | -**application** | **string** | The application name | -**environment** | **string** | The environment name | +**organisation** | **string** | The organisation ID | +**application** | **string** | The application ID | +**environment** | **string** | The environment ID | ### Other Parameters diff --git a/docs/ScalingPolicyAPI.md b/docs/ScalingPolicyAPI.md index ef3a602..fa0bc78 100644 --- a/docs/ScalingPolicyAPI.md +++ b/docs/ScalingPolicyAPI.md @@ -29,9 +29,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID policyName := "policyName_example" // string | The policy name configuration := openapiclient.NewConfiguration() @@ -104,9 +104,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -176,9 +176,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID scalingPolicy := *openapiclient.NewScalingPolicy() // ScalingPolicy | configuration := openapiclient.NewConfiguration() diff --git a/docs/SubmitToolCallback200Response.md b/docs/SubmitToolCallback200Response.md new file mode 100644 index 0000000..56beec3 --- /dev/null +++ b/docs/SubmitToolCallback200Response.md @@ -0,0 +1,108 @@ +# SubmitToolCallback200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Success** | Pointer to **bool** | | [optional] +**Message** | Pointer to **string** | | [optional] +**CallbackId** | Pointer to **string** | Echo of the callbackId for confirmation | [optional] + +## Methods + +### NewSubmitToolCallback200Response + +`func NewSubmitToolCallback200Response() *SubmitToolCallback200Response` + +NewSubmitToolCallback200Response instantiates a new SubmitToolCallback200Response 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 + +### NewSubmitToolCallback200ResponseWithDefaults + +`func NewSubmitToolCallback200ResponseWithDefaults() *SubmitToolCallback200Response` + +NewSubmitToolCallback200ResponseWithDefaults instantiates a new SubmitToolCallback200Response 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 *SubmitToolCallback200Response) GetSuccess() bool` + +GetSuccess returns the Success field if non-nil, zero value otherwise. + +### GetSuccessOk + +`func (o *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) SetSuccess(v bool)` + +SetSuccess sets Success field to given value. + +### HasSuccess + +`func (o *SubmitToolCallback200Response) HasSuccess() bool` + +HasSuccess returns a boolean if a field has been set. + +### GetMessage + +`func (o *SubmitToolCallback200Response) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *SubmitToolCallback200Response) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetCallbackId + +`func (o *SubmitToolCallback200Response) GetCallbackId() string` + +GetCallbackId returns the CallbackId field if non-nil, zero value otherwise. + +### GetCallbackIdOk + +`func (o *SubmitToolCallback200Response) GetCallbackIdOk() (*string, bool)` + +GetCallbackIdOk returns a tuple with the CallbackId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackId + +`func (o *SubmitToolCallback200Response) SetCallbackId(v string)` + +SetCallbackId sets CallbackId field to given value. + +### HasCallbackId + +`func (o *SubmitToolCallback200Response) HasCallbackId() bool` + +HasCallbackId 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/SubmitToolCallbackRequest.md b/docs/SubmitToolCallbackRequest.md new file mode 100644 index 0000000..df43d3e --- /dev/null +++ b/docs/SubmitToolCallbackRequest.md @@ -0,0 +1,72 @@ +# SubmitToolCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackId** | **string** | The callbackId from the waiting_callback status response | +**ToolResults** | [**[]SubmitToolCallbackRequestToolResultsInner**](SubmitToolCallbackRequestToolResultsInner.md) | Results of client-executed tools | + +## Methods + +### NewSubmitToolCallbackRequest + +`func NewSubmitToolCallbackRequest(callbackId string, toolResults []SubmitToolCallbackRequestToolResultsInner, ) *SubmitToolCallbackRequest` + +NewSubmitToolCallbackRequest instantiates a new SubmitToolCallbackRequest 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 + +### NewSubmitToolCallbackRequestWithDefaults + +`func NewSubmitToolCallbackRequestWithDefaults() *SubmitToolCallbackRequest` + +NewSubmitToolCallbackRequestWithDefaults instantiates a new SubmitToolCallbackRequest 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 + +### GetCallbackId + +`func (o *SubmitToolCallbackRequest) GetCallbackId() string` + +GetCallbackId returns the CallbackId field if non-nil, zero value otherwise. + +### GetCallbackIdOk + +`func (o *SubmitToolCallbackRequest) GetCallbackIdOk() (*string, bool)` + +GetCallbackIdOk returns a tuple with the CallbackId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCallbackId + +`func (o *SubmitToolCallbackRequest) SetCallbackId(v string)` + +SetCallbackId sets CallbackId field to given value. + + +### GetToolResults + +`func (o *SubmitToolCallbackRequest) GetToolResults() []SubmitToolCallbackRequestToolResultsInner` + +GetToolResults returns the ToolResults field if non-nil, zero value otherwise. + +### GetToolResultsOk + +`func (o *SubmitToolCallbackRequest) GetToolResultsOk() (*[]SubmitToolCallbackRequestToolResultsInner, bool)` + +GetToolResultsOk returns a tuple with the ToolResults field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolResults + +`func (o *SubmitToolCallbackRequest) SetToolResults(v []SubmitToolCallbackRequestToolResultsInner)` + +SetToolResults sets ToolResults 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/SubmitToolCallbackRequestToolResultsInner.md b/docs/SubmitToolCallbackRequestToolResultsInner.md new file mode 100644 index 0000000..54dc715 --- /dev/null +++ b/docs/SubmitToolCallbackRequestToolResultsInner.md @@ -0,0 +1,72 @@ +# SubmitToolCallbackRequestToolResultsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ToolUseId** | **string** | The toolUseId from pendingTools | +**Result** | **map[string]interface{}** | The result of executing the tool | + +## Methods + +### NewSubmitToolCallbackRequestToolResultsInner + +`func NewSubmitToolCallbackRequestToolResultsInner(toolUseId string, result map[string]interface{}, ) *SubmitToolCallbackRequestToolResultsInner` + +NewSubmitToolCallbackRequestToolResultsInner instantiates a new SubmitToolCallbackRequestToolResultsInner 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 + +### NewSubmitToolCallbackRequestToolResultsInnerWithDefaults + +`func NewSubmitToolCallbackRequestToolResultsInnerWithDefaults() *SubmitToolCallbackRequestToolResultsInner` + +NewSubmitToolCallbackRequestToolResultsInnerWithDefaults instantiates a new SubmitToolCallbackRequestToolResultsInner 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 + +### GetToolUseId + +`func (o *SubmitToolCallbackRequestToolResultsInner) GetToolUseId() string` + +GetToolUseId returns the ToolUseId field if non-nil, zero value otherwise. + +### GetToolUseIdOk + +`func (o *SubmitToolCallbackRequestToolResultsInner) GetToolUseIdOk() (*string, bool)` + +GetToolUseIdOk returns a tuple with the ToolUseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolUseId + +`func (o *SubmitToolCallbackRequestToolResultsInner) SetToolUseId(v string)` + +SetToolUseId sets ToolUseId field to given value. + + +### GetResult + +`func (o *SubmitToolCallbackRequestToolResultsInner) GetResult() map[string]interface{}` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *SubmitToolCallbackRequestToolResultsInner) GetResultOk() (*map[string]interface{}, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *SubmitToolCallbackRequestToolResultsInner) SetResult(v map[string]interface{})` + +SetResult sets Result 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/UpdateTask200Response.md b/docs/UpdateTask200Response.md new file mode 100644 index 0000000..5ea781f --- /dev/null +++ b/docs/UpdateTask200Response.md @@ -0,0 +1,108 @@ +# UpdateTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TaskId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **int32** | | [optional] + +## Methods + +### NewUpdateTask200Response + +`func NewUpdateTask200Response() *UpdateTask200Response` + +NewUpdateTask200Response instantiates a new UpdateTask200Response 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 + +### NewUpdateTask200ResponseWithDefaults + +`func NewUpdateTask200ResponseWithDefaults() *UpdateTask200Response` + +NewUpdateTask200ResponseWithDefaults instantiates a new UpdateTask200Response 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 + +### GetTaskId + +`func (o *UpdateTask200Response) GetTaskId() string` + +GetTaskId returns the TaskId field if non-nil, zero value otherwise. + +### GetTaskIdOk + +`func (o *UpdateTask200Response) GetTaskIdOk() (*string, bool)` + +GetTaskIdOk returns a tuple with the TaskId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskId + +`func (o *UpdateTask200Response) SetTaskId(v string)` + +SetTaskId sets TaskId field to given value. + +### HasTaskId + +`func (o *UpdateTask200Response) HasTaskId() bool` + +HasTaskId returns a boolean if a field has been set. + +### GetStatus + +`func (o *UpdateTask200Response) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateTask200Response) 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 *UpdateTask200Response) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *UpdateTask200Response) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *UpdateTask200Response) GetUpdatedAt() int32` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *UpdateTask200Response) GetUpdatedAtOk() (*int32, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *UpdateTask200Response) SetUpdatedAt(v int32)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *UpdateTask200Response) HasUpdatedAt() bool` + +HasUpdatedAt 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/UpdateTaskRequest.md b/docs/UpdateTaskRequest.md new file mode 100644 index 0000000..5104d49 --- /dev/null +++ b/docs/UpdateTaskRequest.md @@ -0,0 +1,470 @@ +# UpdateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**TaskListId** | Pointer to **NullableString** | Move task to different list or remove from list (set null) | [optional] +**Status** | Pointer to **string** | Task status (triggers automatic timestamp updates) | [optional] +**AssignedAgentId** | Pointer to **NullableString** | Reassign task to different agent | [optional] +**DependsOn** | Pointer to **[]string** | Update task dependencies | [optional] +**Metadata** | Pointer to **map[string]interface{}** | Update task metadata (replaces entire metadata object) | [optional] +**Progress** | Pointer to **float32** | Progress from 0.0 to 1.0 | [optional] +**ProgressMessage** | Pointer to **string** | Human-readable progress message | [optional] +**Result** | Pointer to **map[string]interface{}** | Task result data (set when completing task) | [optional] +**Error** | Pointer to **NullableString** | Error message (set when task fails) | [optional] +**RetryCount** | Pointer to **int32** | Update retry count | [optional] +**MaxRetries** | Pointer to **int32** | Update maximum retry attempts | [optional] +**BlockedReason** | Pointer to **NullableString** | Reason task is blocked (set when status is blocked) | [optional] +**BlockedByTaskIds** | Pointer to **[]string** | Task IDs that are blocking this task | [optional] + +## Methods + +### NewUpdateTaskRequest + +`func NewUpdateTaskRequest() *UpdateTaskRequest` + +NewUpdateTaskRequest instantiates a new UpdateTaskRequest 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 + +### NewUpdateTaskRequestWithDefaults + +`func NewUpdateTaskRequestWithDefaults() *UpdateTaskRequest` + +NewUpdateTaskRequestWithDefaults instantiates a new UpdateTaskRequest 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 + +### GetTitle + +`func (o *UpdateTaskRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *UpdateTaskRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *UpdateTaskRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *UpdateTaskRequest) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetDescription + +`func (o *UpdateTaskRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *UpdateTaskRequest) 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 *UpdateTaskRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *UpdateTaskRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTaskListId + +`func (o *UpdateTaskRequest) GetTaskListId() string` + +GetTaskListId returns the TaskListId field if non-nil, zero value otherwise. + +### GetTaskListIdOk + +`func (o *UpdateTaskRequest) GetTaskListIdOk() (*string, bool)` + +GetTaskListIdOk returns a tuple with the TaskListId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskListId + +`func (o *UpdateTaskRequest) SetTaskListId(v string)` + +SetTaskListId sets TaskListId field to given value. + +### HasTaskListId + +`func (o *UpdateTaskRequest) HasTaskListId() bool` + +HasTaskListId returns a boolean if a field has been set. + +### SetTaskListIdNil + +`func (o *UpdateTaskRequest) SetTaskListIdNil(b bool)` + + SetTaskListIdNil sets the value for TaskListId to be an explicit nil + +### UnsetTaskListId +`func (o *UpdateTaskRequest) UnsetTaskListId()` + +UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +### GetStatus + +`func (o *UpdateTaskRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateTaskRequest) 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 *UpdateTaskRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *UpdateTaskRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetAssignedAgentId + +`func (o *UpdateTaskRequest) GetAssignedAgentId() string` + +GetAssignedAgentId returns the AssignedAgentId field if non-nil, zero value otherwise. + +### GetAssignedAgentIdOk + +`func (o *UpdateTaskRequest) GetAssignedAgentIdOk() (*string, bool)` + +GetAssignedAgentIdOk returns a tuple with the AssignedAgentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedAgentId + +`func (o *UpdateTaskRequest) SetAssignedAgentId(v string)` + +SetAssignedAgentId sets AssignedAgentId field to given value. + +### HasAssignedAgentId + +`func (o *UpdateTaskRequest) HasAssignedAgentId() bool` + +HasAssignedAgentId returns a boolean if a field has been set. + +### SetAssignedAgentIdNil + +`func (o *UpdateTaskRequest) SetAssignedAgentIdNil(b bool)` + + SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil + +### UnsetAssignedAgentId +`func (o *UpdateTaskRequest) UnsetAssignedAgentId()` + +UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +### GetDependsOn + +`func (o *UpdateTaskRequest) GetDependsOn() []string` + +GetDependsOn returns the DependsOn field if non-nil, zero value otherwise. + +### GetDependsOnOk + +`func (o *UpdateTaskRequest) GetDependsOnOk() (*[]string, bool)` + +GetDependsOnOk returns a tuple with the DependsOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependsOn + +`func (o *UpdateTaskRequest) SetDependsOn(v []string)` + +SetDependsOn sets DependsOn field to given value. + +### HasDependsOn + +`func (o *UpdateTaskRequest) HasDependsOn() bool` + +HasDependsOn returns a boolean if a field has been set. + +### GetMetadata + +`func (o *UpdateTaskRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *UpdateTaskRequest) GetMetadataOk() (*map[string]interface{}, 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 *UpdateTaskRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *UpdateTaskRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProgress + +`func (o *UpdateTaskRequest) GetProgress() float32` + +GetProgress returns the Progress field if non-nil, zero value otherwise. + +### GetProgressOk + +`func (o *UpdateTaskRequest) GetProgressOk() (*float32, bool)` + +GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgress + +`func (o *UpdateTaskRequest) SetProgress(v float32)` + +SetProgress sets Progress field to given value. + +### HasProgress + +`func (o *UpdateTaskRequest) HasProgress() bool` + +HasProgress returns a boolean if a field has been set. + +### GetProgressMessage + +`func (o *UpdateTaskRequest) GetProgressMessage() string` + +GetProgressMessage returns the ProgressMessage field if non-nil, zero value otherwise. + +### GetProgressMessageOk + +`func (o *UpdateTaskRequest) GetProgressMessageOk() (*string, bool)` + +GetProgressMessageOk returns a tuple with the ProgressMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgressMessage + +`func (o *UpdateTaskRequest) SetProgressMessage(v string)` + +SetProgressMessage sets ProgressMessage field to given value. + +### HasProgressMessage + +`func (o *UpdateTaskRequest) HasProgressMessage() bool` + +HasProgressMessage returns a boolean if a field has been set. + +### GetResult + +`func (o *UpdateTaskRequest) GetResult() map[string]interface{}` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *UpdateTaskRequest) GetResultOk() (*map[string]interface{}, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *UpdateTaskRequest) SetResult(v map[string]interface{})` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *UpdateTaskRequest) HasResult() bool` + +HasResult returns a boolean if a field has been set. + +### GetError + +`func (o *UpdateTaskRequest) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *UpdateTaskRequest) 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 *UpdateTaskRequest) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *UpdateTaskRequest) HasError() bool` + +HasError returns a boolean if a field has been set. + +### SetErrorNil + +`func (o *UpdateTaskRequest) SetErrorNil(b bool)` + + SetErrorNil sets the value for Error to be an explicit nil + +### UnsetError +`func (o *UpdateTaskRequest) UnsetError()` + +UnsetError ensures that no value is present for Error, not even an explicit nil +### GetRetryCount + +`func (o *UpdateTaskRequest) GetRetryCount() int32` + +GetRetryCount returns the RetryCount field if non-nil, zero value otherwise. + +### GetRetryCountOk + +`func (o *UpdateTaskRequest) GetRetryCountOk() (*int32, bool)` + +GetRetryCountOk returns a tuple with the RetryCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryCount + +`func (o *UpdateTaskRequest) SetRetryCount(v int32)` + +SetRetryCount sets RetryCount field to given value. + +### HasRetryCount + +`func (o *UpdateTaskRequest) HasRetryCount() bool` + +HasRetryCount returns a boolean if a field has been set. + +### GetMaxRetries + +`func (o *UpdateTaskRequest) GetMaxRetries() int32` + +GetMaxRetries returns the MaxRetries field if non-nil, zero value otherwise. + +### GetMaxRetriesOk + +`func (o *UpdateTaskRequest) GetMaxRetriesOk() (*int32, bool)` + +GetMaxRetriesOk returns a tuple with the MaxRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxRetries + +`func (o *UpdateTaskRequest) SetMaxRetries(v int32)` + +SetMaxRetries sets MaxRetries field to given value. + +### HasMaxRetries + +`func (o *UpdateTaskRequest) HasMaxRetries() bool` + +HasMaxRetries returns a boolean if a field has been set. + +### GetBlockedReason + +`func (o *UpdateTaskRequest) GetBlockedReason() string` + +GetBlockedReason returns the BlockedReason field if non-nil, zero value otherwise. + +### GetBlockedReasonOk + +`func (o *UpdateTaskRequest) GetBlockedReasonOk() (*string, bool)` + +GetBlockedReasonOk returns a tuple with the BlockedReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedReason + +`func (o *UpdateTaskRequest) SetBlockedReason(v string)` + +SetBlockedReason sets BlockedReason field to given value. + +### HasBlockedReason + +`func (o *UpdateTaskRequest) HasBlockedReason() bool` + +HasBlockedReason returns a boolean if a field has been set. + +### SetBlockedReasonNil + +`func (o *UpdateTaskRequest) SetBlockedReasonNil(b bool)` + + SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil + +### UnsetBlockedReason +`func (o *UpdateTaskRequest) UnsetBlockedReason()` + +UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +### GetBlockedByTaskIds + +`func (o *UpdateTaskRequest) GetBlockedByTaskIds() []string` + +GetBlockedByTaskIds returns the BlockedByTaskIds field if non-nil, zero value otherwise. + +### GetBlockedByTaskIdsOk + +`func (o *UpdateTaskRequest) GetBlockedByTaskIdsOk() (*[]string, bool)` + +GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockedByTaskIds + +`func (o *UpdateTaskRequest) SetBlockedByTaskIds(v []string)` + +SetBlockedByTaskIds sets BlockedByTaskIds field to given value. + +### HasBlockedByTaskIds + +`func (o *UpdateTaskRequest) HasBlockedByTaskIds() bool` + +HasBlockedByTaskIds returns a boolean if a field has been set. + +### SetBlockedByTaskIdsNil + +`func (o *UpdateTaskRequest) SetBlockedByTaskIdsNil(b bool)` + + SetBlockedByTaskIdsNil sets the value for BlockedByTaskIds to be an explicit nil + +### UnsetBlockedByTaskIds +`func (o *UpdateTaskRequest) UnsetBlockedByTaskIds()` + +UnsetBlockedByTaskIds ensures that no value is present for BlockedByTaskIds, 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/UploadFile201Response.md b/docs/UploadFile201Response.md new file mode 100644 index 0000000..ce9f591 --- /dev/null +++ b/docs/UploadFile201Response.md @@ -0,0 +1,316 @@ +# UploadFile201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileId** | Pointer to **string** | | [optional] +**S3Uri** | Pointer to **string** | S3 URI (direct upload only) | [optional] +**Url** | Pointer to **string** | Presigned download URL (direct upload only) | [optional] +**UploadUrl** | Pointer to **string** | Presigned PUT URL (presigned upload only) | [optional] +**S3Key** | Pointer to **string** | S3 object key (presigned upload only) | [optional] +**ExpiresIn** | Pointer to **int32** | URL expiry in seconds (presigned upload only) | [optional] +**Filename** | Pointer to **string** | | [optional] +**ContentType** | Pointer to **string** | | [optional] +**Size** | Pointer to **int32** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**CreatedAt** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewUploadFile201Response + +`func NewUploadFile201Response() *UploadFile201Response` + +NewUploadFile201Response instantiates a new UploadFile201Response 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 + +### NewUploadFile201ResponseWithDefaults + +`func NewUploadFile201ResponseWithDefaults() *UploadFile201Response` + +NewUploadFile201ResponseWithDefaults instantiates a new UploadFile201Response 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 + +### GetFileId + +`func (o *UploadFile201Response) GetFileId() string` + +GetFileId returns the FileId field if non-nil, zero value otherwise. + +### GetFileIdOk + +`func (o *UploadFile201Response) GetFileIdOk() (*string, bool)` + +GetFileIdOk returns a tuple with the FileId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileId + +`func (o *UploadFile201Response) SetFileId(v string)` + +SetFileId sets FileId field to given value. + +### HasFileId + +`func (o *UploadFile201Response) HasFileId() bool` + +HasFileId returns a boolean if a field has been set. + +### GetS3Uri + +`func (o *UploadFile201Response) GetS3Uri() string` + +GetS3Uri returns the S3Uri field if non-nil, zero value otherwise. + +### GetS3UriOk + +`func (o *UploadFile201Response) GetS3UriOk() (*string, bool)` + +GetS3UriOk returns a tuple with the S3Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3Uri + +`func (o *UploadFile201Response) SetS3Uri(v string)` + +SetS3Uri sets S3Uri field to given value. + +### HasS3Uri + +`func (o *UploadFile201Response) HasS3Uri() bool` + +HasS3Uri returns a boolean if a field has been set. + +### GetUrl + +`func (o *UploadFile201Response) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *UploadFile201Response) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *UploadFile201Response) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *UploadFile201Response) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetUploadUrl + +`func (o *UploadFile201Response) GetUploadUrl() string` + +GetUploadUrl returns the UploadUrl field if non-nil, zero value otherwise. + +### GetUploadUrlOk + +`func (o *UploadFile201Response) GetUploadUrlOk() (*string, bool)` + +GetUploadUrlOk returns a tuple with the UploadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadUrl + +`func (o *UploadFile201Response) SetUploadUrl(v string)` + +SetUploadUrl sets UploadUrl field to given value. + +### HasUploadUrl + +`func (o *UploadFile201Response) HasUploadUrl() bool` + +HasUploadUrl returns a boolean if a field has been set. + +### GetS3Key + +`func (o *UploadFile201Response) GetS3Key() string` + +GetS3Key returns the S3Key field if non-nil, zero value otherwise. + +### GetS3KeyOk + +`func (o *UploadFile201Response) GetS3KeyOk() (*string, bool)` + +GetS3KeyOk returns a tuple with the S3Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetS3Key + +`func (o *UploadFile201Response) SetS3Key(v string)` + +SetS3Key sets S3Key field to given value. + +### HasS3Key + +`func (o *UploadFile201Response) HasS3Key() bool` + +HasS3Key returns a boolean if a field has been set. + +### GetExpiresIn + +`func (o *UploadFile201Response) GetExpiresIn() int32` + +GetExpiresIn returns the ExpiresIn field if non-nil, zero value otherwise. + +### GetExpiresInOk + +`func (o *UploadFile201Response) GetExpiresInOk() (*int32, bool)` + +GetExpiresInOk returns a tuple with the ExpiresIn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresIn + +`func (o *UploadFile201Response) SetExpiresIn(v int32)` + +SetExpiresIn sets ExpiresIn field to given value. + +### HasExpiresIn + +`func (o *UploadFile201Response) HasExpiresIn() bool` + +HasExpiresIn returns a boolean if a field has been set. + +### GetFilename + +`func (o *UploadFile201Response) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *UploadFile201Response) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *UploadFile201Response) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *UploadFile201Response) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetContentType + +`func (o *UploadFile201Response) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *UploadFile201Response) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *UploadFile201Response) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + +### HasContentType + +`func (o *UploadFile201Response) HasContentType() bool` + +HasContentType returns a boolean if a field has been set. + +### GetSize + +`func (o *UploadFile201Response) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *UploadFile201Response) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *UploadFile201Response) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *UploadFile201Response) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetMetadata + +`func (o *UploadFile201Response) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *UploadFile201Response) GetMetadataOk() (*map[string]interface{}, 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 *UploadFile201Response) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *UploadFile201Response) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *UploadFile201Response) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *UploadFile201Response) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *UploadFile201Response) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *UploadFile201Response) HasCreatedAt() bool` + +HasCreatedAt 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/UploadFileRequest.md b/docs/UploadFileRequest.md new file mode 100644 index 0000000..b3531e1 --- /dev/null +++ b/docs/UploadFileRequest.md @@ -0,0 +1,181 @@ +# UploadFileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | Base64-encoded file content (for direct upload). Required unless using requestUploadUrl. | [optional] +**RequestUploadUrl** | Pointer to **bool** | Set to true to get a presigned S3 upload URL instead of uploading directly. | [optional] [default to false] +**Size** | Pointer to **int32** | File size in bytes. Optional but recommended for presigned uploads. | [optional] +**Filename** | Pointer to **string** | Original filename | [optional] +**ContentType** | **string** | MIME type of the file | +**Metadata** | Pointer to **map[string]interface{}** | Custom metadata for filtering. Any fields allowed. | [optional] + +## Methods + +### NewUploadFileRequest + +`func NewUploadFileRequest(contentType string, ) *UploadFileRequest` + +NewUploadFileRequest instantiates a new UploadFileRequest 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 + +### NewUploadFileRequestWithDefaults + +`func NewUploadFileRequestWithDefaults() *UploadFileRequest` + +NewUploadFileRequestWithDefaults instantiates a new UploadFileRequest 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 + +### GetContent + +`func (o *UploadFileRequest) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *UploadFileRequest) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *UploadFileRequest) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *UploadFileRequest) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetRequestUploadUrl + +`func (o *UploadFileRequest) GetRequestUploadUrl() bool` + +GetRequestUploadUrl returns the RequestUploadUrl field if non-nil, zero value otherwise. + +### GetRequestUploadUrlOk + +`func (o *UploadFileRequest) GetRequestUploadUrlOk() (*bool, bool)` + +GetRequestUploadUrlOk returns a tuple with the RequestUploadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestUploadUrl + +`func (o *UploadFileRequest) SetRequestUploadUrl(v bool)` + +SetRequestUploadUrl sets RequestUploadUrl field to given value. + +### HasRequestUploadUrl + +`func (o *UploadFileRequest) HasRequestUploadUrl() bool` + +HasRequestUploadUrl returns a boolean if a field has been set. + +### GetSize + +`func (o *UploadFileRequest) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *UploadFileRequest) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *UploadFileRequest) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *UploadFileRequest) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetFilename + +`func (o *UploadFileRequest) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *UploadFileRequest) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *UploadFileRequest) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *UploadFileRequest) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetContentType + +`func (o *UploadFileRequest) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *UploadFileRequest) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *UploadFileRequest) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + + +### GetMetadata + +`func (o *UploadFileRequest) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *UploadFileRequest) GetMetadataOk() (*map[string]interface{}, 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 *UploadFileRequest) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *UploadFileRequest) 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/VariablesAPI.md b/docs/VariablesAPI.md index b130f0d..c351d3a 100644 --- a/docs/VariablesAPI.md +++ b/docs/VariablesAPI.md @@ -30,9 +30,9 @@ import ( ) func main() { - apiOrganisation := "apiOrganisation_example" // string | The organisation ID - apiApplication := "apiApplication_example" // string | The application ID - apiEnvironment := "apiEnvironment_example" // string | The environment ID + apiOrganisation := "test-org" // string | The organisation ID + apiApplication := "test-app" // string | The application ID + apiEnvironment := "test-env" // string | The environment ID bulkSetEnvironmentVariablesRequest := *openapiclient.NewBulkSetEnvironmentVariablesRequest([]openapiclient.BulkSetEnvironmentVariablesRequestEnvironmentInner{*openapiclient.NewBulkSetEnvironmentVariablesRequestEnvironmentInner("Name_example", "Value_example")}) // BulkSetEnvironmentVariablesRequest | configuration := openapiclient.NewConfiguration() @@ -179,9 +179,9 @@ import ( ) func main() { - apiOrganisation := "apiOrganisation_example" // string | The organisation ID - apiApplication := "apiApplication_example" // string | The application ID - apiEnvironment := "apiEnvironment_example" // string | The environment ID + apiOrganisation := "test-org" // string | The organisation ID + apiApplication := "test-app" // string | The application ID + apiEnvironment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -251,9 +251,9 @@ import ( ) func main() { - apiOrganisation := "apiOrganisation_example" // string | The organisation ID - apiApplication := "apiApplication_example" // string | The application ID - apiEnvironment := "apiEnvironment_example" // string | The environment ID + apiOrganisation := "test-org" // string | The organisation ID + apiApplication := "test-app" // string | The application ID + apiEnvironment := "test-env" // string | The environment ID apiVariable := "apiVariable_example" // string | The variable key updateEnvironmentVariableRequest := *openapiclient.NewUpdateEnvironmentVariableRequest() // UpdateEnvironmentVariableRequest | diff --git a/docs/VolumesAPI.md b/docs/VolumesAPI.md index 2ea147b..32e4388 100644 --- a/docs/VolumesAPI.md +++ b/docs/VolumesAPI.md @@ -30,9 +30,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID createVolumeRequest := *openapiclient.NewCreateVolumeRequest("VolumeName_example") // CreateVolumeRequest | configuration := openapiclient.NewConfiguration() @@ -106,9 +106,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID volume := "volume_example" // string | The volume ID configuration := openapiclient.NewConfiguration() @@ -181,9 +181,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID volume := "volume_example" // string | The volume ID configuration := openapiclient.NewConfiguration() @@ -258,9 +258,9 @@ import ( ) func main() { - organisation := "organisation_example" // string | The organisation ID - application := "application_example" // string | The application ID - environment := "environment_example" // string | The environment ID + organisation := "test-org" // string | The organisation ID + application := "test-app" // string | The application ID + environment := "test-env" // string | The environment ID configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/go.mod b/go.mod index db7ce71..b0859ff 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/quantcdn/quant-admin-go/v4 +module github.com/quantcdn/quant-admin-go go 1.21 diff --git a/model_application.go b/model_application.go index b42a670..f012329 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.8.0 +API version: 4.9.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 d7c835b..f39afc8 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.8.0 +API version: 4.9.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 9261875..8ec647c 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.8.0 +API version: 4.9.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 5ed18a0..9f5a8f5 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.8.0 +API version: 4.9.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 bca8277..e4f5001 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.8.0 +API version: 4.9.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 9536c7a..4f50043 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.8.0 +API version: 4.9.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 1f0e6e0..5e705a1 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.8.0 +API version: 4.9.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 d3d102a..2787c60 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.8.0 +API version: 4.9.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 9776482..2c26114 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.8.0 +API version: 4.9.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 ae37eb2..77bbbdd 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.8.0 +API version: 4.9.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 4db5999..4493e95 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.8.0 +API version: 4.9.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 a1cc315..ca51a08 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.8.0 +API version: 4.9.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 7cbf25c..15e7c96 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.8.0 +API version: 4.9.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 4e7fe6c..74f7cc2 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.8.0 +API version: 4.9.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 239fb58..e3ec5ba 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..c45e78b --- /dev/null +++ b/model_chat_inference_202_response.go @@ -0,0 +1,305 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ChatInference202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChatInference202Response{} + +// ChatInference202Response struct for ChatInference202Response +type ChatInference202Response struct { + // Unique request identifier for polling + RequestId string `json:"requestId"` + // Session ID for conversation continuity + SessionId *string `json:"sessionId,omitempty"` + // Initial execution status + Status string `json:"status"` + // Human-readable status message + Message *string `json:"message,omitempty"` + // URL to poll for execution status + PollUrl string `json:"pollUrl"` + AdditionalProperties map[string]interface{} +} + +type _ChatInference202Response ChatInference202Response + +// NewChatInference202Response instantiates a new ChatInference202Response 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 NewChatInference202Response(requestId string, status string, pollUrl string) *ChatInference202Response { + this := ChatInference202Response{} + this.RequestId = requestId + this.Status = status + this.PollUrl = pollUrl + return &this +} + +// NewChatInference202ResponseWithDefaults instantiates a new ChatInference202Response 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 NewChatInference202ResponseWithDefaults() *ChatInference202Response { + this := ChatInference202Response{} + return &this +} + +// GetRequestId returns the RequestId field value +func (o *ChatInference202Response) GetRequestId() string { + if o == nil { + var ret string + return ret + } + + return o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +func (o *ChatInference202Response) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestId, true +} + +// SetRequestId sets field value +func (o *ChatInference202Response) SetRequestId(v string) { + o.RequestId = v +} + +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *ChatInference202Response) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInference202Response) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *ChatInference202Response) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *ChatInference202Response) SetSessionId(v string) { + o.SessionId = &v +} + +// GetStatus returns the Status field value +func (o *ChatInference202Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ChatInference202Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ChatInference202Response) SetStatus(v string) { + o.Status = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ChatInference202Response) 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 *ChatInference202Response) 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 *ChatInference202Response) 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 *ChatInference202Response) SetMessage(v string) { + o.Message = &v +} + +// GetPollUrl returns the PollUrl field value +func (o *ChatInference202Response) GetPollUrl() string { + if o == nil { + var ret string + return ret + } + + return o.PollUrl +} + +// GetPollUrlOk returns a tuple with the PollUrl field value +// and a boolean to check if the value has been set. +func (o *ChatInference202Response) GetPollUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PollUrl, true +} + +// SetPollUrl sets field value +func (o *ChatInference202Response) SetPollUrl(v string) { + o.PollUrl = v +} + +func (o ChatInference202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChatInference202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["requestId"] = o.RequestId + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + toSerialize["status"] = o.Status + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["pollUrl"] = o.PollUrl + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ChatInference202Response) 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{ + "requestId", + "status", + "pollUrl", + } + + 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) + } + } + + varChatInference202Response := _ChatInference202Response{} + + err = json.Unmarshal(data, &varChatInference202Response) + + if err != nil { + return err + } + + *o = ChatInference202Response(varChatInference202Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "requestId") + delete(additionalProperties, "sessionId") + delete(additionalProperties, "status") + delete(additionalProperties, "message") + delete(additionalProperties, "pollUrl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableChatInference202Response struct { + value *ChatInference202Response + isSet bool +} + +func (v NullableChatInference202Response) Get() *ChatInference202Response { + return v.value +} + +func (v *NullableChatInference202Response) Set(val *ChatInference202Response) { + v.value = val + v.isSet = true +} + +func (v NullableChatInference202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableChatInference202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChatInference202Response(val *ChatInference202Response) *NullableChatInference202Response { + return &NullableChatInference202Response{value: val, isSet: true} +} + +func (v NullableChatInference202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChatInference202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_chat_inference_request.go b/model_chat_inference_request.go index 8241dcd..8bb19a0 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,6 +25,7 @@ type ChatInferenceRequest struct { // Model ID. Use Nova models for multimodal support. ModelId string `json:"modelId"` Temperature *float32 `json:"temperature,omitempty"` + // Max tokens. Claude 4.5 supports up to 64k. MaxTokens *int32 `json:"maxTokens,omitempty"` TopP *float32 `json:"topP,omitempty"` // Ignored in buffered mode, always returns complete response @@ -35,6 +36,10 @@ type ChatInferenceRequest struct { StopSequences []string `json:"stopSequences,omitempty"` ResponseFormat *ChatInferenceRequestResponseFormat `json:"responseFormat,omitempty"` ToolConfig *ChatInferenceRequestToolConfig `json:"toolConfig,omitempty"` + // Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. + 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"` AdditionalProperties map[string]interface{} } @@ -50,8 +55,10 @@ func NewChatInferenceRequest(messages []ChatInferenceRequestMessagesInner, model this.ModelId = modelId var temperature float32 = 0.7 this.Temperature = &temperature - var maxTokens int32 = 1024 + var maxTokens int32 = 4096 this.MaxTokens = &maxTokens + var async bool = false + this.Async = &async return &this } @@ -62,8 +69,10 @@ func NewChatInferenceRequestWithDefaults() *ChatInferenceRequest { this := ChatInferenceRequest{} var temperature float32 = 0.7 this.Temperature = &temperature - var maxTokens int32 = 1024 + var maxTokens int32 = 4096 this.MaxTokens = &maxTokens + var async bool = false + this.Async = &async return &this } @@ -371,6 +380,70 @@ func (o *ChatInferenceRequest) SetToolConfig(v ChatInferenceRequestToolConfig) { o.ToolConfig = &v } +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *ChatInferenceRequest) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequest) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *ChatInferenceRequest) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *ChatInferenceRequest) SetSessionId(v string) { + o.SessionId = &v +} + +// GetAsync returns the Async field value if set, zero value otherwise. +func (o *ChatInferenceRequest) GetAsync() bool { + if o == nil || IsNil(o.Async) { + var ret bool + return ret + } + return *o.Async +} + +// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceRequest) GetAsyncOk() (*bool, bool) { + if o == nil || IsNil(o.Async) { + return nil, false + } + return o.Async, true +} + +// HasAsync returns a boolean if a field has been set. +func (o *ChatInferenceRequest) HasAsync() bool { + if o != nil && !IsNil(o.Async) { + return true + } + + return false +} + +// SetAsync gets a reference to the given bool and assigns it to the Async field. +func (o *ChatInferenceRequest) SetAsync(v bool) { + o.Async = &v +} + func (o ChatInferenceRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -407,6 +480,12 @@ func (o ChatInferenceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ToolConfig) { toSerialize["toolConfig"] = o.ToolConfig } + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + if !IsNil(o.Async) { + toSerialize["async"] = o.Async + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -461,6 +540,8 @@ func (o *ChatInferenceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "stopSequences") delete(additionalProperties, "responseFormat") delete(additionalProperties, "toolConfig") + delete(additionalProperties, "sessionId") + delete(additionalProperties, "async") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_request_messages_inner.go b/model_chat_inference_request_messages_inner.go index 18b5ac1..dd5ba4a 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.8.0 +API version: 4.9.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 04db7e1..81b9f43 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.8.0 +API version: 4.9.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 7e63e40..2e65e0b 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.8.0 +API version: 4.9.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 a7d605e..84613ed 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.8.0 +API version: 4.9.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 a7c0a15..a4ff71b 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.8.0 +API version: 4.9.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 85a4b98..feaaaeb 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.8.0 +API version: 4.9.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 41c2181..715b43e 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.8.0 +API version: 4.9.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 8fb0b0c..1119eac 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.8.0 +API version: 4.9.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 2799db4..e7d4175 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.8.0 +API version: 4.9.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 91b9344..faa51f9 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.8.0 +API version: 4.9.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 3e87b51..ff1d381 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.8.0 +API version: 4.9.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 9fda076..979b7a6 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.8.0 +API version: 4.9.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 bed3053..6f1450e 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.8.0 +API version: 4.9.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 b7af8af..dae47d6 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.8.0 +API version: 4.9.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 b413a00..d287236 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.8.0 +API version: 4.9.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 95bc7da..970a467 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.8.0 +API version: 4.9.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 cba8723..0b22b3a 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.8.0 +API version: 4.9.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 353e69d..cc83ec7 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.8.0 +API version: 4.9.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 720a9e9..ff6a853 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,6 +25,7 @@ type ChatInferenceStreamRequest struct { // Model ID. Use Nova models for multimodal support. ModelId string `json:"modelId"` Temperature *float32 `json:"temperature,omitempty"` + // Max tokens. Claude 4.5 supports up to 64k. MaxTokens *int32 `json:"maxTokens,omitempty"` TopP *float32 `json:"topP,omitempty"` // Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. @@ -33,6 +34,10 @@ type ChatInferenceStreamRequest struct { StopSequences []string `json:"stopSequences,omitempty"` ResponseFormat *ChatInferenceRequestResponseFormat `json:"responseFormat,omitempty"` ToolConfig *ChatInferenceRequestToolConfig `json:"toolConfig,omitempty"` + // Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. + 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"` AdditionalProperties map[string]interface{} } @@ -48,8 +53,10 @@ func NewChatInferenceStreamRequest(messages []ChatInferenceStreamRequestMessages this.ModelId = modelId var temperature float32 = 0.7 this.Temperature = &temperature - var maxTokens int32 = 1024 + var maxTokens int32 = 4096 this.MaxTokens = &maxTokens + var async bool = false + this.Async = &async return &this } @@ -60,8 +67,10 @@ func NewChatInferenceStreamRequestWithDefaults() *ChatInferenceStreamRequest { this := ChatInferenceStreamRequest{} var temperature float32 = 0.7 this.Temperature = &temperature - var maxTokens int32 = 1024 + var maxTokens int32 = 4096 this.MaxTokens = &maxTokens + var async bool = false + this.Async = &async return &this } @@ -337,6 +346,70 @@ func (o *ChatInferenceStreamRequest) SetToolConfig(v ChatInferenceRequestToolCon o.ToolConfig = &v } +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *ChatInferenceStreamRequest) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceStreamRequest) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *ChatInferenceStreamRequest) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *ChatInferenceStreamRequest) SetSessionId(v string) { + o.SessionId = &v +} + +// GetAsync returns the Async field value if set, zero value otherwise. +func (o *ChatInferenceStreamRequest) GetAsync() bool { + if o == nil || IsNil(o.Async) { + var ret bool + return ret + } + return *o.Async +} + +// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatInferenceStreamRequest) GetAsyncOk() (*bool, bool) { + if o == nil || IsNil(o.Async) { + return nil, false + } + return o.Async, true +} + +// HasAsync returns a boolean if a field has been set. +func (o *ChatInferenceStreamRequest) HasAsync() bool { + if o != nil && !IsNil(o.Async) { + return true + } + + return false +} + +// SetAsync gets a reference to the given bool and assigns it to the Async field. +func (o *ChatInferenceStreamRequest) SetAsync(v bool) { + o.Async = &v +} + func (o ChatInferenceStreamRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -370,6 +443,12 @@ func (o ChatInferenceStreamRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ToolConfig) { toSerialize["toolConfig"] = o.ToolConfig } + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + if !IsNil(o.Async) { + toSerialize["async"] = o.Async + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -423,6 +502,8 @@ func (o *ChatInferenceStreamRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "stopSequences") delete(additionalProperties, "responseFormat") delete(additionalProperties, "toolConfig") + delete(additionalProperties, "sessionId") + delete(additionalProperties, "async") o.AdditionalProperties = additionalProperties } diff --git a/model_chat_inference_stream_request_messages_inner.go b/model_chat_inference_stream_request_messages_inner.go index 43d15c6..95165c4 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.8.0 +API version: 4.9.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 32d74fc..e65500d 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.8.0 +API version: 4.9.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 8d4070d..f064491 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.8.0 +API version: 4.9.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 f60f8c0..13fd18f 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.8.0 +API version: 4.9.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 fc1a6d3..bde77ee 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..009c556 --- /dev/null +++ b/model_chat_with_ai_agent_202_response.go @@ -0,0 +1,372 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the ChatWithAIAgent202Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChatWithAIAgent202Response{} + +// ChatWithAIAgent202Response struct for ChatWithAIAgent202Response +type ChatWithAIAgent202Response struct { + // Unique request identifier for polling + RequestId string `json:"requestId"` + // The agent processing the request + AgentId string `json:"agentId"` + // Human-readable agent name + AgentName *string `json:"agentName,omitempty"` + // Session ID (if provided) + SessionId *string `json:"sessionId,omitempty"` + // Initial status + Status string `json:"status"` + Message *string `json:"message,omitempty"` + // URL to poll for execution status + PollUrl string `json:"pollUrl"` + AdditionalProperties map[string]interface{} +} + +type _ChatWithAIAgent202Response ChatWithAIAgent202Response + +// NewChatWithAIAgent202Response instantiates a new ChatWithAIAgent202Response 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 NewChatWithAIAgent202Response(requestId string, agentId string, status string, pollUrl string) *ChatWithAIAgent202Response { + this := ChatWithAIAgent202Response{} + this.RequestId = requestId + this.AgentId = agentId + this.Status = status + this.PollUrl = pollUrl + return &this +} + +// NewChatWithAIAgent202ResponseWithDefaults instantiates a new ChatWithAIAgent202Response 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 NewChatWithAIAgent202ResponseWithDefaults() *ChatWithAIAgent202Response { + this := ChatWithAIAgent202Response{} + return &this +} + +// GetRequestId returns the RequestId field value +func (o *ChatWithAIAgent202Response) GetRequestId() string { + if o == nil { + var ret string + return ret + } + + return o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestId, true +} + +// SetRequestId sets field value +func (o *ChatWithAIAgent202Response) SetRequestId(v string) { + o.RequestId = v +} + +// GetAgentId returns the AgentId field value +func (o *ChatWithAIAgent202Response) GetAgentId() string { + if o == nil { + var ret string + return ret + } + + return o.AgentId +} + +// GetAgentIdOk returns a tuple with the AgentId field value +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AgentId, true +} + +// SetAgentId sets field value +func (o *ChatWithAIAgent202Response) SetAgentId(v string) { + o.AgentId = v +} + +// GetAgentName returns the AgentName field value if set, zero value otherwise. +func (o *ChatWithAIAgent202Response) GetAgentName() string { + if o == nil || IsNil(o.AgentName) { + var ret string + return ret + } + return *o.AgentName +} + +// GetAgentNameOk returns a tuple with the AgentName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetAgentNameOk() (*string, bool) { + if o == nil || IsNil(o.AgentName) { + return nil, false + } + return o.AgentName, true +} + +// HasAgentName returns a boolean if a field has been set. +func (o *ChatWithAIAgent202Response) HasAgentName() bool { + if o != nil && !IsNil(o.AgentName) { + return true + } + + return false +} + +// SetAgentName gets a reference to the given string and assigns it to the AgentName field. +func (o *ChatWithAIAgent202Response) SetAgentName(v string) { + o.AgentName = &v +} + +// GetSessionId returns the SessionId field value if set, zero value otherwise. +func (o *ChatWithAIAgent202Response) GetSessionId() string { + if o == nil || IsNil(o.SessionId) { + var ret string + return ret + } + return *o.SessionId +} + +// GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetSessionIdOk() (*string, bool) { + if o == nil || IsNil(o.SessionId) { + return nil, false + } + return o.SessionId, true +} + +// HasSessionId returns a boolean if a field has been set. +func (o *ChatWithAIAgent202Response) HasSessionId() bool { + if o != nil && !IsNil(o.SessionId) { + return true + } + + return false +} + +// SetSessionId gets a reference to the given string and assigns it to the SessionId field. +func (o *ChatWithAIAgent202Response) SetSessionId(v string) { + o.SessionId = &v +} + +// GetStatus returns the Status field value +func (o *ChatWithAIAgent202Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ChatWithAIAgent202Response) SetStatus(v string) { + o.Status = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) 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 *ChatWithAIAgent202Response) SetMessage(v string) { + o.Message = &v +} + +// GetPollUrl returns the PollUrl field value +func (o *ChatWithAIAgent202Response) GetPollUrl() string { + if o == nil { + var ret string + return ret + } + + return o.PollUrl +} + +// GetPollUrlOk returns a tuple with the PollUrl field value +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgent202Response) GetPollUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PollUrl, true +} + +// SetPollUrl sets field value +func (o *ChatWithAIAgent202Response) SetPollUrl(v string) { + o.PollUrl = v +} + +func (o ChatWithAIAgent202Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChatWithAIAgent202Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["requestId"] = o.RequestId + toSerialize["agentId"] = o.AgentId + if !IsNil(o.AgentName) { + toSerialize["agentName"] = o.AgentName + } + if !IsNil(o.SessionId) { + toSerialize["sessionId"] = o.SessionId + } + toSerialize["status"] = o.Status + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["pollUrl"] = o.PollUrl + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ChatWithAIAgent202Response) 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{ + "requestId", + "agentId", + "status", + "pollUrl", + } + + 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) + } + } + + varChatWithAIAgent202Response := _ChatWithAIAgent202Response{} + + err = json.Unmarshal(data, &varChatWithAIAgent202Response) + + if err != nil { + return err + } + + *o = ChatWithAIAgent202Response(varChatWithAIAgent202Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "requestId") + delete(additionalProperties, "agentId") + delete(additionalProperties, "agentName") + delete(additionalProperties, "sessionId") + delete(additionalProperties, "status") + delete(additionalProperties, "message") + delete(additionalProperties, "pollUrl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableChatWithAIAgent202Response struct { + value *ChatWithAIAgent202Response + isSet bool +} + +func (v NullableChatWithAIAgent202Response) Get() *ChatWithAIAgent202Response { + return v.value +} + +func (v *NullableChatWithAIAgent202Response) Set(val *ChatWithAIAgent202Response) { + v.value = val + v.isSet = true +} + +func (v NullableChatWithAIAgent202Response) IsSet() bool { + return v.isSet +} + +func (v *NullableChatWithAIAgent202Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChatWithAIAgent202Response(val *ChatWithAIAgent202Response) *NullableChatWithAIAgent202Response { + return &NullableChatWithAIAgent202Response{value: val, isSet: true} +} + +func (v NullableChatWithAIAgent202Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChatWithAIAgent202Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_chat_with_ai_agent_request.go b/model_chat_with_ai_agent_request.go index befccbd..d174a50 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,6 +28,10 @@ type ChatWithAIAgentRequest struct { UserId *string `json:"userId,omitempty"` // Whether to stream the response (SSE) Stream *bool `json:"stream,omitempty"` + // Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. + Async *bool `json:"async,omitempty"` + // Optional additional system prompt (appended to agent's configured prompt) + System *string `json:"system,omitempty"` AdditionalProperties map[string]interface{} } @@ -42,6 +46,8 @@ func NewChatWithAIAgentRequest(message string) *ChatWithAIAgentRequest { this.Message = message var stream bool = false this.Stream = &stream + var async bool = false + this.Async = &async return &this } @@ -52,6 +58,8 @@ func NewChatWithAIAgentRequestWithDefaults() *ChatWithAIAgentRequest { this := ChatWithAIAgentRequest{} var stream bool = false this.Stream = &stream + var async bool = false + this.Async = &async return &this } @@ -175,6 +183,70 @@ func (o *ChatWithAIAgentRequest) SetStream(v bool) { o.Stream = &v } +// GetAsync returns the Async field value if set, zero value otherwise. +func (o *ChatWithAIAgentRequest) GetAsync() bool { + if o == nil || IsNil(o.Async) { + var ret bool + return ret + } + return *o.Async +} + +// GetAsyncOk returns a tuple with the Async field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgentRequest) GetAsyncOk() (*bool, bool) { + if o == nil || IsNil(o.Async) { + return nil, false + } + return o.Async, true +} + +// HasAsync returns a boolean if a field has been set. +func (o *ChatWithAIAgentRequest) HasAsync() bool { + if o != nil && !IsNil(o.Async) { + return true + } + + return false +} + +// SetAsync gets a reference to the given bool and assigns it to the Async field. +func (o *ChatWithAIAgentRequest) SetAsync(v bool) { + o.Async = &v +} + +// GetSystem returns the System field value if set, zero value otherwise. +func (o *ChatWithAIAgentRequest) GetSystem() string { + if o == nil || IsNil(o.System) { + var ret string + return ret + } + return *o.System +} + +// GetSystemOk returns a tuple with the System field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatWithAIAgentRequest) GetSystemOk() (*string, bool) { + if o == nil || IsNil(o.System) { + return nil, false + } + return o.System, true +} + +// HasSystem returns a boolean if a field has been set. +func (o *ChatWithAIAgentRequest) HasSystem() bool { + if o != nil && !IsNil(o.System) { + return true + } + + return false +} + +// SetSystem gets a reference to the given string and assigns it to the System field. +func (o *ChatWithAIAgentRequest) SetSystem(v string) { + o.System = &v +} + func (o ChatWithAIAgentRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -195,6 +267,12 @@ func (o ChatWithAIAgentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Stream) { toSerialize["stream"] = o.Stream } + if !IsNil(o.Async) { + toSerialize["async"] = o.Async + } + if !IsNil(o.System) { + toSerialize["system"] = o.System + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -242,6 +320,8 @@ func (o *ChatWithAIAgentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "sessionId") delete(additionalProperties, "userId") delete(additionalProperties, "stream") + delete(additionalProperties, "async") + delete(additionalProperties, "system") o.AdditionalProperties = additionalProperties } diff --git a/model_command.go b/model_command.go index 36897e6..01eba9f 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_compose.go b/model_compose.go index 4e2b295..0b153e4 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_container.go b/model_container.go index dc3a39b..fd08cf1 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.8.0 +API version: 4.9.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 c1512f8..f16a972 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.8.0 +API version: 4.9.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 f79468f..f77907e 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.8.0 +API version: 4.9.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 a5f0ab1..46228e0 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.8.0 +API version: 4.9.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 f3f0a6c..920c145 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.8.0 +API version: 4.9.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 605380f..698002e 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.8.0 +API version: 4.9.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 d5f18a9..900de2d 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.8.0 +API version: 4.9.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 c97b6ff..e29e0e1 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.8.0 +API version: 4.9.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 07a1946..e3e03f2 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.8.0 +API version: 4.9.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 6f9530c..56153aa 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &CrawlersRunRequest{} // CrawlersRunRequest struct for CrawlersRunRequest type CrawlersRunRequest struct { - // URLs to crawl + // Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl. Urls []string `json:"urls,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/model_create_ai_agent_201_response.go b/model_create_ai_agent_201_response.go index 6e32a1d..9fc6658 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.8.0 +API version: 4.9.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 c6e5f1a..3dbe991 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.8.0 +API version: 4.9.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 209c516..ee3e659 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.8.0 +API version: 4.9.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 c1e5628..1515efb 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.8.0 +API version: 4.9.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 d2643c5..66a4d2d 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.8.0 +API version: 4.9.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 df7ade5..7fe2849 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.8.0 +API version: 4.9.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 be54ab2..fae1ab6 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.8.0 +API version: 4.9.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 03e3a2f..a5d221d 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.8.0 +API version: 4.9.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 3cda478..6f4e0a7 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.8.0 +API version: 4.9.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 6530967..fd95e2d 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.8.0 +API version: 4.9.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 0536b35..852eaa9 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.8.0 +API version: 4.9.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 277ebcc..266d538 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.8.0 +API version: 4.9.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 b202751..1436627 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.8.0 +API version: 4.9.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 70096c6..cec550a 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.8.0 +API version: 4.9.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 04f0e94..10697c3 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.8.0 +API version: 4.9.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 1d88626..097aa93 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.8.0 +API version: 4.9.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 037cfbb..6ae6745 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.8.0 +API version: 4.9.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 6b0bf8f..996b2ad 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.8.0 +API version: 4.9.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 e9ebf8c..e7f72db 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_task_201_response.go b/model_create_task_201_response.go new file mode 100644 index 0000000..c884dd1 --- /dev/null +++ b/model_create_task_201_response.go @@ -0,0 +1,303 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the CreateTask201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateTask201Response{} + +// CreateTask201Response struct for CreateTask201Response +type CreateTask201Response struct { + TaskId *string `json:"taskId,omitempty"` + OrgId *string `json:"orgId,omitempty"` + Title *string `json:"title,omitempty"` + Status *string `json:"status,omitempty"` + CreatedAt *int32 `json:"createdAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateTask201Response CreateTask201Response + +// NewCreateTask201Response instantiates a new CreateTask201Response 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 NewCreateTask201Response() *CreateTask201Response { + this := CreateTask201Response{} + return &this +} + +// NewCreateTask201ResponseWithDefaults instantiates a new CreateTask201Response 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 NewCreateTask201ResponseWithDefaults() *CreateTask201Response { + this := CreateTask201Response{} + return &this +} + +// GetTaskId returns the TaskId field value if set, zero value otherwise. +func (o *CreateTask201Response) GetTaskId() string { + if o == nil || IsNil(o.TaskId) { + var ret string + return ret + } + return *o.TaskId +} + +// GetTaskIdOk returns a tuple with the TaskId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTask201Response) GetTaskIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskId) { + return nil, false + } + return o.TaskId, true +} + +// HasTaskId returns a boolean if a field has been set. +func (o *CreateTask201Response) HasTaskId() bool { + if o != nil && !IsNil(o.TaskId) { + return true + } + + return false +} + +// SetTaskId gets a reference to the given string and assigns it to the TaskId field. +func (o *CreateTask201Response) SetTaskId(v string) { + o.TaskId = &v +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *CreateTask201Response) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTask201Response) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *CreateTask201Response) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *CreateTask201Response) SetOrgId(v string) { + o.OrgId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *CreateTask201Response) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTask201Response) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *CreateTask201Response) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *CreateTask201Response) SetTitle(v string) { + o.Title = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CreateTask201Response) 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 *CreateTask201Response) 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 *CreateTask201Response) 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 *CreateTask201Response) SetStatus(v string) { + o.Status = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *CreateTask201Response) GetCreatedAt() int32 { + if o == nil || IsNil(o.CreatedAt) { + var ret int32 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTask201Response) GetCreatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *CreateTask201Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. +func (o *CreateTask201Response) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +func (o CreateTask201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateTask201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TaskId) { + toSerialize["taskId"] = o.TaskId + } + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateTask201Response) UnmarshalJSON(data []byte) (err error) { + varCreateTask201Response := _CreateTask201Response{} + + err = json.Unmarshal(data, &varCreateTask201Response) + + if err != nil { + return err + } + + *o = CreateTask201Response(varCreateTask201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "taskId") + delete(additionalProperties, "orgId") + delete(additionalProperties, "title") + delete(additionalProperties, "status") + delete(additionalProperties, "createdAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateTask201Response struct { + value *CreateTask201Response + isSet bool +} + +func (v NullableCreateTask201Response) Get() *CreateTask201Response { + return v.value +} + +func (v *NullableCreateTask201Response) Set(val *CreateTask201Response) { + v.value = val + v.isSet = true +} + +func (v NullableCreateTask201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateTask201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateTask201Response(val *CreateTask201Response) *NullableCreateTask201Response { + return &NullableCreateTask201Response{value: val, isSet: true} +} + +func (v NullableCreateTask201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateTask201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_task_request.go b/model_create_task_request.go new file mode 100644 index 0000000..5a89757 --- /dev/null +++ b/model_create_task_request.go @@ -0,0 +1,557 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateTaskRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateTaskRequest{} + +// CreateTaskRequest struct for CreateTaskRequest +type CreateTaskRequest struct { + // Task title + Title string `json:"title"` + // Detailed task description + Description *string `json:"description,omitempty"` + // Task list ID for grouping related tasks (implicit - lists are created automatically) + TaskListId *string `json:"taskListId,omitempty"` + // Initial task status + Status *string `json:"status,omitempty"` + // Pre-assign task to specific agent + AssignedAgentId *string `json:"assignedAgentId,omitempty"` + // Agent ID that created this task + CreatedByAgentId *string `json:"createdByAgentId,omitempty"` + // Task IDs that must complete before this task can start + DependsOn []string `json:"dependsOn,omitempty"` + // Flexible JSON metadata for task-specific data + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Maximum retry attempts on failure + MaxRetries *int32 `json:"maxRetries,omitempty"` + // Reason task is blocked (when status is blocked) + BlockedReason *string `json:"blockedReason,omitempty"` + // Task IDs that are blocking this task + BlockedByTaskIds []string `json:"blockedByTaskIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateTaskRequest CreateTaskRequest + +// NewCreateTaskRequest instantiates a new CreateTaskRequest 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 NewCreateTaskRequest(title string) *CreateTaskRequest { + this := CreateTaskRequest{} + this.Title = title + var status string = "pending" + this.Status = &status + var maxRetries int32 = 3 + this.MaxRetries = &maxRetries + return &this +} + +// NewCreateTaskRequestWithDefaults instantiates a new CreateTaskRequest 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 NewCreateTaskRequestWithDefaults() *CreateTaskRequest { + this := CreateTaskRequest{} + var status string = "pending" + this.Status = &status + var maxRetries int32 = 3 + this.MaxRetries = &maxRetries + return &this +} + +// GetTitle returns the Title field value +func (o *CreateTaskRequest) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *CreateTaskRequest) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateTaskRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTaskListId returns the TaskListId field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetTaskListId() string { + if o == nil || IsNil(o.TaskListId) { + var ret string + return ret + } + return *o.TaskListId +} + +// GetTaskListIdOk returns a tuple with the TaskListId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetTaskListIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskListId) { + return nil, false + } + return o.TaskListId, true +} + +// HasTaskListId returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasTaskListId() bool { + if o != nil && !IsNil(o.TaskListId) { + return true + } + + return false +} + +// SetTaskListId gets a reference to the given string and assigns it to the TaskListId field. +func (o *CreateTaskRequest) SetTaskListId(v string) { + o.TaskListId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CreateTaskRequest) 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 *CreateTaskRequest) 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 *CreateTaskRequest) 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 *CreateTaskRequest) SetStatus(v string) { + o.Status = &v +} + +// GetAssignedAgentId returns the AssignedAgentId field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetAssignedAgentId() string { + if o == nil || IsNil(o.AssignedAgentId) { + var ret string + return ret + } + return *o.AssignedAgentId +} + +// GetAssignedAgentIdOk returns a tuple with the AssignedAgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetAssignedAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.AssignedAgentId) { + return nil, false + } + return o.AssignedAgentId, true +} + +// HasAssignedAgentId returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasAssignedAgentId() bool { + if o != nil && !IsNil(o.AssignedAgentId) { + return true + } + + return false +} + +// SetAssignedAgentId gets a reference to the given string and assigns it to the AssignedAgentId field. +func (o *CreateTaskRequest) SetAssignedAgentId(v string) { + o.AssignedAgentId = &v +} + +// GetCreatedByAgentId returns the CreatedByAgentId field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetCreatedByAgentId() string { + if o == nil || IsNil(o.CreatedByAgentId) { + var ret string + return ret + } + return *o.CreatedByAgentId +} + +// GetCreatedByAgentIdOk returns a tuple with the CreatedByAgentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetCreatedByAgentIdOk() (*string, bool) { + if o == nil || IsNil(o.CreatedByAgentId) { + return nil, false + } + return o.CreatedByAgentId, true +} + +// HasCreatedByAgentId returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasCreatedByAgentId() bool { + if o != nil && !IsNil(o.CreatedByAgentId) { + return true + } + + return false +} + +// SetCreatedByAgentId gets a reference to the given string and assigns it to the CreatedByAgentId field. +func (o *CreateTaskRequest) SetCreatedByAgentId(v string) { + o.CreatedByAgentId = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetDependsOn() []string { + if o == nil || IsNil(o.DependsOn) { + var ret []string + return ret + } + return o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetDependsOnOk() ([]string, bool) { + if o == nil || IsNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasDependsOn() bool { + if o != nil && !IsNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given []string and assigns it to the DependsOn field. +func (o *CreateTaskRequest) SetDependsOn(v []string) { + o.DependsOn = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *CreateTaskRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *CreateTaskRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetMaxRetries() int32 { + if o == nil || IsNil(o.MaxRetries) { + var ret int32 + return ret + } + return *o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetMaxRetriesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxRetries) { + return nil, false + } + return o.MaxRetries, true +} + +// HasMaxRetries returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasMaxRetries() bool { + if o != nil && !IsNil(o.MaxRetries) { + return true + } + + return false +} + +// SetMaxRetries gets a reference to the given int32 and assigns it to the MaxRetries field. +func (o *CreateTaskRequest) SetMaxRetries(v int32) { + o.MaxRetries = &v +} + +// GetBlockedReason returns the BlockedReason field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetBlockedReason() string { + if o == nil || IsNil(o.BlockedReason) { + var ret string + return ret + } + return *o.BlockedReason +} + +// GetBlockedReasonOk returns a tuple with the BlockedReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetBlockedReasonOk() (*string, bool) { + if o == nil || IsNil(o.BlockedReason) { + return nil, false + } + return o.BlockedReason, true +} + +// HasBlockedReason returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasBlockedReason() bool { + if o != nil && !IsNil(o.BlockedReason) { + return true + } + + return false +} + +// SetBlockedReason gets a reference to the given string and assigns it to the BlockedReason field. +func (o *CreateTaskRequest) SetBlockedReason(v string) { + o.BlockedReason = &v +} + +// GetBlockedByTaskIds returns the BlockedByTaskIds field value if set, zero value otherwise. +func (o *CreateTaskRequest) GetBlockedByTaskIds() []string { + if o == nil || IsNil(o.BlockedByTaskIds) { + var ret []string + return ret + } + return o.BlockedByTaskIds +} + +// GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTaskRequest) GetBlockedByTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.BlockedByTaskIds) { + return nil, false + } + return o.BlockedByTaskIds, true +} + +// HasBlockedByTaskIds returns a boolean if a field has been set. +func (o *CreateTaskRequest) HasBlockedByTaskIds() bool { + if o != nil && !IsNil(o.BlockedByTaskIds) { + return true + } + + return false +} + +// SetBlockedByTaskIds gets a reference to the given []string and assigns it to the BlockedByTaskIds field. +func (o *CreateTaskRequest) SetBlockedByTaskIds(v []string) { + o.BlockedByTaskIds = v +} + +func (o CreateTaskRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateTaskRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["title"] = o.Title + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.TaskListId) { + toSerialize["taskListId"] = o.TaskListId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.AssignedAgentId) { + toSerialize["assignedAgentId"] = o.AssignedAgentId + } + if !IsNil(o.CreatedByAgentId) { + toSerialize["createdByAgentId"] = o.CreatedByAgentId + } + if !IsNil(o.DependsOn) { + toSerialize["dependsOn"] = o.DependsOn + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.MaxRetries) { + toSerialize["maxRetries"] = o.MaxRetries + } + if !IsNil(o.BlockedReason) { + toSerialize["blockedReason"] = o.BlockedReason + } + if !IsNil(o.BlockedByTaskIds) { + toSerialize["blockedByTaskIds"] = o.BlockedByTaskIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateTaskRequest) 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{ + "title", + } + + 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) + } + } + + varCreateTaskRequest := _CreateTaskRequest{} + + err = json.Unmarshal(data, &varCreateTaskRequest) + + if err != nil { + return err + } + + *o = CreateTaskRequest(varCreateTaskRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "title") + delete(additionalProperties, "description") + delete(additionalProperties, "taskListId") + delete(additionalProperties, "status") + delete(additionalProperties, "assignedAgentId") + delete(additionalProperties, "createdByAgentId") + delete(additionalProperties, "dependsOn") + delete(additionalProperties, "metadata") + delete(additionalProperties, "maxRetries") + delete(additionalProperties, "blockedReason") + delete(additionalProperties, "blockedByTaskIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateTaskRequest struct { + value *CreateTaskRequest + isSet bool +} + +func (v NullableCreateTaskRequest) Get() *CreateTaskRequest { + return v.value +} + +func (v *NullableCreateTaskRequest) Set(val *CreateTaskRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateTaskRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateTaskRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateTaskRequest(val *CreateTaskRequest) *NullableCreateTaskRequest { + return &NullableCreateTaskRequest{value: val, isSet: true} +} + +func (v NullableCreateTaskRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateTaskRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_vector_collection_201_response.go b/model_create_vector_collection_201_response.go index 27d3fcc..ed1ccfb 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.8.0 +API version: 4.9.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 799a35d..6e75b8d 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.8.0 +API version: 4.9.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 43fe213..a4cace3 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.8.0 +API version: 4.9.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 f5bbe13..bdb6eeb 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cron.go b/model_cron.go index bba5701..975ee40 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.8.0 +API version: 4.9.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 d7346c3..b0b2ae9 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.8.0 +API version: 4.9.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 1d89e18..6d04831 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.8.0 +API version: 4.9.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 539a62a..552b0da 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.8.0 +API version: 4.9.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 82ff8b9..74d5cd6 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.8.0 +API version: 4.9.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 caba78a..4dd8e11 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..b573a0a --- /dev/null +++ b/model_delete_file_200_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteFile200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteFile200Response{} + +// DeleteFile200Response struct for DeleteFile200Response +type DeleteFile200Response struct { + Message *string `json:"message,omitempty"` + FileId *string `json:"fileId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteFile200Response DeleteFile200Response + +// NewDeleteFile200Response instantiates a new DeleteFile200Response 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 NewDeleteFile200Response() *DeleteFile200Response { + this := DeleteFile200Response{} + return &this +} + +// NewDeleteFile200ResponseWithDefaults instantiates a new DeleteFile200Response 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 NewDeleteFile200ResponseWithDefaults() *DeleteFile200Response { + this := DeleteFile200Response{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteFile200Response) 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 *DeleteFile200Response) 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 *DeleteFile200Response) 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 *DeleteFile200Response) SetMessage(v string) { + o.Message = &v +} + +// GetFileId returns the FileId field value if set, zero value otherwise. +func (o *DeleteFile200Response) GetFileId() string { + if o == nil || IsNil(o.FileId) { + var ret string + return ret + } + return *o.FileId +} + +// GetFileIdOk returns a tuple with the FileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteFile200Response) GetFileIdOk() (*string, bool) { + if o == nil || IsNil(o.FileId) { + return nil, false + } + return o.FileId, true +} + +// HasFileId returns a boolean if a field has been set. +func (o *DeleteFile200Response) HasFileId() bool { + if o != nil && !IsNil(o.FileId) { + return true + } + + return false +} + +// SetFileId gets a reference to the given string and assigns it to the FileId field. +func (o *DeleteFile200Response) SetFileId(v string) { + o.FileId = &v +} + +func (o DeleteFile200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteFile200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.FileId) { + toSerialize["fileId"] = o.FileId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteFile200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteFile200Response := _DeleteFile200Response{} + + err = json.Unmarshal(data, &varDeleteFile200Response) + + if err != nil { + return err + } + + *o = DeleteFile200Response(varDeleteFile200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "fileId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteFile200Response struct { + value *DeleteFile200Response + isSet bool +} + +func (v NullableDeleteFile200Response) Get() *DeleteFile200Response { + return v.value +} + +func (v *NullableDeleteFile200Response) Set(val *DeleteFile200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteFile200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteFile200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteFile200Response(val *DeleteFile200Response) *NullableDeleteFile200Response { + return &NullableDeleteFile200Response{value: val, isSet: true} +} + +func (v NullableDeleteFile200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteFile200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_task_200_response.go b/model_delete_task_200_response.go new file mode 100644 index 0000000..da3d6c2 --- /dev/null +++ b/model_delete_task_200_response.go @@ -0,0 +1,230 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteTask200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteTask200Response{} + +// DeleteTask200Response struct for DeleteTask200Response +type DeleteTask200Response struct { + Deleted *bool `json:"deleted,omitempty"` + // Number of tasks deleted (more than 1 for cascade) + DeletedCount *int32 `json:"deletedCount,omitempty"` + DeletedTaskIds []string `json:"deletedTaskIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteTask200Response DeleteTask200Response + +// NewDeleteTask200Response instantiates a new DeleteTask200Response 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 NewDeleteTask200Response() *DeleteTask200Response { + this := DeleteTask200Response{} + return &this +} + +// NewDeleteTask200ResponseWithDefaults instantiates a new DeleteTask200Response 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 NewDeleteTask200ResponseWithDefaults() *DeleteTask200Response { + this := DeleteTask200Response{} + return &this +} + +// GetDeleted returns the Deleted field value if set, zero value otherwise. +func (o *DeleteTask200Response) GetDeleted() bool { + if o == nil || IsNil(o.Deleted) { + var ret bool + return ret + } + return *o.Deleted +} + +// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteTask200Response) GetDeletedOk() (*bool, bool) { + if o == nil || IsNil(o.Deleted) { + return nil, false + } + return o.Deleted, true +} + +// HasDeleted returns a boolean if a field has been set. +func (o *DeleteTask200Response) HasDeleted() bool { + if o != nil && !IsNil(o.Deleted) { + return true + } + + return false +} + +// SetDeleted gets a reference to the given bool and assigns it to the Deleted field. +func (o *DeleteTask200Response) SetDeleted(v bool) { + o.Deleted = &v +} + +// GetDeletedCount returns the DeletedCount field value if set, zero value otherwise. +func (o *DeleteTask200Response) 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 *DeleteTask200Response) 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 *DeleteTask200Response) 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 *DeleteTask200Response) SetDeletedCount(v int32) { + o.DeletedCount = &v +} + +// GetDeletedTaskIds returns the DeletedTaskIds field value if set, zero value otherwise. +func (o *DeleteTask200Response) GetDeletedTaskIds() []string { + if o == nil || IsNil(o.DeletedTaskIds) { + var ret []string + return ret + } + return o.DeletedTaskIds +} + +// GetDeletedTaskIdsOk returns a tuple with the DeletedTaskIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteTask200Response) GetDeletedTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.DeletedTaskIds) { + return nil, false + } + return o.DeletedTaskIds, true +} + +// HasDeletedTaskIds returns a boolean if a field has been set. +func (o *DeleteTask200Response) HasDeletedTaskIds() bool { + if o != nil && !IsNil(o.DeletedTaskIds) { + return true + } + + return false +} + +// SetDeletedTaskIds gets a reference to the given []string and assigns it to the DeletedTaskIds field. +func (o *DeleteTask200Response) SetDeletedTaskIds(v []string) { + o.DeletedTaskIds = v +} + +func (o DeleteTask200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteTask200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Deleted) { + toSerialize["deleted"] = o.Deleted + } + if !IsNil(o.DeletedCount) { + toSerialize["deletedCount"] = o.DeletedCount + } + if !IsNil(o.DeletedTaskIds) { + toSerialize["deletedTaskIds"] = o.DeletedTaskIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteTask200Response) UnmarshalJSON(data []byte) (err error) { + varDeleteTask200Response := _DeleteTask200Response{} + + err = json.Unmarshal(data, &varDeleteTask200Response) + + if err != nil { + return err + } + + *o = DeleteTask200Response(varDeleteTask200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "deleted") + delete(additionalProperties, "deletedCount") + delete(additionalProperties, "deletedTaskIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteTask200Response struct { + value *DeleteTask200Response + isSet bool +} + +func (v NullableDeleteTask200Response) Get() *DeleteTask200Response { + return v.value +} + +func (v *NullableDeleteTask200Response) Set(val *DeleteTask200Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteTask200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteTask200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteTask200Response(val *DeleteTask200Response) *NullableDeleteTask200Response { + return &NullableDeleteTask200Response{value: val, isSet: true} +} + +func (v NullableDeleteTask200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteTask200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_task_409_response.go b/model_delete_task_409_response.go new file mode 100644 index 0000000..3346ddf --- /dev/null +++ b/model_delete_task_409_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the DeleteTask409Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteTask409Response{} + +// DeleteTask409Response struct for DeleteTask409Response +type DeleteTask409Response struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` + DependentTaskIds []string `json:"dependentTaskIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeleteTask409Response DeleteTask409Response + +// NewDeleteTask409Response instantiates a new DeleteTask409Response 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 NewDeleteTask409Response() *DeleteTask409Response { + this := DeleteTask409Response{} + return &this +} + +// NewDeleteTask409ResponseWithDefaults instantiates a new DeleteTask409Response 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 NewDeleteTask409ResponseWithDefaults() *DeleteTask409Response { + this := DeleteTask409Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *DeleteTask409Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteTask409Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *DeleteTask409Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *DeleteTask409Response) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *DeleteTask409Response) 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 *DeleteTask409Response) 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 *DeleteTask409Response) 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 *DeleteTask409Response) SetMessage(v string) { + o.Message = &v +} + +// GetDependentTaskIds returns the DependentTaskIds field value if set, zero value otherwise. +func (o *DeleteTask409Response) GetDependentTaskIds() []string { + if o == nil || IsNil(o.DependentTaskIds) { + var ret []string + return ret + } + return o.DependentTaskIds +} + +// GetDependentTaskIdsOk returns a tuple with the DependentTaskIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeleteTask409Response) GetDependentTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.DependentTaskIds) { + return nil, false + } + return o.DependentTaskIds, true +} + +// HasDependentTaskIds returns a boolean if a field has been set. +func (o *DeleteTask409Response) HasDependentTaskIds() bool { + if o != nil && !IsNil(o.DependentTaskIds) { + return true + } + + return false +} + +// SetDependentTaskIds gets a reference to the given []string and assigns it to the DependentTaskIds field. +func (o *DeleteTask409Response) SetDependentTaskIds(v []string) { + o.DependentTaskIds = v +} + +func (o DeleteTask409Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteTask409Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.DependentTaskIds) { + toSerialize["dependentTaskIds"] = o.DependentTaskIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeleteTask409Response) UnmarshalJSON(data []byte) (err error) { + varDeleteTask409Response := _DeleteTask409Response{} + + err = json.Unmarshal(data, &varDeleteTask409Response) + + if err != nil { + return err + } + + *o = DeleteTask409Response(varDeleteTask409Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + delete(additionalProperties, "message") + delete(additionalProperties, "dependentTaskIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeleteTask409Response struct { + value *DeleteTask409Response + isSet bool +} + +func (v NullableDeleteTask409Response) Get() *DeleteTask409Response { + return v.value +} + +func (v *NullableDeleteTask409Response) Set(val *DeleteTask409Response) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteTask409Response) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteTask409Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteTask409Response(val *DeleteTask409Response) *NullableDeleteTask409Response { + return &NullableDeleteTask409Response{value: val, isSet: true} +} + +func (v NullableDeleteTask409Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteTask409Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_delete_vector_collection_200_response.go b/model_delete_vector_collection_200_response.go index f4bd834..e1f7a21 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_download_backup_200_response.go b/model_download_backup_200_response.go index 2161093..883fb5f 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.8.0 +API version: 4.9.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 c4a8bac..07c7f93 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.8.0 +API version: 4.9.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 35dd40a..687d504 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.8.0 +API version: 4.9.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 29ffd1a..f4016a1 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.8.0 +API version: 4.9.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 769b5f5..c63ecfe 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.8.0 +API version: 4.9.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 42d0b88..bdc3e3e 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_environment.go b/model_environment.go index 377950b..01e81b3 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.8.0 +API version: 4.9.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 8abb908..f487e40 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.8.0 +API version: 4.9.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 1d22aab..1ddc875 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.8.0 +API version: 4.9.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 570e70d..08c4dfe 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.8.0 +API version: 4.9.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 7acacfe..3d20605 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.8.0 +API version: 4.9.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 f72dfd1..c1b16ac 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.8.0 +API version: 4.9.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 5dccd7c..80d6aff 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.8.0 +API version: 4.9.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 937288d..207be87 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.8.0 +API version: 4.9.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 29c9b48..19c41e0 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.8.0 +API version: 4.9.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 b5a9d99..dcc663f 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.8.0 +API version: 4.9.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 f30cfbc..8032c5b 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..c0e6c87 --- /dev/null +++ b/model_get_ai_orchestration_status_200_response.go @@ -0,0 +1,450 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the GetAIOrchestrationStatus200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAIOrchestrationStatus200Response{} + +// GetAIOrchestrationStatus200Response struct for GetAIOrchestrationStatus200Response +type GetAIOrchestrationStatus200Response struct { + // Unique orchestration identifier + OrchestrationId string `json:"orchestrationId"` + // Current orchestration status + Status string `json:"status"` + // Total number of async tools in this orchestration + ToolCount int32 `json:"toolCount"` + // Number of tools that have completed + CompletedTools *int32 `json:"completedTools,omitempty"` + // AI-synthesized response combining all tool results (only present when status=complete) + SynthesizedResponse *string `json:"synthesizedResponse,omitempty"` + // Status of individual tool executions + Tools []GetAIOrchestrationStatus200ResponseToolsInner `json:"tools,omitempty"` + // Error message (only present when status=failed) + Error *string `json:"error,omitempty"` + // When orchestration was created + CreatedAt time.Time `json:"createdAt"` + // When orchestration completed (if status in complete or failed) + CompletedAt *time.Time `json:"completedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAIOrchestrationStatus200Response GetAIOrchestrationStatus200Response + +// NewGetAIOrchestrationStatus200Response instantiates a new GetAIOrchestrationStatus200Response 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 NewGetAIOrchestrationStatus200Response(orchestrationId string, status string, toolCount int32, createdAt time.Time) *GetAIOrchestrationStatus200Response { + this := GetAIOrchestrationStatus200Response{} + this.OrchestrationId = orchestrationId + this.Status = status + this.ToolCount = toolCount + this.CreatedAt = createdAt + return &this +} + +// NewGetAIOrchestrationStatus200ResponseWithDefaults instantiates a new GetAIOrchestrationStatus200Response 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 NewGetAIOrchestrationStatus200ResponseWithDefaults() *GetAIOrchestrationStatus200Response { + this := GetAIOrchestrationStatus200Response{} + return &this +} + +// GetOrchestrationId returns the OrchestrationId field value +func (o *GetAIOrchestrationStatus200Response) GetOrchestrationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrchestrationId +} + +// GetOrchestrationIdOk returns a tuple with the OrchestrationId field value +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetOrchestrationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrchestrationId, true +} + +// SetOrchestrationId sets field value +func (o *GetAIOrchestrationStatus200Response) SetOrchestrationId(v string) { + o.OrchestrationId = v +} + +// GetStatus returns the Status field value +func (o *GetAIOrchestrationStatus200Response) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *GetAIOrchestrationStatus200Response) SetStatus(v string) { + o.Status = v +} + +// GetToolCount returns the ToolCount field value +func (o *GetAIOrchestrationStatus200Response) GetToolCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ToolCount +} + +// GetToolCountOk returns a tuple with the ToolCount field value +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetToolCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ToolCount, true +} + +// SetToolCount sets field value +func (o *GetAIOrchestrationStatus200Response) SetToolCount(v int32) { + o.ToolCount = v +} + +// GetCompletedTools returns the CompletedTools field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetCompletedTools() int32 { + if o == nil || IsNil(o.CompletedTools) { + var ret int32 + return ret + } + return *o.CompletedTools +} + +// GetCompletedToolsOk returns a tuple with the CompletedTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetCompletedToolsOk() (*int32, bool) { + if o == nil || IsNil(o.CompletedTools) { + return nil, false + } + return o.CompletedTools, true +} + +// HasCompletedTools returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasCompletedTools() bool { + if o != nil && !IsNil(o.CompletedTools) { + return true + } + + return false +} + +// SetCompletedTools gets a reference to the given int32 and assigns it to the CompletedTools field. +func (o *GetAIOrchestrationStatus200Response) SetCompletedTools(v int32) { + o.CompletedTools = &v +} + +// GetSynthesizedResponse returns the SynthesizedResponse field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponse() string { + if o == nil || IsNil(o.SynthesizedResponse) { + var ret string + return ret + } + return *o.SynthesizedResponse +} + +// GetSynthesizedResponseOk returns a tuple with the SynthesizedResponse field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetSynthesizedResponseOk() (*string, bool) { + if o == nil || IsNil(o.SynthesizedResponse) { + return nil, false + } + return o.SynthesizedResponse, true +} + +// HasSynthesizedResponse returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasSynthesizedResponse() bool { + if o != nil && !IsNil(o.SynthesizedResponse) { + return true + } + + return false +} + +// SetSynthesizedResponse gets a reference to the given string and assigns it to the SynthesizedResponse field. +func (o *GetAIOrchestrationStatus200Response) SetSynthesizedResponse(v string) { + o.SynthesizedResponse = &v +} + +// GetTools returns the Tools field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetTools() []GetAIOrchestrationStatus200ResponseToolsInner { + if o == nil || IsNil(o.Tools) { + var ret []GetAIOrchestrationStatus200ResponseToolsInner + return ret + } + return o.Tools +} + +// GetToolsOk returns a tuple with the Tools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetToolsOk() ([]GetAIOrchestrationStatus200ResponseToolsInner, bool) { + if o == nil || IsNil(o.Tools) { + return nil, false + } + return o.Tools, true +} + +// HasTools returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasTools() bool { + if o != nil && !IsNil(o.Tools) { + return true + } + + return false +} + +// SetTools gets a reference to the given []GetAIOrchestrationStatus200ResponseToolsInner and assigns it to the Tools field. +func (o *GetAIOrchestrationStatus200Response) SetTools(v []GetAIOrchestrationStatus200ResponseToolsInner) { + o.Tools = v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *GetAIOrchestrationStatus200Response) SetError(v string) { + o.Error = &v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *GetAIOrchestrationStatus200Response) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200Response) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *GetAIOrchestrationStatus200Response) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) 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 *GetAIOrchestrationStatus200Response) SetCompletedAt(v time.Time) { + o.CompletedAt = &v +} + +func (o GetAIOrchestrationStatus200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAIOrchestrationStatus200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["orchestrationId"] = o.OrchestrationId + toSerialize["status"] = o.Status + toSerialize["toolCount"] = o.ToolCount + if !IsNil(o.CompletedTools) { + toSerialize["completedTools"] = o.CompletedTools + } + if !IsNil(o.SynthesizedResponse) { + toSerialize["synthesizedResponse"] = o.SynthesizedResponse + } + if !IsNil(o.Tools) { + toSerialize["tools"] = o.Tools + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + toSerialize["createdAt"] = o.CreatedAt + if !IsNil(o.CompletedAt) { + toSerialize["completedAt"] = o.CompletedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAIOrchestrationStatus200Response) 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{ + "orchestrationId", + "status", + "toolCount", + "createdAt", + } + + 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) + } + } + + varGetAIOrchestrationStatus200Response := _GetAIOrchestrationStatus200Response{} + + err = json.Unmarshal(data, &varGetAIOrchestrationStatus200Response) + + if err != nil { + return err + } + + *o = GetAIOrchestrationStatus200Response(varGetAIOrchestrationStatus200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "orchestrationId") + delete(additionalProperties, "status") + delete(additionalProperties, "toolCount") + delete(additionalProperties, "completedTools") + delete(additionalProperties, "synthesizedResponse") + delete(additionalProperties, "tools") + delete(additionalProperties, "error") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "completedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAIOrchestrationStatus200Response struct { + value *GetAIOrchestrationStatus200Response + isSet bool +} + +func (v NullableGetAIOrchestrationStatus200Response) Get() *GetAIOrchestrationStatus200Response { + return v.value +} + +func (v *NullableGetAIOrchestrationStatus200Response) Set(val *GetAIOrchestrationStatus200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAIOrchestrationStatus200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAIOrchestrationStatus200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAIOrchestrationStatus200Response(val *GetAIOrchestrationStatus200Response) *NullableGetAIOrchestrationStatus200Response { + return &NullableGetAIOrchestrationStatus200Response{value: val, isSet: true} +} + +func (v NullableGetAIOrchestrationStatus200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAIOrchestrationStatus200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ai_orchestration_status_200_response_tools_inner.go b/model_get_ai_orchestration_status_200_response_tools_inner.go new file mode 100644 index 0000000..c3dda02 --- /dev/null +++ b/model_get_ai_orchestration_status_200_response_tools_inner.go @@ -0,0 +1,305 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetAIOrchestrationStatus200ResponseToolsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAIOrchestrationStatus200ResponseToolsInner{} + +// GetAIOrchestrationStatus200ResponseToolsInner struct for GetAIOrchestrationStatus200ResponseToolsInner +type GetAIOrchestrationStatus200ResponseToolsInner struct { + ExecutionId *string `json:"executionId,omitempty"` + ToolName *string `json:"toolName,omitempty"` + Status *string `json:"status,omitempty"` + // Tool result (if complete) + Result map[string]interface{} `json:"result,omitempty"` + // Error message (if failed) + Error *string `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAIOrchestrationStatus200ResponseToolsInner GetAIOrchestrationStatus200ResponseToolsInner + +// NewGetAIOrchestrationStatus200ResponseToolsInner instantiates a new GetAIOrchestrationStatus200ResponseToolsInner 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 NewGetAIOrchestrationStatus200ResponseToolsInner() *GetAIOrchestrationStatus200ResponseToolsInner { + this := GetAIOrchestrationStatus200ResponseToolsInner{} + return &this +} + +// NewGetAIOrchestrationStatus200ResponseToolsInnerWithDefaults instantiates a new GetAIOrchestrationStatus200ResponseToolsInner 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 NewGetAIOrchestrationStatus200ResponseToolsInnerWithDefaults() *GetAIOrchestrationStatus200ResponseToolsInner { + this := GetAIOrchestrationStatus200ResponseToolsInner{} + return &this +} + +// GetExecutionId returns the ExecutionId field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetExecutionId() string { + if o == nil || IsNil(o.ExecutionId) { + var ret string + return ret + } + return *o.ExecutionId +} + +// GetExecutionIdOk returns a tuple with the ExecutionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetExecutionIdOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionId) { + return nil, false + } + return o.ExecutionId, true +} + +// HasExecutionId returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasExecutionId() bool { + if o != nil && !IsNil(o.ExecutionId) { + return true + } + + return false +} + +// SetExecutionId gets a reference to the given string and assigns it to the ExecutionId field. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetExecutionId(v string) { + o.ExecutionId = &v +} + +// GetToolName returns the ToolName field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetToolName() string { + if o == nil || IsNil(o.ToolName) { + var ret string + return ret + } + return *o.ToolName +} + +// GetToolNameOk returns a tuple with the ToolName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetToolNameOk() (*string, bool) { + if o == nil || IsNil(o.ToolName) { + return nil, false + } + return o.ToolName, true +} + +// HasToolName returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasToolName() bool { + if o != nil && !IsNil(o.ToolName) { + return true + } + + return false +} + +// SetToolName gets a reference to the given string and assigns it to the ToolName field. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetToolName(v string) { + o.ToolName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) 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 *GetAIOrchestrationStatus200ResponseToolsInner) 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 *GetAIOrchestrationStatus200ResponseToolsInner) 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 *GetAIOrchestrationStatus200ResponseToolsInner) SetStatus(v string) { + o.Status = &v +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetResult() map[string]interface{} { + if o == nil || IsNil(o.Result) { + var ret map[string]interface{} + return ret + } + return o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetResultOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Result) { + return map[string]interface{}{}, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given map[string]interface{} and assigns it to the Result field. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetResult(v map[string]interface{}) { + o.Result = v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *GetAIOrchestrationStatus200ResponseToolsInner) SetError(v string) { + o.Error = &v +} + +func (o GetAIOrchestrationStatus200ResponseToolsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAIOrchestrationStatus200ResponseToolsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExecutionId) { + toSerialize["executionId"] = o.ExecutionId + } + if !IsNil(o.ToolName) { + toSerialize["toolName"] = o.ToolName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAIOrchestrationStatus200ResponseToolsInner) UnmarshalJSON(data []byte) (err error) { + varGetAIOrchestrationStatus200ResponseToolsInner := _GetAIOrchestrationStatus200ResponseToolsInner{} + + err = json.Unmarshal(data, &varGetAIOrchestrationStatus200ResponseToolsInner) + + if err != nil { + return err + } + + *o = GetAIOrchestrationStatus200ResponseToolsInner(varGetAIOrchestrationStatus200ResponseToolsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "executionId") + delete(additionalProperties, "toolName") + delete(additionalProperties, "status") + delete(additionalProperties, "result") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAIOrchestrationStatus200ResponseToolsInner struct { + value *GetAIOrchestrationStatus200ResponseToolsInner + isSet bool +} + +func (v NullableGetAIOrchestrationStatus200ResponseToolsInner) Get() *GetAIOrchestrationStatus200ResponseToolsInner { + return v.value +} + +func (v *NullableGetAIOrchestrationStatus200ResponseToolsInner) Set(val *GetAIOrchestrationStatus200ResponseToolsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetAIOrchestrationStatus200ResponseToolsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAIOrchestrationStatus200ResponseToolsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAIOrchestrationStatus200ResponseToolsInner(val *GetAIOrchestrationStatus200ResponseToolsInner) *NullableGetAIOrchestrationStatus200ResponseToolsInner { + return &NullableGetAIOrchestrationStatus200ResponseToolsInner{value: val, isSet: true} +} + +func (v NullableGetAIOrchestrationStatus200ResponseToolsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAIOrchestrationStatus200ResponseToolsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ai_orchestration_status_404_response.go b/model_get_ai_orchestration_status_404_response.go new file mode 100644 index 0000000..5d8390e --- /dev/null +++ b/model_get_ai_orchestration_status_404_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetAIOrchestrationStatus404Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAIOrchestrationStatus404Response{} + +// GetAIOrchestrationStatus404Response struct for GetAIOrchestrationStatus404Response +type GetAIOrchestrationStatus404Response struct { + Error *string `json:"error,omitempty"` + OrchestrationId *string `json:"orchestrationId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetAIOrchestrationStatus404Response GetAIOrchestrationStatus404Response + +// NewGetAIOrchestrationStatus404Response instantiates a new GetAIOrchestrationStatus404Response 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 NewGetAIOrchestrationStatus404Response() *GetAIOrchestrationStatus404Response { + this := GetAIOrchestrationStatus404Response{} + return &this +} + +// NewGetAIOrchestrationStatus404ResponseWithDefaults instantiates a new GetAIOrchestrationStatus404Response 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 NewGetAIOrchestrationStatus404ResponseWithDefaults() *GetAIOrchestrationStatus404Response { + this := GetAIOrchestrationStatus404Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus404Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAIOrchestrationStatus404Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetAIOrchestrationStatus404Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *GetAIOrchestrationStatus404Response) SetError(v string) { + o.Error = &v +} + +// GetOrchestrationId returns the OrchestrationId field value if set, zero value otherwise. +func (o *GetAIOrchestrationStatus404Response) 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 *GetAIOrchestrationStatus404Response) 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 *GetAIOrchestrationStatus404Response) 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 *GetAIOrchestrationStatus404Response) SetOrchestrationId(v string) { + o.OrchestrationId = &v +} + +func (o GetAIOrchestrationStatus404Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAIOrchestrationStatus404Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.OrchestrationId) { + toSerialize["orchestrationId"] = o.OrchestrationId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetAIOrchestrationStatus404Response) UnmarshalJSON(data []byte) (err error) { + varGetAIOrchestrationStatus404Response := _GetAIOrchestrationStatus404Response{} + + err = json.Unmarshal(data, &varGetAIOrchestrationStatus404Response) + + if err != nil { + return err + } + + *o = GetAIOrchestrationStatus404Response(varGetAIOrchestrationStatus404Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + delete(additionalProperties, "orchestrationId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetAIOrchestrationStatus404Response struct { + value *GetAIOrchestrationStatus404Response + isSet bool +} + +func (v NullableGetAIOrchestrationStatus404Response) Get() *GetAIOrchestrationStatus404Response { + return v.value +} + +func (v *NullableGetAIOrchestrationStatus404Response) Set(val *GetAIOrchestrationStatus404Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAIOrchestrationStatus404Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAIOrchestrationStatus404Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAIOrchestrationStatus404Response(val *GetAIOrchestrationStatus404Response) *NullableGetAIOrchestrationStatus404Response { + return &NullableGetAIOrchestrationStatus404Response{value: val, isSet: true} +} + +func (v NullableGetAIOrchestrationStatus404Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAIOrchestrationStatus404Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ai_session_200_response.go b/model_get_ai_session_200_response.go index a65f3a4..50d31e7 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.8.0 +API version: 4.9.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 eca0cea..66a871f 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.8.0 +API version: 4.9.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 79f865e..fcbd621 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.8.0 +API version: 4.9.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 3a6b8fb..d4f42cd 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.8.0 +API version: 4.9.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 2e48b0e..3a39d66 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.8.0 +API version: 4.9.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 e969c23..b3cf7ef 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..cd81259 --- /dev/null +++ b/model_get_dependency_graph_200_response.go @@ -0,0 +1,306 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDependencyGraph200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDependencyGraph200Response{} + +// GetDependencyGraph200Response struct for GetDependencyGraph200Response +type GetDependencyGraph200Response struct { + TaskListId *string `json:"taskListId,omitempty"` + TaskCount *int32 `json:"taskCount,omitempty"` + // Task IDs with no dependencies + Roots []string `json:"roots,omitempty"` + // Task IDs with no dependents + Leaves []string `json:"leaves,omitempty"` + // Adjacency list with task summaries, dependsOn, and dependents arrays + Graph map[string]interface{} `json:"graph,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDependencyGraph200Response GetDependencyGraph200Response + +// NewGetDependencyGraph200Response instantiates a new GetDependencyGraph200Response 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 NewGetDependencyGraph200Response() *GetDependencyGraph200Response { + this := GetDependencyGraph200Response{} + return &this +} + +// NewGetDependencyGraph200ResponseWithDefaults instantiates a new GetDependencyGraph200Response 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 NewGetDependencyGraph200ResponseWithDefaults() *GetDependencyGraph200Response { + this := GetDependencyGraph200Response{} + return &this +} + +// GetTaskListId returns the TaskListId field value if set, zero value otherwise. +func (o *GetDependencyGraph200Response) GetTaskListId() string { + if o == nil || IsNil(o.TaskListId) { + var ret string + return ret + } + return *o.TaskListId +} + +// GetTaskListIdOk returns a tuple with the TaskListId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDependencyGraph200Response) GetTaskListIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskListId) { + return nil, false + } + return o.TaskListId, true +} + +// HasTaskListId returns a boolean if a field has been set. +func (o *GetDependencyGraph200Response) HasTaskListId() bool { + if o != nil && !IsNil(o.TaskListId) { + return true + } + + return false +} + +// SetTaskListId gets a reference to the given string and assigns it to the TaskListId field. +func (o *GetDependencyGraph200Response) SetTaskListId(v string) { + o.TaskListId = &v +} + +// GetTaskCount returns the TaskCount field value if set, zero value otherwise. +func (o *GetDependencyGraph200Response) GetTaskCount() int32 { + if o == nil || IsNil(o.TaskCount) { + var ret int32 + return ret + } + return *o.TaskCount +} + +// GetTaskCountOk returns a tuple with the TaskCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDependencyGraph200Response) GetTaskCountOk() (*int32, bool) { + if o == nil || IsNil(o.TaskCount) { + return nil, false + } + return o.TaskCount, true +} + +// HasTaskCount returns a boolean if a field has been set. +func (o *GetDependencyGraph200Response) HasTaskCount() bool { + if o != nil && !IsNil(o.TaskCount) { + return true + } + + return false +} + +// SetTaskCount gets a reference to the given int32 and assigns it to the TaskCount field. +func (o *GetDependencyGraph200Response) SetTaskCount(v int32) { + o.TaskCount = &v +} + +// GetRoots returns the Roots field value if set, zero value otherwise. +func (o *GetDependencyGraph200Response) GetRoots() []string { + if o == nil || IsNil(o.Roots) { + var ret []string + return ret + } + return o.Roots +} + +// GetRootsOk returns a tuple with the Roots field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDependencyGraph200Response) GetRootsOk() ([]string, bool) { + if o == nil || IsNil(o.Roots) { + return nil, false + } + return o.Roots, true +} + +// HasRoots returns a boolean if a field has been set. +func (o *GetDependencyGraph200Response) HasRoots() bool { + if o != nil && !IsNil(o.Roots) { + return true + } + + return false +} + +// SetRoots gets a reference to the given []string and assigns it to the Roots field. +func (o *GetDependencyGraph200Response) SetRoots(v []string) { + o.Roots = v +} + +// GetLeaves returns the Leaves field value if set, zero value otherwise. +func (o *GetDependencyGraph200Response) GetLeaves() []string { + if o == nil || IsNil(o.Leaves) { + var ret []string + return ret + } + return o.Leaves +} + +// GetLeavesOk returns a tuple with the Leaves field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDependencyGraph200Response) GetLeavesOk() ([]string, bool) { + if o == nil || IsNil(o.Leaves) { + return nil, false + } + return o.Leaves, true +} + +// HasLeaves returns a boolean if a field has been set. +func (o *GetDependencyGraph200Response) HasLeaves() bool { + if o != nil && !IsNil(o.Leaves) { + return true + } + + return false +} + +// SetLeaves gets a reference to the given []string and assigns it to the Leaves field. +func (o *GetDependencyGraph200Response) SetLeaves(v []string) { + o.Leaves = v +} + +// GetGraph returns the Graph field value if set, zero value otherwise. +func (o *GetDependencyGraph200Response) GetGraph() map[string]interface{} { + if o == nil || IsNil(o.Graph) { + var ret map[string]interface{} + return ret + } + return o.Graph +} + +// GetGraphOk returns a tuple with the Graph field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDependencyGraph200Response) GetGraphOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Graph) { + return map[string]interface{}{}, false + } + return o.Graph, true +} + +// HasGraph returns a boolean if a field has been set. +func (o *GetDependencyGraph200Response) HasGraph() bool { + if o != nil && !IsNil(o.Graph) { + return true + } + + return false +} + +// SetGraph gets a reference to the given map[string]interface{} and assigns it to the Graph field. +func (o *GetDependencyGraph200Response) SetGraph(v map[string]interface{}) { + o.Graph = v +} + +func (o GetDependencyGraph200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDependencyGraph200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TaskListId) { + toSerialize["taskListId"] = o.TaskListId + } + if !IsNil(o.TaskCount) { + toSerialize["taskCount"] = o.TaskCount + } + if !IsNil(o.Roots) { + toSerialize["roots"] = o.Roots + } + if !IsNil(o.Leaves) { + toSerialize["leaves"] = o.Leaves + } + if !IsNil(o.Graph) { + toSerialize["graph"] = o.Graph + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDependencyGraph200Response) UnmarshalJSON(data []byte) (err error) { + varGetDependencyGraph200Response := _GetDependencyGraph200Response{} + + err = json.Unmarshal(data, &varGetDependencyGraph200Response) + + if err != nil { + return err + } + + *o = GetDependencyGraph200Response(varGetDependencyGraph200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "taskListId") + delete(additionalProperties, "taskCount") + delete(additionalProperties, "roots") + delete(additionalProperties, "leaves") + delete(additionalProperties, "graph") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDependencyGraph200Response struct { + value *GetDependencyGraph200Response + isSet bool +} + +func (v NullableGetDependencyGraph200Response) Get() *GetDependencyGraph200Response { + return v.value +} + +func (v *NullableGetDependencyGraph200Response) Set(val *GetDependencyGraph200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetDependencyGraph200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDependencyGraph200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDependencyGraph200Response(val *GetDependencyGraph200Response) *NullableGetDependencyGraph200Response { + return &NullableGetDependencyGraph200Response{value: val, isSet: true} +} + +func (v NullableGetDependencyGraph200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDependencyGraph200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_durable_execution_status_200_response.go b/model_get_durable_execution_status_200_response.go new file mode 100644 index 0000000..f47e771 --- /dev/null +++ b/model_get_durable_execution_status_200_response.go @@ -0,0 +1,417 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200Response{} + +// GetDurableExecutionStatus200Response struct for GetDurableExecutionStatus200Response +type GetDurableExecutionStatus200Response struct { + RequestId *string `json:"requestId,omitempty"` + ExecutionArn *string `json:"executionArn,omitempty"` + Status *string `json:"status,omitempty"` + // Raw AWS Step Functions status + AwsStatus *string `json:"awsStatus,omitempty"` + // Present when status is waiting_callback - use with /chat/callback + CallbackId *string `json:"callbackId,omitempty"` + // Present when status is waiting_callback - tools waiting for results + PendingTools []GetDurableExecutionStatus200ResponsePendingToolsInner `json:"pendingTools,omitempty"` + Result *GetDurableExecutionStatus200ResponseResult `json:"result,omitempty"` + Error *GetDurableExecutionStatus200ResponseError `json:"error,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200Response GetDurableExecutionStatus200Response + +// NewGetDurableExecutionStatus200Response instantiates a new GetDurableExecutionStatus200Response 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 NewGetDurableExecutionStatus200Response() *GetDurableExecutionStatus200Response { + this := GetDurableExecutionStatus200Response{} + return &this +} + +// NewGetDurableExecutionStatus200ResponseWithDefaults instantiates a new GetDurableExecutionStatus200Response 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 NewGetDurableExecutionStatus200ResponseWithDefaults() *GetDurableExecutionStatus200Response { + this := GetDurableExecutionStatus200Response{} + return &this +} + +// GetRequestId returns the RequestId field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetRequestId() string { + if o == nil || IsNil(o.RequestId) { + var ret string + return ret + } + return *o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetRequestIdOk() (*string, bool) { + if o == nil || IsNil(o.RequestId) { + return nil, false + } + return o.RequestId, true +} + +// HasRequestId returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasRequestId() bool { + if o != nil && !IsNil(o.RequestId) { + return true + } + + return false +} + +// SetRequestId gets a reference to the given string and assigns it to the RequestId field. +func (o *GetDurableExecutionStatus200Response) SetRequestId(v string) { + o.RequestId = &v +} + +// GetExecutionArn returns the ExecutionArn field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetExecutionArn() string { + if o == nil || IsNil(o.ExecutionArn) { + var ret string + return ret + } + return *o.ExecutionArn +} + +// GetExecutionArnOk returns a tuple with the ExecutionArn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetExecutionArnOk() (*string, bool) { + if o == nil || IsNil(o.ExecutionArn) { + return nil, false + } + return o.ExecutionArn, true +} + +// HasExecutionArn returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasExecutionArn() bool { + if o != nil && !IsNil(o.ExecutionArn) { + return true + } + + return false +} + +// SetExecutionArn gets a reference to the given string and assigns it to the ExecutionArn field. +func (o *GetDurableExecutionStatus200Response) SetExecutionArn(v string) { + o.ExecutionArn = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) 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 *GetDurableExecutionStatus200Response) 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 *GetDurableExecutionStatus200Response) 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 *GetDurableExecutionStatus200Response) SetStatus(v string) { + o.Status = &v +} + +// GetAwsStatus returns the AwsStatus field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetAwsStatus() string { + if o == nil || IsNil(o.AwsStatus) { + var ret string + return ret + } + return *o.AwsStatus +} + +// GetAwsStatusOk returns a tuple with the AwsStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetAwsStatusOk() (*string, bool) { + if o == nil || IsNil(o.AwsStatus) { + return nil, false + } + return o.AwsStatus, true +} + +// HasAwsStatus returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasAwsStatus() bool { + if o != nil && !IsNil(o.AwsStatus) { + return true + } + + return false +} + +// SetAwsStatus gets a reference to the given string and assigns it to the AwsStatus field. +func (o *GetDurableExecutionStatus200Response) SetAwsStatus(v string) { + o.AwsStatus = &v +} + +// GetCallbackId returns the CallbackId field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetCallbackId() string { + if o == nil || IsNil(o.CallbackId) { + var ret string + return ret + } + return *o.CallbackId +} + +// GetCallbackIdOk returns a tuple with the CallbackId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetCallbackIdOk() (*string, bool) { + if o == nil || IsNil(o.CallbackId) { + return nil, false + } + return o.CallbackId, true +} + +// HasCallbackId returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasCallbackId() bool { + if o != nil && !IsNil(o.CallbackId) { + return true + } + + return false +} + +// SetCallbackId gets a reference to the given string and assigns it to the CallbackId field. +func (o *GetDurableExecutionStatus200Response) SetCallbackId(v string) { + o.CallbackId = &v +} + +// GetPendingTools returns the PendingTools field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetPendingTools() []GetDurableExecutionStatus200ResponsePendingToolsInner { + if o == nil || IsNil(o.PendingTools) { + var ret []GetDurableExecutionStatus200ResponsePendingToolsInner + return ret + } + return o.PendingTools +} + +// GetPendingToolsOk returns a tuple with the PendingTools field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetPendingToolsOk() ([]GetDurableExecutionStatus200ResponsePendingToolsInner, bool) { + if o == nil || IsNil(o.PendingTools) { + return nil, false + } + return o.PendingTools, true +} + +// HasPendingTools returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasPendingTools() bool { + if o != nil && !IsNil(o.PendingTools) { + return true + } + + return false +} + +// SetPendingTools gets a reference to the given []GetDurableExecutionStatus200ResponsePendingToolsInner and assigns it to the PendingTools field. +func (o *GetDurableExecutionStatus200Response) SetPendingTools(v []GetDurableExecutionStatus200ResponsePendingToolsInner) { + o.PendingTools = v +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetResult() GetDurableExecutionStatus200ResponseResult { + if o == nil || IsNil(o.Result) { + var ret GetDurableExecutionStatus200ResponseResult + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetResultOk() (*GetDurableExecutionStatus200ResponseResult, bool) { + if o == nil || IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given GetDurableExecutionStatus200ResponseResult and assigns it to the Result field. +func (o *GetDurableExecutionStatus200Response) SetResult(v GetDurableExecutionStatus200ResponseResult) { + o.Result = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200Response) GetError() GetDurableExecutionStatus200ResponseError { + if o == nil || IsNil(o.Error) { + var ret GetDurableExecutionStatus200ResponseError + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200Response) GetErrorOk() (*GetDurableExecutionStatus200ResponseError, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given GetDurableExecutionStatus200ResponseError and assigns it to the Error field. +func (o *GetDurableExecutionStatus200Response) SetError(v GetDurableExecutionStatus200ResponseError) { + o.Error = &v +} + +func (o GetDurableExecutionStatus200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RequestId) { + toSerialize["requestId"] = o.RequestId + } + if !IsNil(o.ExecutionArn) { + toSerialize["executionArn"] = o.ExecutionArn + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.AwsStatus) { + toSerialize["awsStatus"] = o.AwsStatus + } + if !IsNil(o.CallbackId) { + toSerialize["callbackId"] = o.CallbackId + } + if !IsNil(o.PendingTools) { + toSerialize["pendingTools"] = o.PendingTools + } + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200Response) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200Response := _GetDurableExecutionStatus200Response{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200Response) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200Response(varGetDurableExecutionStatus200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "requestId") + delete(additionalProperties, "executionArn") + delete(additionalProperties, "status") + delete(additionalProperties, "awsStatus") + delete(additionalProperties, "callbackId") + delete(additionalProperties, "pendingTools") + delete(additionalProperties, "result") + delete(additionalProperties, "error") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200Response struct { + value *GetDurableExecutionStatus200Response + isSet bool +} + +func (v NullableGetDurableExecutionStatus200Response) Get() *GetDurableExecutionStatus200Response { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200Response) Set(val *GetDurableExecutionStatus200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200Response(val *GetDurableExecutionStatus200Response) *NullableGetDurableExecutionStatus200Response { + return &NullableGetDurableExecutionStatus200Response{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_durable_execution_status_200_response_error.go b/model_get_durable_execution_status_200_response_error.go new file mode 100644 index 0000000..2d2b02d --- /dev/null +++ b/model_get_durable_execution_status_200_response_error.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200ResponseError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200ResponseError{} + +// GetDurableExecutionStatus200ResponseError Present when status is failed +type GetDurableExecutionStatus200ResponseError struct { + ErrorMessage *string `json:"ErrorMessage,omitempty"` + ErrorType *string `json:"ErrorType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200ResponseError GetDurableExecutionStatus200ResponseError + +// NewGetDurableExecutionStatus200ResponseError instantiates a new GetDurableExecutionStatus200ResponseError 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 NewGetDurableExecutionStatus200ResponseError() *GetDurableExecutionStatus200ResponseError { + this := GetDurableExecutionStatus200ResponseError{} + return &this +} + +// NewGetDurableExecutionStatus200ResponseErrorWithDefaults instantiates a new GetDurableExecutionStatus200ResponseError 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 NewGetDurableExecutionStatus200ResponseErrorWithDefaults() *GetDurableExecutionStatus200ResponseError { + this := GetDurableExecutionStatus200ResponseError{} + return &this +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseError) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseError) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseError) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *GetDurableExecutionStatus200ResponseError) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetErrorType returns the ErrorType field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseError) GetErrorType() string { + if o == nil || IsNil(o.ErrorType) { + var ret string + return ret + } + return *o.ErrorType +} + +// GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseError) GetErrorTypeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorType) { + return nil, false + } + return o.ErrorType, true +} + +// HasErrorType returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseError) HasErrorType() bool { + if o != nil && !IsNil(o.ErrorType) { + return true + } + + return false +} + +// SetErrorType gets a reference to the given string and assigns it to the ErrorType field. +func (o *GetDurableExecutionStatus200ResponseError) SetErrorType(v string) { + o.ErrorType = &v +} + +func (o GetDurableExecutionStatus200ResponseError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200ResponseError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorMessage) { + toSerialize["ErrorMessage"] = o.ErrorMessage + } + if !IsNil(o.ErrorType) { + toSerialize["ErrorType"] = o.ErrorType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200ResponseError) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200ResponseError := _GetDurableExecutionStatus200ResponseError{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200ResponseError) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200ResponseError(varGetDurableExecutionStatus200ResponseError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "ErrorMessage") + delete(additionalProperties, "ErrorType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200ResponseError struct { + value *GetDurableExecutionStatus200ResponseError + isSet bool +} + +func (v NullableGetDurableExecutionStatus200ResponseError) Get() *GetDurableExecutionStatus200ResponseError { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200ResponseError) Set(val *GetDurableExecutionStatus200ResponseError) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200ResponseError) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200ResponseError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200ResponseError(val *GetDurableExecutionStatus200ResponseError) *NullableGetDurableExecutionStatus200ResponseError { + return &NullableGetDurableExecutionStatus200ResponseError{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200ResponseError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200ResponseError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..9a2f8c9 --- /dev/null +++ b/model_get_durable_execution_status_200_response_pending_tools_inner.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200ResponsePendingToolsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200ResponsePendingToolsInner{} + +// GetDurableExecutionStatus200ResponsePendingToolsInner struct for GetDurableExecutionStatus200ResponsePendingToolsInner +type GetDurableExecutionStatus200ResponsePendingToolsInner struct { + Name *string `json:"name,omitempty"` + ToolUseId *string `json:"toolUseId,omitempty"` + Input map[string]interface{} `json:"input,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200ResponsePendingToolsInner GetDurableExecutionStatus200ResponsePendingToolsInner + +// NewGetDurableExecutionStatus200ResponsePendingToolsInner instantiates a new GetDurableExecutionStatus200ResponsePendingToolsInner 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 NewGetDurableExecutionStatus200ResponsePendingToolsInner() *GetDurableExecutionStatus200ResponsePendingToolsInner { + this := GetDurableExecutionStatus200ResponsePendingToolsInner{} + return &this +} + +// NewGetDurableExecutionStatus200ResponsePendingToolsInnerWithDefaults instantiates a new GetDurableExecutionStatus200ResponsePendingToolsInner 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 NewGetDurableExecutionStatus200ResponsePendingToolsInnerWithDefaults() *GetDurableExecutionStatus200ResponsePendingToolsInner { + this := GetDurableExecutionStatus200ResponsePendingToolsInner{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// 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 *GetDurableExecutionStatus200ResponsePendingToolsInner) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) SetName(v string) { + o.Name = &v +} + +// GetToolUseId returns the ToolUseId field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetToolUseId() string { + if o == nil || IsNil(o.ToolUseId) { + var ret string + return ret + } + return *o.ToolUseId +} + +// GetToolUseIdOk returns a tuple with the ToolUseId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetToolUseIdOk() (*string, bool) { + if o == nil || IsNil(o.ToolUseId) { + return nil, false + } + return o.ToolUseId, true +} + +// HasToolUseId returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasToolUseId() bool { + if o != nil && !IsNil(o.ToolUseId) { + return true + } + + return false +} + +// SetToolUseId gets a reference to the given string and assigns it to the ToolUseId field. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) SetToolUseId(v string) { + o.ToolUseId = &v +} + +// GetInput returns the Input field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetInput() map[string]interface{} { + if o == nil || IsNil(o.Input) { + var ret map[string]interface{} + return ret + } + return o.Input +} + +// GetInputOk returns a tuple with the Input field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) GetInputOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Input) { + return map[string]interface{}{}, false + } + return o.Input, true +} + +// HasInput returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) HasInput() bool { + if o != nil && !IsNil(o.Input) { + return true + } + + return false +} + +// SetInput gets a reference to the given map[string]interface{} and assigns it to the Input field. +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) SetInput(v map[string]interface{}) { + o.Input = v +} + +func (o GetDurableExecutionStatus200ResponsePendingToolsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200ResponsePendingToolsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.ToolUseId) { + toSerialize["toolUseId"] = o.ToolUseId + } + if !IsNil(o.Input) { + toSerialize["input"] = o.Input + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200ResponsePendingToolsInner) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200ResponsePendingToolsInner := _GetDurableExecutionStatus200ResponsePendingToolsInner{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200ResponsePendingToolsInner) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200ResponsePendingToolsInner(varGetDurableExecutionStatus200ResponsePendingToolsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "toolUseId") + delete(additionalProperties, "input") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200ResponsePendingToolsInner struct { + value *GetDurableExecutionStatus200ResponsePendingToolsInner + isSet bool +} + +func (v NullableGetDurableExecutionStatus200ResponsePendingToolsInner) Get() *GetDurableExecutionStatus200ResponsePendingToolsInner { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200ResponsePendingToolsInner) Set(val *GetDurableExecutionStatus200ResponsePendingToolsInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200ResponsePendingToolsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200ResponsePendingToolsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200ResponsePendingToolsInner(val *GetDurableExecutionStatus200ResponsePendingToolsInner) *NullableGetDurableExecutionStatus200ResponsePendingToolsInner { + return &NullableGetDurableExecutionStatus200ResponsePendingToolsInner{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200ResponsePendingToolsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200ResponsePendingToolsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_durable_execution_status_200_response_result.go b/model_get_durable_execution_status_200_response_result.go new file mode 100644 index 0000000..7dddde9 --- /dev/null +++ b/model_get_durable_execution_status_200_response_result.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200ResponseResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200ResponseResult{} + +// GetDurableExecutionStatus200ResponseResult Present when status is complete +type GetDurableExecutionStatus200ResponseResult struct { + Response *GetDurableExecutionStatus200ResponseResultResponse `json:"response,omitempty"` + Usage *GetDurableExecutionStatus200ResponseResultUsage `json:"usage,omitempty"` + ToolExecutions []map[string]interface{} `json:"toolExecutions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200ResponseResult GetDurableExecutionStatus200ResponseResult + +// NewGetDurableExecutionStatus200ResponseResult instantiates a new GetDurableExecutionStatus200ResponseResult 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 NewGetDurableExecutionStatus200ResponseResult() *GetDurableExecutionStatus200ResponseResult { + this := GetDurableExecutionStatus200ResponseResult{} + return &this +} + +// NewGetDurableExecutionStatus200ResponseResultWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResult 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 NewGetDurableExecutionStatus200ResponseResultWithDefaults() *GetDurableExecutionStatus200ResponseResult { + this := GetDurableExecutionStatus200ResponseResult{} + return &this +} + +// GetResponse returns the Response field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResult) GetResponse() GetDurableExecutionStatus200ResponseResultResponse { + if o == nil || IsNil(o.Response) { + var ret GetDurableExecutionStatus200ResponseResultResponse + return ret + } + return *o.Response +} + +// GetResponseOk returns a tuple with the Response field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResult) GetResponseOk() (*GetDurableExecutionStatus200ResponseResultResponse, bool) { + if o == nil || IsNil(o.Response) { + return nil, false + } + return o.Response, true +} + +// HasResponse returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResult) HasResponse() bool { + if o != nil && !IsNil(o.Response) { + return true + } + + return false +} + +// SetResponse gets a reference to the given GetDurableExecutionStatus200ResponseResultResponse and assigns it to the Response field. +func (o *GetDurableExecutionStatus200ResponseResult) SetResponse(v GetDurableExecutionStatus200ResponseResultResponse) { + o.Response = &v +} + +// GetUsage returns the Usage field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResult) GetUsage() GetDurableExecutionStatus200ResponseResultUsage { + if o == nil || IsNil(o.Usage) { + var ret GetDurableExecutionStatus200ResponseResultUsage + return ret + } + return *o.Usage +} + +// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResult) GetUsageOk() (*GetDurableExecutionStatus200ResponseResultUsage, bool) { + if o == nil || IsNil(o.Usage) { + return nil, false + } + return o.Usage, true +} + +// HasUsage returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResult) HasUsage() bool { + if o != nil && !IsNil(o.Usage) { + return true + } + + return false +} + +// SetUsage gets a reference to the given GetDurableExecutionStatus200ResponseResultUsage and assigns it to the Usage field. +func (o *GetDurableExecutionStatus200ResponseResult) SetUsage(v GetDurableExecutionStatus200ResponseResultUsage) { + o.Usage = &v +} + +// GetToolExecutions returns the ToolExecutions field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResult) GetToolExecutions() []map[string]interface{} { + if o == nil || IsNil(o.ToolExecutions) { + var ret []map[string]interface{} + return ret + } + return o.ToolExecutions +} + +// GetToolExecutionsOk returns a tuple with the ToolExecutions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResult) GetToolExecutionsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.ToolExecutions) { + return nil, false + } + return o.ToolExecutions, true +} + +// HasToolExecutions returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResult) HasToolExecutions() bool { + if o != nil && !IsNil(o.ToolExecutions) { + return true + } + + return false +} + +// SetToolExecutions gets a reference to the given []map[string]interface{} and assigns it to the ToolExecutions field. +func (o *GetDurableExecutionStatus200ResponseResult) SetToolExecutions(v []map[string]interface{}) { + o.ToolExecutions = v +} + +func (o GetDurableExecutionStatus200ResponseResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200ResponseResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Response) { + toSerialize["response"] = o.Response + } + if !IsNil(o.Usage) { + toSerialize["usage"] = o.Usage + } + if !IsNil(o.ToolExecutions) { + toSerialize["toolExecutions"] = o.ToolExecutions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200ResponseResult) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200ResponseResult := _GetDurableExecutionStatus200ResponseResult{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200ResponseResult) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200ResponseResult(varGetDurableExecutionStatus200ResponseResult) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "response") + delete(additionalProperties, "usage") + delete(additionalProperties, "toolExecutions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200ResponseResult struct { + value *GetDurableExecutionStatus200ResponseResult + isSet bool +} + +func (v NullableGetDurableExecutionStatus200ResponseResult) Get() *GetDurableExecutionStatus200ResponseResult { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200ResponseResult) Set(val *GetDurableExecutionStatus200ResponseResult) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200ResponseResult) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200ResponseResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200ResponseResult(val *GetDurableExecutionStatus200ResponseResult) *NullableGetDurableExecutionStatus200ResponseResult { + return &NullableGetDurableExecutionStatus200ResponseResult{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200ResponseResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200ResponseResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_durable_execution_status_200_response_result_response.go b/model_get_durable_execution_status_200_response_result_response.go new file mode 100644 index 0000000..6df5f41 --- /dev/null +++ b/model_get_durable_execution_status_200_response_result_response.go @@ -0,0 +1,192 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200ResponseResultResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200ResponseResultResponse{} + +// GetDurableExecutionStatus200ResponseResultResponse struct for GetDurableExecutionStatus200ResponseResultResponse +type GetDurableExecutionStatus200ResponseResultResponse struct { + Role *string `json:"role,omitempty"` + Content *string `json:"content,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200ResponseResultResponse GetDurableExecutionStatus200ResponseResultResponse + +// NewGetDurableExecutionStatus200ResponseResultResponse instantiates a new GetDurableExecutionStatus200ResponseResultResponse 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 NewGetDurableExecutionStatus200ResponseResultResponse() *GetDurableExecutionStatus200ResponseResultResponse { + this := GetDurableExecutionStatus200ResponseResultResponse{} + return &this +} + +// NewGetDurableExecutionStatus200ResponseResultResponseWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResultResponse 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 NewGetDurableExecutionStatus200ResponseResultResponseWithDefaults() *GetDurableExecutionStatus200ResponseResultResponse { + this := GetDurableExecutionStatus200ResponseResultResponse{} + return &this +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResultResponse) GetRole() string { + if o == nil || IsNil(o.Role) { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResultResponse) GetRoleOk() (*string, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResultResponse) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *GetDurableExecutionStatus200ResponseResultResponse) SetRole(v string) { + o.Role = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResultResponse) GetContent() string { + if o == nil || IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResultResponse) GetContentOk() (*string, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResultResponse) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *GetDurableExecutionStatus200ResponseResultResponse) SetContent(v string) { + o.Content = &v +} + +func (o GetDurableExecutionStatus200ResponseResultResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200ResponseResultResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200ResponseResultResponse) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200ResponseResultResponse := _GetDurableExecutionStatus200ResponseResultResponse{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200ResponseResultResponse) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200ResponseResultResponse(varGetDurableExecutionStatus200ResponseResultResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role") + delete(additionalProperties, "content") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200ResponseResultResponse struct { + value *GetDurableExecutionStatus200ResponseResultResponse + isSet bool +} + +func (v NullableGetDurableExecutionStatus200ResponseResultResponse) Get() *GetDurableExecutionStatus200ResponseResultResponse { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultResponse) Set(val *GetDurableExecutionStatus200ResponseResultResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200ResponseResultResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200ResponseResultResponse(val *GetDurableExecutionStatus200ResponseResultResponse) *NullableGetDurableExecutionStatus200ResponseResultResponse { + return &NullableGetDurableExecutionStatus200ResponseResultResponse{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200ResponseResultResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_durable_execution_status_200_response_result_usage.go b/model_get_durable_execution_status_200_response_result_usage.go new file mode 100644 index 0000000..1e32863 --- /dev/null +++ b/model_get_durable_execution_status_200_response_result_usage.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetDurableExecutionStatus200ResponseResultUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetDurableExecutionStatus200ResponseResultUsage{} + +// GetDurableExecutionStatus200ResponseResultUsage struct for GetDurableExecutionStatus200ResponseResultUsage +type GetDurableExecutionStatus200ResponseResultUsage struct { + InputTokens *int32 `json:"inputTokens,omitempty"` + OutputTokens *int32 `json:"outputTokens,omitempty"` + TotalTokens *int32 `json:"totalTokens,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetDurableExecutionStatus200ResponseResultUsage GetDurableExecutionStatus200ResponseResultUsage + +// NewGetDurableExecutionStatus200ResponseResultUsage instantiates a new GetDurableExecutionStatus200ResponseResultUsage 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 NewGetDurableExecutionStatus200ResponseResultUsage() *GetDurableExecutionStatus200ResponseResultUsage { + this := GetDurableExecutionStatus200ResponseResultUsage{} + return &this +} + +// NewGetDurableExecutionStatus200ResponseResultUsageWithDefaults instantiates a new GetDurableExecutionStatus200ResponseResultUsage 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 NewGetDurableExecutionStatus200ResponseResultUsageWithDefaults() *GetDurableExecutionStatus200ResponseResultUsage { + this := GetDurableExecutionStatus200ResponseResultUsage{} + return &this +} + +// GetInputTokens returns the InputTokens field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetInputTokens() int32 { + if o == nil || IsNil(o.InputTokens) { + var ret int32 + return ret + } + return *o.InputTokens +} + +// GetInputTokensOk returns a tuple with the InputTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetInputTokensOk() (*int32, bool) { + if o == nil || IsNil(o.InputTokens) { + return nil, false + } + return o.InputTokens, true +} + +// HasInputTokens returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) HasInputTokens() bool { + if o != nil && !IsNil(o.InputTokens) { + return true + } + + return false +} + +// SetInputTokens gets a reference to the given int32 and assigns it to the InputTokens field. +func (o *GetDurableExecutionStatus200ResponseResultUsage) SetInputTokens(v int32) { + o.InputTokens = &v +} + +// GetOutputTokens returns the OutputTokens field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetOutputTokens() int32 { + if o == nil || IsNil(o.OutputTokens) { + var ret int32 + return ret + } + return *o.OutputTokens +} + +// GetOutputTokensOk returns a tuple with the OutputTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetOutputTokensOk() (*int32, bool) { + if o == nil || IsNil(o.OutputTokens) { + return nil, false + } + return o.OutputTokens, true +} + +// HasOutputTokens returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) HasOutputTokens() bool { + if o != nil && !IsNil(o.OutputTokens) { + return true + } + + return false +} + +// SetOutputTokens gets a reference to the given int32 and assigns it to the OutputTokens field. +func (o *GetDurableExecutionStatus200ResponseResultUsage) SetOutputTokens(v int32) { + o.OutputTokens = &v +} + +// GetTotalTokens returns the TotalTokens field value if set, zero value otherwise. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetTotalTokens() int32 { + if o == nil || IsNil(o.TotalTokens) { + var ret int32 + return ret + } + return *o.TotalTokens +} + +// GetTotalTokensOk returns a tuple with the TotalTokens field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) GetTotalTokensOk() (*int32, bool) { + if o == nil || IsNil(o.TotalTokens) { + return nil, false + } + return o.TotalTokens, true +} + +// HasTotalTokens returns a boolean if a field has been set. +func (o *GetDurableExecutionStatus200ResponseResultUsage) HasTotalTokens() bool { + if o != nil && !IsNil(o.TotalTokens) { + return true + } + + return false +} + +// SetTotalTokens gets a reference to the given int32 and assigns it to the TotalTokens field. +func (o *GetDurableExecutionStatus200ResponseResultUsage) SetTotalTokens(v int32) { + o.TotalTokens = &v +} + +func (o GetDurableExecutionStatus200ResponseResultUsage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetDurableExecutionStatus200ResponseResultUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InputTokens) { + toSerialize["inputTokens"] = o.InputTokens + } + if !IsNil(o.OutputTokens) { + toSerialize["outputTokens"] = o.OutputTokens + } + if !IsNil(o.TotalTokens) { + toSerialize["totalTokens"] = o.TotalTokens + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetDurableExecutionStatus200ResponseResultUsage) UnmarshalJSON(data []byte) (err error) { + varGetDurableExecutionStatus200ResponseResultUsage := _GetDurableExecutionStatus200ResponseResultUsage{} + + err = json.Unmarshal(data, &varGetDurableExecutionStatus200ResponseResultUsage) + + if err != nil { + return err + } + + *o = GetDurableExecutionStatus200ResponseResultUsage(varGetDurableExecutionStatus200ResponseResultUsage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "inputTokens") + delete(additionalProperties, "outputTokens") + delete(additionalProperties, "totalTokens") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetDurableExecutionStatus200ResponseResultUsage struct { + value *GetDurableExecutionStatus200ResponseResultUsage + isSet bool +} + +func (v NullableGetDurableExecutionStatus200ResponseResultUsage) Get() *GetDurableExecutionStatus200ResponseResultUsage { + return v.value +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultUsage) Set(val *GetDurableExecutionStatus200ResponseResultUsage) { + v.value = val + v.isSet = true +} + +func (v NullableGetDurableExecutionStatus200ResponseResultUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetDurableExecutionStatus200ResponseResultUsage(val *GetDurableExecutionStatus200ResponseResultUsage) *NullableGetDurableExecutionStatus200ResponseResultUsage { + return &NullableGetDurableExecutionStatus200ResponseResultUsage{value: val, isSet: true} +} + +func (v NullableGetDurableExecutionStatus200ResponseResultUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetDurableExecutionStatus200ResponseResultUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ecr_login_credentials_200_response.go b/model_get_ecr_login_credentials_200_response.go index 1c8169e..d44b450 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.8.0 +API version: 4.9.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 caa2d5b..93cf5ce 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.8.0 +API version: 4.9.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 0a1dddf..69e48d7 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..57ef046 --- /dev/null +++ b/model_get_file_200_response.go @@ -0,0 +1,416 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the GetFile200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetFile200Response{} + +// GetFile200Response struct for GetFile200Response +type GetFile200Response struct { + FileId *string `json:"fileId,omitempty"` + S3Uri *string `json:"s3Uri,omitempty"` + // Presigned download URL (1 hour) + Url *string `json:"url,omitempty"` + Filename *string `json:"filename,omitempty"` + ContentType *string `json:"contentType,omitempty"` + Size *int32 `json:"size,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetFile200Response GetFile200Response + +// NewGetFile200Response instantiates a new GetFile200Response 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 NewGetFile200Response() *GetFile200Response { + this := GetFile200Response{} + return &this +} + +// NewGetFile200ResponseWithDefaults instantiates a new GetFile200Response 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 NewGetFile200ResponseWithDefaults() *GetFile200Response { + this := GetFile200Response{} + return &this +} + +// GetFileId returns the FileId field value if set, zero value otherwise. +func (o *GetFile200Response) GetFileId() string { + if o == nil || IsNil(o.FileId) { + var ret string + return ret + } + return *o.FileId +} + +// GetFileIdOk returns a tuple with the FileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetFileIdOk() (*string, bool) { + if o == nil || IsNil(o.FileId) { + return nil, false + } + return o.FileId, true +} + +// HasFileId returns a boolean if a field has been set. +func (o *GetFile200Response) HasFileId() bool { + if o != nil && !IsNil(o.FileId) { + return true + } + + return false +} + +// SetFileId gets a reference to the given string and assigns it to the FileId field. +func (o *GetFile200Response) SetFileId(v string) { + o.FileId = &v +} + +// GetS3Uri returns the S3Uri field value if set, zero value otherwise. +func (o *GetFile200Response) GetS3Uri() string { + if o == nil || IsNil(o.S3Uri) { + var ret string + return ret + } + return *o.S3Uri +} + +// GetS3UriOk returns a tuple with the S3Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetS3UriOk() (*string, bool) { + if o == nil || IsNil(o.S3Uri) { + return nil, false + } + return o.S3Uri, true +} + +// HasS3Uri returns a boolean if a field has been set. +func (o *GetFile200Response) HasS3Uri() bool { + if o != nil && !IsNil(o.S3Uri) { + return true + } + + return false +} + +// SetS3Uri gets a reference to the given string and assigns it to the S3Uri field. +func (o *GetFile200Response) SetS3Uri(v string) { + o.S3Uri = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *GetFile200Response) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *GetFile200Response) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *GetFile200Response) SetUrl(v string) { + o.Url = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *GetFile200Response) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *GetFile200Response) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *GetFile200Response) SetFilename(v string) { + o.Filename = &v +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *GetFile200Response) GetContentType() string { + if o == nil || IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *GetFile200Response) HasContentType() bool { + if o != nil && !IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *GetFile200Response) SetContentType(v string) { + o.ContentType = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *GetFile200Response) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *GetFile200Response) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *GetFile200Response) SetSize(v int32) { + o.Size = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *GetFile200Response) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *GetFile200Response) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GetFile200Response) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *GetFile200Response) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *GetFile200Response) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetFile200Response) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GetFile200Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *GetFile200Response) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o GetFile200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetFile200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FileId) { + toSerialize["fileId"] = o.FileId + } + if !IsNil(o.S3Uri) { + toSerialize["s3Uri"] = o.S3Uri + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.ContentType) { + toSerialize["contentType"] = o.ContentType + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetFile200Response) UnmarshalJSON(data []byte) (err error) { + varGetFile200Response := _GetFile200Response{} + + err = json.Unmarshal(data, &varGetFile200Response) + + if err != nil { + return err + } + + *o = GetFile200Response(varGetFile200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fileId") + delete(additionalProperties, "s3Uri") + delete(additionalProperties, "url") + delete(additionalProperties, "filename") + delete(additionalProperties, "contentType") + delete(additionalProperties, "size") + delete(additionalProperties, "metadata") + delete(additionalProperties, "createdAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetFile200Response struct { + value *GetFile200Response + isSet bool +} + +func (v NullableGetFile200Response) Get() *GetFile200Response { + return v.value +} + +func (v *NullableGetFile200Response) Set(val *GetFile200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetFile200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetFile200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetFile200Response(val *GetFile200Response) *NullableGetFile200Response { + return &NullableGetFile200Response{value: val, isSet: true} +} + +func (v NullableGetFile200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetFile200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_ssh_access_credentials_200_response.go b/model_get_ssh_access_credentials_200_response.go index fc287c8..e1e1ec2 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.8.0 +API version: 4.9.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 79b985e..296c453 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..dfca345 --- /dev/null +++ b/model_get_task_200_response.go @@ -0,0 +1,1108 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the GetTask200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTask200Response{} + +// GetTask200Response struct for GetTask200Response +type GetTask200Response struct { + TaskId *string `json:"taskId,omitempty"` + OrgId *string `json:"orgId,omitempty"` + TaskListId NullableString `json:"taskListId,omitempty"` + Title *string `json:"title,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` + AssignedAgentId NullableString `json:"assignedAgentId,omitempty"` + CreatedByAgentId NullableString `json:"createdByAgentId,omitempty"` + DependsOn []string `json:"dependsOn,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + Progress *float32 `json:"progress,omitempty"` + ProgressMessage *string `json:"progressMessage,omitempty"` + // Task result data when completed + Result map[string]interface{} `json:"result,omitempty"` + // Error message if status is failed + Error NullableString `json:"error,omitempty"` + RetryCount *int32 `json:"retryCount,omitempty"` + MaxRetries *int32 `json:"maxRetries,omitempty"` + // Unix timestamp in milliseconds + CreatedAt *int64 `json:"createdAt,omitempty"` + // Unix timestamp in milliseconds + UpdatedAt *int64 `json:"updatedAt,omitempty"` + // When status changed to in_progress + StartedAt NullableInt64 `json:"startedAt,omitempty"` + // When task completed/failed/cancelled + CompletedAt NullableInt64 `json:"completedAt,omitempty"` + // TTL timestamp for completed tasks + ExpiresAt NullableInt64 `json:"expiresAt,omitempty"` + // Reason task is blocked + BlockedReason NullableString `json:"blockedReason,omitempty"` + // Task IDs that are blocking this task + BlockedByTaskIds []string `json:"blockedByTaskIds,omitempty"` + // When status changed to blocked + BlockedAt NullableInt64 `json:"blockedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetTask200Response GetTask200Response + +// NewGetTask200Response instantiates a new GetTask200Response 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 NewGetTask200Response() *GetTask200Response { + this := GetTask200Response{} + return &this +} + +// NewGetTask200ResponseWithDefaults instantiates a new GetTask200Response 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 NewGetTask200ResponseWithDefaults() *GetTask200Response { + this := GetTask200Response{} + return &this +} + +// GetTaskId returns the TaskId field value if set, zero value otherwise. +func (o *GetTask200Response) GetTaskId() string { + if o == nil || IsNil(o.TaskId) { + var ret string + return ret + } + return *o.TaskId +} + +// GetTaskIdOk returns a tuple with the TaskId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetTaskIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskId) { + return nil, false + } + return o.TaskId, true +} + +// HasTaskId returns a boolean if a field has been set. +func (o *GetTask200Response) HasTaskId() bool { + if o != nil && !IsNil(o.TaskId) { + return true + } + + return false +} + +// SetTaskId gets a reference to the given string and assigns it to the TaskId field. +func (o *GetTask200Response) SetTaskId(v string) { + o.TaskId = &v +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *GetTask200Response) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *GetTask200Response) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *GetTask200Response) SetOrgId(v string) { + o.OrgId = &v +} + +// GetTaskListId returns the TaskListId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetTaskListId() string { + if o == nil || IsNil(o.TaskListId.Get()) { + var ret string + return ret + } + return *o.TaskListId.Get() +} + +// GetTaskListIdOk returns a tuple with the TaskListId 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 *GetTask200Response) GetTaskListIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskListId.Get(), o.TaskListId.IsSet() +} + +// HasTaskListId returns a boolean if a field has been set. +func (o *GetTask200Response) HasTaskListId() bool { + if o != nil && o.TaskListId.IsSet() { + return true + } + + return false +} + +// SetTaskListId gets a reference to the given NullableString and assigns it to the TaskListId field. +func (o *GetTask200Response) SetTaskListId(v string) { + o.TaskListId.Set(&v) +} +// SetTaskListIdNil sets the value for TaskListId to be an explicit nil +func (o *GetTask200Response) SetTaskListIdNil() { + o.TaskListId.Set(nil) +} + +// UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +func (o *GetTask200Response) UnsetTaskListId() { + o.TaskListId.Unset() +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *GetTask200Response) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *GetTask200Response) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *GetTask200Response) SetTitle(v string) { + o.Title = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *GetTask200Response) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *GetTask200Response) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *GetTask200Response) SetDescription(v string) { + o.Description = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *GetTask200Response) 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 *GetTask200Response) 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 *GetTask200Response) 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 *GetTask200Response) SetStatus(v string) { + o.Status = &v +} + +// GetAssignedAgentId returns the AssignedAgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetAssignedAgentId() string { + if o == nil || IsNil(o.AssignedAgentId.Get()) { + var ret string + return ret + } + return *o.AssignedAgentId.Get() +} + +// GetAssignedAgentIdOk returns a tuple with the AssignedAgentId 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 *GetTask200Response) GetAssignedAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedAgentId.Get(), o.AssignedAgentId.IsSet() +} + +// HasAssignedAgentId returns a boolean if a field has been set. +func (o *GetTask200Response) HasAssignedAgentId() bool { + if o != nil && o.AssignedAgentId.IsSet() { + return true + } + + return false +} + +// SetAssignedAgentId gets a reference to the given NullableString and assigns it to the AssignedAgentId field. +func (o *GetTask200Response) SetAssignedAgentId(v string) { + o.AssignedAgentId.Set(&v) +} +// SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil +func (o *GetTask200Response) SetAssignedAgentIdNil() { + o.AssignedAgentId.Set(nil) +} + +// UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +func (o *GetTask200Response) UnsetAssignedAgentId() { + o.AssignedAgentId.Unset() +} + +// GetCreatedByAgentId returns the CreatedByAgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetCreatedByAgentId() string { + if o == nil || IsNil(o.CreatedByAgentId.Get()) { + var ret string + return ret + } + return *o.CreatedByAgentId.Get() +} + +// GetCreatedByAgentIdOk returns a tuple with the CreatedByAgentId 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 *GetTask200Response) GetCreatedByAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CreatedByAgentId.Get(), o.CreatedByAgentId.IsSet() +} + +// HasCreatedByAgentId returns a boolean if a field has been set. +func (o *GetTask200Response) HasCreatedByAgentId() bool { + if o != nil && o.CreatedByAgentId.IsSet() { + return true + } + + return false +} + +// SetCreatedByAgentId gets a reference to the given NullableString and assigns it to the CreatedByAgentId field. +func (o *GetTask200Response) SetCreatedByAgentId(v string) { + o.CreatedByAgentId.Set(&v) +} +// SetCreatedByAgentIdNil sets the value for CreatedByAgentId to be an explicit nil +func (o *GetTask200Response) SetCreatedByAgentIdNil() { + o.CreatedByAgentId.Set(nil) +} + +// UnsetCreatedByAgentId ensures that no value is present for CreatedByAgentId, not even an explicit nil +func (o *GetTask200Response) UnsetCreatedByAgentId() { + o.CreatedByAgentId.Unset() +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *GetTask200Response) GetDependsOn() []string { + if o == nil || IsNil(o.DependsOn) { + var ret []string + return ret + } + return o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetDependsOnOk() ([]string, bool) { + if o == nil || IsNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *GetTask200Response) HasDependsOn() bool { + if o != nil && !IsNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given []string and assigns it to the DependsOn field. +func (o *GetTask200Response) SetDependsOn(v []string) { + o.DependsOn = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *GetTask200Response) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *GetTask200Response) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GetTask200Response) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *GetTask200Response) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProgress returns the Progress field value if set, zero value otherwise. +func (o *GetTask200Response) GetProgress() float32 { + if o == nil || IsNil(o.Progress) { + var ret float32 + return ret + } + return *o.Progress +} + +// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetProgressOk() (*float32, bool) { + if o == nil || IsNil(o.Progress) { + return nil, false + } + return o.Progress, true +} + +// HasProgress returns a boolean if a field has been set. +func (o *GetTask200Response) HasProgress() bool { + if o != nil && !IsNil(o.Progress) { + return true + } + + return false +} + +// SetProgress gets a reference to the given float32 and assigns it to the Progress field. +func (o *GetTask200Response) SetProgress(v float32) { + o.Progress = &v +} + +// GetProgressMessage returns the ProgressMessage field value if set, zero value otherwise. +func (o *GetTask200Response) GetProgressMessage() string { + if o == nil || IsNil(o.ProgressMessage) { + var ret string + return ret + } + return *o.ProgressMessage +} + +// GetProgressMessageOk returns a tuple with the ProgressMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetProgressMessageOk() (*string, bool) { + if o == nil || IsNil(o.ProgressMessage) { + return nil, false + } + return o.ProgressMessage, true +} + +// HasProgressMessage returns a boolean if a field has been set. +func (o *GetTask200Response) HasProgressMessage() bool { + if o != nil && !IsNil(o.ProgressMessage) { + return true + } + + return false +} + +// SetProgressMessage gets a reference to the given string and assigns it to the ProgressMessage field. +func (o *GetTask200Response) SetProgressMessage(v string) { + o.ProgressMessage = &v +} + +// GetResult returns the Result field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetResult() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Result +} + +// GetResultOk returns a tuple with the Result 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 *GetTask200Response) GetResultOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Result) { + return map[string]interface{}{}, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *GetTask200Response) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given map[string]interface{} and assigns it to the Result field. +func (o *GetTask200Response) SetResult(v map[string]interface{}) { + o.Result = v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) 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 *GetTask200Response) 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 *GetTask200Response) 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 *GetTask200Response) SetError(v string) { + o.Error.Set(&v) +} +// SetErrorNil sets the value for Error to be an explicit nil +func (o *GetTask200Response) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *GetTask200Response) UnsetError() { + o.Error.Unset() +} + +// GetRetryCount returns the RetryCount field value if set, zero value otherwise. +func (o *GetTask200Response) GetRetryCount() int32 { + if o == nil || IsNil(o.RetryCount) { + var ret int32 + return ret + } + return *o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetRetryCountOk() (*int32, bool) { + if o == nil || IsNil(o.RetryCount) { + return nil, false + } + return o.RetryCount, true +} + +// HasRetryCount returns a boolean if a field has been set. +func (o *GetTask200Response) HasRetryCount() bool { + if o != nil && !IsNil(o.RetryCount) { + return true + } + + return false +} + +// SetRetryCount gets a reference to the given int32 and assigns it to the RetryCount field. +func (o *GetTask200Response) SetRetryCount(v int32) { + o.RetryCount = &v +} + +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise. +func (o *GetTask200Response) GetMaxRetries() int32 { + if o == nil || IsNil(o.MaxRetries) { + var ret int32 + return ret + } + return *o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetMaxRetriesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxRetries) { + return nil, false + } + return o.MaxRetries, true +} + +// HasMaxRetries returns a boolean if a field has been set. +func (o *GetTask200Response) HasMaxRetries() bool { + if o != nil && !IsNil(o.MaxRetries) { + return true + } + + return false +} + +// SetMaxRetries gets a reference to the given int32 and assigns it to the MaxRetries field. +func (o *GetTask200Response) SetMaxRetries(v int32) { + o.MaxRetries = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *GetTask200Response) GetCreatedAt() int64 { + if o == nil || IsNil(o.CreatedAt) { + var ret int64 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetCreatedAtOk() (*int64, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field. +func (o *GetTask200Response) SetCreatedAt(v int64) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *GetTask200Response) GetUpdatedAt() int64 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int64 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTask200Response) GetUpdatedAtOk() (*int64, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field. +func (o *GetTask200Response) SetUpdatedAt(v int64) { + o.UpdatedAt = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetStartedAt() int64 { + if o == nil || IsNil(o.StartedAt.Get()) { + var ret int64 + return ret + } + return *o.StartedAt.Get() +} + +// GetStartedAtOk returns a tuple with the StartedAt 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 *GetTask200Response) GetStartedAtOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.StartedAt.Get(), o.StartedAt.IsSet() +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasStartedAt() bool { + if o != nil && o.StartedAt.IsSet() { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given NullableInt64 and assigns it to the StartedAt field. +func (o *GetTask200Response) SetStartedAt(v int64) { + o.StartedAt.Set(&v) +} +// SetStartedAtNil sets the value for StartedAt to be an explicit nil +func (o *GetTask200Response) SetStartedAtNil() { + o.StartedAt.Set(nil) +} + +// UnsetStartedAt ensures that no value is present for StartedAt, not even an explicit nil +func (o *GetTask200Response) UnsetStartedAt() { + o.StartedAt.Unset() +} + +// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetCompletedAt() int64 { + if o == nil || IsNil(o.CompletedAt.Get()) { + var ret int64 + return ret + } + return *o.CompletedAt.Get() +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GetTask200Response) GetCompletedAtOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.CompletedAt.Get(), o.CompletedAt.IsSet() +} + +// HasCompletedAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasCompletedAt() bool { + if o != nil && o.CompletedAt.IsSet() { + return true + } + + return false +} + +// SetCompletedAt gets a reference to the given NullableInt64 and assigns it to the CompletedAt field. +func (o *GetTask200Response) SetCompletedAt(v int64) { + o.CompletedAt.Set(&v) +} +// SetCompletedAtNil sets the value for CompletedAt to be an explicit nil +func (o *GetTask200Response) SetCompletedAtNil() { + o.CompletedAt.Set(nil) +} + +// UnsetCompletedAt ensures that no value is present for CompletedAt, not even an explicit nil +func (o *GetTask200Response) UnsetCompletedAt() { + o.CompletedAt.Unset() +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetExpiresAt() int64 { + if o == nil || IsNil(o.ExpiresAt.Get()) { + var ret int64 + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt 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 *GetTask200Response) GetExpiresAtOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableInt64 and assigns it to the ExpiresAt field. +func (o *GetTask200Response) SetExpiresAt(v int64) { + o.ExpiresAt.Set(&v) +} +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *GetTask200Response) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *GetTask200Response) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// GetBlockedReason returns the BlockedReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetBlockedReason() string { + if o == nil || IsNil(o.BlockedReason.Get()) { + var ret string + return ret + } + return *o.BlockedReason.Get() +} + +// GetBlockedReasonOk returns a tuple with the BlockedReason 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 *GetTask200Response) GetBlockedReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BlockedReason.Get(), o.BlockedReason.IsSet() +} + +// HasBlockedReason returns a boolean if a field has been set. +func (o *GetTask200Response) HasBlockedReason() bool { + if o != nil && o.BlockedReason.IsSet() { + return true + } + + return false +} + +// SetBlockedReason gets a reference to the given NullableString and assigns it to the BlockedReason field. +func (o *GetTask200Response) SetBlockedReason(v string) { + o.BlockedReason.Set(&v) +} +// SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil +func (o *GetTask200Response) SetBlockedReasonNil() { + o.BlockedReason.Set(nil) +} + +// UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +func (o *GetTask200Response) UnsetBlockedReason() { + o.BlockedReason.Unset() +} + +// GetBlockedByTaskIds returns the BlockedByTaskIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetBlockedByTaskIds() []string { + if o == nil { + var ret []string + return ret + } + return o.BlockedByTaskIds +} + +// GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds 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 *GetTask200Response) GetBlockedByTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.BlockedByTaskIds) { + return nil, false + } + return o.BlockedByTaskIds, true +} + +// HasBlockedByTaskIds returns a boolean if a field has been set. +func (o *GetTask200Response) HasBlockedByTaskIds() bool { + if o != nil && !IsNil(o.BlockedByTaskIds) { + return true + } + + return false +} + +// SetBlockedByTaskIds gets a reference to the given []string and assigns it to the BlockedByTaskIds field. +func (o *GetTask200Response) SetBlockedByTaskIds(v []string) { + o.BlockedByTaskIds = v +} + +// GetBlockedAt returns the BlockedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GetTask200Response) GetBlockedAt() int64 { + if o == nil || IsNil(o.BlockedAt.Get()) { + var ret int64 + return ret + } + return *o.BlockedAt.Get() +} + +// GetBlockedAtOk returns a tuple with the BlockedAt 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 *GetTask200Response) GetBlockedAtOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.BlockedAt.Get(), o.BlockedAt.IsSet() +} + +// HasBlockedAt returns a boolean if a field has been set. +func (o *GetTask200Response) HasBlockedAt() bool { + if o != nil && o.BlockedAt.IsSet() { + return true + } + + return false +} + +// SetBlockedAt gets a reference to the given NullableInt64 and assigns it to the BlockedAt field. +func (o *GetTask200Response) SetBlockedAt(v int64) { + o.BlockedAt.Set(&v) +} +// SetBlockedAtNil sets the value for BlockedAt to be an explicit nil +func (o *GetTask200Response) SetBlockedAtNil() { + o.BlockedAt.Set(nil) +} + +// UnsetBlockedAt ensures that no value is present for BlockedAt, not even an explicit nil +func (o *GetTask200Response) UnsetBlockedAt() { + o.BlockedAt.Unset() +} + +func (o GetTask200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTask200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TaskId) { + toSerialize["taskId"] = o.TaskId + } + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if o.TaskListId.IsSet() { + toSerialize["taskListId"] = o.TaskListId.Get() + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.AssignedAgentId.IsSet() { + toSerialize["assignedAgentId"] = o.AssignedAgentId.Get() + } + if o.CreatedByAgentId.IsSet() { + toSerialize["createdByAgentId"] = o.CreatedByAgentId.Get() + } + if !IsNil(o.DependsOn) { + toSerialize["dependsOn"] = o.DependsOn + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Progress) { + toSerialize["progress"] = o.Progress + } + if !IsNil(o.ProgressMessage) { + toSerialize["progressMessage"] = o.ProgressMessage + } + if o.Result != nil { + toSerialize["result"] = o.Result + } + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + if !IsNil(o.RetryCount) { + toSerialize["retryCount"] = o.RetryCount + } + if !IsNil(o.MaxRetries) { + toSerialize["maxRetries"] = o.MaxRetries + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + if o.StartedAt.IsSet() { + toSerialize["startedAt"] = o.StartedAt.Get() + } + if o.CompletedAt.IsSet() { + toSerialize["completedAt"] = o.CompletedAt.Get() + } + if o.ExpiresAt.IsSet() { + toSerialize["expiresAt"] = o.ExpiresAt.Get() + } + if o.BlockedReason.IsSet() { + toSerialize["blockedReason"] = o.BlockedReason.Get() + } + if o.BlockedByTaskIds != nil { + toSerialize["blockedByTaskIds"] = o.BlockedByTaskIds + } + if o.BlockedAt.IsSet() { + toSerialize["blockedAt"] = o.BlockedAt.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetTask200Response) UnmarshalJSON(data []byte) (err error) { + varGetTask200Response := _GetTask200Response{} + + err = json.Unmarshal(data, &varGetTask200Response) + + if err != nil { + return err + } + + *o = GetTask200Response(varGetTask200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "taskId") + delete(additionalProperties, "orgId") + delete(additionalProperties, "taskListId") + delete(additionalProperties, "title") + delete(additionalProperties, "description") + delete(additionalProperties, "status") + delete(additionalProperties, "assignedAgentId") + delete(additionalProperties, "createdByAgentId") + delete(additionalProperties, "dependsOn") + delete(additionalProperties, "metadata") + delete(additionalProperties, "progress") + delete(additionalProperties, "progressMessage") + delete(additionalProperties, "result") + delete(additionalProperties, "error") + delete(additionalProperties, "retryCount") + delete(additionalProperties, "maxRetries") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "updatedAt") + delete(additionalProperties, "startedAt") + delete(additionalProperties, "completedAt") + delete(additionalProperties, "expiresAt") + delete(additionalProperties, "blockedReason") + delete(additionalProperties, "blockedByTaskIds") + delete(additionalProperties, "blockedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetTask200Response struct { + value *GetTask200Response + isSet bool +} + +func (v NullableGetTask200Response) Get() *GetTask200Response { + return v.value +} + +func (v *NullableGetTask200Response) Set(val *GetTask200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetTask200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTask200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTask200Response(val *GetTask200Response) *NullableGetTask200Response { + return &NullableGetTask200Response{value: val, isSet: true} +} + +func (v NullableGetTask200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTask200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_vector_collection_200_response.go b/model_get_vector_collection_200_response.go index 0d32a94..5c6556f 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.8.0 +API version: 4.9.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 7fd61ec..07210c9 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.8.0 +API version: 4.9.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 4d2bb3e..d6a8c8b 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.8.0 +API version: 4.9.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 bdb2971..d16c9eb 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.8.0 +API version: 4.9.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 14b22aa..d3af5e8 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.8.0 +API version: 4.9.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 12fc531..9edf6eb 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.8.0 +API version: 4.9.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 8fbdf67..aa9661e 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.8.0 +API version: 4.9.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 3d17fdf..93d8cb6 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.8.0 +API version: 4.9.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 0aa1745..f7718ce 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.8.0 +API version: 4.9.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 6894955..a1edd2a 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.8.0 +API version: 4.9.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 9cc2391..bac48e4 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.8.0 +API version: 4.9.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 c8dbf67..8cff083 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.8.0 +API version: 4.9.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 fdac642..59d22b6 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.8.0 +API version: 4.9.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 9947ca0..a1cc627 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.8.0 +API version: 4.9.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 e54f5df..9a81539 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_list_ai_agents_200_response.go b/model_list_ai_agents_200_response.go index a0f8999..9603a17 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.8.0 +API version: 4.9.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 1f99223..058100b 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.8.0 +API version: 4.9.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 9982058..d72220e 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.8.0 +API version: 4.9.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 8a1672d..14bec93 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.8.0 +API version: 4.9.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 c9acb0b..761c5d4 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.8.0 +API version: 4.9.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 c069b56..0f48e8b 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.8.0 +API version: 4.9.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 47ef6cf..364893a 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.8.0 +API version: 4.9.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 567f0a6..9427bca 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.8.0 +API version: 4.9.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 0307c76..6f4e367 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.8.0 +API version: 4.9.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 330a891..0e53d2b 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.8.0 +API version: 4.9.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 6067466..b3deb06 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.8.0 +API version: 4.9.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 cf7b69d..8d2916f 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.8.0 +API version: 4.9.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 db2e408..85d8a9f 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.8.0 +API version: 4.9.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 c3603ed..35a0ef2 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.8.0 +API version: 4.9.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 b0f2449..80ec864 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.8.0 +API version: 4.9.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 3794bbc..1ba634d 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.8.0 +API version: 4.9.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 2a0fd8a..ead1baf 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.8.0 +API version: 4.9.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 374762f..d92a468 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..df61a48 --- /dev/null +++ b/model_list_files_200_response.go @@ -0,0 +1,241 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListFiles200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFiles200Response{} + +// ListFiles200Response struct for ListFiles200Response +type ListFiles200Response struct { + Files []ListFiles200ResponseFilesInner `json:"files,omitempty"` + // Cursor for next page + NextCursor NullableString `json:"nextCursor,omitempty"` + // True if more results available + HasMore *bool `json:"hasMore,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListFiles200Response ListFiles200Response + +// NewListFiles200Response instantiates a new ListFiles200Response 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 NewListFiles200Response() *ListFiles200Response { + this := ListFiles200Response{} + return &this +} + +// NewListFiles200ResponseWithDefaults instantiates a new ListFiles200Response 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 NewListFiles200ResponseWithDefaults() *ListFiles200Response { + this := ListFiles200Response{} + return &this +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *ListFiles200Response) GetFiles() []ListFiles200ResponseFilesInner { + if o == nil || IsNil(o.Files) { + var ret []ListFiles200ResponseFilesInner + return ret + } + return o.Files +} + +// GetFilesOk returns a tuple with the Files field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200Response) GetFilesOk() ([]ListFiles200ResponseFilesInner, bool) { + if o == nil || IsNil(o.Files) { + return nil, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *ListFiles200Response) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given []ListFiles200ResponseFilesInner and assigns it to the Files field. +func (o *ListFiles200Response) SetFiles(v []ListFiles200ResponseFilesInner) { + o.Files = v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListFiles200Response) 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 *ListFiles200Response) 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 *ListFiles200Response) 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 *ListFiles200Response) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} +// SetNextCursorNil sets the value for NextCursor to be an explicit nil +func (o *ListFiles200Response) SetNextCursorNil() { + o.NextCursor.Set(nil) +} + +// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +func (o *ListFiles200Response) UnsetNextCursor() { + o.NextCursor.Unset() +} + +// GetHasMore returns the HasMore field value if set, zero value otherwise. +func (o *ListFiles200Response) GetHasMore() bool { + if o == nil || IsNil(o.HasMore) { + var ret bool + return ret + } + return *o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200Response) GetHasMoreOk() (*bool, bool) { + if o == nil || IsNil(o.HasMore) { + return nil, false + } + return o.HasMore, true +} + +// HasHasMore returns a boolean if a field has been set. +func (o *ListFiles200Response) HasHasMore() bool { + if o != nil && !IsNil(o.HasMore) { + return true + } + + return false +} + +// SetHasMore gets a reference to the given bool and assigns it to the HasMore field. +func (o *ListFiles200Response) SetHasMore(v bool) { + o.HasMore = &v +} + +func (o ListFiles200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFiles200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if o.NextCursor.IsSet() { + toSerialize["nextCursor"] = o.NextCursor.Get() + } + if !IsNil(o.HasMore) { + toSerialize["hasMore"] = o.HasMore + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListFiles200Response) UnmarshalJSON(data []byte) (err error) { + varListFiles200Response := _ListFiles200Response{} + + err = json.Unmarshal(data, &varListFiles200Response) + + if err != nil { + return err + } + + *o = ListFiles200Response(varListFiles200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "files") + delete(additionalProperties, "nextCursor") + delete(additionalProperties, "hasMore") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListFiles200Response struct { + value *ListFiles200Response + isSet bool +} + +func (v NullableListFiles200Response) Get() *ListFiles200Response { + return v.value +} + +func (v *NullableListFiles200Response) Set(val *ListFiles200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListFiles200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListFiles200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFiles200Response(val *ListFiles200Response) *NullableListFiles200Response { + return &NullableListFiles200Response{value: val, isSet: true} +} + +func (v NullableListFiles200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFiles200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_files_200_response_files_inner.go b/model_list_files_200_response_files_inner.go new file mode 100644 index 0000000..195da99 --- /dev/null +++ b/model_list_files_200_response_files_inner.go @@ -0,0 +1,341 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the ListFiles200ResponseFilesInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFiles200ResponseFilesInner{} + +// ListFiles200ResponseFilesInner struct for ListFiles200ResponseFilesInner +type ListFiles200ResponseFilesInner struct { + FileId *string `json:"fileId,omitempty"` + Filename *string `json:"filename,omitempty"` + ContentType *string `json:"contentType,omitempty"` + Size *int32 `json:"size,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListFiles200ResponseFilesInner ListFiles200ResponseFilesInner + +// NewListFiles200ResponseFilesInner instantiates a new ListFiles200ResponseFilesInner 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 NewListFiles200ResponseFilesInner() *ListFiles200ResponseFilesInner { + this := ListFiles200ResponseFilesInner{} + return &this +} + +// NewListFiles200ResponseFilesInnerWithDefaults instantiates a new ListFiles200ResponseFilesInner 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 NewListFiles200ResponseFilesInnerWithDefaults() *ListFiles200ResponseFilesInner { + this := ListFiles200ResponseFilesInner{} + return &this +} + +// GetFileId returns the FileId field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetFileId() string { + if o == nil || IsNil(o.FileId) { + var ret string + return ret + } + return *o.FileId +} + +// GetFileIdOk returns a tuple with the FileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200ResponseFilesInner) GetFileIdOk() (*string, bool) { + if o == nil || IsNil(o.FileId) { + return nil, false + } + return o.FileId, true +} + +// HasFileId returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasFileId() bool { + if o != nil && !IsNil(o.FileId) { + return true + } + + return false +} + +// SetFileId gets a reference to the given string and assigns it to the FileId field. +func (o *ListFiles200ResponseFilesInner) SetFileId(v string) { + o.FileId = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200ResponseFilesInner) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *ListFiles200ResponseFilesInner) SetFilename(v string) { + o.Filename = &v +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetContentType() string { + if o == nil || IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200ResponseFilesInner) GetContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasContentType() bool { + if o != nil && !IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *ListFiles200ResponseFilesInner) SetContentType(v string) { + o.ContentType = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200ResponseFilesInner) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ListFiles200ResponseFilesInner) SetSize(v int32) { + o.Size = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *ListFiles200ResponseFilesInner) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *ListFiles200ResponseFilesInner) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ListFiles200ResponseFilesInner) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListFiles200ResponseFilesInner) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ListFiles200ResponseFilesInner) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ListFiles200ResponseFilesInner) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o ListFiles200ResponseFilesInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFiles200ResponseFilesInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FileId) { + toSerialize["fileId"] = o.FileId + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.ContentType) { + toSerialize["contentType"] = o.ContentType + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListFiles200ResponseFilesInner) UnmarshalJSON(data []byte) (err error) { + varListFiles200ResponseFilesInner := _ListFiles200ResponseFilesInner{} + + err = json.Unmarshal(data, &varListFiles200ResponseFilesInner) + + if err != nil { + return err + } + + *o = ListFiles200ResponseFilesInner(varListFiles200ResponseFilesInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fileId") + delete(additionalProperties, "filename") + delete(additionalProperties, "contentType") + delete(additionalProperties, "size") + delete(additionalProperties, "metadata") + delete(additionalProperties, "createdAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListFiles200ResponseFilesInner struct { + value *ListFiles200ResponseFilesInner + isSet bool +} + +func (v NullableListFiles200ResponseFilesInner) Get() *ListFiles200ResponseFilesInner { + return v.value +} + +func (v *NullableListFiles200ResponseFilesInner) Set(val *ListFiles200ResponseFilesInner) { + v.value = val + v.isSet = true +} + +func (v NullableListFiles200ResponseFilesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListFiles200ResponseFilesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFiles200ResponseFilesInner(val *ListFiles200ResponseFilesInner) *NullableListFiles200ResponseFilesInner { + return &NullableListFiles200ResponseFilesInner{value: val, isSet: true} +} + +func (v NullableListFiles200ResponseFilesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFiles200ResponseFilesInner) 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 new file mode 100644 index 0000000..1d6d2f7 --- /dev/null +++ b/model_list_tasks_200_response.go @@ -0,0 +1,268 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListTasks200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListTasks200Response{} + +// ListTasks200Response struct for ListTasks200Response +type ListTasks200Response struct { + Tasks []ListTasks200ResponseTasksInner `json:"tasks,omitempty"` + // Task IDs (only with dependsOn filter) + TaskIds []string `json:"taskIds,omitempty"` + Count *int32 `json:"count,omitempty"` + // The queried task ID (only with dependsOn filter) + DependsOn *string `json:"dependsOn,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListTasks200Response ListTasks200Response + +// NewListTasks200Response instantiates a new ListTasks200Response 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 NewListTasks200Response() *ListTasks200Response { + this := ListTasks200Response{} + return &this +} + +// NewListTasks200ResponseWithDefaults instantiates a new ListTasks200Response 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 NewListTasks200ResponseWithDefaults() *ListTasks200Response { + this := ListTasks200Response{} + return &this +} + +// GetTasks returns the Tasks field value if set, zero value otherwise. +func (o *ListTasks200Response) GetTasks() []ListTasks200ResponseTasksInner { + if o == nil || IsNil(o.Tasks) { + var ret []ListTasks200ResponseTasksInner + return ret + } + return o.Tasks +} + +// GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200Response) GetTasksOk() ([]ListTasks200ResponseTasksInner, bool) { + if o == nil || IsNil(o.Tasks) { + return nil, false + } + return o.Tasks, true +} + +// HasTasks returns a boolean if a field has been set. +func (o *ListTasks200Response) HasTasks() bool { + if o != nil && !IsNil(o.Tasks) { + return true + } + + return false +} + +// SetTasks gets a reference to the given []ListTasks200ResponseTasksInner and assigns it to the Tasks field. +func (o *ListTasks200Response) SetTasks(v []ListTasks200ResponseTasksInner) { + o.Tasks = v +} + +// GetTaskIds returns the TaskIds field value if set, zero value otherwise. +func (o *ListTasks200Response) GetTaskIds() []string { + if o == nil || IsNil(o.TaskIds) { + var ret []string + return ret + } + return o.TaskIds +} + +// GetTaskIdsOk returns a tuple with the TaskIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200Response) GetTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.TaskIds) { + return nil, false + } + return o.TaskIds, true +} + +// HasTaskIds returns a boolean if a field has been set. +func (o *ListTasks200Response) HasTaskIds() bool { + if o != nil && !IsNil(o.TaskIds) { + return true + } + + return false +} + +// SetTaskIds gets a reference to the given []string and assigns it to the TaskIds field. +func (o *ListTasks200Response) SetTaskIds(v []string) { + o.TaskIds = v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *ListTasks200Response) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200Response) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *ListTasks200Response) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *ListTasks200Response) SetCount(v int32) { + o.Count = &v +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *ListTasks200Response) GetDependsOn() string { + if o == nil || IsNil(o.DependsOn) { + var ret string + return ret + } + return *o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200Response) GetDependsOnOk() (*string, bool) { + if o == nil || IsNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *ListTasks200Response) HasDependsOn() bool { + if o != nil && !IsNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given string and assigns it to the DependsOn field. +func (o *ListTasks200Response) SetDependsOn(v string) { + o.DependsOn = &v +} + +func (o ListTasks200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListTasks200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Tasks) { + toSerialize["tasks"] = o.Tasks + } + if !IsNil(o.TaskIds) { + toSerialize["taskIds"] = o.TaskIds + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.DependsOn) { + toSerialize["dependsOn"] = o.DependsOn + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListTasks200Response) UnmarshalJSON(data []byte) (err error) { + varListTasks200Response := _ListTasks200Response{} + + err = json.Unmarshal(data, &varListTasks200Response) + + if err != nil { + return err + } + + *o = ListTasks200Response(varListTasks200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tasks") + delete(additionalProperties, "taskIds") + delete(additionalProperties, "count") + delete(additionalProperties, "dependsOn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListTasks200Response struct { + value *ListTasks200Response + isSet bool +} + +func (v NullableListTasks200Response) Get() *ListTasks200Response { + return v.value +} + +func (v *NullableListTasks200Response) Set(val *ListTasks200Response) { + v.value = val + v.isSet = true +} + +func (v NullableListTasks200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableListTasks200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListTasks200Response(val *ListTasks200Response) *NullableListTasks200Response { + return &NullableListTasks200Response{value: val, isSet: true} +} + +func (v NullableListTasks200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListTasks200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_tasks_200_response_tasks_inner.go b/model_list_tasks_200_response_tasks_inner.go new file mode 100644 index 0000000..5a5dcd6 --- /dev/null +++ b/model_list_tasks_200_response_tasks_inner.go @@ -0,0 +1,593 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the ListTasks200ResponseTasksInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListTasks200ResponseTasksInner{} + +// ListTasks200ResponseTasksInner struct for ListTasks200ResponseTasksInner +type ListTasks200ResponseTasksInner struct { + TaskId *string `json:"taskId,omitempty"` + OrgId *string `json:"orgId,omitempty"` + TaskListId NullableString `json:"taskListId,omitempty"` + Title *string `json:"title,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` + AssignedAgentId NullableString `json:"assignedAgentId,omitempty"` + Progress *float32 `json:"progress,omitempty"` + BlockedReason NullableString `json:"blockedReason,omitempty"` + BlockedByTaskIds []string `json:"blockedByTaskIds,omitempty"` + CreatedAt *int32 `json:"createdAt,omitempty"` + UpdatedAt *int32 `json:"updatedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListTasks200ResponseTasksInner ListTasks200ResponseTasksInner + +// NewListTasks200ResponseTasksInner instantiates a new ListTasks200ResponseTasksInner 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 NewListTasks200ResponseTasksInner() *ListTasks200ResponseTasksInner { + this := ListTasks200ResponseTasksInner{} + return &this +} + +// NewListTasks200ResponseTasksInnerWithDefaults instantiates a new ListTasks200ResponseTasksInner 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 NewListTasks200ResponseTasksInnerWithDefaults() *ListTasks200ResponseTasksInner { + this := ListTasks200ResponseTasksInner{} + return &this +} + +// GetTaskId returns the TaskId field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetTaskId() string { + if o == nil || IsNil(o.TaskId) { + var ret string + return ret + } + return *o.TaskId +} + +// GetTaskIdOk returns a tuple with the TaskId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetTaskIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskId) { + return nil, false + } + return o.TaskId, true +} + +// HasTaskId returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasTaskId() bool { + if o != nil && !IsNil(o.TaskId) { + return true + } + + return false +} + +// SetTaskId gets a reference to the given string and assigns it to the TaskId field. +func (o *ListTasks200ResponseTasksInner) SetTaskId(v string) { + o.TaskId = &v +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *ListTasks200ResponseTasksInner) SetOrgId(v string) { + o.OrgId = &v +} + +// GetTaskListId returns the TaskListId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListTasks200ResponseTasksInner) GetTaskListId() string { + if o == nil || IsNil(o.TaskListId.Get()) { + var ret string + return ret + } + return *o.TaskListId.Get() +} + +// GetTaskListIdOk returns a tuple with the TaskListId 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 *ListTasks200ResponseTasksInner) GetTaskListIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskListId.Get(), o.TaskListId.IsSet() +} + +// HasTaskListId returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasTaskListId() bool { + if o != nil && o.TaskListId.IsSet() { + return true + } + + return false +} + +// SetTaskListId gets a reference to the given NullableString and assigns it to the TaskListId field. +func (o *ListTasks200ResponseTasksInner) SetTaskListId(v string) { + o.TaskListId.Set(&v) +} +// SetTaskListIdNil sets the value for TaskListId to be an explicit nil +func (o *ListTasks200ResponseTasksInner) SetTaskListIdNil() { + o.TaskListId.Set(nil) +} + +// UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +func (o *ListTasks200ResponseTasksInner) UnsetTaskListId() { + o.TaskListId.Unset() +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ListTasks200ResponseTasksInner) SetTitle(v string) { + o.Title = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ListTasks200ResponseTasksInner) SetDescription(v string) { + o.Description = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) 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 *ListTasks200ResponseTasksInner) 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 *ListTasks200ResponseTasksInner) 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 *ListTasks200ResponseTasksInner) SetStatus(v string) { + o.Status = &v +} + +// GetAssignedAgentId returns the AssignedAgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListTasks200ResponseTasksInner) GetAssignedAgentId() string { + if o == nil || IsNil(o.AssignedAgentId.Get()) { + var ret string + return ret + } + return *o.AssignedAgentId.Get() +} + +// GetAssignedAgentIdOk returns a tuple with the AssignedAgentId 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 *ListTasks200ResponseTasksInner) GetAssignedAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedAgentId.Get(), o.AssignedAgentId.IsSet() +} + +// HasAssignedAgentId returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasAssignedAgentId() bool { + if o != nil && o.AssignedAgentId.IsSet() { + return true + } + + return false +} + +// SetAssignedAgentId gets a reference to the given NullableString and assigns it to the AssignedAgentId field. +func (o *ListTasks200ResponseTasksInner) SetAssignedAgentId(v string) { + o.AssignedAgentId.Set(&v) +} +// SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil +func (o *ListTasks200ResponseTasksInner) SetAssignedAgentIdNil() { + o.AssignedAgentId.Set(nil) +} + +// UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +func (o *ListTasks200ResponseTasksInner) UnsetAssignedAgentId() { + o.AssignedAgentId.Unset() +} + +// GetProgress returns the Progress field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetProgress() float32 { + if o == nil || IsNil(o.Progress) { + var ret float32 + return ret + } + return *o.Progress +} + +// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetProgressOk() (*float32, bool) { + if o == nil || IsNil(o.Progress) { + return nil, false + } + return o.Progress, true +} + +// HasProgress returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasProgress() bool { + if o != nil && !IsNil(o.Progress) { + return true + } + + return false +} + +// SetProgress gets a reference to the given float32 and assigns it to the Progress field. +func (o *ListTasks200ResponseTasksInner) SetProgress(v float32) { + o.Progress = &v +} + +// GetBlockedReason returns the BlockedReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListTasks200ResponseTasksInner) GetBlockedReason() string { + if o == nil || IsNil(o.BlockedReason.Get()) { + var ret string + return ret + } + return *o.BlockedReason.Get() +} + +// GetBlockedReasonOk returns a tuple with the BlockedReason 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 *ListTasks200ResponseTasksInner) GetBlockedReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BlockedReason.Get(), o.BlockedReason.IsSet() +} + +// HasBlockedReason returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasBlockedReason() bool { + if o != nil && o.BlockedReason.IsSet() { + return true + } + + return false +} + +// SetBlockedReason gets a reference to the given NullableString and assigns it to the BlockedReason field. +func (o *ListTasks200ResponseTasksInner) SetBlockedReason(v string) { + o.BlockedReason.Set(&v) +} +// SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil +func (o *ListTasks200ResponseTasksInner) SetBlockedReasonNil() { + o.BlockedReason.Set(nil) +} + +// UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +func (o *ListTasks200ResponseTasksInner) UnsetBlockedReason() { + o.BlockedReason.Unset() +} + +// GetBlockedByTaskIds returns the BlockedByTaskIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ListTasks200ResponseTasksInner) GetBlockedByTaskIds() []string { + if o == nil { + var ret []string + return ret + } + return o.BlockedByTaskIds +} + +// GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds 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 *ListTasks200ResponseTasksInner) GetBlockedByTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.BlockedByTaskIds) { + return nil, false + } + return o.BlockedByTaskIds, true +} + +// HasBlockedByTaskIds returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasBlockedByTaskIds() bool { + if o != nil && !IsNil(o.BlockedByTaskIds) { + return true + } + + return false +} + +// SetBlockedByTaskIds gets a reference to the given []string and assigns it to the BlockedByTaskIds field. +func (o *ListTasks200ResponseTasksInner) SetBlockedByTaskIds(v []string) { + o.BlockedByTaskIds = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetCreatedAt() int32 { + if o == nil || IsNil(o.CreatedAt) { + var ret int32 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetCreatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. +func (o *ListTasks200ResponseTasksInner) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *ListTasks200ResponseTasksInner) GetUpdatedAt() int32 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int32 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTasks200ResponseTasksInner) GetUpdatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *ListTasks200ResponseTasksInner) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int32 and assigns it to the UpdatedAt field. +func (o *ListTasks200ResponseTasksInner) SetUpdatedAt(v int32) { + o.UpdatedAt = &v +} + +func (o ListTasks200ResponseTasksInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListTasks200ResponseTasksInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TaskId) { + toSerialize["taskId"] = o.TaskId + } + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if o.TaskListId.IsSet() { + toSerialize["taskListId"] = o.TaskListId.Get() + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.AssignedAgentId.IsSet() { + toSerialize["assignedAgentId"] = o.AssignedAgentId.Get() + } + if !IsNil(o.Progress) { + toSerialize["progress"] = o.Progress + } + if o.BlockedReason.IsSet() { + toSerialize["blockedReason"] = o.BlockedReason.Get() + } + if o.BlockedByTaskIds != nil { + toSerialize["blockedByTaskIds"] = o.BlockedByTaskIds + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListTasks200ResponseTasksInner) UnmarshalJSON(data []byte) (err error) { + varListTasks200ResponseTasksInner := _ListTasks200ResponseTasksInner{} + + err = json.Unmarshal(data, &varListTasks200ResponseTasksInner) + + if err != nil { + return err + } + + *o = ListTasks200ResponseTasksInner(varListTasks200ResponseTasksInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "taskId") + delete(additionalProperties, "orgId") + delete(additionalProperties, "taskListId") + delete(additionalProperties, "title") + delete(additionalProperties, "description") + delete(additionalProperties, "status") + delete(additionalProperties, "assignedAgentId") + delete(additionalProperties, "progress") + delete(additionalProperties, "blockedReason") + delete(additionalProperties, "blockedByTaskIds") + delete(additionalProperties, "createdAt") + delete(additionalProperties, "updatedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListTasks200ResponseTasksInner struct { + value *ListTasks200ResponseTasksInner + isSet bool +} + +func (v NullableListTasks200ResponseTasksInner) Get() *ListTasks200ResponseTasksInner { + return v.value +} + +func (v *NullableListTasks200ResponseTasksInner) Set(val *ListTasks200ResponseTasksInner) { + v.value = val + v.isSet = true +} + +func (v NullableListTasks200ResponseTasksInner) IsSet() bool { + return v.isSet +} + +func (v *NullableListTasks200ResponseTasksInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListTasks200ResponseTasksInner(val *ListTasks200ResponseTasksInner) *NullableListTasks200ResponseTasksInner { + return &NullableListTasks200ResponseTasksInner{value: val, isSet: true} +} + +func (v NullableListTasks200ResponseTasksInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListTasks200ResponseTasksInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_list_vector_collections_200_response.go b/model_list_vector_collections_200_response.go index fcb7c63..3799558 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.8.0 +API version: 4.9.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 1098829..cbf83eb 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.8.0 +API version: 4.9.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 f7fe43d..97055bc 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.8.0 +API version: 4.9.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 ced9113..291629d 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.8.0 +API version: 4.9.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 037d586..753c16e 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.8.0 +API version: 4.9.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 4eec143..abf18d0 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.8.0 +API version: 4.9.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 d0bbff9..668e8fe 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.8.0 +API version: 4.9.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 3316d1c..0956b6e 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.8.0 +API version: 4.9.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 e893d89..4fa6d09 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.8.0 +API version: 4.9.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 d978547..42f018a 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,22 @@ var _ MappedNullable = &QueryVectorCollection200Response{} // QueryVectorCollection200Response struct for QueryVectorCollection200Response type QueryVectorCollection200Response struct { Results []QueryVectorCollection200ResponseResultsInner `json:"results,omitempty"` - Query *string `json:"query,omitempty"` + // Original query text (null if vector or metadata search was used) + Query NullableString `json:"query,omitempty"` + // Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata) + SearchMode *string `json:"searchMode,omitempty"` + // Filter that was applied (if any) + Filter map[string]interface{} `json:"filter,omitempty"` + // Number of results returned Count *int32 `json:"count,omitempty"` + // Query execution time in milliseconds ExecutionTimeMs *int32 `json:"executionTimeMs,omitempty"` + CollectionId *string `json:"collectionId,omitempty"` + // True if more results available (listByMetadata mode only) + HasMore *bool `json:"hasMore,omitempty"` + // Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode. + NextCursor NullableString `json:"nextCursor,omitempty"` + Pagination NullableQueryVectorCollection200ResponsePagination `json:"pagination,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,36 +90,111 @@ func (o *QueryVectorCollection200Response) SetResults(v []QueryVectorCollection2 o.Results = v } -// GetQuery returns the Query field value if set, zero value otherwise. +// GetQuery returns the Query field value if set, zero value otherwise (both if not set or set to explicit null). func (o *QueryVectorCollection200Response) GetQuery() string { - if o == nil || IsNil(o.Query) { + if o == nil || IsNil(o.Query.Get()) { var ret string return ret } - return *o.Query + return *o.Query.Get() } // GetQueryOk returns a tuple with the Query 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 *QueryVectorCollection200Response) GetQueryOk() (*string, bool) { - if o == nil || IsNil(o.Query) { + if o == nil { return nil, false } - return o.Query, true + return o.Query.Get(), o.Query.IsSet() } // HasQuery returns a boolean if a field has been set. func (o *QueryVectorCollection200Response) HasQuery() bool { - if o != nil && !IsNil(o.Query) { + if o != nil && o.Query.IsSet() { return true } return false } -// SetQuery gets a reference to the given string and assigns it to the Query field. +// SetQuery gets a reference to the given NullableString and assigns it to the Query field. func (o *QueryVectorCollection200Response) SetQuery(v string) { - o.Query = &v + o.Query.Set(&v) +} +// SetQueryNil sets the value for Query to be an explicit nil +func (o *QueryVectorCollection200Response) SetQueryNil() { + o.Query.Set(nil) +} + +// UnsetQuery ensures that no value is present for Query, not even an explicit nil +func (o *QueryVectorCollection200Response) UnsetQuery() { + o.Query.Unset() +} + +// GetSearchMode returns the SearchMode field value if set, zero value otherwise. +func (o *QueryVectorCollection200Response) GetSearchMode() string { + if o == nil || IsNil(o.SearchMode) { + var ret string + return ret + } + return *o.SearchMode +} + +// GetSearchModeOk returns a tuple with the SearchMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200Response) GetSearchModeOk() (*string, bool) { + if o == nil || IsNil(o.SearchMode) { + return nil, false + } + return o.SearchMode, true +} + +// HasSearchMode returns a boolean if a field has been set. +func (o *QueryVectorCollection200Response) HasSearchMode() bool { + if o != nil && !IsNil(o.SearchMode) { + return true + } + + return false +} + +// SetSearchMode gets a reference to the given string and assigns it to the SearchMode field. +func (o *QueryVectorCollection200Response) SetSearchMode(v string) { + o.SearchMode = &v +} + +// GetFilter returns the Filter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QueryVectorCollection200Response) GetFilter() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Filter +} + +// GetFilterOk returns a tuple with the Filter 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 *QueryVectorCollection200Response) GetFilterOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Filter) { + return map[string]interface{}{}, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *QueryVectorCollection200Response) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given map[string]interface{} and assigns it to the Filter field. +func (o *QueryVectorCollection200Response) SetFilter(v map[string]interface{}) { + o.Filter = v } // GetCount returns the Count field value if set, zero value otherwise. @@ -173,6 +261,154 @@ func (o *QueryVectorCollection200Response) SetExecutionTimeMs(v int32) { o.ExecutionTimeMs = &v } +// GetCollectionId returns the CollectionId field value if set, zero value otherwise. +func (o *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) SetCollectionId(v string) { + o.CollectionId = &v +} + +// GetHasMore returns the HasMore field value if set, zero value otherwise. +func (o *QueryVectorCollection200Response) GetHasMore() bool { + if o == nil || IsNil(o.HasMore) { + var ret bool + return ret + } + return *o.HasMore +} + +// GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200Response) GetHasMoreOk() (*bool, bool) { + if o == nil || IsNil(o.HasMore) { + return nil, false + } + return o.HasMore, true +} + +// HasHasMore returns a boolean if a field has been set. +func (o *QueryVectorCollection200Response) HasHasMore() bool { + if o != nil && !IsNil(o.HasMore) { + return true + } + + return false +} + +// SetHasMore gets a reference to the given bool and assigns it to the HasMore field. +func (o *QueryVectorCollection200Response) SetHasMore(v bool) { + o.HasMore = &v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) 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 *QueryVectorCollection200Response) SetNextCursor(v string) { + o.NextCursor.Set(&v) +} +// SetNextCursorNil sets the value for NextCursor to be an explicit nil +func (o *QueryVectorCollection200Response) SetNextCursorNil() { + o.NextCursor.Set(nil) +} + +// UnsetNextCursor ensures that no value is present for NextCursor, not even an explicit nil +func (o *QueryVectorCollection200Response) UnsetNextCursor() { + o.NextCursor.Unset() +} + +// GetPagination returns the Pagination field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *QueryVectorCollection200Response) GetPagination() QueryVectorCollection200ResponsePagination { + if o == nil || IsNil(o.Pagination.Get()) { + var ret QueryVectorCollection200ResponsePagination + return ret + } + return *o.Pagination.Get() +} + +// GetPaginationOk returns a tuple with the Pagination 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 *QueryVectorCollection200Response) GetPaginationOk() (*QueryVectorCollection200ResponsePagination, bool) { + if o == nil { + return nil, false + } + return o.Pagination.Get(), o.Pagination.IsSet() +} + +// HasPagination returns a boolean if a field has been set. +func (o *QueryVectorCollection200Response) HasPagination() bool { + if o != nil && o.Pagination.IsSet() { + return true + } + + return false +} + +// SetPagination gets a reference to the given NullableQueryVectorCollection200ResponsePagination and assigns it to the Pagination field. +func (o *QueryVectorCollection200Response) SetPagination(v QueryVectorCollection200ResponsePagination) { + o.Pagination.Set(&v) +} +// SetPaginationNil sets the value for Pagination to be an explicit nil +func (o *QueryVectorCollection200Response) SetPaginationNil() { + o.Pagination.Set(nil) +} + +// UnsetPagination ensures that no value is present for Pagination, not even an explicit nil +func (o *QueryVectorCollection200Response) UnsetPagination() { + o.Pagination.Unset() +} + func (o QueryVectorCollection200Response) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -186,8 +422,14 @@ func (o QueryVectorCollection200Response) ToMap() (map[string]interface{}, error if !IsNil(o.Results) { toSerialize["results"] = o.Results } - if !IsNil(o.Query) { - toSerialize["query"] = o.Query + if o.Query.IsSet() { + toSerialize["query"] = o.Query.Get() + } + if !IsNil(o.SearchMode) { + toSerialize["searchMode"] = o.SearchMode + } + if o.Filter != nil { + toSerialize["filter"] = o.Filter } if !IsNil(o.Count) { toSerialize["count"] = o.Count @@ -195,6 +437,18 @@ func (o QueryVectorCollection200Response) ToMap() (map[string]interface{}, error if !IsNil(o.ExecutionTimeMs) { toSerialize["executionTimeMs"] = o.ExecutionTimeMs } + if !IsNil(o.CollectionId) { + toSerialize["collectionId"] = o.CollectionId + } + if !IsNil(o.HasMore) { + toSerialize["hasMore"] = o.HasMore + } + if o.NextCursor.IsSet() { + toSerialize["nextCursor"] = o.NextCursor.Get() + } + if o.Pagination.IsSet() { + toSerialize["pagination"] = o.Pagination.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -219,8 +473,14 @@ func (o *QueryVectorCollection200Response) UnmarshalJSON(data []byte) (err error if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "results") delete(additionalProperties, "query") + delete(additionalProperties, "searchMode") + delete(additionalProperties, "filter") delete(additionalProperties, "count") delete(additionalProperties, "executionTimeMs") + delete(additionalProperties, "collectionId") + delete(additionalProperties, "hasMore") + delete(additionalProperties, "nextCursor") + delete(additionalProperties, "pagination") o.AdditionalProperties = additionalProperties } diff --git a/model_query_vector_collection_200_response_pagination.go b/model_query_vector_collection_200_response_pagination.go new file mode 100644 index 0000000..6c0426a --- /dev/null +++ b/model_query_vector_collection_200_response_pagination.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the QueryVectorCollection200ResponsePagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QueryVectorCollection200ResponsePagination{} + +// QueryVectorCollection200ResponsePagination Pagination info (listByMetadata mode only) +type QueryVectorCollection200ResponsePagination struct { + SortBy *string `json:"sortBy,omitempty"` + SortOrder *string `json:"sortOrder,omitempty"` + Limit *int32 `json:"limit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _QueryVectorCollection200ResponsePagination QueryVectorCollection200ResponsePagination + +// NewQueryVectorCollection200ResponsePagination instantiates a new QueryVectorCollection200ResponsePagination 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 NewQueryVectorCollection200ResponsePagination() *QueryVectorCollection200ResponsePagination { + this := QueryVectorCollection200ResponsePagination{} + return &this +} + +// NewQueryVectorCollection200ResponsePaginationWithDefaults instantiates a new QueryVectorCollection200ResponsePagination 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 NewQueryVectorCollection200ResponsePaginationWithDefaults() *QueryVectorCollection200ResponsePagination { + this := QueryVectorCollection200ResponsePagination{} + return &this +} + +// GetSortBy returns the SortBy field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponsePagination) GetSortBy() string { + if o == nil || IsNil(o.SortBy) { + var ret string + return ret + } + return *o.SortBy +} + +// GetSortByOk returns a tuple with the SortBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200ResponsePagination) GetSortByOk() (*string, bool) { + if o == nil || IsNil(o.SortBy) { + return nil, false + } + return o.SortBy, true +} + +// HasSortBy returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponsePagination) HasSortBy() bool { + if o != nil && !IsNil(o.SortBy) { + return true + } + + return false +} + +// SetSortBy gets a reference to the given string and assigns it to the SortBy field. +func (o *QueryVectorCollection200ResponsePagination) SetSortBy(v string) { + o.SortBy = &v +} + +// GetSortOrder returns the SortOrder field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponsePagination) GetSortOrder() string { + if o == nil || IsNil(o.SortOrder) { + var ret string + return ret + } + return *o.SortOrder +} + +// GetSortOrderOk returns a tuple with the SortOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200ResponsePagination) GetSortOrderOk() (*string, bool) { + if o == nil || IsNil(o.SortOrder) { + return nil, false + } + return o.SortOrder, true +} + +// HasSortOrder returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponsePagination) HasSortOrder() bool { + if o != nil && !IsNil(o.SortOrder) { + return true + } + + return false +} + +// SetSortOrder gets a reference to the given string and assigns it to the SortOrder field. +func (o *QueryVectorCollection200ResponsePagination) SetSortOrder(v string) { + o.SortOrder = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponsePagination) GetLimit() int32 { + if o == nil || IsNil(o.Limit) { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200ResponsePagination) GetLimitOk() (*int32, bool) { + if o == nil || IsNil(o.Limit) { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponsePagination) HasLimit() bool { + if o != nil && !IsNil(o.Limit) { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *QueryVectorCollection200ResponsePagination) SetLimit(v int32) { + o.Limit = &v +} + +func (o QueryVectorCollection200ResponsePagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QueryVectorCollection200ResponsePagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SortBy) { + toSerialize["sortBy"] = o.SortBy + } + if !IsNil(o.SortOrder) { + toSerialize["sortOrder"] = o.SortOrder + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *QueryVectorCollection200ResponsePagination) UnmarshalJSON(data []byte) (err error) { + varQueryVectorCollection200ResponsePagination := _QueryVectorCollection200ResponsePagination{} + + err = json.Unmarshal(data, &varQueryVectorCollection200ResponsePagination) + + if err != nil { + return err + } + + *o = QueryVectorCollection200ResponsePagination(varQueryVectorCollection200ResponsePagination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "sortBy") + delete(additionalProperties, "sortOrder") + delete(additionalProperties, "limit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableQueryVectorCollection200ResponsePagination struct { + value *QueryVectorCollection200ResponsePagination + isSet bool +} + +func (v NullableQueryVectorCollection200ResponsePagination) Get() *QueryVectorCollection200ResponsePagination { + return v.value +} + +func (v *NullableQueryVectorCollection200ResponsePagination) Set(val *QueryVectorCollection200ResponsePagination) { + v.value = val + v.isSet = true +} + +func (v NullableQueryVectorCollection200ResponsePagination) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryVectorCollection200ResponsePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryVectorCollection200ResponsePagination(val *QueryVectorCollection200ResponsePagination) *NullableQueryVectorCollection200ResponsePagination { + return &NullableQueryVectorCollection200ResponsePagination{value: val, isSet: true} +} + +func (v NullableQueryVectorCollection200ResponsePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryVectorCollection200ResponsePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_query_vector_collection_200_response_results_inner.go b/model_query_vector_collection_200_response_results_inner.go index c0f940d..7980b5a 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,14 @@ var _ MappedNullable = &QueryVectorCollection200ResponseResultsInner{} // QueryVectorCollection200ResponseResultsInner struct for QueryVectorCollection200ResponseResultsInner type QueryVectorCollection200ResponseResultsInner struct { + DocumentId *string `json:"documentId,omitempty"` + // Document text content Content *string `json:"content,omitempty"` - Score *float32 `json:"score,omitempty"` - Metadata *QueryVectorCollection200ResponseResultsInnerMetadata `json:"metadata,omitempty"` + // Cosine similarity score (1.0 for metadata-only queries) + Similarity *float32 `json:"similarity,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Vector embedding (only if includeEmbeddings=true) + Embedding []float32 `json:"embedding,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,6 +49,38 @@ func NewQueryVectorCollection200ResponseResultsInnerWithDefaults() *QueryVectorC return &this } +// GetDocumentId returns the DocumentId field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponseResultsInner) GetDocumentId() string { + if o == nil || IsNil(o.DocumentId) { + var ret string + return ret + } + return *o.DocumentId +} + +// GetDocumentIdOk returns a tuple with the DocumentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200ResponseResultsInner) GetDocumentIdOk() (*string, bool) { + if o == nil || IsNil(o.DocumentId) { + return nil, false + } + return o.DocumentId, true +} + +// HasDocumentId returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponseResultsInner) HasDocumentId() bool { + if o != nil && !IsNil(o.DocumentId) { + return true + } + + return false +} + +// SetDocumentId gets a reference to the given string and assigns it to the DocumentId field. +func (o *QueryVectorCollection200ResponseResultsInner) SetDocumentId(v string) { + o.DocumentId = &v +} + // GetContent returns the Content field value if set, zero value otherwise. func (o *QueryVectorCollection200ResponseResultsInner) GetContent() string { if o == nil || IsNil(o.Content) { @@ -76,52 +113,52 @@ func (o *QueryVectorCollection200ResponseResultsInner) SetContent(v string) { o.Content = &v } -// GetScore returns the Score field value if set, zero value otherwise. -func (o *QueryVectorCollection200ResponseResultsInner) GetScore() float32 { - if o == nil || IsNil(o.Score) { +// GetSimilarity returns the Similarity field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponseResultsInner) GetSimilarity() float32 { + if o == nil || IsNil(o.Similarity) { var ret float32 return ret } - return *o.Score + return *o.Similarity } -// GetScoreOk returns a tuple with the Score field value if set, nil otherwise +// GetSimilarityOk returns a tuple with the Similarity field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *QueryVectorCollection200ResponseResultsInner) GetScoreOk() (*float32, bool) { - if o == nil || IsNil(o.Score) { +func (o *QueryVectorCollection200ResponseResultsInner) GetSimilarityOk() (*float32, bool) { + if o == nil || IsNil(o.Similarity) { return nil, false } - return o.Score, true + return o.Similarity, true } -// HasScore returns a boolean if a field has been set. -func (o *QueryVectorCollection200ResponseResultsInner) HasScore() bool { - if o != nil && !IsNil(o.Score) { +// HasSimilarity returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponseResultsInner) HasSimilarity() bool { + if o != nil && !IsNil(o.Similarity) { return true } return false } -// SetScore gets a reference to the given float32 and assigns it to the Score field. -func (o *QueryVectorCollection200ResponseResultsInner) SetScore(v float32) { - o.Score = &v +// SetSimilarity gets a reference to the given float32 and assigns it to the Similarity field. +func (o *QueryVectorCollection200ResponseResultsInner) SetSimilarity(v float32) { + o.Similarity = &v } // GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *QueryVectorCollection200ResponseResultsInner) GetMetadata() QueryVectorCollection200ResponseResultsInnerMetadata { +func (o *QueryVectorCollection200ResponseResultsInner) GetMetadata() map[string]interface{} { if o == nil || IsNil(o.Metadata) { - var ret QueryVectorCollection200ResponseResultsInnerMetadata + var ret map[string]interface{} return ret } - return *o.Metadata + 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 *QueryVectorCollection200ResponseResultsInner) GetMetadataOk() (*QueryVectorCollection200ResponseResultsInnerMetadata, bool) { +func (o *QueryVectorCollection200ResponseResultsInner) GetMetadataOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Metadata) { - return nil, false + return map[string]interface{}{}, false } return o.Metadata, true } @@ -135,9 +172,41 @@ func (o *QueryVectorCollection200ResponseResultsInner) HasMetadata() bool { return false } -// SetMetadata gets a reference to the given QueryVectorCollection200ResponseResultsInnerMetadata and assigns it to the Metadata field. -func (o *QueryVectorCollection200ResponseResultsInner) SetMetadata(v QueryVectorCollection200ResponseResultsInnerMetadata) { - o.Metadata = &v +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *QueryVectorCollection200ResponseResultsInner) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetEmbedding returns the Embedding field value if set, zero value otherwise. +func (o *QueryVectorCollection200ResponseResultsInner) GetEmbedding() []float32 { + if o == nil || IsNil(o.Embedding) { + var ret []float32 + return ret + } + return o.Embedding +} + +// GetEmbeddingOk returns a tuple with the Embedding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollection200ResponseResultsInner) GetEmbeddingOk() ([]float32, bool) { + if o == nil || IsNil(o.Embedding) { + return nil, false + } + return o.Embedding, true +} + +// HasEmbedding returns a boolean if a field has been set. +func (o *QueryVectorCollection200ResponseResultsInner) HasEmbedding() bool { + if o != nil && !IsNil(o.Embedding) { + return true + } + + return false +} + +// SetEmbedding gets a reference to the given []float32 and assigns it to the Embedding field. +func (o *QueryVectorCollection200ResponseResultsInner) SetEmbedding(v []float32) { + o.Embedding = v } func (o QueryVectorCollection200ResponseResultsInner) MarshalJSON() ([]byte, error) { @@ -150,15 +219,21 @@ func (o QueryVectorCollection200ResponseResultsInner) MarshalJSON() ([]byte, err func (o QueryVectorCollection200ResponseResultsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.DocumentId) { + toSerialize["documentId"] = o.DocumentId + } if !IsNil(o.Content) { toSerialize["content"] = o.Content } - if !IsNil(o.Score) { - toSerialize["score"] = o.Score + if !IsNil(o.Similarity) { + toSerialize["similarity"] = o.Similarity } if !IsNil(o.Metadata) { toSerialize["metadata"] = o.Metadata } + if !IsNil(o.Embedding) { + toSerialize["embedding"] = o.Embedding + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -181,9 +256,11 @@ func (o *QueryVectorCollection200ResponseResultsInner) UnmarshalJSON(data []byte additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "documentId") delete(additionalProperties, "content") - delete(additionalProperties, "score") + delete(additionalProperties, "similarity") delete(additionalProperties, "metadata") + delete(additionalProperties, "embedding") o.AdditionalProperties = additionalProperties } diff --git a/model_query_vector_collection_200_response_results_inner_metadata.go b/model_query_vector_collection_200_response_results_inner_metadata.go deleted file mode 100644 index 1b05a65..0000000 --- a/model_query_vector_collection_200_response_results_inner_metadata.go +++ /dev/null @@ -1,229 +0,0 @@ -/* -QuantCDN API - -Unified API for QuantCDN Admin and QuantCloud Platform services - -API version: 4.8.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package quantadmingo - -import ( - "encoding/json" -) - -// checks if the QueryVectorCollection200ResponseResultsInnerMetadata type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &QueryVectorCollection200ResponseResultsInnerMetadata{} - -// QueryVectorCollection200ResponseResultsInnerMetadata struct for QueryVectorCollection200ResponseResultsInnerMetadata -type QueryVectorCollection200ResponseResultsInnerMetadata struct { - Title *string `json:"title,omitempty"` - SourceUrl *string `json:"source_url,omitempty"` - Section *string `json:"section,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _QueryVectorCollection200ResponseResultsInnerMetadata QueryVectorCollection200ResponseResultsInnerMetadata - -// NewQueryVectorCollection200ResponseResultsInnerMetadata instantiates a new QueryVectorCollection200ResponseResultsInnerMetadata 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 NewQueryVectorCollection200ResponseResultsInnerMetadata() *QueryVectorCollection200ResponseResultsInnerMetadata { - this := QueryVectorCollection200ResponseResultsInnerMetadata{} - return &this -} - -// NewQueryVectorCollection200ResponseResultsInnerMetadataWithDefaults instantiates a new QueryVectorCollection200ResponseResultsInnerMetadata 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 NewQueryVectorCollection200ResponseResultsInnerMetadataWithDefaults() *QueryVectorCollection200ResponseResultsInnerMetadata { - this := QueryVectorCollection200ResponseResultsInnerMetadata{} - return &this -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetTitle() string { - if o == nil || IsNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetTitleOk() (*string, bool) { - if o == nil || IsNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasTitle() bool { - if o != nil && !IsNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetTitle(v string) { - o.Title = &v -} - -// GetSourceUrl returns the SourceUrl field value if set, zero value otherwise. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSourceUrl() string { - if o == nil || IsNil(o.SourceUrl) { - var ret string - return ret - } - return *o.SourceUrl -} - -// GetSourceUrlOk returns a tuple with the SourceUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSourceUrlOk() (*string, bool) { - if o == nil || IsNil(o.SourceUrl) { - return nil, false - } - return o.SourceUrl, true -} - -// HasSourceUrl returns a boolean if a field has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasSourceUrl() bool { - if o != nil && !IsNil(o.SourceUrl) { - return true - } - - return false -} - -// SetSourceUrl gets a reference to the given string and assigns it to the SourceUrl field. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetSourceUrl(v string) { - o.SourceUrl = &v -} - -// GetSection returns the Section field value if set, zero value otherwise. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSection() string { - if o == nil || IsNil(o.Section) { - var ret string - return ret - } - return *o.Section -} - -// GetSectionOk returns a tuple with the Section field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) GetSectionOk() (*string, bool) { - if o == nil || IsNil(o.Section) { - return nil, false - } - return o.Section, true -} - -// HasSection returns a boolean if a field has been set. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) HasSection() bool { - if o != nil && !IsNil(o.Section) { - return true - } - - return false -} - -// SetSection gets a reference to the given string and assigns it to the Section field. -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) SetSection(v string) { - o.Section = &v -} - -func (o QueryVectorCollection200ResponseResultsInnerMetadata) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o QueryVectorCollection200ResponseResultsInnerMetadata) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Title) { - toSerialize["title"] = o.Title - } - if !IsNil(o.SourceUrl) { - toSerialize["source_url"] = o.SourceUrl - } - if !IsNil(o.Section) { - toSerialize["section"] = o.Section - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *QueryVectorCollection200ResponseResultsInnerMetadata) UnmarshalJSON(data []byte) (err error) { - varQueryVectorCollection200ResponseResultsInnerMetadata := _QueryVectorCollection200ResponseResultsInnerMetadata{} - - err = json.Unmarshal(data, &varQueryVectorCollection200ResponseResultsInnerMetadata) - - if err != nil { - return err - } - - *o = QueryVectorCollection200ResponseResultsInnerMetadata(varQueryVectorCollection200ResponseResultsInnerMetadata) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "title") - delete(additionalProperties, "source_url") - delete(additionalProperties, "section") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableQueryVectorCollection200ResponseResultsInnerMetadata struct { - value *QueryVectorCollection200ResponseResultsInnerMetadata - isSet bool -} - -func (v NullableQueryVectorCollection200ResponseResultsInnerMetadata) Get() *QueryVectorCollection200ResponseResultsInnerMetadata { - return v.value -} - -func (v *NullableQueryVectorCollection200ResponseResultsInnerMetadata) Set(val *QueryVectorCollection200ResponseResultsInnerMetadata) { - v.value = val - v.isSet = true -} - -func (v NullableQueryVectorCollection200ResponseResultsInnerMetadata) IsSet() bool { - return v.isSet -} - -func (v *NullableQueryVectorCollection200ResponseResultsInnerMetadata) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableQueryVectorCollection200ResponseResultsInnerMetadata(val *QueryVectorCollection200ResponseResultsInnerMetadata) *NullableQueryVectorCollection200ResponseResultsInnerMetadata { - return &NullableQueryVectorCollection200ResponseResultsInnerMetadata{value: val, isSet: true} -} - -func (v NullableQueryVectorCollection200ResponseResultsInnerMetadata) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableQueryVectorCollection200ResponseResultsInnerMetadata) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_query_vector_collection_request.go b/model_query_vector_collection_request.go index 8e4f63d..c9fbdc6 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,7 +12,6 @@ package quantadmingo import ( "encoding/json" - "fmt" ) // checks if the QueryVectorCollectionRequest type satisfies the MappedNullable interface at compile time @@ -20,10 +19,25 @@ var _ MappedNullable = &QueryVectorCollectionRequest{} // QueryVectorCollectionRequest struct for QueryVectorCollectionRequest type QueryVectorCollectionRequest struct { - // Natural language search query - Query string `json:"query"` - // Number of results to return - Count *int32 `json:"count,omitempty"` + // Natural language search query (mutually exclusive with vector) + Query *string `json:"query,omitempty"` + // Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension. + Vector []float32 `json:"vector,omitempty"` + // Maximum number of results to return + Limit *int32 `json:"limit,omitempty"` + // Minimum similarity score (0-1, higher = more relevant) + Threshold *float32 `json:"threshold,omitempty"` + // Include embedding vectors in response (for debugging) + IncludeEmbeddings *bool `json:"includeEmbeddings,omitempty"` + Filter *QueryVectorCollectionRequestFilter `json:"filter,omitempty"` + // If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination. + ListByMetadata *bool `json:"listByMetadata,omitempty"` + // Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually. + Cursor *string `json:"cursor,omitempty"` + // Field to sort by in listByMetadata mode + SortBy *string `json:"sortBy,omitempty"` + // Sort direction in listByMetadata mode + SortOrder *string `json:"sortOrder,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,11 +47,20 @@ type _QueryVectorCollectionRequest QueryVectorCollectionRequest // 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 NewQueryVectorCollectionRequest(query string) *QueryVectorCollectionRequest { +func NewQueryVectorCollectionRequest() *QueryVectorCollectionRequest { this := QueryVectorCollectionRequest{} - this.Query = query - var count int32 = 5 - this.Count = &count + var limit int32 = 5 + this.Limit = &limit + var threshold float32 = 0.7 + this.Threshold = &threshold + var includeEmbeddings bool = false + this.IncludeEmbeddings = &includeEmbeddings + var listByMetadata bool = false + this.ListByMetadata = &listByMetadata + var sortBy string = "created_at" + this.SortBy = &sortBy + var sortOrder string = "desc" + this.SortOrder = &sortOrder return &this } @@ -46,65 +69,339 @@ func NewQueryVectorCollectionRequest(query string) *QueryVectorCollectionRequest // but it doesn't guarantee that properties required by API are set func NewQueryVectorCollectionRequestWithDefaults() *QueryVectorCollectionRequest { this := QueryVectorCollectionRequest{} - var count int32 = 5 - this.Count = &count + var limit int32 = 5 + this.Limit = &limit + var threshold float32 = 0.7 + this.Threshold = &threshold + var includeEmbeddings bool = false + this.IncludeEmbeddings = &includeEmbeddings + var listByMetadata bool = false + this.ListByMetadata = &listByMetadata + var sortBy string = "created_at" + this.SortBy = &sortBy + var sortOrder string = "desc" + this.SortOrder = &sortOrder return &this } -// GetQuery returns the Query field value +// GetQuery returns the Query field value if set, zero value otherwise. func (o *QueryVectorCollectionRequest) GetQuery() string { - if o == nil { + if o == nil || IsNil(o.Query) { var ret string return ret } - - return o.Query + return *o.Query } -// GetQueryOk returns a tuple with the Query field value +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *QueryVectorCollectionRequest) GetQueryOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.Query) { return nil, false } - return &o.Query, true + return o.Query, true } -// SetQuery sets field value +// HasQuery returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasQuery() bool { + if o != nil && !IsNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. func (o *QueryVectorCollectionRequest) SetQuery(v string) { - o.Query = v + o.Query = &v +} + +// GetVector returns the Vector field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetVector() []float32 { + if o == nil || IsNil(o.Vector) { + var ret []float32 + return ret + } + return o.Vector } -// GetCount returns the Count field value if set, zero value otherwise. -func (o *QueryVectorCollectionRequest) GetCount() int32 { - if o == nil || IsNil(o.Count) { +// GetVectorOk returns a tuple with the Vector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetVectorOk() ([]float32, bool) { + if o == nil || IsNil(o.Vector) { + return nil, false + } + return o.Vector, true +} + +// HasVector returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasVector() bool { + if o != nil && !IsNil(o.Vector) { + return true + } + + return false +} + +// SetVector gets a reference to the given []float32 and assigns it to the Vector field. +func (o *QueryVectorCollectionRequest) SetVector(v []float32) { + o.Vector = v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetLimit() int32 { + if o == nil || IsNil(o.Limit) { var ret int32 return ret } - return *o.Count + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetLimitOk() (*int32, bool) { + if o == nil || IsNil(o.Limit) { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasLimit() bool { + if o != nil && !IsNil(o.Limit) { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *QueryVectorCollectionRequest) SetLimit(v int32) { + o.Limit = &v +} + +// GetThreshold returns the Threshold field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetThreshold() float32 { + if o == nil || IsNil(o.Threshold) { + var ret float32 + return ret + } + return *o.Threshold +} + +// GetThresholdOk returns a tuple with the Threshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetThresholdOk() (*float32, bool) { + if o == nil || IsNil(o.Threshold) { + return nil, false + } + return o.Threshold, true +} + +// HasThreshold returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasThreshold() bool { + if o != nil && !IsNil(o.Threshold) { + return true + } + + return false +} + +// SetThreshold gets a reference to the given float32 and assigns it to the Threshold field. +func (o *QueryVectorCollectionRequest) SetThreshold(v float32) { + o.Threshold = &v +} + +// GetIncludeEmbeddings returns the IncludeEmbeddings field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetIncludeEmbeddings() bool { + if o == nil || IsNil(o.IncludeEmbeddings) { + var ret bool + return ret + } + return *o.IncludeEmbeddings +} + +// GetIncludeEmbeddingsOk returns a tuple with the IncludeEmbeddings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetIncludeEmbeddingsOk() (*bool, bool) { + if o == nil || IsNil(o.IncludeEmbeddings) { + return nil, false + } + return o.IncludeEmbeddings, true +} + +// HasIncludeEmbeddings returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasIncludeEmbeddings() bool { + if o != nil && !IsNil(o.IncludeEmbeddings) { + return true + } + + return false +} + +// SetIncludeEmbeddings gets a reference to the given bool and assigns it to the IncludeEmbeddings field. +func (o *QueryVectorCollectionRequest) SetIncludeEmbeddings(v bool) { + o.IncludeEmbeddings = &v +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetFilter() QueryVectorCollectionRequestFilter { + if o == nil || IsNil(o.Filter) { + var ret QueryVectorCollectionRequestFilter + return ret + } + return *o.Filter +} + +// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetFilterOk() (*QueryVectorCollectionRequestFilter, bool) { + if o == nil || IsNil(o.Filter) { + return nil, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasFilter() bool { + if o != nil && !IsNil(o.Filter) { + return true + } + + return false +} + +// SetFilter gets a reference to the given QueryVectorCollectionRequestFilter and assigns it to the Filter field. +func (o *QueryVectorCollectionRequest) SetFilter(v QueryVectorCollectionRequestFilter) { + o.Filter = &v +} + +// GetListByMetadata returns the ListByMetadata field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetListByMetadata() bool { + if o == nil || IsNil(o.ListByMetadata) { + var ret bool + return ret + } + return *o.ListByMetadata +} + +// GetListByMetadataOk returns a tuple with the ListByMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetListByMetadataOk() (*bool, bool) { + if o == nil || IsNil(o.ListByMetadata) { + return nil, false + } + return o.ListByMetadata, true +} + +// HasListByMetadata returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasListByMetadata() bool { + if o != nil && !IsNil(o.ListByMetadata) { + return true + } + + return false +} + +// SetListByMetadata gets a reference to the given bool and assigns it to the ListByMetadata field. +func (o *QueryVectorCollectionRequest) SetListByMetadata(v bool) { + o.ListByMetadata = &v +} + +// GetCursor returns the Cursor field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetCursor() string { + if o == nil || IsNil(o.Cursor) { + var ret string + return ret + } + return *o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetCursorOk() (*string, bool) { + if o == nil || IsNil(o.Cursor) { + return nil, false + } + return o.Cursor, true +} + +// HasCursor returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasCursor() bool { + if o != nil && !IsNil(o.Cursor) { + return true + } + + return false +} + +// SetCursor gets a reference to the given string and assigns it to the Cursor field. +func (o *QueryVectorCollectionRequest) SetCursor(v string) { + o.Cursor = &v +} + +// GetSortBy returns the SortBy field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetSortBy() string { + if o == nil || IsNil(o.SortBy) { + var ret string + return ret + } + return *o.SortBy } -// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// GetSortByOk returns a tuple with the SortBy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *QueryVectorCollectionRequest) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { +func (o *QueryVectorCollectionRequest) GetSortByOk() (*string, bool) { + if o == nil || IsNil(o.SortBy) { return nil, false } - return o.Count, true + return o.SortBy, true } -// HasCount returns a boolean if a field has been set. -func (o *QueryVectorCollectionRequest) HasCount() bool { - if o != nil && !IsNil(o.Count) { +// HasSortBy returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasSortBy() bool { + if o != nil && !IsNil(o.SortBy) { return true } return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *QueryVectorCollectionRequest) SetCount(v int32) { - o.Count = &v +// SetSortBy gets a reference to the given string and assigns it to the SortBy field. +func (o *QueryVectorCollectionRequest) SetSortBy(v string) { + o.SortBy = &v +} + +// GetSortOrder returns the SortOrder field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequest) GetSortOrder() string { + if o == nil || IsNil(o.SortOrder) { + var ret string + return ret + } + return *o.SortOrder +} + +// GetSortOrderOk returns a tuple with the SortOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequest) GetSortOrderOk() (*string, bool) { + if o == nil || IsNil(o.SortOrder) { + return nil, false + } + return o.SortOrder, true +} + +// HasSortOrder returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequest) HasSortOrder() bool { + if o != nil && !IsNil(o.SortOrder) { + return true + } + + return false +} + +// SetSortOrder gets a reference to the given string and assigns it to the SortOrder field. +func (o *QueryVectorCollectionRequest) SetSortOrder(v string) { + o.SortOrder = &v } func (o QueryVectorCollectionRequest) MarshalJSON() ([]byte, error) { @@ -117,9 +414,35 @@ func (o QueryVectorCollectionRequest) MarshalJSON() ([]byte, error) { func (o QueryVectorCollectionRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["query"] = o.Query - if !IsNil(o.Count) { - toSerialize["count"] = o.Count + if !IsNil(o.Query) { + toSerialize["query"] = o.Query + } + if !IsNil(o.Vector) { + toSerialize["vector"] = o.Vector + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + if !IsNil(o.Threshold) { + toSerialize["threshold"] = o.Threshold + } + if !IsNil(o.IncludeEmbeddings) { + toSerialize["includeEmbeddings"] = o.IncludeEmbeddings + } + if !IsNil(o.Filter) { + toSerialize["filter"] = o.Filter + } + if !IsNil(o.ListByMetadata) { + toSerialize["listByMetadata"] = o.ListByMetadata + } + if !IsNil(o.Cursor) { + toSerialize["cursor"] = o.Cursor + } + if !IsNil(o.SortBy) { + toSerialize["sortBy"] = o.SortBy + } + if !IsNil(o.SortOrder) { + toSerialize["sortOrder"] = o.SortOrder } for key, value := range o.AdditionalProperties { @@ -130,27 +453,6 @@ func (o QueryVectorCollectionRequest) ToMap() (map[string]interface{}, error) { } func (o *QueryVectorCollectionRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "query", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - varQueryVectorCollectionRequest := _QueryVectorCollectionRequest{} err = json.Unmarshal(data, &varQueryVectorCollectionRequest) @@ -165,7 +467,15 @@ func (o *QueryVectorCollectionRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "query") - delete(additionalProperties, "count") + delete(additionalProperties, "vector") + delete(additionalProperties, "limit") + delete(additionalProperties, "threshold") + delete(additionalProperties, "includeEmbeddings") + delete(additionalProperties, "filter") + delete(additionalProperties, "listByMetadata") + delete(additionalProperties, "cursor") + delete(additionalProperties, "sortBy") + delete(additionalProperties, "sortOrder") o.AdditionalProperties = additionalProperties } diff --git a/model_query_vector_collection_request_filter.go b/model_query_vector_collection_request_filter.go new file mode 100644 index 0000000..8f1e09a --- /dev/null +++ b/model_query_vector_collection_request_filter.go @@ -0,0 +1,194 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the QueryVectorCollectionRequestFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &QueryVectorCollectionRequestFilter{} + +// QueryVectorCollectionRequestFilter Filter results by metadata fields. Applied AFTER semantic search (or alone in listByMetadata mode). All conditions use AND logic. +type QueryVectorCollectionRequestFilter struct { + // Exact match on metadata fields. Keys are metadata field names, values are expected values. + Exact map[string]interface{} `json:"exact,omitempty"` + // Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values. + Contains *map[string][]string `json:"contains,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _QueryVectorCollectionRequestFilter QueryVectorCollectionRequestFilter + +// NewQueryVectorCollectionRequestFilter instantiates a new QueryVectorCollectionRequestFilter 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 NewQueryVectorCollectionRequestFilter() *QueryVectorCollectionRequestFilter { + this := QueryVectorCollectionRequestFilter{} + return &this +} + +// NewQueryVectorCollectionRequestFilterWithDefaults instantiates a new QueryVectorCollectionRequestFilter 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 NewQueryVectorCollectionRequestFilterWithDefaults() *QueryVectorCollectionRequestFilter { + this := QueryVectorCollectionRequestFilter{} + return &this +} + +// GetExact returns the Exact field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequestFilter) GetExact() map[string]interface{} { + if o == nil || IsNil(o.Exact) { + var ret map[string]interface{} + return ret + } + return o.Exact +} + +// GetExactOk returns a tuple with the Exact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequestFilter) GetExactOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Exact) { + return map[string]interface{}{}, false + } + return o.Exact, true +} + +// HasExact returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequestFilter) HasExact() bool { + if o != nil && !IsNil(o.Exact) { + return true + } + + return false +} + +// SetExact gets a reference to the given map[string]interface{} and assigns it to the Exact field. +func (o *QueryVectorCollectionRequestFilter) SetExact(v map[string]interface{}) { + o.Exact = v +} + +// GetContains returns the Contains field value if set, zero value otherwise. +func (o *QueryVectorCollectionRequestFilter) GetContains() map[string][]string { + if o == nil || IsNil(o.Contains) { + var ret map[string][]string + return ret + } + return *o.Contains +} + +// GetContainsOk returns a tuple with the Contains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *QueryVectorCollectionRequestFilter) GetContainsOk() (*map[string][]string, bool) { + if o == nil || IsNil(o.Contains) { + return nil, false + } + return o.Contains, true +} + +// HasContains returns a boolean if a field has been set. +func (o *QueryVectorCollectionRequestFilter) HasContains() bool { + if o != nil && !IsNil(o.Contains) { + return true + } + + return false +} + +// SetContains gets a reference to the given map[string][]string and assigns it to the Contains field. +func (o *QueryVectorCollectionRequestFilter) SetContains(v map[string][]string) { + o.Contains = &v +} + +func (o QueryVectorCollectionRequestFilter) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o QueryVectorCollectionRequestFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Exact) { + toSerialize["exact"] = o.Exact + } + if !IsNil(o.Contains) { + toSerialize["contains"] = o.Contains + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *QueryVectorCollectionRequestFilter) UnmarshalJSON(data []byte) (err error) { + varQueryVectorCollectionRequestFilter := _QueryVectorCollectionRequestFilter{} + + err = json.Unmarshal(data, &varQueryVectorCollectionRequestFilter) + + if err != nil { + return err + } + + *o = QueryVectorCollectionRequestFilter(varQueryVectorCollectionRequestFilter) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "exact") + delete(additionalProperties, "contains") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableQueryVectorCollectionRequestFilter struct { + value *QueryVectorCollectionRequestFilter + isSet bool +} + +func (v NullableQueryVectorCollectionRequestFilter) Get() *QueryVectorCollectionRequestFilter { + return v.value +} + +func (v *NullableQueryVectorCollectionRequestFilter) Set(val *QueryVectorCollectionRequestFilter) { + v.value = val + v.isSet = true +} + +func (v NullableQueryVectorCollectionRequestFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryVectorCollectionRequestFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryVectorCollectionRequestFilter(val *QueryVectorCollectionRequestFilter) *NullableQueryVectorCollectionRequestFilter { + return &NullableQueryVectorCollectionRequestFilter{value: val, isSet: true} +} + +func (v NullableQueryVectorCollectionRequestFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryVectorCollectionRequestFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_scaling_policy.go b/model_scaling_policy.go index 8ca753b..0647b26 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.8.0 +API version: 4.9.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 861c259..ca84979 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..49bde07 --- /dev/null +++ b/model_submit_tool_callback_200_response.go @@ -0,0 +1,230 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the SubmitToolCallback200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubmitToolCallback200Response{} + +// SubmitToolCallback200Response struct for SubmitToolCallback200Response +type SubmitToolCallback200Response struct { + Success *bool `json:"success,omitempty"` + Message *string `json:"message,omitempty"` + // Echo of the callbackId for confirmation + CallbackId *string `json:"callbackId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SubmitToolCallback200Response SubmitToolCallback200Response + +// NewSubmitToolCallback200Response instantiates a new SubmitToolCallback200Response 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 NewSubmitToolCallback200Response() *SubmitToolCallback200Response { + this := SubmitToolCallback200Response{} + return &this +} + +// NewSubmitToolCallback200ResponseWithDefaults instantiates a new SubmitToolCallback200Response 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 NewSubmitToolCallback200ResponseWithDefaults() *SubmitToolCallback200Response { + this := SubmitToolCallback200Response{} + return &this +} + +// GetSuccess returns the Success field value if set, zero value otherwise. +func (o *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) SetSuccess(v bool) { + o.Success = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) 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 *SubmitToolCallback200Response) SetMessage(v string) { + o.Message = &v +} + +// GetCallbackId returns the CallbackId field value if set, zero value otherwise. +func (o *SubmitToolCallback200Response) GetCallbackId() string { + if o == nil || IsNil(o.CallbackId) { + var ret string + return ret + } + return *o.CallbackId +} + +// GetCallbackIdOk returns a tuple with the CallbackId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubmitToolCallback200Response) GetCallbackIdOk() (*string, bool) { + if o == nil || IsNil(o.CallbackId) { + return nil, false + } + return o.CallbackId, true +} + +// HasCallbackId returns a boolean if a field has been set. +func (o *SubmitToolCallback200Response) HasCallbackId() bool { + if o != nil && !IsNil(o.CallbackId) { + return true + } + + return false +} + +// SetCallbackId gets a reference to the given string and assigns it to the CallbackId field. +func (o *SubmitToolCallback200Response) SetCallbackId(v string) { + o.CallbackId = &v +} + +func (o SubmitToolCallback200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubmitToolCallback200Response) 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 + } + if !IsNil(o.CallbackId) { + toSerialize["callbackId"] = o.CallbackId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubmitToolCallback200Response) UnmarshalJSON(data []byte) (err error) { + varSubmitToolCallback200Response := _SubmitToolCallback200Response{} + + err = json.Unmarshal(data, &varSubmitToolCallback200Response) + + if err != nil { + return err + } + + *o = SubmitToolCallback200Response(varSubmitToolCallback200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "success") + delete(additionalProperties, "message") + delete(additionalProperties, "callbackId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubmitToolCallback200Response struct { + value *SubmitToolCallback200Response + isSet bool +} + +func (v NullableSubmitToolCallback200Response) Get() *SubmitToolCallback200Response { + return v.value +} + +func (v *NullableSubmitToolCallback200Response) Set(val *SubmitToolCallback200Response) { + v.value = val + v.isSet = true +} + +func (v NullableSubmitToolCallback200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableSubmitToolCallback200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubmitToolCallback200Response(val *SubmitToolCallback200Response) *NullableSubmitToolCallback200Response { + return &NullableSubmitToolCallback200Response{value: val, isSet: true} +} + +func (v NullableSubmitToolCallback200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubmitToolCallback200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_submit_tool_callback_request.go b/model_submit_tool_callback_request.go new file mode 100644 index 0000000..c90a046 --- /dev/null +++ b/model_submit_tool_callback_request.go @@ -0,0 +1,199 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the SubmitToolCallbackRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubmitToolCallbackRequest{} + +// SubmitToolCallbackRequest struct for SubmitToolCallbackRequest +type SubmitToolCallbackRequest struct { + // The callbackId from the waiting_callback status response + CallbackId string `json:"callbackId"` + // Results of client-executed tools + ToolResults []SubmitToolCallbackRequestToolResultsInner `json:"toolResults"` + AdditionalProperties map[string]interface{} +} + +type _SubmitToolCallbackRequest SubmitToolCallbackRequest + +// NewSubmitToolCallbackRequest instantiates a new SubmitToolCallbackRequest 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 NewSubmitToolCallbackRequest(callbackId string, toolResults []SubmitToolCallbackRequestToolResultsInner) *SubmitToolCallbackRequest { + this := SubmitToolCallbackRequest{} + this.CallbackId = callbackId + this.ToolResults = toolResults + return &this +} + +// NewSubmitToolCallbackRequestWithDefaults instantiates a new SubmitToolCallbackRequest 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 NewSubmitToolCallbackRequestWithDefaults() *SubmitToolCallbackRequest { + this := SubmitToolCallbackRequest{} + return &this +} + +// GetCallbackId returns the CallbackId field value +func (o *SubmitToolCallbackRequest) GetCallbackId() string { + if o == nil { + var ret string + return ret + } + + return o.CallbackId +} + +// GetCallbackIdOk returns a tuple with the CallbackId field value +// and a boolean to check if the value has been set. +func (o *SubmitToolCallbackRequest) GetCallbackIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CallbackId, true +} + +// SetCallbackId sets field value +func (o *SubmitToolCallbackRequest) SetCallbackId(v string) { + o.CallbackId = v +} + +// GetToolResults returns the ToolResults field value +func (o *SubmitToolCallbackRequest) GetToolResults() []SubmitToolCallbackRequestToolResultsInner { + if o == nil { + var ret []SubmitToolCallbackRequestToolResultsInner + return ret + } + + return o.ToolResults +} + +// GetToolResultsOk returns a tuple with the ToolResults field value +// and a boolean to check if the value has been set. +func (o *SubmitToolCallbackRequest) GetToolResultsOk() ([]SubmitToolCallbackRequestToolResultsInner, bool) { + if o == nil { + return nil, false + } + return o.ToolResults, true +} + +// SetToolResults sets field value +func (o *SubmitToolCallbackRequest) SetToolResults(v []SubmitToolCallbackRequestToolResultsInner) { + o.ToolResults = v +} + +func (o SubmitToolCallbackRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubmitToolCallbackRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["callbackId"] = o.CallbackId + toSerialize["toolResults"] = o.ToolResults + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubmitToolCallbackRequest) 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{ + "callbackId", + "toolResults", + } + + 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) + } + } + + varSubmitToolCallbackRequest := _SubmitToolCallbackRequest{} + + err = json.Unmarshal(data, &varSubmitToolCallbackRequest) + + if err != nil { + return err + } + + *o = SubmitToolCallbackRequest(varSubmitToolCallbackRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "callbackId") + delete(additionalProperties, "toolResults") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubmitToolCallbackRequest struct { + value *SubmitToolCallbackRequest + isSet bool +} + +func (v NullableSubmitToolCallbackRequest) Get() *SubmitToolCallbackRequest { + return v.value +} + +func (v *NullableSubmitToolCallbackRequest) Set(val *SubmitToolCallbackRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubmitToolCallbackRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubmitToolCallbackRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubmitToolCallbackRequest(val *SubmitToolCallbackRequest) *NullableSubmitToolCallbackRequest { + return &NullableSubmitToolCallbackRequest{value: val, isSet: true} +} + +func (v NullableSubmitToolCallbackRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubmitToolCallbackRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_submit_tool_callback_request_tool_results_inner.go b/model_submit_tool_callback_request_tool_results_inner.go new file mode 100644 index 0000000..3817d98 --- /dev/null +++ b/model_submit_tool_callback_request_tool_results_inner.go @@ -0,0 +1,199 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the SubmitToolCallbackRequestToolResultsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubmitToolCallbackRequestToolResultsInner{} + +// SubmitToolCallbackRequestToolResultsInner struct for SubmitToolCallbackRequestToolResultsInner +type SubmitToolCallbackRequestToolResultsInner struct { + // The toolUseId from pendingTools + ToolUseId string `json:"toolUseId"` + // The result of executing the tool + Result map[string]interface{} `json:"result"` + AdditionalProperties map[string]interface{} +} + +type _SubmitToolCallbackRequestToolResultsInner SubmitToolCallbackRequestToolResultsInner + +// NewSubmitToolCallbackRequestToolResultsInner instantiates a new SubmitToolCallbackRequestToolResultsInner 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 NewSubmitToolCallbackRequestToolResultsInner(toolUseId string, result map[string]interface{}) *SubmitToolCallbackRequestToolResultsInner { + this := SubmitToolCallbackRequestToolResultsInner{} + this.ToolUseId = toolUseId + this.Result = result + return &this +} + +// NewSubmitToolCallbackRequestToolResultsInnerWithDefaults instantiates a new SubmitToolCallbackRequestToolResultsInner 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 NewSubmitToolCallbackRequestToolResultsInnerWithDefaults() *SubmitToolCallbackRequestToolResultsInner { + this := SubmitToolCallbackRequestToolResultsInner{} + return &this +} + +// GetToolUseId returns the ToolUseId field value +func (o *SubmitToolCallbackRequestToolResultsInner) GetToolUseId() string { + if o == nil { + var ret string + return ret + } + + return o.ToolUseId +} + +// GetToolUseIdOk returns a tuple with the ToolUseId field value +// and a boolean to check if the value has been set. +func (o *SubmitToolCallbackRequestToolResultsInner) GetToolUseIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ToolUseId, true +} + +// SetToolUseId sets field value +func (o *SubmitToolCallbackRequestToolResultsInner) SetToolUseId(v string) { + o.ToolUseId = v +} + +// GetResult returns the Result field value +func (o *SubmitToolCallbackRequestToolResultsInner) GetResult() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Result +} + +// GetResultOk returns a tuple with the Result field value +// and a boolean to check if the value has been set. +func (o *SubmitToolCallbackRequestToolResultsInner) GetResultOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Result, true +} + +// SetResult sets field value +func (o *SubmitToolCallbackRequestToolResultsInner) SetResult(v map[string]interface{}) { + o.Result = v +} + +func (o SubmitToolCallbackRequestToolResultsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubmitToolCallbackRequestToolResultsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["toolUseId"] = o.ToolUseId + toSerialize["result"] = o.Result + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubmitToolCallbackRequestToolResultsInner) 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{ + "toolUseId", + "result", + } + + 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) + } + } + + varSubmitToolCallbackRequestToolResultsInner := _SubmitToolCallbackRequestToolResultsInner{} + + err = json.Unmarshal(data, &varSubmitToolCallbackRequestToolResultsInner) + + if err != nil { + return err + } + + *o = SubmitToolCallbackRequestToolResultsInner(varSubmitToolCallbackRequestToolResultsInner) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "toolUseId") + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubmitToolCallbackRequestToolResultsInner struct { + value *SubmitToolCallbackRequestToolResultsInner + isSet bool +} + +func (v NullableSubmitToolCallbackRequestToolResultsInner) Get() *SubmitToolCallbackRequestToolResultsInner { + return v.value +} + +func (v *NullableSubmitToolCallbackRequestToolResultsInner) Set(val *SubmitToolCallbackRequestToolResultsInner) { + v.value = val + v.isSet = true +} + +func (v NullableSubmitToolCallbackRequestToolResultsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableSubmitToolCallbackRequestToolResultsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubmitToolCallbackRequestToolResultsInner(val *SubmitToolCallbackRequestToolResultsInner) *NullableSubmitToolCallbackRequestToolResultsInner { + return &NullableSubmitToolCallbackRequestToolResultsInner{value: val, isSet: true} +} + +func (v NullableSubmitToolCallbackRequestToolResultsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubmitToolCallbackRequestToolResultsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_sync_operation.go b/model_sync_operation.go index 6d01d16..5f2a9b5 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.8.0 +API version: 4.9.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 102df4b..773ffb3 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.8.0 +API version: 4.9.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 633981c..42f4c35 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.8.0 +API version: 4.9.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 fbcbb8d..37703b0 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.8.0 +API version: 4.9.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 9d48f33..f993641 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.8.0 +API version: 4.9.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 ad8454a..3f9f0a9 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.8.0 +API version: 4.9.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 2c40e8a..f959659 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.8.0 +API version: 4.9.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 ca48995..964530e 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.8.0 +API version: 4.9.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 2515e40..34ae691 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.8.0 +API version: 4.9.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 078f3b5..73976d5 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.8.0 +API version: 4.9.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 454eaf9..39bdfb7 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.8.0 +API version: 4.9.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 new file mode 100644 index 0000000..5c03dd1 --- /dev/null +++ b/model_update_task_200_response.go @@ -0,0 +1,229 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateTask200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateTask200Response{} + +// UpdateTask200Response struct for UpdateTask200Response +type UpdateTask200Response struct { + TaskId *string `json:"taskId,omitempty"` + Status *string `json:"status,omitempty"` + UpdatedAt *int32 `json:"updatedAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateTask200Response UpdateTask200Response + +// NewUpdateTask200Response instantiates a new UpdateTask200Response 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 NewUpdateTask200Response() *UpdateTask200Response { + this := UpdateTask200Response{} + return &this +} + +// NewUpdateTask200ResponseWithDefaults instantiates a new UpdateTask200Response 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 NewUpdateTask200ResponseWithDefaults() *UpdateTask200Response { + this := UpdateTask200Response{} + return &this +} + +// GetTaskId returns the TaskId field value if set, zero value otherwise. +func (o *UpdateTask200Response) GetTaskId() string { + if o == nil || IsNil(o.TaskId) { + var ret string + return ret + } + return *o.TaskId +} + +// GetTaskIdOk returns a tuple with the TaskId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTask200Response) GetTaskIdOk() (*string, bool) { + if o == nil || IsNil(o.TaskId) { + return nil, false + } + return o.TaskId, true +} + +// HasTaskId returns a boolean if a field has been set. +func (o *UpdateTask200Response) HasTaskId() bool { + if o != nil && !IsNil(o.TaskId) { + return true + } + + return false +} + +// SetTaskId gets a reference to the given string and assigns it to the TaskId field. +func (o *UpdateTask200Response) SetTaskId(v string) { + o.TaskId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *UpdateTask200Response) 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 *UpdateTask200Response) 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 *UpdateTask200Response) 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 *UpdateTask200Response) SetStatus(v string) { + o.Status = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *UpdateTask200Response) GetUpdatedAt() int32 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int32 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTask200Response) GetUpdatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *UpdateTask200Response) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int32 and assigns it to the UpdatedAt field. +func (o *UpdateTask200Response) SetUpdatedAt(v int32) { + o.UpdatedAt = &v +} + +func (o UpdateTask200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateTask200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TaskId) { + toSerialize["taskId"] = o.TaskId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateTask200Response) UnmarshalJSON(data []byte) (err error) { + varUpdateTask200Response := _UpdateTask200Response{} + + err = json.Unmarshal(data, &varUpdateTask200Response) + + if err != nil { + return err + } + + *o = UpdateTask200Response(varUpdateTask200Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "taskId") + delete(additionalProperties, "status") + delete(additionalProperties, "updatedAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateTask200Response struct { + value *UpdateTask200Response + isSet bool +} + +func (v NullableUpdateTask200Response) Get() *UpdateTask200Response { + return v.value +} + +func (v *NullableUpdateTask200Response) Set(val *UpdateTask200Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateTask200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateTask200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateTask200Response(val *UpdateTask200Response) *NullableUpdateTask200Response { + return &NullableUpdateTask200Response{value: val, isSet: true} +} + +func (v NullableUpdateTask200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateTask200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_task_request.go b/model_update_task_request.go new file mode 100644 index 0000000..8f85158 --- /dev/null +++ b/model_update_task_request.go @@ -0,0 +1,727 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" +) + +// checks if the UpdateTaskRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateTaskRequest{} + +// UpdateTaskRequest struct for UpdateTaskRequest +type UpdateTaskRequest struct { + Title *string `json:"title,omitempty"` + Description *string `json:"description,omitempty"` + // Move task to different list or remove from list (set null) + TaskListId NullableString `json:"taskListId,omitempty"` + // Task status (triggers automatic timestamp updates) + Status *string `json:"status,omitempty"` + // Reassign task to different agent + AssignedAgentId NullableString `json:"assignedAgentId,omitempty"` + // Update task dependencies + DependsOn []string `json:"dependsOn,omitempty"` + // Update task metadata (replaces entire metadata object) + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Progress from 0.0 to 1.0 + Progress *float32 `json:"progress,omitempty"` + // Human-readable progress message + ProgressMessage *string `json:"progressMessage,omitempty"` + // Task result data (set when completing task) + Result map[string]interface{} `json:"result,omitempty"` + // Error message (set when task fails) + Error NullableString `json:"error,omitempty"` + // Update retry count + RetryCount *int32 `json:"retryCount,omitempty"` + // Update maximum retry attempts + MaxRetries *int32 `json:"maxRetries,omitempty"` + // Reason task is blocked (set when status is blocked) + BlockedReason NullableString `json:"blockedReason,omitempty"` + // Task IDs that are blocking this task + BlockedByTaskIds []string `json:"blockedByTaskIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateTaskRequest UpdateTaskRequest + +// NewUpdateTaskRequest instantiates a new UpdateTaskRequest 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 NewUpdateTaskRequest() *UpdateTaskRequest { + this := UpdateTaskRequest{} + return &this +} + +// NewUpdateTaskRequestWithDefaults instantiates a new UpdateTaskRequest 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 NewUpdateTaskRequestWithDefaults() *UpdateTaskRequest { + this := UpdateTaskRequest{} + return &this +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *UpdateTaskRequest) SetTitle(v string) { + o.Title = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateTaskRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTaskListId returns the TaskListId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateTaskRequest) GetTaskListId() string { + if o == nil || IsNil(o.TaskListId.Get()) { + var ret string + return ret + } + return *o.TaskListId.Get() +} + +// GetTaskListIdOk returns a tuple with the TaskListId 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 *UpdateTaskRequest) GetTaskListIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TaskListId.Get(), o.TaskListId.IsSet() +} + +// HasTaskListId returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasTaskListId() bool { + if o != nil && o.TaskListId.IsSet() { + return true + } + + return false +} + +// SetTaskListId gets a reference to the given NullableString and assigns it to the TaskListId field. +func (o *UpdateTaskRequest) SetTaskListId(v string) { + o.TaskListId.Set(&v) +} +// SetTaskListIdNil sets the value for TaskListId to be an explicit nil +func (o *UpdateTaskRequest) SetTaskListIdNil() { + o.TaskListId.Set(nil) +} + +// UnsetTaskListId ensures that no value is present for TaskListId, not even an explicit nil +func (o *UpdateTaskRequest) UnsetTaskListId() { + o.TaskListId.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *UpdateTaskRequest) 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 *UpdateTaskRequest) 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 *UpdateTaskRequest) 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 *UpdateTaskRequest) SetStatus(v string) { + o.Status = &v +} + +// GetAssignedAgentId returns the AssignedAgentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateTaskRequest) GetAssignedAgentId() string { + if o == nil || IsNil(o.AssignedAgentId.Get()) { + var ret string + return ret + } + return *o.AssignedAgentId.Get() +} + +// GetAssignedAgentIdOk returns a tuple with the AssignedAgentId 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 *UpdateTaskRequest) GetAssignedAgentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedAgentId.Get(), o.AssignedAgentId.IsSet() +} + +// HasAssignedAgentId returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasAssignedAgentId() bool { + if o != nil && o.AssignedAgentId.IsSet() { + return true + } + + return false +} + +// SetAssignedAgentId gets a reference to the given NullableString and assigns it to the AssignedAgentId field. +func (o *UpdateTaskRequest) SetAssignedAgentId(v string) { + o.AssignedAgentId.Set(&v) +} +// SetAssignedAgentIdNil sets the value for AssignedAgentId to be an explicit nil +func (o *UpdateTaskRequest) SetAssignedAgentIdNil() { + o.AssignedAgentId.Set(nil) +} + +// UnsetAssignedAgentId ensures that no value is present for AssignedAgentId, not even an explicit nil +func (o *UpdateTaskRequest) UnsetAssignedAgentId() { + o.AssignedAgentId.Unset() +} + +// GetDependsOn returns the DependsOn field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetDependsOn() []string { + if o == nil || IsNil(o.DependsOn) { + var ret []string + return ret + } + return o.DependsOn +} + +// GetDependsOnOk returns a tuple with the DependsOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetDependsOnOk() ([]string, bool) { + if o == nil || IsNil(o.DependsOn) { + return nil, false + } + return o.DependsOn, true +} + +// HasDependsOn returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasDependsOn() bool { + if o != nil && !IsNil(o.DependsOn) { + return true + } + + return false +} + +// SetDependsOn gets a reference to the given []string and assigns it to the DependsOn field. +func (o *UpdateTaskRequest) SetDependsOn(v []string) { + o.DependsOn = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *UpdateTaskRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *UpdateTaskRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetProgress returns the Progress field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetProgress() float32 { + if o == nil || IsNil(o.Progress) { + var ret float32 + return ret + } + return *o.Progress +} + +// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetProgressOk() (*float32, bool) { + if o == nil || IsNil(o.Progress) { + return nil, false + } + return o.Progress, true +} + +// HasProgress returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasProgress() bool { + if o != nil && !IsNil(o.Progress) { + return true + } + + return false +} + +// SetProgress gets a reference to the given float32 and assigns it to the Progress field. +func (o *UpdateTaskRequest) SetProgress(v float32) { + o.Progress = &v +} + +// GetProgressMessage returns the ProgressMessage field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetProgressMessage() string { + if o == nil || IsNil(o.ProgressMessage) { + var ret string + return ret + } + return *o.ProgressMessage +} + +// GetProgressMessageOk returns a tuple with the ProgressMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetProgressMessageOk() (*string, bool) { + if o == nil || IsNil(o.ProgressMessage) { + return nil, false + } + return o.ProgressMessage, true +} + +// HasProgressMessage returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasProgressMessage() bool { + if o != nil && !IsNil(o.ProgressMessage) { + return true + } + + return false +} + +// SetProgressMessage gets a reference to the given string and assigns it to the ProgressMessage field. +func (o *UpdateTaskRequest) SetProgressMessage(v string) { + o.ProgressMessage = &v +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetResult() map[string]interface{} { + if o == nil || IsNil(o.Result) { + var ret map[string]interface{} + return ret + } + return o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetResultOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Result) { + return map[string]interface{}{}, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given map[string]interface{} and assigns it to the Result field. +func (o *UpdateTaskRequest) SetResult(v map[string]interface{}) { + o.Result = v +} + +// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateTaskRequest) 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 *UpdateTaskRequest) 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 *UpdateTaskRequest) 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 *UpdateTaskRequest) SetError(v string) { + o.Error.Set(&v) +} +// SetErrorNil sets the value for Error to be an explicit nil +func (o *UpdateTaskRequest) SetErrorNil() { + o.Error.Set(nil) +} + +// UnsetError ensures that no value is present for Error, not even an explicit nil +func (o *UpdateTaskRequest) UnsetError() { + o.Error.Unset() +} + +// GetRetryCount returns the RetryCount field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetRetryCount() int32 { + if o == nil || IsNil(o.RetryCount) { + var ret int32 + return ret + } + return *o.RetryCount +} + +// GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetRetryCountOk() (*int32, bool) { + if o == nil || IsNil(o.RetryCount) { + return nil, false + } + return o.RetryCount, true +} + +// HasRetryCount returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasRetryCount() bool { + if o != nil && !IsNil(o.RetryCount) { + return true + } + + return false +} + +// SetRetryCount gets a reference to the given int32 and assigns it to the RetryCount field. +func (o *UpdateTaskRequest) SetRetryCount(v int32) { + o.RetryCount = &v +} + +// GetMaxRetries returns the MaxRetries field value if set, zero value otherwise. +func (o *UpdateTaskRequest) GetMaxRetries() int32 { + if o == nil || IsNil(o.MaxRetries) { + var ret int32 + return ret + } + return *o.MaxRetries +} + +// GetMaxRetriesOk returns a tuple with the MaxRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTaskRequest) GetMaxRetriesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxRetries) { + return nil, false + } + return o.MaxRetries, true +} + +// HasMaxRetries returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasMaxRetries() bool { + if o != nil && !IsNil(o.MaxRetries) { + return true + } + + return false +} + +// SetMaxRetries gets a reference to the given int32 and assigns it to the MaxRetries field. +func (o *UpdateTaskRequest) SetMaxRetries(v int32) { + o.MaxRetries = &v +} + +// GetBlockedReason returns the BlockedReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateTaskRequest) GetBlockedReason() string { + if o == nil || IsNil(o.BlockedReason.Get()) { + var ret string + return ret + } + return *o.BlockedReason.Get() +} + +// GetBlockedReasonOk returns a tuple with the BlockedReason 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 *UpdateTaskRequest) GetBlockedReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.BlockedReason.Get(), o.BlockedReason.IsSet() +} + +// HasBlockedReason returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasBlockedReason() bool { + if o != nil && o.BlockedReason.IsSet() { + return true + } + + return false +} + +// SetBlockedReason gets a reference to the given NullableString and assigns it to the BlockedReason field. +func (o *UpdateTaskRequest) SetBlockedReason(v string) { + o.BlockedReason.Set(&v) +} +// SetBlockedReasonNil sets the value for BlockedReason to be an explicit nil +func (o *UpdateTaskRequest) SetBlockedReasonNil() { + o.BlockedReason.Set(nil) +} + +// UnsetBlockedReason ensures that no value is present for BlockedReason, not even an explicit nil +func (o *UpdateTaskRequest) UnsetBlockedReason() { + o.BlockedReason.Unset() +} + +// GetBlockedByTaskIds returns the BlockedByTaskIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateTaskRequest) GetBlockedByTaskIds() []string { + if o == nil { + var ret []string + return ret + } + return o.BlockedByTaskIds +} + +// GetBlockedByTaskIdsOk returns a tuple with the BlockedByTaskIds 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 *UpdateTaskRequest) GetBlockedByTaskIdsOk() ([]string, bool) { + if o == nil || IsNil(o.BlockedByTaskIds) { + return nil, false + } + return o.BlockedByTaskIds, true +} + +// HasBlockedByTaskIds returns a boolean if a field has been set. +func (o *UpdateTaskRequest) HasBlockedByTaskIds() bool { + if o != nil && !IsNil(o.BlockedByTaskIds) { + return true + } + + return false +} + +// SetBlockedByTaskIds gets a reference to the given []string and assigns it to the BlockedByTaskIds field. +func (o *UpdateTaskRequest) SetBlockedByTaskIds(v []string) { + o.BlockedByTaskIds = v +} + +func (o UpdateTaskRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateTaskRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.TaskListId.IsSet() { + toSerialize["taskListId"] = o.TaskListId.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.AssignedAgentId.IsSet() { + toSerialize["assignedAgentId"] = o.AssignedAgentId.Get() + } + if !IsNil(o.DependsOn) { + toSerialize["dependsOn"] = o.DependsOn + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.Progress) { + toSerialize["progress"] = o.Progress + } + if !IsNil(o.ProgressMessage) { + toSerialize["progressMessage"] = o.ProgressMessage + } + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + if o.Error.IsSet() { + toSerialize["error"] = o.Error.Get() + } + if !IsNil(o.RetryCount) { + toSerialize["retryCount"] = o.RetryCount + } + if !IsNil(o.MaxRetries) { + toSerialize["maxRetries"] = o.MaxRetries + } + if o.BlockedReason.IsSet() { + toSerialize["blockedReason"] = o.BlockedReason.Get() + } + if o.BlockedByTaskIds != nil { + toSerialize["blockedByTaskIds"] = o.BlockedByTaskIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateTaskRequest) UnmarshalJSON(data []byte) (err error) { + varUpdateTaskRequest := _UpdateTaskRequest{} + + err = json.Unmarshal(data, &varUpdateTaskRequest) + + if err != nil { + return err + } + + *o = UpdateTaskRequest(varUpdateTaskRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "title") + delete(additionalProperties, "description") + delete(additionalProperties, "taskListId") + delete(additionalProperties, "status") + delete(additionalProperties, "assignedAgentId") + delete(additionalProperties, "dependsOn") + delete(additionalProperties, "metadata") + delete(additionalProperties, "progress") + delete(additionalProperties, "progressMessage") + delete(additionalProperties, "result") + delete(additionalProperties, "error") + delete(additionalProperties, "retryCount") + delete(additionalProperties, "maxRetries") + delete(additionalProperties, "blockedReason") + delete(additionalProperties, "blockedByTaskIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateTaskRequest struct { + value *UpdateTaskRequest + isSet bool +} + +func (v NullableUpdateTaskRequest) Get() *UpdateTaskRequest { + return v.value +} + +func (v *NullableUpdateTaskRequest) Set(val *UpdateTaskRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateTaskRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateTaskRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateTaskRequest(val *UpdateTaskRequest) *NullableUpdateTaskRequest { + return &NullableUpdateTaskRequest{value: val, isSet: true} +} + +func (v NullableUpdateTaskRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateTaskRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_upload_file_201_response.go b/model_upload_file_201_response.go new file mode 100644 index 0000000..ba733f5 --- /dev/null +++ b/model_upload_file_201_response.go @@ -0,0 +1,531 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "time" +) + +// checks if the UploadFile201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UploadFile201Response{} + +// UploadFile201Response struct for UploadFile201Response +type UploadFile201Response struct { + FileId *string `json:"fileId,omitempty"` + // S3 URI (direct upload only) + S3Uri *string `json:"s3Uri,omitempty"` + // Presigned download URL (direct upload only) + Url *string `json:"url,omitempty"` + // Presigned PUT URL (presigned upload only) + UploadUrl *string `json:"uploadUrl,omitempty"` + // S3 object key (presigned upload only) + S3Key *string `json:"s3Key,omitempty"` + // URL expiry in seconds (presigned upload only) + ExpiresIn *int32 `json:"expiresIn,omitempty"` + Filename *string `json:"filename,omitempty"` + ContentType *string `json:"contentType,omitempty"` + Size *int32 `json:"size,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UploadFile201Response UploadFile201Response + +// NewUploadFile201Response instantiates a new UploadFile201Response 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 NewUploadFile201Response() *UploadFile201Response { + this := UploadFile201Response{} + return &this +} + +// NewUploadFile201ResponseWithDefaults instantiates a new UploadFile201Response 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 NewUploadFile201ResponseWithDefaults() *UploadFile201Response { + this := UploadFile201Response{} + return &this +} + +// GetFileId returns the FileId field value if set, zero value otherwise. +func (o *UploadFile201Response) GetFileId() string { + if o == nil || IsNil(o.FileId) { + var ret string + return ret + } + return *o.FileId +} + +// GetFileIdOk returns a tuple with the FileId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetFileIdOk() (*string, bool) { + if o == nil || IsNil(o.FileId) { + return nil, false + } + return o.FileId, true +} + +// HasFileId returns a boolean if a field has been set. +func (o *UploadFile201Response) HasFileId() bool { + if o != nil && !IsNil(o.FileId) { + return true + } + + return false +} + +// SetFileId gets a reference to the given string and assigns it to the FileId field. +func (o *UploadFile201Response) SetFileId(v string) { + o.FileId = &v +} + +// GetS3Uri returns the S3Uri field value if set, zero value otherwise. +func (o *UploadFile201Response) GetS3Uri() string { + if o == nil || IsNil(o.S3Uri) { + var ret string + return ret + } + return *o.S3Uri +} + +// GetS3UriOk returns a tuple with the S3Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetS3UriOk() (*string, bool) { + if o == nil || IsNil(o.S3Uri) { + return nil, false + } + return o.S3Uri, true +} + +// HasS3Uri returns a boolean if a field has been set. +func (o *UploadFile201Response) HasS3Uri() bool { + if o != nil && !IsNil(o.S3Uri) { + return true + } + + return false +} + +// SetS3Uri gets a reference to the given string and assigns it to the S3Uri field. +func (o *UploadFile201Response) SetS3Uri(v string) { + o.S3Uri = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *UploadFile201Response) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *UploadFile201Response) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *UploadFile201Response) SetUrl(v string) { + o.Url = &v +} + +// GetUploadUrl returns the UploadUrl field value if set, zero value otherwise. +func (o *UploadFile201Response) GetUploadUrl() string { + if o == nil || IsNil(o.UploadUrl) { + var ret string + return ret + } + return *o.UploadUrl +} + +// GetUploadUrlOk returns a tuple with the UploadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetUploadUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploadUrl) { + return nil, false + } + return o.UploadUrl, true +} + +// HasUploadUrl returns a boolean if a field has been set. +func (o *UploadFile201Response) HasUploadUrl() bool { + if o != nil && !IsNil(o.UploadUrl) { + return true + } + + return false +} + +// SetUploadUrl gets a reference to the given string and assigns it to the UploadUrl field. +func (o *UploadFile201Response) SetUploadUrl(v string) { + o.UploadUrl = &v +} + +// GetS3Key returns the S3Key field value if set, zero value otherwise. +func (o *UploadFile201Response) GetS3Key() string { + if o == nil || IsNil(o.S3Key) { + var ret string + return ret + } + return *o.S3Key +} + +// GetS3KeyOk returns a tuple with the S3Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetS3KeyOk() (*string, bool) { + if o == nil || IsNil(o.S3Key) { + return nil, false + } + return o.S3Key, true +} + +// HasS3Key returns a boolean if a field has been set. +func (o *UploadFile201Response) HasS3Key() bool { + if o != nil && !IsNil(o.S3Key) { + return true + } + + return false +} + +// SetS3Key gets a reference to the given string and assigns it to the S3Key field. +func (o *UploadFile201Response) SetS3Key(v string) { + o.S3Key = &v +} + +// GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise. +func (o *UploadFile201Response) GetExpiresIn() int32 { + if o == nil || IsNil(o.ExpiresIn) { + var ret int32 + return ret + } + return *o.ExpiresIn +} + +// GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetExpiresInOk() (*int32, bool) { + if o == nil || IsNil(o.ExpiresIn) { + return nil, false + } + return o.ExpiresIn, true +} + +// HasExpiresIn returns a boolean if a field has been set. +func (o *UploadFile201Response) HasExpiresIn() bool { + if o != nil && !IsNil(o.ExpiresIn) { + return true + } + + return false +} + +// SetExpiresIn gets a reference to the given int32 and assigns it to the ExpiresIn field. +func (o *UploadFile201Response) SetExpiresIn(v int32) { + o.ExpiresIn = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *UploadFile201Response) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *UploadFile201Response) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *UploadFile201Response) SetFilename(v string) { + o.Filename = &v +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *UploadFile201Response) GetContentType() string { + if o == nil || IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *UploadFile201Response) HasContentType() bool { + if o != nil && !IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *UploadFile201Response) SetContentType(v string) { + o.ContentType = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *UploadFile201Response) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *UploadFile201Response) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *UploadFile201Response) SetSize(v int32) { + o.Size = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UploadFile201Response) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *UploadFile201Response) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UploadFile201Response) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *UploadFile201Response) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *UploadFile201Response) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFile201Response) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *UploadFile201Response) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *UploadFile201Response) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +func (o UploadFile201Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadFile201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FileId) { + toSerialize["fileId"] = o.FileId + } + if !IsNil(o.S3Uri) { + toSerialize["s3Uri"] = o.S3Uri + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + if !IsNil(o.UploadUrl) { + toSerialize["uploadUrl"] = o.UploadUrl + } + if !IsNil(o.S3Key) { + toSerialize["s3Key"] = o.S3Key + } + if !IsNil(o.ExpiresIn) { + toSerialize["expiresIn"] = o.ExpiresIn + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if !IsNil(o.ContentType) { + toSerialize["contentType"] = o.ContentType + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UploadFile201Response) UnmarshalJSON(data []byte) (err error) { + varUploadFile201Response := _UploadFile201Response{} + + err = json.Unmarshal(data, &varUploadFile201Response) + + if err != nil { + return err + } + + *o = UploadFile201Response(varUploadFile201Response) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "fileId") + delete(additionalProperties, "s3Uri") + delete(additionalProperties, "url") + delete(additionalProperties, "uploadUrl") + delete(additionalProperties, "s3Key") + delete(additionalProperties, "expiresIn") + delete(additionalProperties, "filename") + delete(additionalProperties, "contentType") + delete(additionalProperties, "size") + delete(additionalProperties, "metadata") + delete(additionalProperties, "createdAt") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUploadFile201Response struct { + value *UploadFile201Response + isSet bool +} + +func (v NullableUploadFile201Response) Get() *UploadFile201Response { + return v.value +} + +func (v *NullableUploadFile201Response) Set(val *UploadFile201Response) { + v.value = val + v.isSet = true +} + +func (v NullableUploadFile201Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUploadFile201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUploadFile201Response(val *UploadFile201Response) *NullableUploadFile201Response { + return &NullableUploadFile201Response{value: val, isSet: true} +} + +func (v NullableUploadFile201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUploadFile201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_upload_file_request.go b/model_upload_file_request.go new file mode 100644 index 0000000..1f071bb --- /dev/null +++ b/model_upload_file_request.go @@ -0,0 +1,363 @@ +/* +QuantCDN API + +Unified API for QuantCDN Admin and QuantCloud Platform services + +API version: 4.9.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package quantadmingo + +import ( + "encoding/json" + "fmt" +) + +// checks if the UploadFileRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UploadFileRequest{} + +// UploadFileRequest struct for UploadFileRequest +type UploadFileRequest struct { + // Base64-encoded file content (for direct upload). Required unless using requestUploadUrl. + Content *string `json:"content,omitempty"` + // Set to true to get a presigned S3 upload URL instead of uploading directly. + RequestUploadUrl *bool `json:"requestUploadUrl,omitempty"` + // File size in bytes. Optional but recommended for presigned uploads. + Size *int32 `json:"size,omitempty"` + // Original filename + Filename *string `json:"filename,omitempty"` + // MIME type of the file + ContentType string `json:"contentType"` + // Custom metadata for filtering. Any fields allowed. + Metadata map[string]interface{} `json:"metadata,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UploadFileRequest UploadFileRequest + +// NewUploadFileRequest instantiates a new UploadFileRequest 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 NewUploadFileRequest(contentType string) *UploadFileRequest { + this := UploadFileRequest{} + var requestUploadUrl bool = false + this.RequestUploadUrl = &requestUploadUrl + this.ContentType = contentType + return &this +} + +// NewUploadFileRequestWithDefaults instantiates a new UploadFileRequest 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 NewUploadFileRequestWithDefaults() *UploadFileRequest { + this := UploadFileRequest{} + var requestUploadUrl bool = false + this.RequestUploadUrl = &requestUploadUrl + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *UploadFileRequest) GetContent() string { + if o == nil || IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFileRequest) GetContentOk() (*string, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *UploadFileRequest) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *UploadFileRequest) SetContent(v string) { + o.Content = &v +} + +// GetRequestUploadUrl returns the RequestUploadUrl field value if set, zero value otherwise. +func (o *UploadFileRequest) GetRequestUploadUrl() bool { + if o == nil || IsNil(o.RequestUploadUrl) { + var ret bool + return ret + } + return *o.RequestUploadUrl +} + +// GetRequestUploadUrlOk returns a tuple with the RequestUploadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFileRequest) GetRequestUploadUrlOk() (*bool, bool) { + if o == nil || IsNil(o.RequestUploadUrl) { + return nil, false + } + return o.RequestUploadUrl, true +} + +// HasRequestUploadUrl returns a boolean if a field has been set. +func (o *UploadFileRequest) HasRequestUploadUrl() bool { + if o != nil && !IsNil(o.RequestUploadUrl) { + return true + } + + return false +} + +// SetRequestUploadUrl gets a reference to the given bool and assigns it to the RequestUploadUrl field. +func (o *UploadFileRequest) SetRequestUploadUrl(v bool) { + o.RequestUploadUrl = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *UploadFileRequest) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFileRequest) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *UploadFileRequest) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *UploadFileRequest) SetSize(v int32) { + o.Size = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *UploadFileRequest) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UploadFileRequest) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *UploadFileRequest) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *UploadFileRequest) SetFilename(v string) { + o.Filename = &v +} + +// GetContentType returns the ContentType field value +func (o *UploadFileRequest) GetContentType() string { + if o == nil { + var ret string + return ret + } + + return o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value +// and a boolean to check if the value has been set. +func (o *UploadFileRequest) GetContentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContentType, true +} + +// SetContentType sets field value +func (o *UploadFileRequest) SetContentType(v string) { + o.ContentType = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *UploadFileRequest) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + 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 *UploadFileRequest) GetMetadataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return map[string]interface{}{}, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *UploadFileRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *UploadFileRequest) SetMetadata(v map[string]interface{}) { + o.Metadata = v +} + +func (o UploadFileRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadFileRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.RequestUploadUrl) { + toSerialize["requestUploadUrl"] = o.RequestUploadUrl + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + toSerialize["contentType"] = o.ContentType + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UploadFileRequest) 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{ + "contentType", + } + + 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) + } + } + + varUploadFileRequest := _UploadFileRequest{} + + err = json.Unmarshal(data, &varUploadFileRequest) + + if err != nil { + return err + } + + *o = UploadFileRequest(varUploadFileRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "content") + delete(additionalProperties, "requestUploadUrl") + delete(additionalProperties, "size") + delete(additionalProperties, "filename") + delete(additionalProperties, "contentType") + delete(additionalProperties, "metadata") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUploadFileRequest struct { + value *UploadFileRequest + isSet bool +} + +func (v NullableUploadFileRequest) Get() *UploadFileRequest { + return v.value +} + +func (v *NullableUploadFileRequest) Set(val *UploadFileRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUploadFileRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUploadFileRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUploadFileRequest(val *UploadFileRequest) *NullableUploadFileRequest { + return &NullableUploadFileRequest{value: val, isSet: true} +} + +func (v NullableUploadFileRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUploadFileRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_upload_vector_documents_200_response.go b/model_upload_vector_documents_200_response.go index a2d9c14..6133f87 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.8.0 +API version: 4.9.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 5c05157..9443aad 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.8.0 +API version: 4.9.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 2f28f41..3b01f95 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.8.0 +API version: 4.9.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 efdb24a..fa1bdbb 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.8.0 +API version: 4.9.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 c04e368..8faf926 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.8.0 +API version: 4.9.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 798ccf2..245eeff 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.8.0 +API version: 4.9.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 187bfe6..e5261fc 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.8.0 +API version: 4.9.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 01de427..b1afa3b 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.8.0 +API version: 4.9.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 478b609..36dac6a 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.8.0 +API version: 4.9.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 4e07043..86c9443 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.8.0 +API version: 4.9.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 2e9d861..a237af0 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.8.0 +API version: 4.9.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 b125a54..1c12510 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.8.0 +API version: 4.9.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 f99fee7..f6a6235 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.8.0 +API version: 4.9.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 7713f8e..28b33de 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.8.0 +API version: 4.9.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 c3bd52c..a965518 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.8.0 +API version: 4.9.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 a246108..7e31417 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.8.0 +API version: 4.9.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 6bd8ed0..c107632 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.8.0 +API version: 4.9.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 8152ccf..6b25b40 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.8.0 +API version: 4.9.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 cbe28d2..6609304 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.8.0 +API version: 4.9.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 8b0e73c..2b1feac 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.8.0 +API version: 4.9.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 a895ed8..fa9ebc7 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.8.0 +API version: 4.9.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 01bb4e0..df3f272 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.8.0 +API version: 4.9.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 b53ef57..1f69594 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.8.0 +API version: 4.9.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 90cacd0..d0d5f1b 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.8.0 +API version: 4.9.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 afe8d45..5aafa82 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.8.0 +API version: 4.9.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 65ec860..77e3d06 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.8.0 +API version: 4.9.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 d0b972b..2b93808 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.8.0 +API version: 4.9.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 fbadd08..f5ccc66 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.8.0 +API version: 4.9.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 53e025e..14b6662 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.8.0 +API version: 4.9.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 ff2ef76..4034103 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.8.0 +API version: 4.9.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 94f2e4f..a0fa6c6 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.8.0 +API version: 4.9.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 79cc75c..d72febe 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.8.0 +API version: 4.9.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 526329d..11d895e 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.8.0 +API version: 4.9.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 4f4bdb5..3adcbad 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.8.0 +API version: 4.9.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 2b640ae..83aea7c 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.8.0 +API version: 4.9.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 efdc050..4ae1bca 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.8.0 +API version: 4.9.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 cff9f83..eab9627 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.8.0 +API version: 4.9.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 befd7c5..ac79973 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.8.0 +API version: 4.9.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 52261f5..aad1da9 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.8.0 +API version: 4.9.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 af7680d..5b4e20c 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.8.0 +API version: 4.9.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 b2358c4..152006c 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.8.0 +API version: 4.9.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 6abec10..89a7cd2 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.8.0 +API version: 4.9.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 46ffba7..c5945be 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.8.0 +API version: 4.9.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 a86d79e..8649de3 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.8.0 +API version: 4.9.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 b0f46f1..fb0d772 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.8.0 +API version: 4.9.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 ef25317..660328b 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.8.0 +API version: 4.9.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 a6db911..d51129c 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.8.0 +API version: 4.9.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 7738144..766f0d2 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.8.0 +API version: 4.9.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 1e239f8..55c2315 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.8.0 +API version: 4.9.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 9a0661d..ec3e60f 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.8.0 +API version: 4.9.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 62219bc..9c666e0 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_schedule_request.go b/model_v2_crawler_schedule_request.go index e3558e3..f0efb0c 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_crawler_sitemap_inner.go b/model_v2_crawler_sitemap_inner.go index 589e6d9..9357948 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.8.0 +API version: 4.9.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 dfca90a..ab7061a 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.8.0 +API version: 4.9.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 82dbff6..5c2547c 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.8.0 +API version: 4.9.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 174f54d..c9985d5 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.8.0 +API version: 4.9.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 4bb109b..b95733c 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.8.0 +API version: 4.9.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 7840bd5..5884b07 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.8.0 +API version: 4.9.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 8851e1b..e7b3a43 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v2_organization.go b/model_v2_organization.go index 6c3dd49..068d668 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.8.0 +API version: 4.9.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 7bdbabf..ec44cf1 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.8.0 +API version: 4.9.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 8067196..d51e2bd 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.8.0 +API version: 4.9.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 4cd1e18..fc81ffe 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.8.0 +API version: 4.9.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 c850d11..2b076a9 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.8.0 +API version: 4.9.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 b527102..4cb5cc1 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.8.0 +API version: 4.9.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 4ba3316..8bbbe4d 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.8.0 +API version: 4.9.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 eee0a41..9deb93f 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.8.0 +API version: 4.9.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 283b79f..6cdce35 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.8.0 +API version: 4.9.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 3384111..0f9953c 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.8.0 +API version: 4.9.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 c0595b7..877dcdd 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.8.0 +API version: 4.9.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 4ad4bff..c8e4b94 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.8.0 +API version: 4.9.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 b29b66a..388d6f4 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.8.0 +API version: 4.9.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 b20283d..3a99824 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.8.0 +API version: 4.9.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 198722e..4d42b22 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.8.0 +API version: 4.9.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 53704a7..131e352 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.8.0 +API version: 4.9.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 8bce54c..663ba0d 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.8.0 +API version: 4.9.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 b595458..b55f469 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.8.0 +API version: 4.9.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 e61d0a9..0e34759 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.8.0 +API version: 4.9.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 e03972b..9ebd9ec 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.8.0 +API version: 4.9.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 c76958c..10da38f 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.8.0 +API version: 4.9.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 05e6582..d68d4b1 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.8.0 +API version: 4.9.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 6706ef8..494453a 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.8.0 +API version: 4.9.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 7605692..27c7c89 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.8.0 +API version: 4.9.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 c8aa1a7..89fc296 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.8.0 +API version: 4.9.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 bfaea99..da45307 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.8.0 +API version: 4.9.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 c614e58..bc2a837 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.8.0 +API version: 4.9.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 656800d..3826829 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.8.0 +API version: 4.9.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 8628a72..ffb6823 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.8.0 +API version: 4.9.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 cc17e3f..43f4a4c 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.8.0 +API version: 4.9.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 2fa2787..ef044a7 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.8.0 +API version: 4.9.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 ddfa67d..a0c529b 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.8.0 +API version: 4.9.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 8981ed1..85699fc 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.8.0 +API version: 4.9.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 12d301f..df39e71 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.8.0 +API version: 4.9.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 9e6f1b5..4189ff9 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.8.0 +API version: 4.9.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 f4471d1..20ab47f 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.8.0 +API version: 4.9.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 d8a233d..8b1347c 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.8.0 +API version: 4.9.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 454f5db..cbe9b8e 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.8.0 +API version: 4.9.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 23b9f36..dab7f1c 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.8.0 +API version: 4.9.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 eeb25d2..c771030 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.8.0 +API version: 4.9.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 538febb..91e11c9 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.8.0 +API version: 4.9.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 a4aada9..1a6cba4 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.8.0 +API version: 4.9.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 37a296a..56fee24 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.8.0 +API version: 4.9.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 a6a2c26..6812b60 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.8.0 +API version: 4.9.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 68f7975..387aeef 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.8.0 +API version: 4.9.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 5255ff3..5580a14 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_variable.go b/model_variable.go index 33e0db4..0c948f5 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume.go b/model_volume.go index e93edd0..6f37441 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.8.0 +API version: 4.9.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 47fb048..261a436 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.8.0 +API version: 4.9.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 b7d00ea..0653bbb 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.8.0 +API version: 4.9.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 4fdd6e3..4e404f7 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.8.0 +API version: 4.9.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 3b50d90..df0cd34 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 1edafea..2809ae0 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_ai_agents_test.go b/test/api_ai_agents_test.go index 850a184..6e33c22 100644 --- a/test/api_ai_agents_test.go +++ b/test/api_ai_agents_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIAgentsAPIService(t *testing.T) { diff --git a/test/api_ai_custom_tools_test.go b/test/api_ai_custom_tools_test.go index 12f273b..b77f021 100644 --- a/test/api_ai_custom_tools_test.go +++ b/test/api_ai_custom_tools_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AICustomToolsAPIService(t *testing.T) { diff --git a/test/api_ai_file_storage_test.go b/test/api_ai_file_storage_test.go new file mode 100644 index 0000000..487d2ea --- /dev/null +++ b/test/api_ai_file_storage_test.go @@ -0,0 +1,83 @@ +/* +QuantCDN API + +Testing AIFileStorageAPIService + +*/ + +// 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_AIFileStorageAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AIFileStorageAPIService DeleteFile", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var fileId string + + resp, httpRes, err := apiClient.AIFileStorageAPI.DeleteFile(context.Background(), organisation, fileId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFileStorageAPIService GetFile", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var fileId string + + resp, httpRes, err := apiClient.AIFileStorageAPI.GetFile(context.Background(), organisation, fileId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFileStorageAPIService ListFiles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIFileStorageAPI.ListFiles(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AIFileStorageAPIService UploadFile", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIFileStorageAPI.UploadFile(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_inference_test.go b/test/api_ai_inference_test.go index a95321e..64b94fb 100644 --- a/test/api_ai_inference_test.go +++ b/test/api_ai_inference_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIInferenceAPIService(t *testing.T) { @@ -64,6 +64,21 @@ func Test_quantadmingo_AIInferenceAPIService(t *testing.T) { }) + t.Run("Test AIInferenceAPIService GetDurableExecutionStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var identifier string + + resp, httpRes, err := apiClient.AIInferenceAPI.GetDurableExecutionStatus(context.Background(), organisation, identifier).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AIInferenceAPIService ImageGeneration", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -78,4 +93,18 @@ func Test_quantadmingo_AIInferenceAPIService(t *testing.T) { }) + t.Run("Test AIInferenceAPIService SubmitToolCallback", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AIInferenceAPI.SubmitToolCallback(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/test/api_ai_models_test.go b/test/api_ai_models_test.go index 8d5115f..c754624 100644 --- a/test/api_ai_models_test.go +++ b/test/api_ai_models_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIModelsAPIService(t *testing.T) { diff --git a/test/api_ai_monitoring_test.go b/test/api_ai_monitoring_test.go index 07fb457..41ea20b 100644 --- a/test/api_ai_monitoring_test.go +++ b/test/api_ai_monitoring_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIMonitoringAPIService(t *testing.T) { diff --git a/test/api_ai_sessions_test.go b/test/api_ai_sessions_test.go index 93d7f65..0a145da 100644 --- a/test/api_ai_sessions_test.go +++ b/test/api_ai_sessions_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AISessionsAPIService(t *testing.T) { diff --git a/test/api_ai_task_management_test.go b/test/api_ai_task_management_test.go new file mode 100644 index 0000000..ec81fcd --- /dev/null +++ b/test/api_ai_task_management_test.go @@ -0,0 +1,113 @@ +/* +QuantCDN API + +Testing AITaskManagementAPIService + +*/ + +// 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_AITaskManagementAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AITaskManagementAPIService CreateTask", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AITaskManagementAPI.CreateTask(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AITaskManagementAPIService DeleteTask", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var taskId string + + resp, httpRes, err := apiClient.AITaskManagementAPI.DeleteTask(context.Background(), organisation, taskId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AITaskManagementAPIService GetDependencyGraph", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var taskListId string + + resp, httpRes, err := apiClient.AITaskManagementAPI.GetDependencyGraph(context.Background(), organisation, taskListId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AITaskManagementAPIService GetTask", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var taskId string + + resp, httpRes, err := apiClient.AITaskManagementAPI.GetTask(context.Background(), organisation, taskId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AITaskManagementAPIService ListTasks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + + resp, httpRes, err := apiClient.AITaskManagementAPI.ListTasks(context.Background(), organisation).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AITaskManagementAPIService UpdateTask", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var taskId string + + resp, httpRes, err := apiClient.AITaskManagementAPI.UpdateTask(context.Background(), organisation, taskId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_ai_tools_test.go b/test/api_ai_tools_test.go index 4efd7f9..5d8071d 100644 --- a/test/api_ai_tools_test.go +++ b/test/api_ai_tools_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIToolsAPIService(t *testing.T) { @@ -22,6 +22,21 @@ func Test_quantadmingo_AIToolsAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test AIToolsAPIService GetAIOrchestrationStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.AIToolsAPI.GetAIOrchestrationStatus(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AIToolsAPIService GetAIToolExecutionStatus", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_ai_vector_database_test.go b/test/api_ai_vector_database_test.go index cb04d99..ffe21b2 100644 --- a/test/api_ai_vector_database_test.go +++ b/test/api_ai_vector_database_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_AIVectorDatabaseAPIService(t *testing.T) { diff --git a/test/api_applications_test.go b/test/api_applications_test.go index 3ea5932..3a1a31b 100644 --- a/test/api_applications_test.go +++ b/test/api_applications_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_ApplicationsAPIService(t *testing.T) { diff --git a/test/api_backup_management_test.go b/test/api_backup_management_test.go index 1111d95..5782923 100644 --- a/test/api_backup_management_test.go +++ b/test/api_backup_management_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_BackupManagementAPIService(t *testing.T) { diff --git a/test/api_commands_test.go b/test/api_commands_test.go index 680a735..793e2fc 100644 --- a/test/api_commands_test.go +++ b/test/api_commands_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_CommandsAPIService(t *testing.T) { diff --git a/test/api_compose_test.go b/test/api_compose_test.go index 4a946a7..b3e956e 100644 --- a/test/api_compose_test.go +++ b/test/api_compose_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_ComposeAPIService(t *testing.T) { diff --git a/test/api_containers_test.go b/test/api_containers_test.go index 046a92c..9cab541 100644 --- a/test/api_containers_test.go +++ b/test/api_containers_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_ContainersAPIService(t *testing.T) { diff --git a/test/api_crawler_schedules_test.go b/test/api_crawler_schedules_test.go index c137fa4..ef57b09 100644 --- a/test/api_crawler_schedules_test.go +++ b/test/api_crawler_schedules_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_CrawlerSchedulesAPIService(t *testing.T) { diff --git a/test/api_crawlers_test.go b/test/api_crawlers_test.go index 13390f2..28669ac 100644 --- a/test/api_crawlers_test.go +++ b/test/api_crawlers_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_CrawlersAPIService(t *testing.T) { @@ -92,10 +92,9 @@ func Test_quantadmingo_CrawlersAPIService(t *testing.T) { var organization string var project string - resp, httpRes, err := apiClient.CrawlersAPI.CrawlersList(context.Background(), organization, project).Execute() + httpRes, err := apiClient.CrawlersAPI.CrawlersList(context.Background(), organization, project).Execute() require.Nil(t, err) - require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) diff --git a/test/api_cron_test.go b/test/api_cron_test.go index 2b2b737..df07ad3 100644 --- a/test/api_cron_test.go +++ b/test/api_cron_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_CronAPIService(t *testing.T) { diff --git a/test/api_domains_test.go b/test/api_domains_test.go index 2447671..2dd584c 100644 --- a/test/api_domains_test.go +++ b/test/api_domains_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_DomainsAPIService(t *testing.T) { diff --git a/test/api_environments_test.go b/test/api_environments_test.go index c6d627e..86e1f7b 100644 --- a/test/api_environments_test.go +++ b/test/api_environments_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_EnvironmentsAPIService(t *testing.T) { diff --git a/test/api_headers_test.go b/test/api_headers_test.go index 294578d..c6ac1c9 100644 --- a/test/api_headers_test.go +++ b/test/api_headers_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_HeadersAPIService(t *testing.T) { diff --git a/test/api_kv_test.go b/test/api_kv_test.go index 58fef8c..763473d 100644 --- a/test/api_kv_test.go +++ b/test/api_kv_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_KVAPIService(t *testing.T) { diff --git a/test/api_orchestration_test.go b/test/api_orchestration_test.go new file mode 100644 index 0000000..9c1e598 --- /dev/null +++ b/test/api_orchestration_test.go @@ -0,0 +1,40 @@ +/* +QuantCDN API + +Testing OrchestrationAPIService + +*/ + +// 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_OrchestrationAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OrchestrationAPIService GetAIOrchestrationStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organisation string + var orchestrationId string + + resp, httpRes, err := apiClient.OrchestrationAPI.GetAIOrchestrationStatus(context.Background(), organisation, orchestrationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_organizations_test.go b/test/api_organizations_test.go index bd127ea..937ff90 100644 --- a/test/api_organizations_test.go +++ b/test/api_organizations_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_OrganizationsAPIService(t *testing.T) { diff --git a/test/api_projects_test.go b/test/api_projects_test.go index 37b1a31..98cffca 100644 --- a/test/api_projects_test.go +++ b/test/api_projects_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_ProjectsAPIService(t *testing.T) { diff --git a/test/api_purge_test.go b/test/api_purge_test.go index b27d7ee..3478297 100644 --- a/test/api_purge_test.go +++ b/test/api_purge_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_PurgeAPIService(t *testing.T) { diff --git a/test/api_rules_test.go b/test/api_rules_test.go index 6d23a06..9f799a6 100644 --- a/test/api_rules_test.go +++ b/test/api_rules_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_RulesAPIService(t *testing.T) { diff --git a/test/api_scaling_policy_test.go b/test/api_scaling_policy_test.go index 46a38ca..01fc475 100644 --- a/test/api_scaling_policy_test.go +++ b/test/api_scaling_policy_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_ScalingPolicyAPIService(t *testing.T) { diff --git a/test/api_ssh_access_test.go b/test/api_ssh_access_test.go index cf65ba6..d2c916a 100644 --- a/test/api_ssh_access_test.go +++ b/test/api_ssh_access_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_SSHAccessAPIService(t *testing.T) { diff --git a/test/api_variables_test.go b/test/api_variables_test.go index ae5d92a..a126ffb 100644 --- a/test/api_variables_test.go +++ b/test/api_variables_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_VariablesAPIService(t *testing.T) { diff --git a/test/api_volumes_test.go b/test/api_volumes_test.go index 2b05f57..db6a463 100644 --- a/test/api_volumes_test.go +++ b/test/api_volumes_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/quantcdn/quant-admin-go/v4" + openapiclient "github.com/quantcdn/quant-admin-go" ) func Test_quantadmingo_VolumesAPIService(t *testing.T) { diff --git a/utils.go b/utils.go index 81d064e..4209617 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.8.0 +API version: 4.9.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/version.go b/version.go index 426e559..73c7965 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package quantadmingo // Version of the SDK -const Version = "4.8.0" +const Version = "4.9.0"